signalk-trackviewer 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +20 -0
- package/package.json +59 -0
- package/private/index.js +12 -0
- package/public/3rdpartylicenses.txt +535 -0
- package/public/assets/icons/icon-152x152.png +0 -0
- package/public/assets/icons/icon-180x180.png +0 -0
- package/public/assets/icons/icon-192x192.png +0 -0
- package/public/assets/icons/icon-512x512.png +0 -0
- package/public/assets/icons/icon-72x72.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +16 -0
- package/public/main-EPGEVZWJ.js +37 -0
- package/public/manifest.json +37 -0
- package/public/media/layers-2x-TBM42ERR.png +0 -0
- package/public/media/layers-55W3Q4RM.png +0 -0
- package/public/media/marker-icon-2V3QKKVC.png +0 -0
- package/public/polyfills-FFHMD2TL.js +2 -0
- package/public/styles-6P35AEZK.css +1 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var vk=Object.create;var Zh=Object.defineProperty,yk=Object.defineProperties,wk=Object.getOwnPropertyDescriptor,xk=Object.getOwnPropertyDescriptors,Dk=Object.getOwnPropertyNames,Kl=Object.getOwnPropertySymbols,Ck=Object.getPrototypeOf,Yh=Object.prototype.hasOwnProperty,cv=Object.prototype.propertyIsEnumerable;var lv=(t,i,e)=>i in t?Zh(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,ye=(t,i)=>{for(var e in i||={})Yh.call(i,e)&&lv(t,e,i[e]);if(Kl)for(var e of Kl(i))cv.call(i,e)&&lv(t,e,i[e]);return t},Nt=(t,i)=>yk(t,xk(i));var Qh=(t,i)=>{var e={};for(var n in t)Yh.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Kl)for(var n of Kl(t))i.indexOf(n)<0&&cv.call(t,n)&&(e[n]=t[n]);return e};var Ek=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports);var Ik=(t,i,e,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of Dk(i))!Yh.call(t,r)&&r!==e&&Zh(t,r,{get:()=>i[r],enumerable:!(n=wk(i,r))||n.enumerable});return t};var dv=(t,i,e)=>(e=t!=null?vk(Ck(t)):{},Ik(i||!t||!t.__esModule?Zh(e,"default",{value:t,enumerable:!0}):e,t));var c_=Ek((Vu,TC)=>{"use strict";(function(t,i){typeof Vu=="object"&&typeof TC<"u"?i(Vu):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t.leaflet={}))})(Vu,function(t){"use strict";var i="1.9.4";function e(s){var l,d,h,m;for(d=1,h=arguments.length;d<h;d++){m=arguments[d];for(l in m)s[l]=m[l]}return s}var n=Object.create||function(){function s(){}return function(l){return s.prototype=l,new s}}();function r(s,l){var d=Array.prototype.slice;if(s.bind)return s.bind.apply(s,d.call(arguments,1));var h=d.call(arguments,2);return function(){return s.apply(l,h.length?h.concat(d.call(arguments)):arguments)}}var o=0;function a(s){return"_leaflet_id"in s||(s._leaflet_id=++o),s._leaflet_id}function c(s,l,d){var h,m,g,v;return v=function(){h=!1,m&&(g.apply(d,m),m=!1)},g=function(){h?m=arguments:(s.apply(d,arguments),setTimeout(v,l),h=!0)},g}function u(s,l,d){var h=l[1],m=l[0],g=h-m;return s===h&&d?s:((s-m)%g+g)%g+m}function f(){return!1}function p(s,l){if(l===!1)return s;var d=Math.pow(10,l===void 0?6:l);return Math.round(s*d)/d}function _(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function w(s){return _(s).split(/\s+/)}function y(s,l){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?n(s.options):{});for(var d in l)s.options[d]=l[d];return s.options}function C(s,l,d){var h=[];for(var m in s)h.push(encodeURIComponent(d?m.toUpperCase():m)+"="+encodeURIComponent(s[m]));return(!l||l.indexOf("?")===-1?"?":"&")+h.join("&")}var I=/\{ *([\w_ -]+) *\}/g;function A(s,l){return s.replace(I,function(d,h){var m=l[h];if(m===void 0)throw new Error("No value provided for variable "+d);return typeof m=="function"&&(m=m(l)),m})}var z=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function Ne(s,l){for(var d=0;d<s.length;d++)if(s[d]===l)return d;return-1}var be="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function qe(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var zt=0;function st(s){var l=+new Date,d=Math.max(0,16-(l-zt));return zt=l+d,window.setTimeout(s,d)}var at=window.requestAnimationFrame||qe("RequestAnimationFrame")||st,Dt=window.cancelAnimationFrame||qe("CancelAnimationFrame")||qe("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function ft(s,l,d){if(d&&at===st)s.call(l);else return at.call(window,r(s,l))}function Ct(s){s&&Dt.call(window,s)}var Al={__proto__:null,extend:e,create:n,bind:r,get lastId(){return o},stamp:a,throttle:c,wrapNum:u,falseFn:f,formatNum:p,trim:_,splitWords:w,setOptions:y,getParamString:C,template:A,isArray:z,indexOf:Ne,emptyImageUrl:be,requestFn:at,cancelFn:Dt,requestAnimFrame:ft,cancelAnimFrame:Ct};function Wt(){}Wt.extend=function(s){var l=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},d=l.__super__=this.prototype,h=n(d);h.constructor=l,l.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(l[m]=this[m]);return s.statics&&e(l,s.statics),s.includes&&(Gs(s.includes),e.apply(null,[h].concat(s.includes))),e(h,s),delete h.statics,delete h.includes,h.options&&(h.options=d.options?n(d.options):{},e(h.options,s.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this),this._initHooksCalled=!0;for(var g=0,v=h._initHooks.length;g<v;g++)h._initHooks[g].call(this)}},l},Wt.include=function(s){var l=this.prototype.options;return e(this.prototype,s),s.options&&(this.prototype.options=l,this.mergeOptions(s.options)),this},Wt.mergeOptions=function(s){return e(this.prototype.options,s),this},Wt.addInitHook=function(s){var l=Array.prototype.slice.call(arguments,1),d=typeof s=="function"?s:function(){this[s].apply(this,l)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(d),this};function Gs(s){if(!(typeof L>"u"||!L||!L.Mixin)){s=z(s)?s:[s];for(var l=0;l<s.length;l++)s[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Kt={on:function(s,l,d){if(typeof s=="object")for(var h in s)this._on(h,s[h],l);else{s=w(s);for(var m=0,g=s.length;m<g;m++)this._on(s[m],l,d)}return this},off:function(s,l,d){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var h in s)this._off(h,s[h],l);else{s=w(s);for(var m=arguments.length===1,g=0,v=s.length;g<v;g++)m?this._off(s[g]):this._off(s[g],l,d)}return this},_on:function(s,l,d,h){if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}if(this._listens(s,l,d)===!1){d===this&&(d=void 0);var m={fn:l,ctx:d};h&&(m.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(m)}},_off:function(s,l,d){var h,m,g;if(this._events&&(h=this._events[s],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,g=h.length;m<g;m++)h[m].fn=f;delete this._events[s];return}if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}var v=this._listens(s,l,d);if(v!==!1){var x=h[v];this._firingCount&&(x.fn=f,this._events[s]=h=h.slice()),h.splice(v,1)}}},fire:function(s,l,d){if(!this.listens(s,d))return this;var h=e({},l,{type:s,target:this,sourceTarget:l&&l.sourceTarget||this});if(this._events){var m=this._events[s];if(m){this._firingCount=this._firingCount+1||1;for(var g=0,v=m.length;g<v;g++){var x=m[g],k=x.fn;x.once&&this.off(s,k,x.ctx),k.call(x.ctx||this,h)}this._firingCount--}}return d&&this._propagateEvent(h),this},listens:function(s,l,d,h){typeof s!="string"&&console.warn('"string" type argument expected');var m=l;typeof l!="function"&&(h=!!l,m=void 0,d=void 0);var g=this._events&&this._events[s];if(g&&g.length&&this._listens(s,m,d)!==!1)return!0;if(h){for(var v in this._eventParents)if(this._eventParents[v].listens(s,l,d,h))return!0}return!1},_listens:function(s,l,d){if(!this._events)return!1;var h=this._events[s]||[];if(!l)return!!h.length;d===this&&(d=void 0);for(var m=0,g=h.length;m<g;m++)if(h[m].fn===l&&h[m].ctx===d)return m;return!1},once:function(s,l,d){if(typeof s=="object")for(var h in s)this._on(h,s[h],l,!0);else{s=w(s);for(var m=0,g=s.length;m<g;m++)this._on(s[m],l,d,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[a(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[a(s)],this},_propagateEvent:function(s){for(var l in this._eventParents)this._eventParents[l].fire(s.type,e({layer:s.target,propagatedFrom:s.target},s),!0)}};Kt.addEventListener=Kt.on,Kt.removeEventListener=Kt.clearAllEventListeners=Kt.off,Kt.addOneTimeEventListener=Kt.once,Kt.fireEvent=Kt.fire,Kt.hasEventListeners=Kt.listens;var ar=Wt.extend(Kt);function O(s,l,d){this.x=d?Math.round(s):s,this.y=d?Math.round(l):l}var he=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};O.prototype={clone:function(){return new O(this.x,this.y)},add:function(s){return this.clone()._add(F(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(F(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new O(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new O(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=he(this.x),this.y=he(this.y),this},distanceTo:function(s){s=F(s);var l=s.x-this.x,d=s.y-this.y;return Math.sqrt(l*l+d*d)},equals:function(s){return s=F(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=F(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function F(s,l,d){return s instanceof O?s:z(s)?new O(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new O(s.x,s.y):new O(s,l,d)}function ce(s,l){if(s)for(var d=l?[s,l]:s,h=0,m=d.length;h<m;h++)this.extend(d[h])}ce.prototype={extend:function(s){var l,d;if(!s)return this;if(s instanceof O||typeof s[0]=="number"||"x"in s)l=d=F(s);else if(s=Je(s),l=s.min,d=s.max,!l||!d)return this;return!this.min&&!this.max?(this.min=l.clone(),this.max=d.clone()):(this.min.x=Math.min(l.x,this.min.x),this.max.x=Math.max(d.x,this.max.x),this.min.y=Math.min(l.y,this.min.y),this.max.y=Math.max(d.y,this.max.y)),this},getCenter:function(s){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var l,d;return typeof s[0]=="number"||s instanceof O?s=F(s):s=Je(s),s instanceof ce?(l=s.min,d=s.max):l=d=s,l.x>=this.min.x&&d.x<=this.max.x&&l.y>=this.min.y&&d.y<=this.max.y},intersects:function(s){s=Je(s);var l=this.min,d=this.max,h=s.min,m=s.max,g=m.x>=l.x&&h.x<=d.x,v=m.y>=l.y&&h.y<=d.y;return g&&v},overlaps:function(s){s=Je(s);var l=this.min,d=this.max,h=s.min,m=s.max,g=m.x>l.x&&h.x<d.x,v=m.y>l.y&&h.y<d.y;return g&&v},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var l=this.min,d=this.max,h=Math.abs(l.x-d.x)*s,m=Math.abs(l.y-d.y)*s;return Je(F(l.x-h,l.y-m),F(d.x+h,d.y+m))},equals:function(s){return s?(s=Je(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function Je(s,l){return!s||s instanceof ce?s:new ce(s,l)}function dt(s,l){if(s)for(var d=l?[s,l]:s,h=0,m=d.length;h<m;h++)this.extend(d[h])}dt.prototype={extend:function(s){var l=this._southWest,d=this._northEast,h,m;if(s instanceof $e)h=s,m=s;else if(s instanceof dt){if(h=s._southWest,m=s._northEast,!h||!m)return this}else return s?this.extend(le(s)||Ye(s)):this;return!l&&!d?(this._southWest=new $e(h.lat,h.lng),this._northEast=new $e(m.lat,m.lng)):(l.lat=Math.min(h.lat,l.lat),l.lng=Math.min(h.lng,l.lng),d.lat=Math.max(m.lat,d.lat),d.lng=Math.max(m.lng,d.lng)),this},pad:function(s){var l=this._southWest,d=this._northEast,h=Math.abs(l.lat-d.lat)*s,m=Math.abs(l.lng-d.lng)*s;return new dt(new $e(l.lat-h,l.lng-m),new $e(d.lat+h,d.lng+m))},getCenter:function(){return new $e((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new $e(this.getNorth(),this.getWest())},getSouthEast:function(){return new $e(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){typeof s[0]=="number"||s instanceof $e||"lat"in s?s=le(s):s=Ye(s);var l=this._southWest,d=this._northEast,h,m;return s instanceof dt?(h=s.getSouthWest(),m=s.getNorthEast()):h=m=s,h.lat>=l.lat&&m.lat<=d.lat&&h.lng>=l.lng&&m.lng<=d.lng},intersects:function(s){s=Ye(s);var l=this._southWest,d=this._northEast,h=s.getSouthWest(),m=s.getNorthEast(),g=m.lat>=l.lat&&h.lat<=d.lat,v=m.lng>=l.lng&&h.lng<=d.lng;return g&&v},overlaps:function(s){s=Ye(s);var l=this._southWest,d=this._northEast,h=s.getSouthWest(),m=s.getNorthEast(),g=m.lat>l.lat&&h.lat<d.lat,v=m.lng>l.lng&&h.lng<d.lng;return g&&v},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,l){return s?(s=Ye(s),this._southWest.equals(s.getSouthWest(),l)&&this._northEast.equals(s.getNorthEast(),l)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ye(s,l){return s instanceof dt?s:new dt(s,l)}function $e(s,l,d){if(isNaN(s)||isNaN(l))throw new Error("Invalid LatLng object: ("+s+", "+l+")");this.lat=+s,this.lng=+l,d!==void 0&&(this.alt=+d)}$e.prototype={equals:function(s,l){if(!s)return!1;s=le(s);var d=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return d<=(l===void 0?1e-9:l)},toString:function(s){return"LatLng("+p(this.lat,s)+", "+p(this.lng,s)+")"},distanceTo:function(s){return hn.distance(this,le(s))},wrap:function(){return hn.wrapLatLng(this)},toBounds:function(s){var l=180*s/40075017,d=l/Math.cos(Math.PI/180*this.lat);return Ye([this.lat-l,this.lng-d],[this.lat+l,this.lng+d])},clone:function(){return new $e(this.lat,this.lng,this.alt)}};function le(s,l,d){return s instanceof $e?s:z(s)&&typeof s[0]!="object"?s.length===3?new $e(s[0],s[1],s[2]):s.length===2?new $e(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new $e(s.lat,"lng"in s?s.lng:s.lon,s.alt):l===void 0?null:new $e(s,l,d)}var Ni={latLngToPoint:function(s,l){var d=this.projection.project(s),h=this.scale(l);return this.transformation._transform(d,h)},pointToLatLng:function(s,l){var d=this.scale(l),h=this.transformation.untransform(s,d);return this.projection.unproject(h)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var l=this.projection.bounds,d=this.scale(s),h=this.transformation.transform(l.min,d),m=this.transformation.transform(l.max,d);return new ce(h,m)},infinite:!1,wrapLatLng:function(s){var l=this.wrapLng?u(s.lng,this.wrapLng,!0):s.lng,d=this.wrapLat?u(s.lat,this.wrapLat,!0):s.lat,h=s.alt;return new $e(d,l,h)},wrapLatLngBounds:function(s){var l=s.getCenter(),d=this.wrapLatLng(l),h=l.lat-d.lat,m=l.lng-d.lng;if(h===0&&m===0)return s;var g=s.getSouthWest(),v=s.getNorthEast(),x=new $e(g.lat-h,g.lng-m),k=new $e(v.lat-h,v.lng-m);return new dt(x,k)}},hn=e({},Ni,{wrapLng:[-180,180],R:6371e3,distance:function(s,l){var d=Math.PI/180,h=s.lat*d,m=l.lat*d,g=Math.sin((l.lat-s.lat)*d/2),v=Math.sin((l.lng-s.lng)*d/2),x=g*g+Math.cos(h)*Math.cos(m)*v*v,k=2*Math.atan2(Math.sqrt(x),Math.sqrt(1-x));return this.R*k}}),Ft=6378137,Zi={R:Ft,MAX_LATITUDE:85.0511287798,project:function(s){var l=Math.PI/180,d=this.MAX_LATITUDE,h=Math.max(Math.min(d,s.lat),-d),m=Math.sin(h*l);return new O(this.R*s.lng*l,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(s){var l=180/Math.PI;return new $e((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*l,s.x*l/this.R)},bounds:function(){var s=Ft*Math.PI;return new ce([-s,-s],[s,s])}()};function Xt(s,l,d,h){if(z(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=l,this._c=d,this._d=h}Xt.prototype={transform:function(s,l){return this._transform(s.clone(),l)},_transform:function(s,l){return l=l||1,s.x=l*(this._a*s.x+this._b),s.y=l*(this._c*s.y+this._d),s},untransform:function(s,l){return l=l||1,new O((s.x/l-this._b)/this._a,(s.y/l-this._d)/this._c)}};function fn(s,l,d,h){return new Xt(s,l,d,h)}var Rr=e({},hn,{code:"EPSG:3857",projection:Zi,transformation:function(){var s=.5/(Math.PI*Zi.R);return fn(s,.5,-s,.5)}()}),YI=e({},Rr,{code:"EPSG:900913"});function J_(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function eb(s,l){var d="",h,m,g,v,x,k;for(h=0,g=s.length;h<g;h++){for(x=s[h],m=0,v=x.length;m<v;m++)k=x[m],d+=(m?"L":"M")+k.x+" "+k.y;d+=l?fe.svg?"z":"x":""}return d||"M0 0"}var _h=document.documentElement.style,Rl="ActiveXObject"in window,QI=Rl&&!document.addEventListener,tb="msLaunchUri"in navigator&&!("documentMode"in document),bh=mn("webkit"),ib=mn("android"),nb=mn("android 2")||mn("android 3"),KI=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),XI=ib&&mn("Google")&&KI<537&&!("AudioNode"in window),vh=!!window.opera,rb=!tb&&mn("chrome"),ob=mn("gecko")&&!bh&&!vh&&!Rl,JI=!rb&&mn("safari"),sb=mn("phantom"),ab="OTransition"in _h,eM=navigator.platform.indexOf("Win")===0,lb=Rl&&"transition"in _h,yh="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nb,cb="MozPerspective"in _h,tM=!window.L_DISABLE_3D&&(lb||yh||cb)&&!ab&&!sb,qs=typeof orientation<"u"||mn("mobile"),iM=qs&&bh,nM=qs&&yh,db=!window.PointerEvent&&window.MSPointerEvent,ub=!!(window.PointerEvent||db),hb="ontouchstart"in window||!!window.TouchEvent,rM=!window.L_NO_TOUCH&&(hb||ub),oM=qs&&vh,sM=qs&&ob,aM=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,lM=function(){var s=!1;try{var l=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",f,l),window.removeEventListener("testPassiveEventSupport",f,l)}catch{}return s}(),cM=function(){return!!document.createElement("canvas").getContext}(),wh=!!(document.createElementNS&&J_("svg").createSVGRect),dM=!!wh&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),uM=!wh&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var l=s.firstChild;return l.style.behavior="url(#default#VML)",l&&typeof l.adj=="object"}catch{return!1}}(),hM=navigator.platform.indexOf("Mac")===0,fM=navigator.platform.indexOf("Linux")===0;function mn(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var fe={ie:Rl,ielt9:QI,edge:tb,webkit:bh,android:ib,android23:nb,androidStock:XI,opera:vh,chrome:rb,gecko:ob,safari:JI,phantom:sb,opera12:ab,win:eM,ie3d:lb,webkit3d:yh,gecko3d:cb,any3d:tM,mobile:qs,mobileWebkit:iM,mobileWebkit3d:nM,msPointer:db,pointer:ub,touch:rM,touchNative:hb,mobileOpera:oM,mobileGecko:sM,retina:aM,passiveEvents:lM,canvas:cM,svg:wh,vml:uM,inlineSvg:dM,mac:hM,linux:fM},fb=fe.msPointer?"MSPointerDown":"pointerdown",mb=fe.msPointer?"MSPointerMove":"pointermove",pb=fe.msPointer?"MSPointerUp":"pointerup",gb=fe.msPointer?"MSPointerCancel":"pointercancel",xh={touchstart:fb,touchmove:mb,touchend:pb,touchcancel:gb},_b={touchstart:vM,touchmove:Ol,touchend:Ol,touchcancel:Ol},So={},bb=!1;function mM(s,l,d){return l==="touchstart"&&bM(),_b[l]?(d=_b[l].bind(this,d),s.addEventListener(xh[l],d,!1),d):(console.warn("wrong event specified:",l),f)}function pM(s,l,d){if(!xh[l]){console.warn("wrong event specified:",l);return}s.removeEventListener(xh[l],d,!1)}function gM(s){So[s.pointerId]=s}function _M(s){So[s.pointerId]&&(So[s.pointerId]=s)}function vb(s){delete So[s.pointerId]}function bM(){bb||(document.addEventListener(fb,gM,!0),document.addEventListener(mb,_M,!0),document.addEventListener(pb,vb,!0),document.addEventListener(gb,vb,!0),bb=!0)}function Ol(s,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){l.touches=[];for(var d in So)l.touches.push(So[d]);l.changedTouches=[l],s(l)}}function vM(s,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&Gt(l),Ol(s,l)}function yM(s){var l={},d,h;for(h in s)d=s[h],l[h]=d&&d.bind?d.bind(s):d;return s=l,l.type="dblclick",l.detail=2,l.isTrusted=!1,l._simulated=!0,l}var wM=200;function xM(s,l){s.addEventListener("dblclick",l);var d=0,h;function m(g){if(g.detail!==1){h=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var v=Cb(g);if(!(v.some(function(k){return k instanceof HTMLLabelElement&&k.attributes.for})&&!v.some(function(k){return k instanceof HTMLInputElement||k instanceof HTMLSelectElement}))){var x=Date.now();x-d<=wM?(h++,h===2&&l(yM(g))):h=1,d=x}}}return s.addEventListener("click",m),{dblclick:l,simDblclick:m}}function DM(s,l){s.removeEventListener("dblclick",l.dblclick),s.removeEventListener("click",l.simDblclick)}var Dh=Nl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Zs=Nl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),yb=Zs==="webkitTransition"||Zs==="OTransition"?Zs+"End":"transitionend";function wb(s){return typeof s=="string"?document.getElementById(s):s}function Ys(s,l){var d=s.style[l]||s.currentStyle&&s.currentStyle[l];if((!d||d==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(s,null);d=h?h[l]:null}return d==="auto"?null:d}function tt(s,l,d){var h=document.createElement(s);return h.className=l||"",d&&d.appendChild(h),h}function vt(s){var l=s.parentNode;l&&l.removeChild(s)}function Pl(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function To(s){var l=s.parentNode;l&&l.lastChild!==s&&l.appendChild(s)}function Ao(s){var l=s.parentNode;l&&l.firstChild!==s&&l.insertBefore(s,l.firstChild)}function Ch(s,l){if(s.classList!==void 0)return s.classList.contains(l);var d=Fl(s);return d.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(d)}function Be(s,l){if(s.classList!==void 0)for(var d=w(l),h=0,m=d.length;h<m;h++)s.classList.add(d[h]);else if(!Ch(s,l)){var g=Fl(s);Eh(s,(g?g+" ":"")+l)}}function Et(s,l){s.classList!==void 0?s.classList.remove(l):Eh(s,_((" "+Fl(s)+" ").replace(" "+l+" "," ")))}function Eh(s,l){s.className.baseVal===void 0?s.className=l:s.className.baseVal=l}function Fl(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function Li(s,l){"opacity"in s.style?s.style.opacity=l:"filter"in s.style&&CM(s,l)}function CM(s,l){var d=!1,h="DXImageTransform.Microsoft.Alpha";try{d=s.filters.item(h)}catch{if(l===1)return}l=Math.round(l*100),d?(d.Enabled=l!==100,d.Opacity=l):s.style.filter+=" progid:"+h+"(opacity="+l+")"}function Nl(s){for(var l=document.documentElement.style,d=0;d<s.length;d++)if(s[d]in l)return s[d];return!1}function Or(s,l,d){var h=l||new O(0,0);s.style[Dh]=(fe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(d?" scale("+d+")":"")}function Tt(s,l){s._leaflet_pos=l,fe.any3d?Or(s,l):(s.style.left=l.x+"px",s.style.top=l.y+"px")}function Pr(s){return s._leaflet_pos||new O(0,0)}var Qs,Ks,Ih;if("onselectstart"in document)Qs=function(){Oe(window,"selectstart",Gt)},Ks=function(){lt(window,"selectstart",Gt)};else{var Xs=Nl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Qs=function(){if(Xs){var s=document.documentElement.style;Ih=s[Xs],s[Xs]="none"}},Ks=function(){Xs&&(document.documentElement.style[Xs]=Ih,Ih=void 0)}}function Mh(){Oe(window,"dragstart",Gt)}function kh(){lt(window,"dragstart",Gt)}var Ll,Sh;function Th(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Vl(),Ll=s,Sh=s.style.outlineStyle,s.style.outlineStyle="none",Oe(window,"keydown",Vl))}function Vl(){Ll&&(Ll.style.outlineStyle=Sh,Ll=void 0,Sh=void 0,lt(window,"keydown",Vl))}function xb(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function Ah(s){var l=s.getBoundingClientRect();return{x:l.width/s.offsetWidth||1,y:l.height/s.offsetHeight||1,boundingClientRect:l}}var EM={__proto__:null,TRANSFORM:Dh,TRANSITION:Zs,TRANSITION_END:yb,get:wb,getStyle:Ys,create:tt,remove:vt,empty:Pl,toFront:To,toBack:Ao,hasClass:Ch,addClass:Be,removeClass:Et,setClass:Eh,getClass:Fl,setOpacity:Li,testProp:Nl,setTransform:Or,setPosition:Tt,getPosition:Pr,get disableTextSelection(){return Qs},get enableTextSelection(){return Ks},disableImageDrag:Mh,enableImageDrag:kh,preventOutline:Th,restoreOutline:Vl,getSizedParentNode:xb,getScale:Ah};function Oe(s,l,d,h){if(l&&typeof l=="object")for(var m in l)Oh(s,m,l[m],d);else{l=w(l);for(var g=0,v=l.length;g<v;g++)Oh(s,l[g],d,h)}return this}var pn="_leaflet_events";function lt(s,l,d,h){if(arguments.length===1)Db(s),delete s[pn];else if(l&&typeof l=="object")for(var m in l)Ph(s,m,l[m],d);else if(l=w(l),arguments.length===2)Db(s,function(x){return Ne(l,x)!==-1});else for(var g=0,v=l.length;g<v;g++)Ph(s,l[g],d,h);return this}function Db(s,l){for(var d in s[pn]){var h=d.split(/\d/)[0];(!l||l(h))&&Ph(s,h,null,null,d)}}var Rh={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Oh(s,l,d,h){var m=l+a(d)+(h?"_"+a(h):"");if(s[pn]&&s[pn][m])return this;var g=function(x){return d.call(h||s,x||window.event)},v=g;!fe.touchNative&&fe.pointer&&l.indexOf("touch")===0?g=mM(s,l,g):fe.touch&&l==="dblclick"?g=xM(s,g):"addEventListener"in s?l==="touchstart"||l==="touchmove"||l==="wheel"||l==="mousewheel"?s.addEventListener(Rh[l]||l,g,fe.passiveEvents?{passive:!1}:!1):l==="mouseenter"||l==="mouseleave"?(g=function(x){x=x||window.event,Nh(s,x)&&v(x)},s.addEventListener(Rh[l],g,!1)):s.addEventListener(l,v,!1):s.attachEvent("on"+l,g),s[pn]=s[pn]||{},s[pn][m]=g}function Ph(s,l,d,h,m){m=m||l+a(d)+(h?"_"+a(h):"");var g=s[pn]&&s[pn][m];if(!g)return this;!fe.touchNative&&fe.pointer&&l.indexOf("touch")===0?pM(s,l,g):fe.touch&&l==="dblclick"?DM(s,g):"removeEventListener"in s?s.removeEventListener(Rh[l]||l,g,!1):s.detachEvent("on"+l,g),s[pn][m]=null}function Fr(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function Fh(s){return Oh(s,"wheel",Fr),this}function Js(s){return Oe(s,"mousedown touchstart dblclick contextmenu",Fr),s._leaflet_disable_click=!0,this}function Gt(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function Nr(s){return Gt(s),Fr(s),this}function Cb(s){if(s.composedPath)return s.composedPath();for(var l=[],d=s.target;d;)l.push(d),d=d.parentNode;return l}function Eb(s,l){if(!l)return new O(s.clientX,s.clientY);var d=Ah(l),h=d.boundingClientRect;return new O((s.clientX-h.left)/d.x-l.clientLeft,(s.clientY-h.top)/d.y-l.clientTop)}var IM=fe.linux&&fe.chrome?window.devicePixelRatio:fe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ib(s){return fe.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/IM:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function Nh(s,l){var d=l.relatedTarget;if(!d)return!0;try{for(;d&&d!==s;)d=d.parentNode}catch{return!1}return d!==s}var MM={__proto__:null,on:Oe,off:lt,stopPropagation:Fr,disableScrollPropagation:Fh,disableClickPropagation:Js,preventDefault:Gt,stop:Nr,getPropagationPath:Cb,getMousePosition:Eb,getWheelDelta:Ib,isExternalTarget:Nh,addListener:Oe,removeListener:lt},Mb=ar.extend({run:function(s,l,d,h){this.stop(),this._el=s,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Pr(s),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=ft(this._animate,this),this._step()},_step:function(s){var l=+new Date-this._startTime,d=this._duration*1e3;l<d?this._runFrame(this._easeOut(l/d),s):(this._runFrame(1),this._complete())},_runFrame:function(s,l){var d=this._startPos.add(this._offset.multiplyBy(s));l&&d._round(),Tt(this._el,d),this.fire("step")},_complete:function(){Ct(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),Qe=ar.extend({options:{crs:Rr,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,l){l=y(this,l),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),l.maxBounds&&this.setMaxBounds(l.maxBounds),l.zoom!==void 0&&(this._zoom=this._limitZoom(l.zoom)),l.center&&l.zoom!==void 0&&this.setView(le(l.center),l.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Zs&&fe.any3d&&!fe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Oe(this._proxy,yb,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,l,d){if(l=l===void 0?this._zoom:this._limitZoom(l),s=this._limitCenter(le(s),l,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&&d!==!0){d.animate!==void 0&&(d.zoom=e({animate:d.animate},d.zoom),d.pan=e({animate:d.animate,duration:d.duration},d.pan));var h=this._zoom!==l?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,l,d.zoom):this._tryAnimatedPan(s,d.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(s,l,d.pan&&d.pan.noMoveStart),this},setZoom:function(s,l){return this._loaded?this.setView(this.getCenter(),s,{zoom:l}):(this._zoom=s,this)},zoomIn:function(s,l){return s=s||(fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,l)},zoomOut:function(s,l){return s=s||(fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,l)},setZoomAround:function(s,l,d){var h=this.getZoomScale(l),m=this.getSize().divideBy(2),g=s instanceof O?s:this.latLngToContainerPoint(s),v=g.subtract(m).multiplyBy(1-1/h),x=this.containerPointToLatLng(m.add(v));return this.setView(x,l,{zoom:d})},_getBoundsCenterZoom:function(s,l){l=l||{},s=s.getBounds?s.getBounds():Ye(s);var d=F(l.paddingTopLeft||l.padding||[0,0]),h=F(l.paddingBottomRight||l.padding||[0,0]),m=this.getBoundsZoom(s,!1,d.add(h));if(m=typeof l.maxZoom=="number"?Math.min(l.maxZoom,m):m,m===1/0)return{center:s.getCenter(),zoom:m};var g=h.subtract(d).divideBy(2),v=this.project(s.getSouthWest(),m),x=this.project(s.getNorthEast(),m),k=this.unproject(v.add(x).divideBy(2).add(g),m);return{center:k,zoom:m}},fitBounds:function(s,l){if(s=Ye(s),!s.isValid())throw new Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(s,l);return this.setView(d.center,d.zoom,l)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,l){return this.setView(s,this._zoom,{pan:l})},panBy:function(s,l){if(s=F(s).round(),l=l||{},!s.x&&!s.y)return this.fire("moveend");if(l.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Mb,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),l.noMoveStart||this.fire("movestart"),l.animate!==!1){Be(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,d,l.duration||.25,l.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,l,d){if(d=d||{},d.animate===!1||!fe.any3d)return this.setView(s,l,d);this._stop();var h=this.project(this.getCenter()),m=this.project(s),g=this.getSize(),v=this._zoom;s=le(s),l=l===void 0?v:l;var x=Math.max(g.x,g.y),k=x*this.getZoomScale(v,l),P=m.distanceTo(h)||1,K=1.42,ve=K*K;function He(At){var Ql=At?-1:1,pk=At?k:x,gk=k*k-x*x+Ql*ve*ve*P*P,_k=2*pk*ve*P,qh=gk/_k,av=Math.sqrt(qh*qh+1)-qh,bk=av<1e-9?-18:Math.log(av);return bk}function ai(At){return(Math.exp(At)-Math.exp(-At))/2}function Ht(At){return(Math.exp(At)+Math.exp(-At))/2}function ji(At){return ai(At)/Ht(At)}var mi=He(0);function Lo(At){return x*(Ht(mi)/Ht(mi+K*At))}function uk(At){return x*(Ht(mi)*ji(mi+K*At)-ai(mi))/ve}function hk(At){return 1-Math.pow(1-At,1.5)}var fk=Date.now(),ov=(He(1)-mi)/K,mk=d.duration?1e3*d.duration:1e3*ov*.8;function sv(){var At=(Date.now()-fk)/mk,Ql=hk(At)*ov;At<=1?(this._flyToFrame=ft(sv,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(uk(Ql)/P)),v),this.getScaleZoom(x/Lo(Ql),v),{flyTo:!0})):this._move(s,l)._moveEnd(!0)}return this._moveStart(!0,d.noMoveStart),sv.call(this),this},flyToBounds:function(s,l){var d=this._getBoundsCenterZoom(s,l);return this.flyTo(d.center,d.zoom,l)},setMaxBounds:function(s){return s=Ye(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var l=this.options.minZoom;return this.options.minZoom=s,this._loaded&&l!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var l=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&l!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,l){this._enforcingBounds=!0;var d=this.getCenter(),h=this._limitCenter(d,this._zoom,Ye(s));return d.equals(h)||this.panTo(h,l),this._enforcingBounds=!1,this},panInside:function(s,l){l=l||{};var d=F(l.paddingTopLeft||l.padding||[0,0]),h=F(l.paddingBottomRight||l.padding||[0,0]),m=this.project(this.getCenter()),g=this.project(s),v=this.getPixelBounds(),x=Je([v.min.add(d),v.max.subtract(h)]),k=x.getSize();if(!x.contains(g)){this._enforcingBounds=!0;var P=g.subtract(x.getCenter()),K=x.extend(g).getSize().subtract(k);m.x+=P.x<0?-K.x:K.x,m.y+=P.y<0?-K.y:K.y,this.panTo(this.unproject(m),l),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=e({animate:!1,pan:!0},s===!0?{animate:!0}:s);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),h=l.divideBy(2).round(),m=d.divideBy(2).round(),g=h.subtract(m);return!g.x&&!g.y?this:(s.animate&&s.pan?this.panBy(g):(s.pan&&this._rawPanBy(g),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=e({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=r(this._handleGeolocationResponse,this),d=r(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,d,s):navigator.geolocation.getCurrentPosition(l,d,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var l=s.code,d=s.message||(l===1?"permission denied":l===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var l=s.coords.latitude,d=s.coords.longitude,h=new $e(l,d),m=h.toBounds(s.coords.accuracy*2),g=this._locateOptions;if(g.setView){var v=this.getBoundsZoom(m);this.setView(h,g.maxZoom?Math.min(v,g.maxZoom):v)}var x={latlng:h,bounds:m,timestamp:s.timestamp};for(var k in s.coords)typeof s.coords[k]=="number"&&(x[k]=s.coords[k]);this.fire("locationfound",x)}},addHandler:function(s,l){if(!l)return this;var d=this[s]=new l(this);return this._handlers.push(d),this.options[s]&&d.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),vt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Ct(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)vt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,l){var d="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),h=tt("div",d,l||this._mapPane);return s&&(this._panes[s]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),l=this.unproject(s.getBottomLeft()),d=this.unproject(s.getTopRight());return new dt(l,d)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,l,d){s=Ye(s),d=F(d||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),g=this.getMaxZoom(),v=s.getNorthWest(),x=s.getSouthEast(),k=this.getSize().subtract(d),P=Je(this.project(x,h),this.project(v,h)).getSize(),K=fe.any3d?this.options.zoomSnap:1,ve=k.x/P.x,He=k.y/P.y,ai=l?Math.max(ve,He):Math.min(ve,He);return h=this.getScaleZoom(ai,h),K&&(h=Math.round(h/(K/100))*(K/100),h=l?Math.ceil(h/K)*K:Math.floor(h/K)*K),Math.max(m,Math.min(g,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,l){var d=this._getTopLeftPoint(s,l);return new ce(d,d.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,l){var d=this.options.crs;return l=l===void 0?this._zoom:l,d.scale(s)/d.scale(l)},getScaleZoom:function(s,l){var d=this.options.crs;l=l===void 0?this._zoom:l;var h=d.zoom(s*d.scale(l));return isNaN(h)?1/0:h},project:function(s,l){return l=l===void 0?this._zoom:l,this.options.crs.latLngToPoint(le(s),l)},unproject:function(s,l){return l=l===void 0?this._zoom:l,this.options.crs.pointToLatLng(F(s),l)},layerPointToLatLng:function(s){var l=F(s).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(s){var l=this.project(le(s))._round();return l._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(le(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(Ye(s))},distance:function(s,l){return this.options.crs.distance(le(s),le(l))},containerPointToLayerPoint:function(s){return F(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return F(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var l=this.containerPointToLayerPoint(F(s));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(le(s)))},mouseEventToContainerPoint:function(s){return Eb(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var l=this._container=wb(s);if(l){if(l._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Oe(l,"scroll",this._onScroll,this),this._containerId=a(l)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&fe.any3d,Be(s,"leaflet-container"+(fe.touch?" leaflet-touch":"")+(fe.retina?" leaflet-retina":"")+(fe.ielt9?" leaflet-oldie":"")+(fe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=Ys(s,"position");l!=="absolute"&&l!=="relative"&&l!=="fixed"&&l!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Tt(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Be(s.markerPane,"leaflet-zoom-hide"),Be(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,l,d){Tt(this._mapPane,new O(0,0));var h=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var m=this._zoom!==l;this._moveStart(m,d)._move(s,l)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(s,l){return s&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(s,l,d,h){l===void 0&&(l=this._zoom);var m=this._zoom!==l;return this._zoom=l,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),h?d&&d.pinch&&this.fire("zoom",d):((m||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Ct(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Tt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[a(this._container)]=this;var l=s?lt:Oe;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),fe.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Ct(this._resizeRequest),this._resizeRequest=ft(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,l){for(var d=[],h,m=l==="mouseout"||l==="mouseover",g=s.target||s.srcElement,v=!1;g;){if(h=this._targets[a(g)],h&&(l==="click"||l==="preclick")&&this._draggableMoved(h)){v=!0;break}if(h&&h.listens(l,!0)&&(m&&!Nh(g,s)||(d.push(h),m))||g===this._container)break;g=g.parentNode}return!d.length&&!v&&!m&&this.listens(l,!0)&&(d=[this]),d},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var l=s.target||s.srcElement;if(!(!this._loaded||l._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(l))){var d=s.type;d==="mousedown"&&Th(l),this._fireDOMEvent(s,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,l,d){if(s.type==="click"){var h=e({},s);h.type="preclick",this._fireDOMEvent(h,h.type,d)}var m=this._findEventTargets(s,l);if(d){for(var g=[],v=0;v<d.length;v++)d[v].listens(l,!0)&&g.push(d[v]);m=g.concat(m)}if(m.length){l==="contextmenu"&&Gt(s);var x=m[0],k={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var P=x.getLatLng&&(!x._radius||x._radius<=10);k.containerPoint=P?this.latLngToContainerPoint(x.getLatLng()):this.mouseEventToContainerPoint(s),k.layerPoint=this.containerPointToLayerPoint(k.containerPoint),k.latlng=P?x.getLatLng():this.layerPointToLatLng(k.layerPoint)}for(v=0;v<m.length;v++)if(m[v].fire(l,k,!0),k.originalEvent._stopped||m[v].options.bubblingMouseEvents===!1&&Ne(this._mouseEvents,l)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,l=this._handlers.length;s<l;s++)this._handlers[s].disable()},whenReady:function(s,l){return this._loaded?s.call(l||this,{target:this}):this.on("load",s,l),this},_getMapPanePos:function(){return Pr(this._mapPane)||new O(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,l){var d=s&&l!==void 0?this._getNewPixelOrigin(s,l):this.getPixelOrigin();return d.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,l){var d=this.getSize()._divideBy(2);return this.project(s,l)._subtract(d)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,l,d){var h=this._getNewPixelOrigin(d,l);return this.project(s,l)._subtract(h)},_latLngBoundsToNewLayerBounds:function(s,l,d){var h=this._getNewPixelOrigin(d,l);return Je([this.project(s.getSouthWest(),l)._subtract(h),this.project(s.getNorthWest(),l)._subtract(h),this.project(s.getSouthEast(),l)._subtract(h),this.project(s.getNorthEast(),l)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,l,d){if(!d)return s;var h=this.project(s,l),m=this.getSize().divideBy(2),g=new ce(h.subtract(m),h.add(m)),v=this._getBoundsOffset(g,d,l);return Math.abs(v.x)<=1&&Math.abs(v.y)<=1?s:this.unproject(h.add(v),l)},_limitOffset:function(s,l){if(!l)return s;var d=this.getPixelBounds(),h=new ce(d.min.add(s),d.max.add(s));return s.add(this._getBoundsOffset(h,l))},_getBoundsOffset:function(s,l,d){var h=Je(this.project(l.getNorthEast(),d),this.project(l.getSouthWest(),d)),m=h.min.subtract(s.min),g=h.max.subtract(s.max),v=this._rebound(m.x,-g.x),x=this._rebound(m.y,-g.y);return new O(v,x)},_rebound:function(s,l){return s+l>0?Math.round(s-l)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(l))},_limitZoom:function(s){var l=this.getMinZoom(),d=this.getMaxZoom(),h=fe.any3d?this.options.zoomSnap:1;return h&&(s=Math.round(s/h)*h),Math.max(l,Math.min(d,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Et(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,l){var d=this._getCenterOffset(s)._trunc();return(l&&l.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,l),!0)},_createAnimProxy:function(){var s=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(l){var d=Dh,h=this._proxy.style[d];Or(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),h===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){vt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),l=this.getZoom();Or(this._proxy,this.project(s,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,l,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(l),m=this._getCenterOffset(s)._divideBy(1-1/h);return d.animate!==!0&&!this.getSize().contains(m)?!1:(ft(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(s,l,!0)},this),!0)},_animateZoom:function(s,l,d,h){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=l,Be(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:l,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Et(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function kM(s,l){return new Qe(s,l)}var Yi=Wt.extend({options:{position:"topright"},initialize:function(s){y(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var l=this._map;return l&&l.removeControl(this),this.options.position=s,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var l=this._container=this.onAdd(s),d=this.getPosition(),h=s._controlCorners[d];return Be(l,"leaflet-control"),d.indexOf("bottom")!==-1?h.insertBefore(l,h.firstChild):h.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(vt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),ea=function(s){return new Yi(s)};Qe.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},l="leaflet-",d=this._controlContainer=tt("div",l+"control-container",this._container);function h(m,g){var v=l+m+" "+l+g;s[m+g]=tt("div",v,d)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)vt(this._controlCorners[s]);vt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var kb=Yi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,l,d,h){return d<h?-1:h<d?1:0}},initialize:function(s,l,d){y(this,d),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in s)this._addLayer(s[h],h);for(h in l)this._addLayer(l[h],h,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return Yi.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,l){return this._addLayer(s,l),this._map?this._update():this},addOverlay:function(s,l){return this._addLayer(s,l,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var l=this._getLayer(a(s));return l&&this._layers.splice(this._layers.indexOf(l),1),this._map?this._update():this},expand:function(){Be(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Be(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):Et(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Et(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",l=this._container=tt("div",s),d=this.options.collapsed;l.setAttribute("aria-haspopup",!0),Js(l),Fh(l);var h=this._section=tt("section",s+"-list");d&&(this._map.on("click",this.collapse,this),Oe(l,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=tt("a",s+"-toggle",l);m.href="#",m.title="Layers",m.setAttribute("role","button"),Oe(m,{keydown:function(g){g.keyCode===13&&this._expandSafely()},click:function(g){Gt(g),this._expandSafely()}},this),d||this.expand(),this._baseLayersList=tt("div",s+"-base",h),this._separator=tt("div",s+"-separator",h),this._overlaysList=tt("div",s+"-overlays",h),l.appendChild(h)},_getLayer:function(s){for(var l=0;l<this._layers.length;l++)if(this._layers[l]&&a(this._layers[l].layer)===s)return this._layers[l]},_addLayer:function(s,l,d){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:l,overlay:d}),this.options.sortLayers&&this._layers.sort(r(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Pl(this._baseLayersList),Pl(this._overlaysList),this._layerControlInputs=[];var s,l,d,h,m=0;for(d=0;d<this._layers.length;d++)h=this._layers[d],this._addItem(h),l=l||h.overlay,s=s||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(s=s&&m>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=l&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var l=this._getLayer(a(s.target)),d=l.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;d&&this._map.fire(d,l)},_createRadioElement:function(s,l){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(l?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=d,h.firstChild},_addItem:function(s){var l=document.createElement("label"),d=this._map.hasLayer(s.layer),h;s.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=d):h=this._createRadioElement("leaflet-base-layers_"+a(this),d),this._layerControlInputs.push(h),h.layerId=a(s.layer),Oe(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+s.name;var g=document.createElement("span");l.appendChild(g),g.appendChild(h),g.appendChild(m);var v=s.overlay?this._overlaysList:this._baseLayersList;return v.appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,l,d,h=[],m=[];this._handlingClick=!0;for(var g=s.length-1;g>=0;g--)l=s[g],d=this._getLayer(l.layerId).layer,l.checked?h.push(d):l.checked||m.push(d);for(g=0;g<m.length;g++)this._map.hasLayer(m[g])&&this._map.removeLayer(m[g]);for(g=0;g<h.length;g++)this._map.hasLayer(h[g])||this._map.addLayer(h[g]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,l,d,h=this._map.getZoom(),m=s.length-1;m>=0;m--)l=s[m],d=this._getLayer(l.layerId).layer,l.disabled=d.options.minZoom!==void 0&&h<d.options.minZoom||d.options.maxZoom!==void 0&&h>d.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Oe(s,"click",Gt),this.expand();var l=this;setTimeout(function(){lt(s,"click",Gt),l._preventClick=!1})}}),SM=function(s,l,d){return new kb(s,l,d)},Lh=Yi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var l="leaflet-control-zoom",d=tt("div",l+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,l+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,l+"-out",d,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),d},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,l,d,h,m){var g=tt("a",d,h);return g.innerHTML=s,g.href="#",g.title=l,g.setAttribute("role","button"),g.setAttribute("aria-label",l),Js(g),Oe(g,"click",Nr),Oe(g,"click",m,this),Oe(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var s=this._map,l="leaflet-disabled";Et(this._zoomInButton,l),Et(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Be(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Be(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});Qe.mergeOptions({zoomControl:!0}),Qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Lh,this.addControl(this.zoomControl))});var TM=function(s){return new Lh(s)},Sb=Yi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var l="leaflet-control-scale",d=tt("div",l),h=this.options;return this._addScales(h,l+"-line",d),s.on(h.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),d},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,l,d){s.metric&&(this._mScale=tt("div",l,d)),s.imperial&&(this._iScale=tt("div",l,d))},_update:function(){var s=this._map,l=s.getSize().y/2,d=s.distance(s.containerPointToLatLng([0,l]),s.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(d)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var l=this._getRoundNum(s),d=l<1e3?l+" m":l/1e3+" km";this._updateScale(this._mScale,d,l/s)},_updateImperial:function(s){var l=s*3.2808399,d,h,m;l>5280?(d=l/5280,h=this._getRoundNum(d),this._updateScale(this._iScale,h+" mi",h/d)):(m=this._getRoundNum(l),this._updateScale(this._iScale,m+" ft",m/l))},_updateScale:function(s,l,d){s.style.width=Math.round(this.options.maxWidth*d)+"px",s.innerHTML=l},_getRoundNum:function(s){var l=Math.pow(10,(Math.floor(s)+"").length-1),d=s/l;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,l*d}}),AM=function(s){return new Sb(s)},RM='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Vh=Yi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(fe.inlineSvg?RM+" ":"")+"Leaflet</a>"},initialize:function(s){y(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=tt("div","leaflet-control-attribution"),Js(this._container);for(var l in s._layers)s._layers[l].getAttribution&&this.addAttribution(s._layers[l].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var l in this._attributions)this._attributions[l]&&s.push(l);var d=[];this.options.prefix&&d.push(this.options.prefix),s.length&&d.push(s.join(", ")),this._container.innerHTML=d.join(' <span aria-hidden="true">|</span> ')}}});Qe.mergeOptions({attributionControl:!0}),Qe.addInitHook(function(){this.options.attributionControl&&new Vh().addTo(this)});var OM=function(s){return new Vh(s)};Yi.Layers=kb,Yi.Zoom=Lh,Yi.Scale=Sb,Yi.Attribution=Vh,ea.layers=SM,ea.zoom=TM,ea.scale=AM,ea.attribution=OM;var gn=Wt.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gn.addTo=function(s,l){return s.addHandler(l,this),this};var PM={Events:Kt},Tb=fe.touch?"touchstart mousedown":"mousedown",lr=ar.extend({options:{clickTolerance:3},initialize:function(s,l,d,h){y(this,h),this._element=s,this._dragStartTarget=l||s,this._preventOutline=d},enable:function(){this._enabled||(Oe(this._dragStartTarget,Tb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(lr._dragging===this&&this.finishDrag(!0),lt(this._dragStartTarget,Tb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!Ch(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){lr._dragging===this&&this.finishDrag();return}if(!(lr._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(lr._dragging=this,this._preventOutline&&Th(this._element),Mh(),Qs(),!this._moving)){this.fire("down");var l=s.touches?s.touches[0]:s,d=xb(this._element);this._startPoint=new O(l.clientX,l.clientY),this._startPos=Pr(this._element),this._parentScale=Ah(d);var h=s.type==="mousedown";Oe(document,h?"mousemove":"touchmove",this._onMove,this),Oe(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var l=s.touches&&s.touches.length===1?s.touches[0]:s,d=new O(l.clientX,l.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)<this.options.clickTolerance||(d.x/=this._parentScale.x,d.y/=this._parentScale.y,Gt(s),this._moved||(this.fire("dragstart"),this._moved=!0,Be(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Be(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(d),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),Tt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){Et(document.body,"leaflet-dragging"),this._lastTarget&&(Et(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),lt(document,"mousemove touchmove",this._onMove,this),lt(document,"mouseup touchend touchcancel",this._onUp,this),kh(),Ks();var l=this._moved&&this._moving;this._moving=!1,lr._dragging=!1,l&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function Ab(s,l,d){var h,m=[1,4,2,8],g,v,x,k,P,K,ve,He;for(g=0,K=s.length;g<K;g++)s[g]._code=Lr(s[g],l);for(x=0;x<4;x++){for(ve=m[x],h=[],g=0,K=s.length,v=K-1;g<K;v=g++)k=s[g],P=s[v],k._code&ve?P._code&ve||(He=jl(P,k,ve,l,d),He._code=Lr(He,l),h.push(He)):(P._code&ve&&(He=jl(P,k,ve,l,d),He._code=Lr(He,l),h.push(He)),h.push(k));s=h}return s}function Rb(s,l){var d,h,m,g,v,x,k,P,K;if(!s||s.length===0)throw new Error("latlngs not passed");Vi(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var ve=le([0,0]),He=Ye(s),ai=He.getNorthWest().distanceTo(He.getSouthWest())*He.getNorthEast().distanceTo(He.getNorthWest());ai<1700&&(ve=jh(s));var Ht=s.length,ji=[];for(d=0;d<Ht;d++){var mi=le(s[d]);ji.push(l.project(le([mi.lat-ve.lat,mi.lng-ve.lng])))}for(x=k=P=0,d=0,h=Ht-1;d<Ht;h=d++)m=ji[d],g=ji[h],v=m.y*g.x-g.y*m.x,k+=(m.x+g.x)*v,P+=(m.y+g.y)*v,x+=v*3;x===0?K=ji[0]:K=[k/x,P/x];var Lo=l.unproject(F(K));return le([Lo.lat+ve.lat,Lo.lng+ve.lng])}function jh(s){for(var l=0,d=0,h=0,m=0;m<s.length;m++){var g=le(s[m]);l+=g.lat,d+=g.lng,h++}return le([l/h,d/h])}var FM={__proto__:null,clipPolygon:Ab,polygonCenter:Rb,centroid:jh};function Ob(s,l){if(!l||!s.length)return s.slice();var d=l*l;return s=VM(s,d),s=LM(s,d),s}function Pb(s,l,d){return Math.sqrt(ta(s,l,d,!0))}function NM(s,l,d){return ta(s,l,d)}function LM(s,l){var d=s.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(d);m[0]=m[d-1]=1,Bh(s,m,l,0,d-1);var g,v=[];for(g=0;g<d;g++)m[g]&&v.push(s[g]);return v}function Bh(s,l,d,h,m){var g=0,v,x,k;for(x=h+1;x<=m-1;x++)k=ta(s[x],s[h],s[m],!0),k>g&&(v=x,g=k);g>d&&(l[v]=1,Bh(s,l,d,h,v),Bh(s,l,d,v,m))}function VM(s,l){for(var d=[s[0]],h=1,m=0,g=s.length;h<g;h++)jM(s[h],s[m])>l&&(d.push(s[h]),m=h);return m<g-1&&d.push(s[g-1]),d}var Fb;function Nb(s,l,d,h,m){var g=h?Fb:Lr(s,d),v=Lr(l,d),x,k,P;for(Fb=v;;){if(!(g|v))return[s,l];if(g&v)return!1;x=g||v,k=jl(s,l,x,d,m),P=Lr(k,d),x===g?(s=k,g=P):(l=k,v=P)}}function jl(s,l,d,h,m){var g=l.x-s.x,v=l.y-s.y,x=h.min,k=h.max,P,K;return d&8?(P=s.x+g*(k.y-s.y)/v,K=k.y):d&4?(P=s.x+g*(x.y-s.y)/v,K=x.y):d&2?(P=k.x,K=s.y+v*(k.x-s.x)/g):d&1&&(P=x.x,K=s.y+v*(x.x-s.x)/g),new O(P,K,m)}function Lr(s,l){var d=0;return s.x<l.min.x?d|=1:s.x>l.max.x&&(d|=2),s.y<l.min.y?d|=4:s.y>l.max.y&&(d|=8),d}function jM(s,l){var d=l.x-s.x,h=l.y-s.y;return d*d+h*h}function ta(s,l,d,h){var m=l.x,g=l.y,v=d.x-m,x=d.y-g,k=v*v+x*x,P;return k>0&&(P=((s.x-m)*v+(s.y-g)*x)/k,P>1?(m=d.x,g=d.y):P>0&&(m+=v*P,g+=x*P)),v=s.x-m,x=s.y-g,h?v*v+x*x:new O(m,g)}function Vi(s){return!z(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function Lb(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Vi(s)}function Vb(s,l){var d,h,m,g,v,x,k,P;if(!s||s.length===0)throw new Error("latlngs not passed");Vi(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var K=le([0,0]),ve=Ye(s),He=ve.getNorthWest().distanceTo(ve.getSouthWest())*ve.getNorthEast().distanceTo(ve.getNorthWest());He<1700&&(K=jh(s));var ai=s.length,Ht=[];for(d=0;d<ai;d++){var ji=le(s[d]);Ht.push(l.project(le([ji.lat-K.lat,ji.lng-K.lng])))}for(d=0,h=0;d<ai-1;d++)h+=Ht[d].distanceTo(Ht[d+1])/2;if(h===0)P=Ht[0];else for(d=0,g=0;d<ai-1;d++)if(v=Ht[d],x=Ht[d+1],m=v.distanceTo(x),g+=m,g>h){k=(g-h)/m,P=[x.x-k*(x.x-v.x),x.y-k*(x.y-v.y)];break}var mi=l.unproject(F(P));return le([mi.lat+K.lat,mi.lng+K.lng])}var BM={__proto__:null,simplify:Ob,pointToSegmentDistance:Pb,closestPointOnSegment:NM,clipSegment:Nb,_getEdgeIntersection:jl,_getBitCode:Lr,_sqClosestPointOnSegment:ta,isFlat:Vi,_flat:Lb,polylineCenter:Vb},zh={project:function(s){return new O(s.lng,s.lat)},unproject:function(s){return new $e(s.y,s.x)},bounds:new ce([-180,-90],[180,90])},Hh={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ce([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var l=Math.PI/180,d=this.R,h=s.lat*l,m=this.R_MINOR/d,g=Math.sqrt(1-m*m),v=g*Math.sin(h),x=Math.tan(Math.PI/4-h/2)/Math.pow((1-v)/(1+v),g/2);return h=-d*Math.log(Math.max(x,1e-10)),new O(s.lng*l*d,h)},unproject:function(s){for(var l=180/Math.PI,d=this.R,h=this.R_MINOR/d,m=Math.sqrt(1-h*h),g=Math.exp(-s.y/d),v=Math.PI/2-2*Math.atan(g),x=0,k=.1,P;x<15&&Math.abs(k)>1e-7;x++)P=m*Math.sin(v),P=Math.pow((1-P)/(1+P),m/2),k=Math.PI/2-2*Math.atan(g*P)-v,v+=k;return new $e(v*l,s.x*l/d)}},zM={__proto__:null,LonLat:zh,Mercator:Hh,SphericalMercator:Zi},HM=e({},hn,{code:"EPSG:3395",projection:Hh,transformation:function(){var s=.5/(Math.PI*Hh.R);return fn(s,.5,-s,.5)}()}),jb=e({},hn,{code:"EPSG:4326",projection:zh,transformation:fn(1/180,1,-1/180,.5)}),UM=e({},Ni,{projection:zh,transformation:fn(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,l){var d=l.lng-s.lng,h=l.lat-s.lat;return Math.sqrt(d*d+h*h)},infinite:!0});Ni.Earth=hn,Ni.EPSG3395=HM,Ni.EPSG3857=Rr,Ni.EPSG900913=YI,Ni.EPSG4326=jb,Ni.Simple=UM;var Qi=ar.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[a(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[a(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var l=s.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var d=this.getEvents();l.on(d,this),this.once("remove",function(){l.off(d,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});Qe.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var l=a(s);return this._layers[l]?this:(this._layers[l]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var l=a(s);return this._layers[l]?(this._loaded&&s.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return a(s)in this._layers},eachLayer:function(s,l){for(var d in this._layers)s.call(l,this._layers[d]);return this},_addLayers:function(s){s=s?z(s)?s:[s]:[];for(var l=0,d=s.length;l<d;l++)this.addLayer(s[l])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[a(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var l=a(s);this._zoomBoundLayers[l]&&(delete this._zoomBoundLayers[l],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,l=-1/0,d=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;s=m.minZoom===void 0?s:Math.min(s,m.minZoom),l=m.maxZoom===void 0?l:Math.max(l,m.maxZoom)}this._layersMaxZoom=l===-1/0?void 0:l,this._layersMinZoom=s===1/0?void 0:s,d!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ro=Qi.extend({initialize:function(s,l){y(this,l),this._layers={};var d,h;if(s)for(d=0,h=s.length;d<h;d++)this.addLayer(s[d])},addLayer:function(s){var l=this.getLayerId(s);return this._layers[l]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var l=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[l]&&this._map.removeLayer(this._layers[l]),delete this._layers[l],this},hasLayer:function(s){var l=typeof s=="number"?s:this.getLayerId(s);return l in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var l=Array.prototype.slice.call(arguments,1),d,h;for(d in this._layers)h=this._layers[d],h[s]&&h[s].apply(h,l);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,l){for(var d in this._layers)s.call(l,this._layers[d]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return a(s)}}),$M=function(s,l){return new Ro(s,l)},Bn=Ro.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),Ro.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),Ro.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new dt;for(var l in this._layers){var d=this._layers[l];s.extend(d.getBounds?d.getBounds():d.getLatLng())}return s}}),WM=function(s,l){return new Bn(s,l)},Oo=Wt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){y(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,l){var d=this._getIconUrl(s);if(!d){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(d,l&&l.tagName==="IMG"?l:null);return this._setIconStyles(h,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(s,l){var d=this.options,h=d[l+"Size"];typeof h=="number"&&(h=[h,h]);var m=F(h),g=F(l==="shadow"&&d.shadowAnchor||d.iconAnchor||m&&m.divideBy(2,!0));s.className="leaflet-marker-"+l+" "+(d.className||""),g&&(s.style.marginLeft=-g.x+"px",s.style.marginTop=-g.y+"px"),m&&(s.style.width=m.x+"px",s.style.height=m.y+"px")},_createImg:function(s,l){return l=l||document.createElement("img"),l.src=s,l},_getIconUrl:function(s){return fe.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function GM(s){return new Oo(s)}var ia=Oo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return typeof ia.imagePath!="string"&&(ia.imagePath=this._detectIconPath()),(this.options.imagePath||ia.imagePath)+Oo.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var l=function(d,h,m){var g=h.exec(d);return g&&g[m]};return s=l(s,/^url\((['"])?(.+)\1\)$/,2),s&&l(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=tt("div","leaflet-default-icon-path",document.body),l=Ys(s,"background-image")||Ys(s,"backgroundImage");if(document.body.removeChild(s),l=this._stripUrl(l),l)return l;var d=document.querySelector('link[href$="leaflet.css"]');return d?d.href.substring(0,d.href.length-11-1):""}}),Bb=gn.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new lr(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Be(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Et(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var l=this._marker,d=l._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,g=Pr(l._icon),v=d.getPixelBounds(),x=d.getPixelOrigin(),k=Je(v.min._subtract(x).add(m),v.max._subtract(x).subtract(m));if(!k.contains(g)){var P=F((Math.max(k.max.x,g.x)-k.max.x)/(v.max.x-k.max.x)-(Math.min(k.min.x,g.x)-k.min.x)/(v.min.x-k.min.x),(Math.max(k.max.y,g.y)-k.max.y)/(v.max.y-k.max.y)-(Math.min(k.min.y,g.y)-k.min.y)/(v.min.y-k.min.y)).multiplyBy(h);d.panBy(P,{animate:!1}),this._draggable._newPos._add(P),this._draggable._startPos._add(P),Tt(l._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=ft(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(Ct(this._panRequest),this._panRequest=ft(this._adjustPan.bind(this,s)))},_onDrag:function(s){var l=this._marker,d=l._shadow,h=Pr(l._icon),m=l._map.layerPointToLatLng(h);d&&Tt(d,h),l._latlng=m,s.latlng=m,s.oldLatLng=this._oldLatLng,l.fire("move",s).fire("drag",s)},_onDragEnd:function(s){Ct(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),Bl=Qi.extend({options:{icon:new ia,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,l){y(this,l),this._latlng=le(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var l=this._latlng;return this._latlng=le(s),this.update(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,l="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=s.icon.createIcon(this._icon),h=!1;d!==this._icon&&(this._icon&&this._removeIcon(),h=!0,s.title&&(d.title=s.title),d.tagName==="IMG"&&(d.alt=s.alt||"")),Be(d,l),s.keyboard&&(d.tabIndex="0",d.setAttribute("role","button")),this._icon=d,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Oe(d,"focus",this._panOnFocus,this);var m=s.icon.createShadow(this._shadow),g=!1;m!==this._shadow&&(this._removeShadow(),g=!0),m&&(Be(m,l),m.alt=""),this._shadow=m,s.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&g&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&<(this._icon,"focus",this._panOnFocus,this),vt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&vt(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&Tt(this._icon,s),this._shadow&&Tt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(l)},_initInteraction:function(){if(this.options.interactive&&(Be(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Bb)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Bb(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&Li(this._icon,s),this._shadow&&Li(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var l=this.options.icon.options,d=l.iconSize?F(l.iconSize):F(0,0),h=l.iconAnchor?F(l.iconAnchor):F(0,0);s.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:d.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function qM(s,l){return new Bl(s,l)}var cr=Qi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return y(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),zl=cr.extend({options:{fill:!0,radius:10},initialize:function(s,l){y(this,l),this._latlng=le(s),this._radius=this.options.radius},setLatLng:function(s){var l=this._latlng;return this._latlng=le(s),this.redraw(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var l=s&&s.radius||this._radius;return cr.prototype.setStyle.call(this,s),this.setRadius(l),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,l=this._radiusY||s,d=this._clickTolerance(),h=[s+d,l+d];this._pxBounds=new ce(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ZM(s,l){return new zl(s,l)}var Uh=zl.extend({initialize:function(s,l,d){if(typeof l=="number"&&(l=e({},d,{radius:l})),y(this,l),this._latlng=le(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new dt(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:cr.prototype.setStyle,_project:function(){var s=this._latlng.lng,l=this._latlng.lat,d=this._map,h=d.options.crs;if(h.distance===hn.distance){var m=Math.PI/180,g=this._mRadius/hn.R/m,v=d.project([l+g,s]),x=d.project([l-g,s]),k=v.add(x).divideBy(2),P=d.unproject(k).lat,K=Math.acos((Math.cos(g*m)-Math.sin(l*m)*Math.sin(P*m))/(Math.cos(l*m)*Math.cos(P*m)))/m;(isNaN(K)||K===0)&&(K=g/Math.cos(Math.PI/180*l)),this._point=k.subtract(d.getPixelOrigin()),this._radius=isNaN(K)?0:k.x-d.project([P,s-K]).x,this._radiusY=k.y-v.y}else{var ve=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(ve).x}this._updateBounds()}});function YM(s,l,d){return new Uh(s,l,d)}var zn=cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,l){y(this,l),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var l=1/0,d=null,h=ta,m,g,v=0,x=this._parts.length;v<x;v++)for(var k=this._parts[v],P=1,K=k.length;P<K;P++){m=k[P-1],g=k[P];var ve=h(s,m,g,!0);ve<l&&(l=ve,d=h(s,m,g))}return d&&(d.distance=Math.sqrt(l)),d},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Vb(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,l){return l=l||this._defaultShape(),s=le(s),l.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new dt,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return Vi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var l=[],d=Vi(s),h=0,m=s.length;h<m;h++)d?(l[h]=le(s[h]),this._bounds.extend(l[h])):l[h]=this._convertLatLngs(s[h]);return l},_project:function(){var s=new ce;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),l=new O(s,s);this._rawPxBounds&&(this._pxBounds=new ce([this._rawPxBounds.min.subtract(l),this._rawPxBounds.max.add(l)]))},_projectLatlngs:function(s,l,d){var h=s[0]instanceof $e,m=s.length,g,v;if(h){for(v=[],g=0;g<m;g++)v[g]=this._map.latLngToLayerPoint(s[g]),d.extend(v[g]);l.push(v)}else for(g=0;g<m;g++)this._projectLatlngs(s[g],l,d)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var l=this._parts,d,h,m,g,v,x,k;for(d=0,m=0,g=this._rings.length;d<g;d++)for(k=this._rings[d],h=0,v=k.length;h<v-1;h++)x=Nb(k[h],k[h+1],s,h,!0),x&&(l[m]=l[m]||[],l[m].push(x[0]),(x[1]!==k[h+1]||h===v-2)&&(l[m].push(x[1]),m++))}},_simplifyPoints:function(){for(var s=this._parts,l=this.options.smoothFactor,d=0,h=s.length;d<h;d++)s[d]=Ob(s[d],l)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,l){var d,h,m,g,v,x,k=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(d=0,g=this._parts.length;d<g;d++)for(x=this._parts[d],h=0,v=x.length,m=v-1;h<v;m=h++)if(!(!l&&h===0)&&Pb(s,x[m],x[h])<=k)return!0;return!1}});function QM(s,l){return new zn(s,l)}zn._flat=Lb;var Po=zn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Rb(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var l=zn.prototype._convertLatLngs.call(this,s),d=l.length;return d>=2&&l[0]instanceof $e&&l[0].equals(l[d-1])&&l.pop(),l},_setLatLngs:function(s){zn.prototype._setLatLngs.call(this,s),Vi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Vi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,l=this.options.weight,d=new O(l,l);if(s=new ce(s.min.subtract(d),s.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,g;h<m;h++)g=Ab(this._rings[h],s,!0),g.length&&this._parts.push(g)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var l=!1,d,h,m,g,v,x,k,P;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(g=0,k=this._parts.length;g<k;g++)for(d=this._parts[g],v=0,P=d.length,x=P-1;v<P;x=v++)h=d[v],m=d[x],h.y>s.y!=m.y>s.y&&s.x<(m.x-h.x)*(s.y-h.y)/(m.y-h.y)+h.x&&(l=!l);return l||zn.prototype._containsPoint.call(this,s,!0)}});function KM(s,l){return new Po(s,l)}var Hn=Bn.extend({initialize:function(s,l){y(this,l),this._layers={},s&&this.addData(s)},addData:function(s){var l=z(s)?s:s.features,d,h,m;if(l){for(d=0,h=l.length;d<h;d++)m=l[d],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var g=this.options;if(g.filter&&!g.filter(s))return this;var v=Hl(s,g);return v?(v.feature=Wl(s),v.defaultOptions=v.options,this.resetStyle(v),g.onEachFeature&&g.onEachFeature(s,v),this.addLayer(v)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=e({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(l){this._setLayerStyle(l,s)},this)},_setLayerStyle:function(s,l){s.setStyle&&(typeof l=="function"&&(l=l(s.feature)),s.setStyle(l))}});function Hl(s,l){var d=s.type==="Feature"?s.geometry:s,h=d?d.coordinates:null,m=[],g=l&&l.pointToLayer,v=l&&l.coordsToLatLng||$h,x,k,P,K;if(!h&&!d)return null;switch(d.type){case"Point":return x=v(h),zb(g,s,x,l);case"MultiPoint":for(P=0,K=h.length;P<K;P++)x=v(h[P]),m.push(zb(g,s,x,l));return new Bn(m);case"LineString":case"MultiLineString":return k=Ul(h,d.type==="LineString"?0:1,v),new zn(k,l);case"Polygon":case"MultiPolygon":return k=Ul(h,d.type==="Polygon"?1:2,v),new Po(k,l);case"GeometryCollection":for(P=0,K=d.geometries.length;P<K;P++){var ve=Hl({geometry:d.geometries[P],type:"Feature",properties:s.properties},l);ve&&m.push(ve)}return new Bn(m);case"FeatureCollection":for(P=0,K=d.features.length;P<K;P++){var He=Hl(d.features[P],l);He&&m.push(He)}return new Bn(m);default:throw new Error("Invalid GeoJSON object.")}}function zb(s,l,d,h){return s?s(l,d):new Bl(d,h&&h.markersInheritOptions&&h)}function $h(s){return new $e(s[1],s[0],s[2])}function Ul(s,l,d){for(var h=[],m=0,g=s.length,v;m<g;m++)v=l?Ul(s[m],l-1,d):(d||$h)(s[m]),h.push(v);return h}function Wh(s,l){return s=le(s),s.alt!==void 0?[p(s.lng,l),p(s.lat,l),p(s.alt,l)]:[p(s.lng,l),p(s.lat,l)]}function $l(s,l,d,h){for(var m=[],g=0,v=s.length;g<v;g++)m.push(l?$l(s[g],Vi(s[g])?0:l-1,d,h):Wh(s[g],h));return!l&&d&&m.length>0&&m.push(m[0].slice()),m}function Fo(s,l){return s.feature?e({},s.feature,{geometry:l}):Wl(l)}function Wl(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Gh={toGeoJSON:function(s){return Fo(this,{type:"Point",coordinates:Wh(this.getLatLng(),s)})}};Bl.include(Gh),Uh.include(Gh),zl.include(Gh),zn.include({toGeoJSON:function(s){var l=!Vi(this._latlngs),d=$l(this._latlngs,l?1:0,!1,s);return Fo(this,{type:(l?"Multi":"")+"LineString",coordinates:d})}}),Po.include({toGeoJSON:function(s){var l=!Vi(this._latlngs),d=l&&!Vi(this._latlngs[0]),h=$l(this._latlngs,d?2:l?1:0,!0,s);return l||(h=[h]),Fo(this,{type:(d?"Multi":"")+"Polygon",coordinates:h})}}),Ro.include({toMultiPoint:function(s){var l=[];return this.eachLayer(function(d){l.push(d.toGeoJSON(s).geometry.coordinates)}),Fo(this,{type:"MultiPoint",coordinates:l})},toGeoJSON:function(s){var l=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(l==="MultiPoint")return this.toMultiPoint(s);var d=l==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var g=m.toGeoJSON(s);if(d)h.push(g.geometry);else{var v=Wl(g);v.type==="FeatureCollection"?h.push.apply(h,v.features):h.push(v)}}}),d?Fo(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Hb(s,l){return new Hn(s,l)}var XM=Hb,Gl=Qi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,l,d){this._url=s,this._bounds=Ye(l),y(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Be(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){vt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&To(this._image),this},bringToBack:function(){return this._map&&Ao(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=Ye(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",l=this._image=s?this._url:tt("img");if(Be(l,"leaflet-image-layer"),this._zoomAnimated&&Be(l,"leaflet-zoom-animated"),this.options.className&&Be(l,this.options.className),l.onselectstart=f,l.onmousemove=f,l.onload=r(this.fire,this,"load"),l.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=l.src;return}l.src=this._url,l.alt=this.options.alt},_animateZoom:function(s){var l=this._map.getZoomScale(s.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;Or(this._image,d,l)},_reset:function(){var s=this._image,l=new ce(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=l.getSize();Tt(s,l.min),s.style.width=d.x+"px",s.style.height=d.y+"px"},_updateOpacity:function(){Li(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),JM=function(s,l,d){return new Gl(s,l,d)},Ub=Gl.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",l=this._image=s?this._url:tt("video");if(Be(l,"leaflet-image-layer"),this._zoomAnimated&&Be(l,"leaflet-zoom-animated"),this.options.className&&Be(l,this.options.className),l.onselectstart=f,l.onmousemove=f,l.onloadeddata=r(this.fire,this,"load"),s){for(var d=l.getElementsByTagName("source"),h=[],m=0;m<d.length;m++)h.push(d[m].src);this._url=d.length>0?h:[l.src];return}z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var g=0;g<this._url.length;g++){var v=tt("source");v.src=this._url[g],l.appendChild(v)}}});function ek(s,l,d){return new Ub(s,l,d)}var $b=Gl.extend({_initImage:function(){var s=this._image=this._url;Be(s,"leaflet-image-layer"),this._zoomAnimated&&Be(s,"leaflet-zoom-animated"),this.options.className&&Be(s,this.options.className),s.onselectstart=f,s.onmousemove=f}});function tk(s,l,d){return new $b(s,l,d)}var _n=Qi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,l){s&&(s instanceof $e||z(s))?(this._latlng=le(s),y(this,l)):(y(this,s),this._source=l),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&Li(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&Li(this._container,1),this.bringToFront(),this.options.interactive&&(Be(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(Li(this._container,0),this._removeTimeout=setTimeout(r(vt,void 0,this._container),200)):vt(this._container),this.options.interactive&&(Et(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=le(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&To(this._container),this},bringToBack:function(){return this._map&&Ao(this._container),this},_prepareOpen:function(s){var l=this._source;if(!l._map)return!1;if(l instanceof Bn){l=null;var d=this._source._layers;for(var h in d)if(d[h]._map){l=d[h];break}if(!l)return!1;this._source=l}if(!s)if(l.getCenter)s=l.getCenter();else if(l.getLatLng)s=l.getLatLng();else if(l.getBounds)s=l.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,l=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof l=="string")s.innerHTML=l;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(l)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),l=F(this.options.offset),d=this._getAnchor();this._zoomAnimated?Tt(this._container,s.add(d)):l=l.add(s).add(d);var h=this._containerBottom=-l.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+l.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});Qe.include({_initOverlay:function(s,l,d,h){var m=l;return m instanceof s||(m=new s(h).setContent(l)),d&&m.setLatLng(d),m}}),Qi.include({_initOverlay:function(s,l,d,h){var m=d;return m instanceof s?(y(m,h),m._source=this):(m=l&&!h?l:new s(h,this),m.setContent(d)),m}});var ql=_n.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,_n.prototype.openOn.call(this,s)},onAdd:function(s){_n.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof cr||this._source.on("preclick",Fr))},onRemove:function(s){_n.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof cr||this._source.off("preclick",Fr))},getEvents:function(){var s=_n.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",l=this._container=tt("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),d=this._wrapper=tt("div",s+"-content-wrapper",l);if(this._contentNode=tt("div",s+"-content",d),Js(l),Fh(this._contentNode),Oe(l,"contextmenu",Fr),this._tipContainer=tt("div",s+"-tip-container",l),this._tip=tt("div",s+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=tt("a",s+"-close-button",l);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">×</span>',Oe(h,"click",function(m){Gt(m),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,l=s.style;l.width="",l.whiteSpace="nowrap";var d=s.offsetWidth;d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth),l.width=d+1+"px",l.whiteSpace="",l.height="";var h=s.offsetHeight,m=this.options.maxHeight,g="leaflet-popup-scrolled";m&&h>m?(l.height=m+"px",Be(s,g)):Et(s,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),d=this._getAnchor();Tt(this._container,l.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,l=parseInt(Ys(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+l,h=this._containerWidth,m=new O(this._containerLeft,-d-this._containerBottom);m._add(Pr(this._container));var g=s.layerPointToContainerPoint(m),v=F(this.options.autoPanPadding),x=F(this.options.autoPanPaddingTopLeft||v),k=F(this.options.autoPanPaddingBottomRight||v),P=s.getSize(),K=0,ve=0;g.x+h+k.x>P.x&&(K=g.x+h-P.x+k.x),g.x-K-x.x<0&&(K=g.x-x.x),g.y+d+k.y>P.y&&(ve=g.y+d-P.y+k.y),g.y-ve-x.y<0&&(ve=g.y-x.y),(K||ve)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([K,ve]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ik=function(s,l){return new ql(s,l)};Qe.mergeOptions({closePopupOnClick:!0}),Qe.include({openPopup:function(s,l,d){return this._initOverlay(ql,s,l,d).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Qi.include({bindPopup:function(s,l){return this._popup=this._initOverlay(ql,this._popup,s,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Bn||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){Nr(s);var l=s.layer||s.target;if(this._popup._source===l&&!(l instanceof cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=l,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Zl=_n.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){_n.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){_n.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=_n.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",l=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",l),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var l,d,h=this._map,m=this._container,g=h.latLngToContainerPoint(h.getCenter()),v=h.layerPointToContainerPoint(s),x=this.options.direction,k=m.offsetWidth,P=m.offsetHeight,K=F(this.options.offset),ve=this._getAnchor();x==="top"?(l=k/2,d=P):x==="bottom"?(l=k/2,d=0):x==="center"?(l=k/2,d=P/2):x==="right"?(l=0,d=P/2):x==="left"?(l=k,d=P/2):v.x<g.x?(x="right",l=0,d=P/2):(x="left",l=k+(K.x+ve.x)*2,d=P/2),s=s.subtract(F(l,d,!0)).add(K).add(ve),Et(m,"leaflet-tooltip-right"),Et(m,"leaflet-tooltip-left"),Et(m,"leaflet-tooltip-top"),Et(m,"leaflet-tooltip-bottom"),Be(m,"leaflet-tooltip-"+x),Tt(m,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&Li(this._container,s)},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(l)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),nk=function(s,l){return new Zl(s,l)};Qe.include({openTooltip:function(s,l,d){return this._initOverlay(Zl,s,l,d).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),Qi.include({bindTooltip:function(s,l){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Zl,this._tooltip,s,l),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var l=s?"off":"on",d={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?d.add=this._openTooltip:(d.mouseover=this._openTooltip,d.mouseout=this.closeTooltip,d.click=this._openTooltip,this._map?this._addFocusListeners():d.add=this._addFocusListeners),this._tooltip.options.sticky&&(d.mousemove=this._moveTooltip),this[l](d),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof Bn||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var l=typeof s.getElement=="function"&&s.getElement();l&&(Oe(l,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Oe(l,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var l=typeof s.getElement=="function"&&s.getElement();l&&l.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var l=this;this._map.once("moveend",function(){l._openOnceFlag=!1,l._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var l=s.latlng,d,h;this._tooltip.options.sticky&&s.originalEvent&&(d=this._map.mouseEventToContainerPoint(s.originalEvent),h=this._map.containerPointToLayerPoint(d),l=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(l)}});var Wb=Oo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var l=s&&s.tagName==="DIV"?s:document.createElement("div"),d=this.options;if(d.html instanceof Element?(Pl(l),l.appendChild(d.html)):l.innerHTML=d.html!==!1?d.html:"",d.bgPos){var h=F(d.bgPos);l.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(l,"icon"),l},createShadow:function(){return null}});function rk(s){return new Wb(s)}Oo.Default=ia;var na=Qi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:fe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){y(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),vt(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(To(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ao(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof O?s:new O(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var l=this.getPane().children,d=-s(-1/0,1/0),h=0,m=l.length,g;h<m;h++)g=l[h].style.zIndex,l[h]!==this._container&&g&&(d=s(d,+g));isFinite(d)&&(this.options.zIndex=d+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!fe.ielt9){Li(this._container,this.options.opacity);var s=+new Date,l=!1,d=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var g=Math.min(1,(s-m.loaded)/200);Li(m.el,g),g<1?l=!0:(m.active?d=!0:this._onOpaqueTile(m),m.active=!0)}}d&&!this._noPrune&&this._pruneTiles(),l&&(Ct(this._fadeFrame),this._fadeFrame=ft(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=tt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,l=this.options.maxZoom;if(s!==void 0){for(var d in this._levels)d=Number(d),this._levels[d].el.children.length||d===s?(this._levels[d].el.style.zIndex=l-Math.abs(s-d),this._onUpdateLevel(d)):(vt(this._levels[d].el),this._removeTilesAtZoom(d),this._onRemoveLevel(d),delete this._levels[d]);var h=this._levels[s],m=this._map;return h||(h=this._levels[s]={},h.el=tt("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=l,h.origin=m.project(m.unproject(m.getPixelOrigin()),s).round(),h.zoom=s,this._setZoomTransform(h,m.getCenter(),m.getZoom()),f(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var s,l,d=this._map.getZoom();if(d>this.options.maxZoom||d<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)l=this._tiles[s],l.retain=l.current;for(s in this._tiles)if(l=this._tiles[s],l.current&&!l.active){var h=l.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var l in this._tiles)this._tiles[l].coords.z===s&&this._removeTile(l)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)vt(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,l,d,h){var m=Math.floor(s/2),g=Math.floor(l/2),v=d-1,x=new O(+m,+g);x.z=+v;var k=this._tileCoordsToKey(x),P=this._tiles[k];return P&&P.active?(P.retain=!0,!0):(P&&P.loaded&&(P.retain=!0),v>h?this._retainParent(m,g,v,h):!1)},_retainChildren:function(s,l,d,h){for(var m=2*s;m<2*s+2;m++)for(var g=2*l;g<2*l+2;g++){var v=new O(m,g);v.z=d+1;var x=this._tileCoordsToKey(v),k=this._tiles[x];if(k&&k.active){k.retain=!0;continue}else k&&k.loaded&&(k.retain=!0);d+1<h&&this._retainChildren(m,g,d+1,h)}},_resetView:function(s){var l=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),l,l)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var l=this.options;return l.minNativeZoom!==void 0&&s<l.minNativeZoom?l.minNativeZoom:l.maxNativeZoom!==void 0&&l.maxNativeZoom<s?l.maxNativeZoom:s},_setView:function(s,l,d,h){var m=Math.round(l);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var g=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||g)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(s),d||this._pruneTiles(),this._noPrune=!!d),this._setZoomTransforms(s,l)},_setZoomTransforms:function(s,l){for(var d in this._levels)this._setZoomTransform(this._levels[d],s,l)},_setZoomTransform:function(s,l,d){var h=this._map.getZoomScale(d,s.zoom),m=s.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(l,d)).round();fe.any3d?Or(s.el,m,h):Tt(s.el,m)},_resetGrid:function(){var s=this._map,l=s.options.crs,d=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=l.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,l.wrapLng[0]],h).x/d.x),Math.ceil(s.project([0,l.wrapLng[1]],h).x/d.y)],this._wrapY=l.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([l.wrapLat[0],0],h).y/d.x),Math.ceil(s.project([l.wrapLat[1],0],h).y/d.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var l=this._map,d=l._animatingZoom?Math.max(l._animateToZoom,l.getZoom()):l.getZoom(),h=l.getZoomScale(d,this._tileZoom),m=l.project(s,this._tileZoom).floor(),g=l.getSize().divideBy(h*2);return new ce(m.subtract(g),m.add(g))},_update:function(s){var l=this._map;if(l){var d=this._clampZoom(l.getZoom());if(s===void 0&&(s=l.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(s),m=this._pxBoundsToTileRange(h),g=m.getCenter(),v=[],x=this.options.keepBuffer,k=new ce(m.getBottomLeft().subtract([x,-x]),m.getTopRight().add([x,-x]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var P in this._tiles){var K=this._tiles[P].coords;(K.z!==this._tileZoom||!k.contains(new O(K.x,K.y)))&&(this._tiles[P].current=!1)}if(Math.abs(d-this._tileZoom)>1){this._setView(s,d);return}for(var ve=m.min.y;ve<=m.max.y;ve++)for(var He=m.min.x;He<=m.max.x;He++){var ai=new O(He,ve);if(ai.z=this._tileZoom,!!this._isValidTile(ai)){var Ht=this._tiles[this._tileCoordsToKey(ai)];Ht?Ht.current=!0:v.push(ai)}}if(v.sort(function(mi,Lo){return mi.distanceTo(g)-Lo.distanceTo(g)}),v.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ji=document.createDocumentFragment();for(He=0;He<v.length;He++)this._addTile(v[He],ji);this._level.el.appendChild(ji)}}}},_isValidTile:function(s){var l=this._map.options.crs;if(!l.infinite){var d=this._globalTileRange;if(!l.wrapLng&&(s.x<d.min.x||s.x>d.max.x)||!l.wrapLat&&(s.y<d.min.y||s.y>d.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(s);return Ye(this.options.bounds).overlaps(h)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var l=this._map,d=this.getTileSize(),h=s.scaleBy(d),m=h.add(d),g=l.unproject(h,s.z),v=l.unproject(m,s.z);return[g,v]},_tileCoordsToBounds:function(s){var l=this._tileCoordsToNwSe(s),d=new dt(l[0],l[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var l=s.split(":"),d=new O(+l[0],+l[1]);return d.z=+l[2],d},_removeTile:function(s){var l=this._tiles[s];l&&(vt(l.el),delete this._tiles[s],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Be(s,"leaflet-tile");var l=this.getTileSize();s.style.width=l.x+"px",s.style.height=l.y+"px",s.onselectstart=f,s.onmousemove=f,fe.ielt9&&this.options.opacity<1&&Li(s,this.options.opacity)},_addTile:function(s,l){var d=this._getTilePos(s),h=this._tileCoordsToKey(s),m=this.createTile(this._wrapCoords(s),r(this._tileReady,this,s));this._initTile(m),this.createTile.length<2&&ft(r(this._tileReady,this,s,null,m)),Tt(m,d),this._tiles[h]={el:m,coords:s,current:!0},l.appendChild(m),this.fire("tileloadstart",{tile:m,coords:s})},_tileReady:function(s,l,d){l&&this.fire("tileerror",{error:l,tile:d,coords:s});var h=this._tileCoordsToKey(s);d=this._tiles[h],d&&(d.loaded=+new Date,this._map._fadeAnimated?(Li(d.el,0),Ct(this._fadeFrame),this._fadeFrame=ft(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),l||(Be(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),fe.ielt9||!this._map._fadeAnimated?ft(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var l=new O(this._wrapX?u(s.x,this._wrapX):s.x,this._wrapY?u(s.y,this._wrapY):s.y);return l.z=s.z,l},_pxBoundsToTileRange:function(s){var l=this.getTileSize();return new ce(s.min.unscaleBy(l).floor(),s.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function ok(s){return new na(s)}var No=na.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,l){this._url=s,l=y(this,l),l.detectRetina&&fe.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),typeof l.subdomains=="string"&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,l){return this._url===s&&l===void 0&&(l=!0),this._url=s,l||this.redraw(),this},createTile:function(s,l){var d=document.createElement("img");return Oe(d,"load",r(this._tileOnLoad,this,l,d)),Oe(d,"error",r(this._tileOnError,this,l,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(s),d},getTileUrl:function(s){var l={r:fe.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-s.y;this.options.tms&&(l.y=d),l["-y"]=d}return A(this._url,e(l,this.options))},_tileOnLoad:function(s,l){fe.ielt9?setTimeout(r(s,this,null,l),0):s(null,l)},_tileOnError:function(s,l,d){var h=this.options.errorTileUrl;h&&l.getAttribute("src")!==h&&(l.src=h),s(d,l)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,l=this.options.maxZoom,d=this.options.zoomReverse,h=this.options.zoomOffset;return d&&(s=l-s),s+h},_getSubdomain:function(s){var l=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var s,l;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(l=this._tiles[s].el,l.onload=f,l.onerror=f,!l.complete)){l.src=be;var d=this._tiles[s].coords;vt(l),delete this._tiles[s],this.fire("tileabort",{tile:l,coords:d})}},_removeTile:function(s){var l=this._tiles[s];if(l)return l.el.setAttribute("src",be),na.prototype._removeTile.call(this,s)},_tileReady:function(s,l,d){if(!(!this._map||d&&d.getAttribute("src")===be))return na.prototype._tileReady.call(this,s,l,d)}});function Gb(s,l){return new No(s,l)}var qb=No.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,l){this._url=s;var d=e({},this.defaultWmsParams);for(var h in l)h in this.options||(d[h]=l[h]);l=y(this,l);var m=l.detectRetina&&fe.retina?2:1,g=this.getTileSize();d.width=g.x*m,d.height=g.y*m,this.wmsParams=d},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var l=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[l]=this._crs.code,No.prototype.onAdd.call(this,s)},getTileUrl:function(s){var l=this._tileCoordsToNwSe(s),d=this._crs,h=Je(d.project(l[0]),d.project(l[1])),m=h.min,g=h.max,v=(this._wmsVersion>=1.3&&this._crs===jb?[m.y,m.x,g.y,g.x]:[m.x,m.y,g.x,g.y]).join(","),x=No.prototype.getTileUrl.call(this,s);return x+C(this.wmsParams,x,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+v},setParams:function(s,l){return e(this.wmsParams,s),l||this.redraw(),this}});function sk(s,l){return new qb(s,l)}No.WMS=qb,Gb.wms=sk;var Un=Qi.extend({options:{padding:.1},initialize:function(s){y(this,s),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Be(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,l){var d=this._map.getZoomScale(l,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,l),g=h.multiplyBy(-d).add(m).subtract(this._map._getNewPixelOrigin(s,l));fe.any3d?Or(this._container,g,d):Tt(this._container,g)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,l=this._map.getSize(),d=this._map.containerPointToLayerPoint(l.multiplyBy(-s)).round();this._bounds=new ce(d,d.add(l.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Zb=Un.extend({options:{tolerance:0},getEvents:function(){var s=Un.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Un.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Oe(s,"mousemove",this._onMouseMove,this),Oe(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Oe(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){Ct(this._redrawRequest),delete this._ctx,vt(this._container),lt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var l in this._layers)s=this._layers[l],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Un.prototype._update.call(this);var s=this._bounds,l=this._container,d=s.getSize(),h=fe.retina?2:1;Tt(l,s.min),l.width=h*d.x,l.height=h*d.y,l.style.width=d.x+"px",l.style.height=d.y+"px",fe.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Un.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[a(s)]=s;var l=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var l=s._order,d=l.next,h=l.prev;d?d.prev=h:this._drawLast=h,h?h.next=d:this._drawFirst=d,delete s._order,delete this._layers[a(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var l=s.options.dashArray.split(/[, ]+/),d=[],h,m;for(m=0;m<l.length;m++){if(h=Number(l[m]),isNaN(h))return;d.push(h)}s.options._dashArray=d}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||ft(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var l=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ce,this._redrawBounds.extend(s._pxBounds.min.subtract([l,l])),this._redrawBounds.extend(s._pxBounds.max.add([l,l]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var l=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,l.x,l.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,l=this._redrawBounds;if(this._ctx.save(),l){var d=l.getSize();this._ctx.beginPath(),this._ctx.rect(l.min.x,l.min.y,d.x,d.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)s=h.layer,(!l||s._pxBounds&&s._pxBounds.intersects(l))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,l){if(this._drawing){var d,h,m,g,v=s._parts,x=v.length,k=this._ctx;if(x){for(k.beginPath(),d=0;d<x;d++){for(h=0,m=v[d].length;h<m;h++)g=v[d][h],k[h?"lineTo":"moveTo"](g.x,g.y);l&&k.closePath()}this._fillStroke(k,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var l=s._point,d=this._ctx,h=Math.max(Math.round(s._radius),1),m=(Math.max(Math.round(s._radiusY),1)||h)/h;m!==1&&(d.save(),d.scale(1,m)),d.beginPath(),d.arc(l.x,l.y/m,h,0,Math.PI*2,!1),m!==1&&d.restore(),this._fillStroke(d,s)}},_fillStroke:function(s,l){var d=l.options;d.fill&&(s.globalAlpha=d.fillOpacity,s.fillStyle=d.fillColor||d.color,s.fill(d.fillRule||"evenodd")),d.stroke&&d.weight!==0&&(s.setLineDash&&s.setLineDash(l.options&&l.options._dashArray||[]),s.globalAlpha=d.opacity,s.lineWidth=d.weight,s.strokeStyle=d.color,s.lineCap=d.lineCap,s.lineJoin=d.lineJoin,s.stroke())},_onClick:function(s){for(var l=this._map.mouseEventToLayerPoint(s),d,h,m=this._drawFirst;m;m=m.next)d=m.layer,d.options.interactive&&d._containsPoint(l)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(d))&&(h=d);this._fireEvent(h?[h]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var l=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,l)}},_handleMouseOut:function(s){var l=this._hoveredLayer;l&&(Et(this._container,"leaflet-interactive"),this._fireEvent([l],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,l){if(!this._mouseHoverThrottled){for(var d,h,m=this._drawFirst;m;m=m.next)d=m.layer,d.options.interactive&&d._containsPoint(l)&&(h=d);h!==this._hoveredLayer&&(this._handleMouseOut(s),h&&(Be(this._container,"leaflet-interactive"),this._fireEvent([h],s,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,l,d){this._map._fireDOMEvent(l,d||l.type,s)},_bringToFront:function(s){var l=s._order;if(l){var d=l.next,h=l.prev;if(d)d.prev=h;else return;h?h.next=d:d&&(this._drawFirst=d),l.prev=this._drawLast,this._drawLast.next=l,l.next=null,this._drawLast=l,this._requestRedraw(s)}},_bringToBack:function(s){var l=s._order;if(l){var d=l.next,h=l.prev;if(h)h.next=d;else return;d?d.prev=h:h&&(this._drawLast=h),l.prev=null,l.next=this._drawFirst,this._drawFirst.prev=l,this._drawFirst=l,this._requestRedraw(s)}}});function Yb(s){return fe.canvas?new Zb(s):null}var ra=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ak={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Un.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var l=s._container=ra("shape");Be(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",s._path=ra("path"),l.appendChild(s._path),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){var l=s._container;this._container.appendChild(l),s.options.interactive&&s.addInteractiveTarget(l)},_removePath:function(s){var l=s._container;vt(l),s.removeInteractiveTarget(l),delete this._layers[a(s)]},_updateStyle:function(s){var l=s._stroke,d=s._fill,h=s.options,m=s._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(l||(l=s._stroke=ra("stroke")),m.appendChild(l),l.weight=h.weight+"px",l.color=h.color,l.opacity=h.opacity,h.dashArray?l.dashStyle=z(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):l.dashStyle="",l.endcap=h.lineCap.replace("butt","flat"),l.joinstyle=h.lineJoin):l&&(m.removeChild(l),s._stroke=null),h.fill?(d||(d=s._fill=ra("fill")),m.appendChild(d),d.color=h.fillColor||h.color,d.opacity=h.fillOpacity):d&&(m.removeChild(d),s._fill=null)},_updateCircle:function(s){var l=s._point.round(),d=Math.round(s._radius),h=Math.round(s._radiusY||d);this._setPath(s,s._empty()?"M0 0":"AL "+l.x+","+l.y+" "+d+","+h+" 0,"+65535*360)},_setPath:function(s,l){s._path.v=l},_bringToFront:function(s){To(s._container)},_bringToBack:function(s){Ao(s._container)}},Yl=fe.vml?ra:J_,oa=Un.extend({_initContainer:function(){this._container=Yl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){vt(this._container),lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Un.prototype._update.call(this);var s=this._bounds,l=s.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,d.setAttribute("width",l.x),d.setAttribute("height",l.y)),Tt(d,s.min),d.setAttribute("viewBox",[s.min.x,s.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(s){var l=s._path=Yl("path");s.options.className&&Be(l,s.options.className),s.options.interactive&&Be(l,"leaflet-interactive"),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){vt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[a(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var l=s._path,d=s.options;l&&(d.stroke?(l.setAttribute("stroke",d.color),l.setAttribute("stroke-opacity",d.opacity),l.setAttribute("stroke-width",d.weight),l.setAttribute("stroke-linecap",d.lineCap),l.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?l.setAttribute("stroke-dasharray",d.dashArray):l.removeAttribute("stroke-dasharray"),d.dashOffset?l.setAttribute("stroke-dashoffset",d.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),d.fill?(l.setAttribute("fill",d.fillColor||d.color),l.setAttribute("fill-opacity",d.fillOpacity),l.setAttribute("fill-rule",d.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(s,l){this._setPath(s,eb(s._parts,l))},_updateCircle:function(s){var l=s._point,d=Math.max(Math.round(s._radius),1),h=Math.max(Math.round(s._radiusY),1)||d,m="a"+d+","+h+" 0 1,0 ",g=s._empty()?"M0 0":"M"+(l.x-d)+","+l.y+m+d*2+",0 "+m+-d*2+",0 ";this._setPath(s,g)},_setPath:function(s,l){s._path.setAttribute("d",l)},_bringToFront:function(s){To(s._path)},_bringToBack:function(s){Ao(s._path)}});fe.vml&&oa.include(ak);function Qb(s){return fe.svg||fe.vml?new oa(s):null}Qe.include({getRenderer:function(s){var l=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var l=this._paneRenderers[s];return l===void 0&&(l=this._createRenderer({pane:s}),this._paneRenderers[s]=l),l},_createRenderer:function(s){return this.options.preferCanvas&&Yb(s)||Qb(s)}});var Kb=Po.extend({initialize:function(s,l){Po.prototype.initialize.call(this,this._boundsToLatLngs(s),l)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=Ye(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function lk(s,l){return new Kb(s,l)}oa.create=Yl,oa.pointsToPath=eb,Hn.geometryToLayer=Hl,Hn.coordsToLatLng=$h,Hn.coordsToLatLngs=Ul,Hn.latLngToCoords=Wh,Hn.latLngsToCoords=$l,Hn.getFeature=Fo,Hn.asFeature=Wl,Qe.mergeOptions({boxZoom:!0});var Xb=gn.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){lt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){vt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Qs(),Mh(),this._startPoint=this._map.mouseEventToContainerPoint(s),Oe(document,{contextmenu:Nr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),Be(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var l=new ce(this._point,this._startPoint),d=l.getSize();Tt(this._box,l.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(vt(this._box),Et(this._container,"leaflet-crosshair")),Ks(),kh(),lt(document,{contextmenu:Nr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var l=new dt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Qe.addInitHook("addHandler","boxZoom",Xb),Qe.mergeOptions({doubleClickZoom:!0});var Jb=gn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var l=this._map,d=l.getZoom(),h=l.options.zoomDelta,m=s.originalEvent.shiftKey?d-h:d+h;l.options.doubleClickZoom==="center"?l.setZoom(m):l.setZoomAround(s.containerPoint,m)}});Qe.addInitHook("addHandler","doubleClickZoom",Jb),Qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ev=gn.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new lr(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Be(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Et(this._map._container,"leaflet-grab"),Et(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=Ye(this._map.options.maxBounds);this._offsetLimit=Je(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var l=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(l),this._prunePositions(l)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,l){return s-(s-l)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;s.x<l.min.x&&(s.x=this._viscousLimit(s.x,l.min.x)),s.y<l.min.y&&(s.y=this._viscousLimit(s.y,l.min.y)),s.x>l.max.x&&(s.x=this._viscousLimit(s.x,l.max.x)),s.y>l.max.y&&(s.y=this._viscousLimit(s.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,l=Math.round(s/2),d=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-l+d)%s+l-d,g=(h+l+d)%s-l-d,v=Math.abs(m+d)<Math.abs(g+d)?m:g;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=v},_onDragEnd:function(s){var l=this._map,d=l.options,h=!d.inertia||s.noInertia||this._times.length<2;if(l.fire("dragend",s),h)l.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),g=(this._lastTime-this._times[0])/1e3,v=d.easeLinearity,x=m.multiplyBy(v/g),k=x.distanceTo([0,0]),P=Math.min(d.inertiaMaxSpeed,k),K=x.multiplyBy(P/k),ve=P/(d.inertiaDeceleration*v),He=K.multiplyBy(-ve/2).round();!He.x&&!He.y?l.fire("moveend"):(He=l._limitOffset(He,l.options.maxBounds),ft(function(){l.panBy(He,{duration:ve,easeLinearity:v,noMoveStart:!0,animate:!0})}))}}});Qe.addInitHook("addHandler","dragging",ev),Qe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var tv=gn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Oe(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),lt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,l=document.documentElement,d=s.scrollTop||l.scrollTop,h=s.scrollLeft||l.scrollLeft;this._map._container.focus(),window.scrollTo(h,d)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var l=this._panKeys={},d=this.keyCodes,h,m;for(h=0,m=d.left.length;h<m;h++)l[d.left[h]]=[-1*s,0];for(h=0,m=d.right.length;h<m;h++)l[d.right[h]]=[s,0];for(h=0,m=d.down.length;h<m;h++)l[d.down[h]]=[0,s];for(h=0,m=d.up.length;h<m;h++)l[d.up[h]]=[0,-1*s]},_setZoomDelta:function(s){var l=this._zoomKeys={},d=this.keyCodes,h,m;for(h=0,m=d.zoomIn.length;h<m;h++)l[d.zoomIn[h]]=s;for(h=0,m=d.zoomOut.length;h<m;h++)l[d.zoomOut[h]]=-s},_addHooks:function(){Oe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){lt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var l=s.keyCode,d=this._map,h;if(l in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(h=this._panKeys[l],s.shiftKey&&(h=F(h).multiplyBy(3)),d.options.maxBounds&&(h=d._limitOffset(F(h),d.options.maxBounds)),d.options.worldCopyJump){var m=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(h)));d.panTo(m)}else d.panBy(h)}else if(l in this._zoomKeys)d.setZoom(d.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[l]);else if(l===27&&d._popup&&d._popup.options.closeOnEscapeKey)d.closePopup();else return;Nr(s)}}});Qe.addInitHook("addHandler","keyboard",tv),Qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var iv=gn.extend({addHooks:function(){Oe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){lt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var l=Ib(s),d=this._map.options.wheelDebounceTime;this._delta+=l,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var h=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),h),Nr(s)},_performZoom:function(){var s=this._map,l=s.getZoom(),d=this._map.options.zoomSnap||0;s._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,g=d?Math.ceil(m/d)*d:m,v=s._limitZoom(l+(this._delta>0?g:-g))-l;this._delta=0,this._startTime=null,v&&(s.options.scrollWheelZoom==="center"?s.setZoom(l+v):s.setZoomAround(this._lastMousePos,l+v))}});Qe.addInitHook("addHandler","scrollWheelZoom",iv);var ck=600;Qe.mergeOptions({tapHold:fe.touchNative&&fe.safari&&fe.mobile,tapTolerance:15});var nv=gn.extend({addHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){lt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var l=s.touches[0];this._startPos=this._newPos=new O(l.clientX,l.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(Oe(document,"touchend",Gt),Oe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),ck),Oe(document,"touchend touchcancel contextmenu",this._cancel,this),Oe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){lt(document,"touchend",Gt),lt(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),lt(document,"touchend touchcancel contextmenu",this._cancel,this),lt(document,"touchmove",this._onMove,this)},_onMove:function(s){var l=s.touches[0];this._newPos=new O(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,l){var d=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});d._simulated=!0,l.target.dispatchEvent(d)}});Qe.addInitHook("addHandler","tapHold",nv),Qe.mergeOptions({touchZoom:fe.touch,bounceAtZoomLimits:!0});var rv=gn.extend({addHooks:function(){Be(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Et(this._map._container,"leaflet-touch-zoom"),lt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var l=this._map;if(!(!s.touches||s.touches.length!==2||l._animatingZoom||this._zooming)){var d=l.mouseEventToContainerPoint(s.touches[0]),h=l.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),l.options.touchZoom!=="center"&&(this._pinchStartLatLng=l.containerPointToLatLng(d.add(h)._divideBy(2))),this._startDist=d.distanceTo(h),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),Oe(document,"touchmove",this._onTouchMove,this),Oe(document,"touchend touchcancel",this._onTouchEnd,this),Gt(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var l=this._map,d=l.mouseEventToContainerPoint(s.touches[0]),h=l.mouseEventToContainerPoint(s.touches[1]),m=d.distanceTo(h)/this._startDist;if(this._zoom=l.getScaleZoom(m,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zoom<l.getMinZoom()&&m<1||this._zoom>l.getMaxZoom()&&m>1)&&(this._zoom=l._limitZoom(this._zoom)),l.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var g=d._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&g.x===0&&g.y===0)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),Ct(this._animRequest);var v=r(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ft(v,this,!0),Gt(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Ct(this._animRequest),lt(document,"touchmove",this._onTouchMove,this),lt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Qe.addInitHook("addHandler","touchZoom",rv),Qe.BoxZoom=Xb,Qe.DoubleClickZoom=Jb,Qe.Drag=ev,Qe.Keyboard=tv,Qe.ScrollWheelZoom=iv,Qe.TapHold=nv,Qe.TouchZoom=rv,t.Bounds=ce,t.Browser=fe,t.CRS=Ni,t.Canvas=Zb,t.Circle=Uh,t.CircleMarker=zl,t.Class=Wt,t.Control=Yi,t.DivIcon=Wb,t.DivOverlay=_n,t.DomEvent=MM,t.DomUtil=EM,t.Draggable=lr,t.Evented=ar,t.FeatureGroup=Bn,t.GeoJSON=Hn,t.GridLayer=na,t.Handler=gn,t.Icon=Oo,t.ImageOverlay=Gl,t.LatLng=$e,t.LatLngBounds=dt,t.Layer=Qi,t.LayerGroup=Ro,t.LineUtil=BM,t.Map=Qe,t.Marker=Bl,t.Mixin=PM,t.Path=cr,t.Point=O,t.PolyUtil=FM,t.Polygon=Po,t.Polyline=zn,t.Popup=ql,t.PosAnimation=Mb,t.Projection=zM,t.Rectangle=Kb,t.Renderer=Un,t.SVG=oa,t.SVGOverlay=$b,t.TileLayer=No,t.Tooltip=Zl,t.Transformation=Xt,t.Util=Al,t.VideoOverlay=Ub,t.bind=r,t.bounds=Je,t.canvas=Yb,t.circle=YM,t.circleMarker=ZM,t.control=ea,t.divIcon=rk,t.extend=e,t.featureGroup=WM,t.geoJSON=Hb,t.geoJson=XM,t.gridLayer=ok,t.icon=GM,t.imageOverlay=JM,t.latLng=le,t.latLngBounds=Ye,t.layerGroup=$M,t.map=kM,t.marker=qM,t.point=F,t.polygon=KM,t.polyline=QM,t.popup=ik,t.rectangle=lk,t.setOptions=y,t.stamp=a,t.svg=Qb,t.svgOverlay=tk,t.tileLayer=Gb,t.tooltip=nk,t.transformation=fn,t.version=i,t.videoOverlay=ek;var dk=window.L;t.noConflict=function(){return window.L=dk,this},window.L=t})});function Mk(t,i){return Object.is(t,i)}var Ut=null,sa=!1,Xl=1,dr=Symbol("SIGNAL");function We(t){let i=Ut;return Ut=t,i}function kk(){return sa}var Jl={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function uv(t){if(sa)throw new Error("");if(Ut===null)return;Ut.consumerOnSignalRead(t);let i=Ut.nextProducerIndex++;if(Vo(Ut),i<Ut.producerNode.length&&Ut.producerNode[i]!==t&&aa(Ut)){let e=Ut.producerNode[i];tc(e,Ut.producerIndexOfThis[i])}Ut.producerNode[i]!==t&&(Ut.producerNode[i]=t,Ut.producerIndexOfThis[i]=aa(Ut)?pv(t,Ut,i):0),Ut.producerLastReadVersion[i]=t.version}function Sk(){Xl++}function Tk(t){if(!(aa(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Xl)){if(!t.producerMustRecompute(t)&&!ec(t)){t.dirty=!1,t.lastCleanEpoch=Xl;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Xl}}function hv(t){if(t.liveConsumerNode===void 0)return;let i=sa;sa=!0;try{for(let e of t.liveConsumerNode)e.dirty||mv(e)}finally{sa=i}}function fv(){return Ut?.consumerAllowSignalWrites!==!1}function mv(t){t.dirty=!0,hv(t),t.consumerMarkedDirty?.(t)}function Xh(t){return t&&(t.nextProducerIndex=0),We(t)}function Jh(t,i){if(We(i),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(aa(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)tc(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ec(t){Vo(t);for(let i=0;i<t.producerNode.length;i++){let e=t.producerNode[i],n=t.producerLastReadVersion[i];if(n!==e.version||(Tk(e),n!==e.version))return!0}return!1}function ef(t){if(Vo(t),aa(t))for(let i=0;i<t.producerNode.length;i++)tc(t.producerNode[i],t.producerIndexOfThis[i]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function pv(t,i,e){if(gv(t),Vo(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=pv(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(i)-1}function tc(t,i){if(gv(t),Vo(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)tc(t.producerNode[n],t.producerIndexOfThis[n]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[i]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[i]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,i<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[i],r=t.liveConsumerNode[i];Vo(r),r.producerIndexOfThis[n]=i}}function aa(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Vo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function gv(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ak(){throw new Error}var _v=Ak;function bv(){_v()}function vv(t){_v=t}var Rk=null;function yv(t){let i=Object.create(xv);i.value=t;let e=()=>(uv(i),i.value);return e[dr]=i,e}function tf(t,i){fv()||bv(),t.equal(t.value,i)||(t.value=i,Ok(t))}function wv(t,i){fv()||bv(),tf(t,i(t.value))}var xv=Nt(ye({},Jl),{equal:Mk,value:void 0});function Ok(t){t.version++,Sk(),hv(t),Rk?.()}function Dv(t,i,e){let n=Object.create(Pk);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;let r=u=>{n.cleanupFn=u};function o(u){return u.fn===null&&u.schedule===null}function a(u){o(u)||(ef(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=Kh)}let c=()=>{if(n.fn===null)return;if(kk())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!ec(n))return;n.hasRun=!0;let u=Xh(n);try{n.cleanupFn(),n.cleanupFn=Kh,n.fn(r)}finally{Jh(n,u)}};return n.ref={notify:()=>mv(n),run:c,cleanup:()=>n.cleanupFn(),destroy:()=>a(n),[dr]:n},n.ref}var Kh=()=>{},Pk=Nt(ye({},Jl),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Kh});function _e(t){return typeof t=="function"}function ic(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var nc=ic(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
|
|
2
|
+
${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=e});function Vr(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ce=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_e(n))try{n()}catch(o){i=o instanceof nc?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{Cv(o)}catch(a){i=i??[],a instanceof nc?i=[...i,...a.errors]:i.push(a)}}if(i)throw new nc(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Cv(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Vr(e,i)}remove(i){let{_finalizers:e}=this;e&&Vr(e,i),i instanceof t&&i._removeParent(this)}};Ce.EMPTY=(()=>{let t=new Ce;return t.closed=!0,t})();var nf=Ce.EMPTY;function rc(t){return t instanceof Ce||t&&"closed"in t&&_e(t.remove)&&_e(t.add)&&_e(t.unsubscribe)}function Cv(t){_e(t)?t():t.unsubscribe()}var Ki={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jo={setTimeout(t,i,...e){let{delegate:n}=jo;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=jo;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function oc(t){jo.setTimeout(()=>{let{onUnhandledError:i}=Ki;if(i)i(t);else throw t})}function jr(){}var Ev=rf("C",void 0,void 0);function Iv(t){return rf("E",void 0,t)}function Mv(t){return rf("N",t,void 0)}function rf(t,i,e){return{kind:t,value:i,error:e}}var Br=null;function Bo(t){if(Ki.useDeprecatedSynchronousErrorHandling){let i=!Br;if(i&&(Br={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Br;if(Br=null,e)throw n}}else t()}function kv(t){Ki.useDeprecatedSynchronousErrorHandling&&Br&&(Br.errorThrown=!0,Br.error=t)}var zr=class extends Ce{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,rc(i)&&i.add(this)):this.destination=Lk}static create(i,e,n){return new $n(i,e,n)}next(i){this.isStopped?sf(Mv(i),this):this._next(i)}error(i){this.isStopped?sf(Iv(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?sf(Ev,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Fk=Function.prototype.bind;function of(t,i){return Fk.call(t,i)}var af=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){sc(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){sc(n)}else sc(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){sc(e)}}},$n=class extends zr{constructor(i,e,n){super();let r;if(_e(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Ki.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&of(i.next,o),error:i.error&&of(i.error,o),complete:i.complete&&of(i.complete,o)}):r=i}this.destination=new af(r)}};function sc(t){Ki.useDeprecatedSynchronousErrorHandling?kv(t):oc(t)}function Nk(t){throw t}function sf(t,i){let{onStoppedNotification:e}=Ki;e&&jo.setTimeout(()=>e(t,i))}var Lk={closed:!0,next:jr,error:Nk,complete:jr};var zo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xi(t){return t}function Sv(t){return t.length===0?Xi:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}var ke=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){let o=jk(e)?e:new $n(e,n,r);return Bo(()=>{let{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=Tv(n),new n((r,o)=>{let a=new $n({next:c=>{try{e(c)}catch(u){o(u),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[zo](){return this}pipe(...e){return Sv(e)(this)}toPromise(e){return e=Tv(e),new e((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function Tv(t){var i;return(i=t??Ki.Promise)!==null&&i!==void 0?i:Promise}function Vk(t){return t&&_e(t.next)&&_e(t.error)&&_e(t.complete)}function jk(t){return t&&t instanceof zr||Vk(t)&&rc(t)}function lf(t){return _e(t?.lift)}function Ue(t){return i=>{if(lf(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(t,i,e,n,r){return new cf(t,i,e,n,r)}var cf=class extends zr{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(u){i.error(u)}}:super._next,this._error=r?function(c){try{r(c)}catch(u){i.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function Av(){return Ue((t,i)=>{let e=null;t._refCount++;let n=ze(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var la=class extends ke{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,lf(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ce;let e=this.getSubject();i.add(this.source.subscribe(ze(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ce.EMPTY)}return i}refCount(){return Av()(this)}};var Rv=ic(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Y=(()=>{class t extends ke{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new ac(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Rv}next(e){Bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Bo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:r,observers:o}=this;return n||r?nf:(this.currentObservers=null,o.push(e),new Ce(()=>{this.currentObservers=null,Vr(o,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){let e=new ke;return e.source=this,e}}return t.create=(i,e)=>new ac(i,e),t})(),ac=class extends Y{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:nf}};var li=class extends Y{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var ca={now(){return(ca.delegate||Date).now()},delegate:void 0};var Hr=class extends Y{constructor(i=1/0,e=1/0,n=ca){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!i.closed;a+=n?1:2)i.next(o[a]);return this._checkFinalizedStatuses(i),e}_trimBuffer(){let{_bufferSize:i,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*i;if(i<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let a=e.now(),c=0;for(let u=1;u<n.length&&n[u]<=a;u+=2)c=u;c&&n.splice(0,c+1)}}};var lc=class extends Ce{constructor(i,e){super()}schedule(i,e=0){return this}};var da={setInterval(t,i,...e){let{delegate:n}=da;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){let{delegate:i}=da;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};var cc=class extends lc{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return da.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return e;e!=null&&da.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(i,e);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let n=!1,r;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Vr(n,this),i!=null&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}};var Ho=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};Ho.now=ca.now;var dc=class extends Ho{constructor(i,e=Ho.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Ur=new dc(cc),Ov=Ur;var Wn=new ke(t=>t.complete());function uc(t){return t&&_e(t.schedule)}function df(t){return t[t.length-1]}function hc(t){return _e(df(t))?t.pop():void 0}function bn(t){return uc(df(t))?t.pop():void 0}function Pv(t,i){return typeof df(t)=="number"?t.pop():i}function Nv(t,i,e,n){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function c(p){try{f(n.next(p))}catch(_){a(_)}}function u(p){try{f(n.throw(p))}catch(_){a(_)}}function f(p){p.done?o(p.value):r(p.value).then(c,u)}f((n=n.apply(t,i||[])).next())})}function Fv(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function $r(t){return this instanceof $r?(this.v=t,this):new $r(t)}function Lv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(y){return function(C){return Promise.resolve(C).then(y,_)}}function c(y,C){n[y]&&(r[y]=function(I){return new Promise(function(A,z){o.push([y,I,A,z])>1||u(y,I)})},C&&(r[y]=C(r[y])))}function u(y,C){try{f(n[y](C))}catch(I){w(o[0][3],I)}}function f(y){y.value instanceof $r?Promise.resolve(y.value.v).then(p,_):w(o[0][2],y)}function p(y){u("next",y)}function _(y){u("throw",y)}function w(y,C){y(C),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Vv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof Fv=="function"?Fv(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(c,u){a=t[o](a),r(c,u,a.done,a.value)})}}function r(o,a,c,u){Promise.resolve(u).then(function(f){o({value:f,done:c})},a)}}var Uo=t=>t&&typeof t.length=="number"&&typeof t!="function";function fc(t){return _e(t?.then)}function mc(t){return _e(t[zo])}function pc(t){return Symbol.asyncIterator&&_e(t?.[Symbol.asyncIterator])}function gc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Bk(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var _c=Bk();function bc(t){return _e(t?.[_c])}function vc(t){return Lv(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield $r(e.read());if(r)return yield $r(void 0);yield yield $r(n)}}finally{e.releaseLock()}})}function yc(t){return _e(t?.getReader)}function it(t){if(t instanceof ke)return t;if(t!=null){if(mc(t))return zk(t);if(Uo(t))return Hk(t);if(fc(t))return Uk(t);if(pc(t))return jv(t);if(bc(t))return $k(t);if(yc(t))return Wk(t)}throw gc(t)}function zk(t){return new ke(i=>{let e=t[zo]();if(_e(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Hk(t){return new ke(i=>{for(let e=0;e<t.length&&!i.closed;e++)i.next(t[e]);i.complete()})}function Uk(t){return new ke(i=>{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,oc)})}function $k(t){return new ke(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function jv(t){return new ke(i=>{Gk(t,i).catch(e=>i.error(e))})}function Wk(t){return jv(vc(t))}function Gk(t,i){var e,n,r,o;return Nv(this,void 0,void 0,function*(){try{for(e=Vv(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})}function pi(t,i,e,n=0,r=!1){let o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function wc(t,i=0){return Ue((e,n)=>{e.subscribe(ze(n,r=>pi(n,t,()=>n.next(r),i),()=>pi(n,t,()=>n.complete(),i),r=>pi(n,t,()=>n.error(r),i)))})}function xc(t,i=0){return Ue((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function Bv(t,i){return it(t).pipe(xc(i),wc(i))}function zv(t,i){return it(t).pipe(xc(i),wc(i))}function Hv(t,i){return new ke(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function Uv(t,i){return new ke(e=>{let n;return pi(e,i,()=>{n=t[_c](),pi(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>_e(n?.return)&&n.return()})}function Dc(t,i){if(!t)throw new Error("Iterable cannot be null");return new ke(e=>{pi(e,i,()=>{let n=t[Symbol.asyncIterator]();pi(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $v(t,i){return Dc(vc(t),i)}function Wv(t,i){if(t!=null){if(mc(t))return Bv(t,i);if(Uo(t))return Hv(t,i);if(fc(t))return zv(t,i);if(pc(t))return Dc(t,i);if(bc(t))return Uv(t,i);if(yc(t))return $v(t,i)}throw gc(t)}function Jt(t,i){return i?Wv(t,i):it(t)}function mt(...t){let i=bn(t);return Jt(t,i)}function uf(t,i){let e=_e(t)?t:()=>t,n=r=>r.error(e());return new ke(i?r=>i.schedule(n,0,r):n)}function ua(t){return!!t&&(t instanceof ke||_e(t.lift)&&_e(t.subscribe))}function Gv(t){return t instanceof Date&&!isNaN(t)}function Ke(t,i){return Ue((e,n)=>{let r=0;e.subscribe(ze(n,o=>{n.next(t.call(i,o,r++))}))})}var{isArray:qk}=Array;function Zk(t,i){return qk(i)?t(...i):t(i)}function $o(t){return Ke(i=>Zk(t,i))}var{isArray:Yk}=Array,{getPrototypeOf:Qk,prototype:Kk,keys:Xk}=Object;function Cc(t){if(t.length===1){let i=t[0];if(Yk(i))return{args:i,keys:null};if(Jk(i)){let e=Xk(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function Jk(t){return t&&typeof t=="object"&&Qk(t)===Kk}function Ec(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function ha(...t){let i=bn(t),e=hc(t),{args:n,keys:r}=Cc(t);if(n.length===0)return Jt([],i);let o=new ke(eS(n,i,r?a=>Ec(r,a):Xi));return e?o.pipe($o(e)):o}function eS(t,i,e=Xi){return n=>{qv(i,()=>{let{length:r}=t,o=new Array(r),a=r,c=r;for(let u=0;u<r;u++)qv(i,()=>{let f=Jt(t[u],i),p=!1;f.subscribe(ze(n,_=>{o[u]=_,p||(p=!0,c--),c||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}function qv(t,i,e){t?pi(e,t,i):i()}function Zv(t,i,e,n,r,o,a,c){let u=[],f=0,p=0,_=!1,w=()=>{_&&!u.length&&!f&&i.complete()},y=I=>f<n?C(I):u.push(I),C=I=>{o&&i.next(I),f++;let A=!1;it(e(I,p++)).subscribe(ze(i,z=>{r?.(z),o?y(z):i.next(z)},()=>{A=!0},void 0,()=>{if(A)try{for(f--;u.length&&f<n;){let z=u.shift();a?pi(i,a,()=>C(z)):C(z)}w()}catch(z){i.error(z)}}))};return t.subscribe(ze(i,y,()=>{_=!0,w()})),()=>{c?.()}}function vn(t,i,e=1/0){return _e(i)?vn((n,r)=>Ke((o,a)=>i(n,o,r,a))(it(t(n,r))),e):(typeof i=="number"&&(e=i),Ue((n,r)=>Zv(n,r,t,e)))}function Ic(t=1/0){return vn(Xi,t)}function Yv(){return Ic(1)}function ur(...t){return Yv()(Jt(t,bn(t)))}function hf(t){return new ke(i=>{it(t()).subscribe(i)})}function fa(...t){let i=hc(t),{args:e,keys:n}=Cc(t),r=new ke(o=>{let{length:a}=e;if(!a){o.complete();return}let c=new Array(a),u=a,f=a;for(let p=0;p<a;p++){let _=!1;it(e[p]).subscribe(ze(o,w=>{_||(_=!0,f--),c[p]=w},()=>u--,void 0,()=>{(!u||!_)&&(f||o.next(n?Ec(n,c):c),o.complete())}))}});return i?r.pipe($o(i)):r}var tS=["addListener","removeListener"],iS=["addEventListener","removeEventListener"],nS=["on","off"];function Wo(t,i,e,n){if(_e(e)&&(n=e,e=void 0),n)return Wo(t,i,e).pipe($o(n));let[r,o]=sS(t)?iS.map(a=>c=>t[a](i,c,e)):rS(t)?tS.map(Qv(t,i)):oS(t)?nS.map(Qv(t,i)):[];if(!r&&Uo(t))return vn(a=>Wo(a,i,e))(it(t));if(!r)throw new TypeError("Invalid event target");return new ke(a=>{let c=(...u)=>a.next(1<u.length?u:u[0]);return r(c),()=>o(c)})}function Qv(t,i){return e=>n=>t[e](i,n)}function rS(t){return _e(t.addListener)&&_e(t.removeListener)}function oS(t){return _e(t.on)&&_e(t.off)}function sS(t){return _e(t.addEventListener)&&_e(t.removeEventListener)}function Mc(t=0,i,e=Ov){let n=-1;return i!=null&&(uc(i)?e=i:n=i),new ke(r=>{let o=Gv(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function ei(...t){let i=bn(t),e=Pv(t,1/0),n=t;return n.length?n.length===1?it(n[0]):Ic(e)(Jt(n,i)):Wn}function ut(t,i){return Ue((e,n)=>{let r=0;e.subscribe(ze(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Kv(t){return Ue((i,e)=>{let n=!1,r=null,o=null,a=!1,c=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let f=r;r=null,e.next(f)}a&&e.complete()},u=()=>{o=null,a&&e.complete()};i.subscribe(ze(e,f=>{n=!0,r=f,o||it(t(f)).subscribe(o=ze(e,c,u))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}function kc(t,i=Ur){return Kv(()=>Mc(t,i))}function Sc(t){return Ue((i,e)=>{let n=null,r=!1,o;n=i.subscribe(ze(e,void 0,void 0,a=>{o=it(t(a,Sc(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function ff(t,i){return _e(i)?vn(t,i,1):vn(t,1)}function ma(t,i=Ur){return Ue((e,n)=>{let r=null,o=null,a=null,c=()=>{if(r){r.unsubscribe(),r=null;let f=o;o=null,n.next(f)}};function u(){let f=a+t,p=i.now();if(p<f){r=this.schedule(void 0,f-p),n.add(r);return}c()}e.subscribe(ze(n,f=>{o=f,a=i.now(),r||(r=i.schedule(u,t),n.add(r))},()=>{c(),n.complete()},void 0,()=>{o=r=null}))})}function nt(t){return t<=0?()=>Wn:Ue((i,e)=>{let n=0;i.subscribe(ze(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Xv(){return Ue((t,i)=>{t.subscribe(ze(i,jr))})}function Jv(t){return Ke(()=>t)}function mf(t,i){return i?e=>ur(i.pipe(nt(1),Xv()),e.pipe(mf(t))):vn((e,n)=>it(t(e,n)).pipe(nt(1),Jv(e)))}function pf(t,i=Ur){let e=Mc(t,i);return mf(()=>e)}function Go(t,i=Xi){return t=t??aS,Ue((e,n)=>{let r,o=!0;e.subscribe(ze(n,a=>{let c=i(a);(o||!t(r,c))&&(o=!1,r=c,n.next(a))}))})}function aS(t,i){return t===i}function pa(t){return Ue((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ga(t={}){let{connector:i=()=>new Y,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,c,u,f=0,p=!1,_=!1,w=()=>{c?.unsubscribe(),c=void 0},y=()=>{w(),a=u=void 0,p=_=!1},C=()=>{let I=a;y(),I?.unsubscribe()};return Ue((I,A)=>{f++,!_&&!p&&w();let z=u=u??i();A.add(()=>{f--,f===0&&!_&&!p&&(c=gf(C,r))}),z.subscribe(A),!a&&f>0&&(a=new $n({next:Ne=>z.next(Ne),error:Ne=>{_=!0,w(),c=gf(y,e,Ne),z.error(Ne)},complete:()=>{p=!0,w(),c=gf(y,n),z.complete()}}),it(I).subscribe(a))})(o)}}function gf(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new $n({next:()=>{n.unsubscribe(),t()}});return it(i(...e)).subscribe(n)}function Tc(t,i,e){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:r=!1,scheduler:e}=t:n=t??1/0,ga({connector:()=>new Hr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function _a(t){return ut((i,e)=>t<=e)}function ci(...t){let i=bn(t);return Ue((e,n)=>{(i?ur(t,e,i):ur(t,e)).subscribe(n)})}function yn(t,i){return Ue((e,n)=>{let r=null,o=0,a=!1,c=()=>a&&!r&&n.complete();e.subscribe(ze(n,u=>{r?.unsubscribe();let f=0,p=o++;it(t(u,p)).subscribe(r=ze(n,_=>n.next(i?i(u,_,p,f++):_),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function we(t){return Ue((i,e)=>{it(t).subscribe(ze(e,()=>e.complete(),jr)),!e.closed&&i.subscribe(e)})}function _f(t,i=!1){return Ue((e,n)=>{let r=0;e.subscribe(ze(n,o=>{let a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function Ji(t,i,e){let n=_e(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ue((r,o)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let c=!0;r.subscribe(ze(o,u=>{var f;(f=n.next)===null||f===void 0||f.call(n,u),o.next(u)},()=>{var u;c=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var f;c=!1,(f=n.error)===null||f===void 0||f.call(n,u),o.error(u)},()=>{var u,f;c&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(f=n.finalize)===null||f===void 0||f.call(n)}))}):Xi}var Vy="https://g.co/ng/security#xss",W=class extends Error{constructor(i,e){super(cd(i,e)),this.code=i}};function cd(t,i){return`${`NG0${Math.abs(t)}`}${i?": "+i:""}`}function Oa(t){return{toString:t}.toString()}var Ac="__parameters__";function cS(t){return function(...e){if(t){let n=t(...e);for(let r in n)this[r]=n[r]}}}function jy(t,i,e){return Oa(()=>{let n=cS(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;let a=new r(...o);return c.annotation=a,c;function c(u,f,p){let _=u.hasOwnProperty(Ac)?u[Ac]:Object.defineProperty(u,Ac,{value:[]})[Ac];for(;_.length<=p;)_.push(null);return(_[p]=_[p]||[]).push(a),u}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var Wr=globalThis;function ht(t){for(let i in t)if(t[i]===ht)return i;throw Error("Could not find renamed property on target object.")}function dS(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Di(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Di).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let i=t.toString();if(i==null)return""+i;let e=i.indexOf(`
|
|
4
|
+
`);return e===-1?i:i.substring(0,e)}function Of(t,i){return t==null||t===""?i===null?"":i:i==null||i===""?t:t+" "+i}var uS=ht({__forward_ref__:ht});function It(t){return t.__forward_ref__=It,t.toString=function(){return Di(this())},t}function di(t){return By(t)?t():t}function By(t){return typeof t=="function"&&t.hasOwnProperty(uS)&&t.__forward_ref__===It}function j(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ee(t){return{providers:t.providers||[],imports:t.imports||[]}}function Vm(t){return ey(t,zy)||ey(t,Hy)}function ey(t,i){return t.hasOwnProperty(i)?t[i]:null}function hS(t){let i=t&&(t[zy]||t[Hy]);return i||null}function ty(t){return t&&(t.hasOwnProperty(iy)||t.hasOwnProperty(fS))?t[iy]:null}var zy=ht({\u0275prov:ht}),iy=ht({\u0275inj:ht}),Hy=ht({ngInjectableDef:ht}),fS=ht({ngInjectorDef:ht}),R=class{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=j({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Uy(t){return t&&!!t.\u0275providers}var mS=ht({\u0275cmp:ht}),pS=ht({\u0275dir:ht}),gS=ht({\u0275pipe:ht});var Uc=ht({\u0275fac:ht}),ba=ht({__NG_ELEMENT_ID__:ht}),ny=ht({__NG_ENV_ID__:ht});function va(t){return typeof t=="string"?t:t==null?"":String(t)}function _S(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():va(t)}function bS(t,i){let e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new W(-200,t)}function jm(t,i){throw new W(-201,!1)}var Ze=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ze||{}),Pf;function $y(){return Pf}function gi(t){let i=Pf;return Pf=t,i}function Wy(t,i,e){let n=Vm(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&Ze.Optional)return null;if(i!==void 0)return i;jm(t,"Injector")}var vS={},ya=vS,Ff="__NG_DI_FLAG__",$c="ngTempTokenPath",yS="ngTokenPath",wS=/\n/gm,xS="\u0275",ry="__source",Qo;function DS(){return Qo}function hr(t){let i=Qo;return Qo=t,i}function CS(t,i=Ze.Default){if(Qo===void 0)throw new W(-203,!1);return Qo===null?Wy(t,void 0,i):Qo.get(t,i&Ze.Optional?null:void 0,i)}function T(t,i=Ze.Default){return($y()||CS)(di(t),i)}function U(t,i=Ze.Default){return T(t,dd(i))}function dd(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Nf(t){let i=[];for(let e=0;e<t.length;e++){let n=di(t[e]);if(Array.isArray(n)){if(n.length===0)throw new W(900,!1);let r,o=Ze.Default;for(let a=0;a<n.length;a++){let c=n[a],u=ES(c);typeof u=="number"?u===-1?r=c.token:o|=u:r=c}i.push(T(r,o))}else i.push(T(n))}return i}function Gy(t,i){return t[Ff]=i,t.prototype[Ff]=i,t}function ES(t){return t[Ff]}function IS(t,i,e,n){let r=t[$c];throw i[ry]&&r.unshift(i[ry]),t.message=MS(`
|
|
5
|
+
`+t.message,r,e,n),t[yS]=r,t[$c]=null,t}function MS(t,i,e,n=null){t=t&&t.charAt(0)===`
|
|
6
|
+
`&&t.charAt(1)==xS?t.slice(2):t;let r=Di(i);if(Array.isArray(i))r=i.map(Di).join(" -> ");else if(typeof i=="object"){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let c=i[a];o.push(a+":"+(typeof c=="string"?JSON.stringify(c):Di(c)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(wS,`
|
|
7
|
+
`)}`}var ro=Gy(jy("Optional"),8);var as=Gy(jy("SkipSelf"),4);function Zr(t,i){let e=t.hasOwnProperty(Uc);return e?t[Uc]:null}function kS(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function SS(t){return t.flat(Number.POSITIVE_INFINITY)}function Bm(t,i){t.forEach(e=>Array.isArray(e)?Bm(e,i):i(e))}function qy(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Wc(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function TS(t,i){let e=[];for(let n=0;n<t;n++)e.push(i);return e}function AS(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(r===1)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;){let o=r-2;t[r]=t[o],r--}t[i]=e,t[i+1]=n}}function ud(t,i,e){let n=Pa(t,i);return n>=0?t[n|1]=e:(n=~n,AS(t,n,i,e)),n}function bf(t,i){let e=Pa(t,i);if(e>=0)return t[e|1]}function Pa(t,i){return RS(t,i,1)}function RS(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let o=n+(r-n>>1),a=t[o<<e];if(i===a)return o<<e;a>i?r=o:n=o+1}return~(r<<e)}var Xo={},_i=[],wa=new R(""),Zy=new R("",-1),Yy=new R(""),Gc=class{get(i,e=ya){if(e===ya){let n=new Error(`NullInjectorError: No provider for ${Di(i)}!`);throw n.name="NullInjectorError",n}return e}},Qy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Qy||{}),Dn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Dn||{}),D=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(D||{});function OS(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Lf(t,i,e){let n=0;for(;n<e.length;){let r=e[n];if(typeof r=="number"){if(r!==0)break;n++;let o=e[n++],a=e[n++],c=e[n++];t.setAttribute(i,a,c,o)}else{let o=r,a=e[++n];PS(o)?t.setProperty(i,o,a):t.setAttribute(i,o,a),n++}}return n}function Ky(t){return t===3||t===4||t===6}function PS(t){return t.charCodeAt(0)===64}function xa(t,i){if(!(i===null||i.length===0))if(t===null||t.length===0)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){let r=i[n];typeof r=="number"?e=r:e===0||(e===-1||e===2?oy(t,e,r,null,i[++n]):oy(t,e,r,null,null))}}return t}function oy(t,i,e,n,r){let o=0,a=t.length;if(i===-1)a=-1;else for(;o<t.length;){let c=t[o++];if(typeof c=="number"){if(c===i){a=-1;break}else if(c>i){a=o-1;break}}}for(;o<t.length;){let c=t[o];if(typeof c=="number")break;if(c===e){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}a!==-1&&(t.splice(a,0,i),o=a+1),t.splice(o++,0,e),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}var Xy="ng-template";function FS(t,i,e,n){let r=0;if(n){for(;r<i.length&&typeof i[r]=="string";r+=2)if(i[r]==="class"&&OS(i[r+1].toLowerCase(),e,0)!==-1)return!0}else if(zm(t))return!1;if(r=i.indexOf(1,r),r>-1){let o;for(;++r<i.length&&typeof(o=i[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function zm(t){return t.type===4&&t.value!==Xy}function NS(t,i,e){let n=t.type===4&&!e?Xy:t.value;return i===n}function LS(t,i,e){let n=4,r=t.attrs,o=r!==null?BS(r):0,a=!1;for(let c=0;c<i.length;c++){let u=i[c];if(typeof u=="number"){if(!a&&!en(n)&&!en(u))return!1;if(a&&en(u))continue;a=!1,n=u|n&1;continue}if(!a)if(n&4){if(n=2|n&1,u!==""&&!NS(t,u,e)||u===""&&i.length===1){if(en(n))return!1;a=!0}}else if(n&8){if(r===null||!FS(t,r,u,e)){if(en(n))return!1;a=!0}}else{let f=i[++c],p=VS(u,r,zm(t),e);if(p===-1){if(en(n))return!1;a=!0;continue}if(f!==""){let _;if(p>o?_="":_=r[p+1].toLowerCase(),n&2&&f!==_){if(en(n))return!1;a=!0}}}}return en(n)||a}function en(t){return(t&1)===0}function VS(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let o=!1;for(;r<i.length;){let a=i[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let c=i[++r];for(;typeof c=="string";)c=i[++r];continue}else{if(a===4)break;if(a===0){r+=4;continue}}r+=o?1:2}return-1}else return zS(i,t)}function Jy(t,i,e=!1){for(let n=0;n<i.length;n++)if(LS(t,i[n],e))return!0;return!1}function jS(t){let i=t.attrs;if(i!=null){let e=i.indexOf(5);if(!(e&1))return i[e+1]}return null}function BS(t){for(let i=0;i<t.length;i++){let e=t[i];if(Ky(e))return i}return t.length}function zS(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let n=t[e];if(typeof n=="number")return-1;if(n===i)return e;e++}return-1}function HS(t,i){e:for(let e=0;e<i.length;e++){let n=i[e];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function sy(t,i){return t?":not("+i.trim()+")":i}function US(t){let i=t[0],e=1,n=2,r="",o=!1;for(;e<t.length;){let a=t[e];if(typeof a=="string")if(n&2){let c=t[++e];r+="["+a+(c.length>0?'="'+c+'"':"")+"]"}else n&8?r+="."+a:n&4&&(r+=" "+a);else r!==""&&!en(a)&&(i+=sy(o,r),r=""),n=a,o=o||!en(n);e++}return r!==""&&(i+=sy(o,r)),i}function $S(t){return t.map(US).join(",")}function WS(t){let i=[],e=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&i.push(o,t[++n]):r===8&&e.push(o);else{if(!en(r))break;r=o}n++}return{attrs:i,classes:e}}function se(t){return Oa(()=>{let i=i0(t),e=Nt(ye({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Dn.Emulated,styles:t.styles||_i,_:null,schemas:t.schemas||null,tView:null,id:""});n0(e);let n=t.dependencies;return e.directiveDefs=ly(n,!1),e.pipeDefs=ly(n,!0),e.id=YS(e),e})}function GS(t){return Jo(t)||e0(t)}function qS(t){return t!==null}function te(t){return Oa(()=>({type:t.type,bootstrap:t.bootstrap||_i,declarations:t.declarations||_i,imports:t.imports||_i,exports:t.exports||_i,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ay(t,i){if(t==null)return Xo;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,a,c=D.None;Array.isArray(r)?(c=r[0],o=r[1],a=r[2]??o):(o=r,a=r),i?(e[o]=c!==D.None?[n,c]:n,i[o]=a):e[o]=n}return e}function N(t){return Oa(()=>{let i=i0(t);return n0(i),i})}function hd(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Jo(t){return t[mS]||null}function e0(t){return t[pS]||null}function t0(t){return t[gS]||null}function ZS(t){let i=Jo(t)||e0(t)||t0(t);return i!==null?i.standalone:!1}function i0(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||Xo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||_i,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ay(t.inputs,i),outputs:ay(t.outputs),debugInfo:null}}function n0(t){t.features?.forEach(i=>i(t))}function ly(t,i){if(!t)return null;let e=i?t0:GS;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(qS)}function YS(t){let i=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of e)i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function fd(t){return{\u0275providers:t}}function QS(...t){return{\u0275providers:r0(!0,t),\u0275fromNgModule:!0}}function r0(t,...i){let e=[],n=new Set,r,o=a=>{e.push(a)};return Bm(i,a=>{let c=a;Vf(c,o,[],n)&&(r||=[],r.push(c))}),r!==void 0&&o0(r,o),e}function o0(t,i){for(let e=0;e<t.length;e++){let{ngModule:n,providers:r}=t[e];Hm(r,o=>{i(o,n)})}}function Vf(t,i,e,n){if(t=di(t),!t)return!1;let r=null,o=ty(t),a=!o&&Jo(t);if(!o&&!a){let u=t.ngModule;if(o=ty(u),o)r=u;else return!1}else{if(a&&!a.standalone)return!1;r=t}let c=n.has(r);if(a){if(c)return!1;if(n.add(r),a.dependencies){let u=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let f of u)Vf(f,i,e,n)}}else if(o){if(o.imports!=null&&!c){n.add(r);let f;try{Bm(o.imports,p=>{Vf(p,i,e,n)&&(f||=[],f.push(p))})}finally{}f!==void 0&&o0(f,i)}if(!c){let f=Zr(r)||(()=>new r);i({provide:r,useFactory:f,deps:_i},r),i({provide:Yy,useValue:r,multi:!0},r),i({provide:wa,useValue:()=>T(r),multi:!0},r)}let u=o.providers;if(u!=null&&!c){let f=t;Hm(u,p=>{i(p,f)})}}else return!1;return r!==t&&t.providers!==void 0}function Hm(t,i){for(let e of t)Uy(e)&&(e=e.\u0275providers),Array.isArray(e)?Hm(e,i):i(e)}var KS=ht({provide:String,useValue:ht});function s0(t){return t!==null&&typeof t=="object"&&KS in t}function XS(t){return!!(t&&t.useExisting)}function JS(t){return!!(t&&t.useFactory)}function es(t){return typeof t=="function"}function eT(t){return!!t.useClass}var md=new R(""),Nc={},tT={},vf;function Um(){return vf===void 0&&(vf=new Gc),vf}var Cn=class{},Da=class extends Cn{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bf(i,a=>this.processProvider(a)),this.records.set(Zy,qo(void 0,this)),r.has("environment")&&this.records.set(Cn,qo(void 0,this));let o=this.records.get(md);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Yy,_i,Ze.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let i=We(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),We(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();let e=hr(this),n=gi(void 0),r;try{return i()}finally{hr(e),gi(n)}}get(i,e=ya,n=Ze.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(ny))return i[ny](this);n=dd(n);let r,o=hr(this),a=gi(void 0);try{if(!(n&Ze.SkipSelf)){let u=this.records.get(i);if(u===void 0){let f=sT(i)&&Vm(i);f&&this.injectableDefInScope(f)?u=qo(jf(i),Nc):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u)}let c=n&Ze.Self?Um():this.parent;return e=n&Ze.Optional&&e===ya?null:e,c.get(i,e)}catch(c){if(c.name==="NullInjectorError"){if((c[$c]=c[$c]||[]).unshift(Di(i)),o)throw c;return IS(c,i,"R3InjectorError",this.source)}else throw c}finally{gi(a),hr(o)}}resolveInjectorInitializers(){let i=We(null),e=hr(this),n=gi(void 0),r;try{let o=this.get(wa,_i,Ze.Self);for(let a of o)a()}finally{hr(e),gi(n),We(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Di(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(i){i=di(i);let e=es(i)?i:di(i&&i.provide),n=nT(i);if(!es(i)&&i.multi===!0){let r=this.records.get(e);r||(r=qo(void 0,Nc,!0),r.factory=()=>Nf(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){let n=We(null);try{return e.value===Nc&&(e.value=tT,e.value=e.factory()),typeof e.value=="object"&&e.value&&oT(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{We(n)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=di(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function jf(t){let i=Vm(t),e=i!==null?i.factory:Zr(t);if(e!==null)return e;if(t instanceof R)throw new W(204,!1);if(t instanceof Function)return iT(t);throw new W(204,!1)}function iT(t){if(t.length>0)throw new W(204,!1);let e=hS(t);return e!==null?()=>e.factory(t):()=>new t}function nT(t){if(s0(t))return qo(void 0,t.useValue);{let i=a0(t);return qo(i,Nc)}}function a0(t,i,e){let n;if(es(t)){let r=di(t);return Zr(r)||jf(r)}else if(s0(t))n=()=>di(t.useValue);else if(JS(t))n=()=>t.useFactory(...Nf(t.deps||[]));else if(XS(t))n=()=>T(di(t.useExisting));else{let r=di(t&&(t.useClass||t.provide));if(rT(t))n=()=>new r(...Nf(t.deps));else return Zr(r)||jf(r)}return n}function qo(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function rT(t){return!!t.deps}function oT(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function sT(t){return typeof t=="function"||typeof t=="object"&&t instanceof R}function Bf(t,i){for(let e of t)Array.isArray(e)?Bf(e,i):e&&Uy(e)?Bf(e.\u0275providers,i):i(e)}function l0(t,i){t instanceof Da&&t.assertNotDestroyed();let e,n=hr(t),r=gi(void 0);try{return i()}finally{hr(n),gi(r)}}function c0(){return $y()!==void 0||DS()!=null}function aT(t){if(!c0())throw new W(-203,!1)}function lT(t){return typeof t=="function"}var Mn=0,Se=1,xe=2,qt=3,nn=4,Ei=5,ts=6,Ca=7,ti=8,is=9,En=10,pt=11,Ea=12,cy=13,ls=14,Bi=15,Fa=16,Zo=17,Gn=18,pd=19,d0=20,fr=21,Lc=22,Yr=23,ni=25,$m=1;var Qr=7,qc=8,ns=9,ii=10,Wm=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Wm||{});function Gr(t){return Array.isArray(t)&&typeof t[$m]=="object"}function Qn(t){return Array.isArray(t)&&t[$m]===!0}function Gm(t){return(t.flags&4)!==0}function gd(t){return t.componentOffset>-1}function _d(t){return(t.flags&1)===1}function qn(t){return!!t.template}function cT(t){return(t[xe]&512)!==0}var zf=class{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function u0(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}function Ge(){return h0}function h0(t){return t.type.prototype.ngOnChanges&&(t.setInput=uT),dT}Ge.ngInherit=!0;function dT(){let t=m0(this),i=t?.current;if(i){let e=t.previous;if(e===Xo)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function uT(t,i,e,n,r){let o=this.declaredInputs[n],a=m0(t)||hT(t,{previous:Xo,current:null}),c=a.current||(a.current={}),u=a.previous,f=u[o];c[o]=new zf(f&&f.currentValue,e,u===Xo),u0(t,i,r,e)}var f0="__ngSimpleChanges__";function m0(t){return t[f0]||null}function hT(t,i){return t[f0]=i}var dy=null;var wn=function(t,i,e){dy?.(t,i,e)},p0="svg",fT="math",mT=!1;function pT(){return mT}function In(t){for(;Array.isArray(t);)t=t[Mn];return t}function gT(t){for(;Array.isArray(t);){if(typeof t[$m]=="object")return t;t=t[Mn]}return null}function g0(t,i){return In(i[t])}function zi(t,i){return In(i[t.index])}function qm(t,i){return t.data[i]}function _0(t,i){return t[i]}function pr(t,i){let e=i[t];return Gr(e)?e:e[Mn]}function _T(t){return(t[xe]&4)===4}function Zm(t){return(t[xe]&128)===128}function bT(t){return Qn(t[qt])}function rs(t,i){return i==null?null:t[i]}function b0(t){t[Zo]=0}function vT(t){t[xe]&1024||(t[xe]|=1024,Zm(t)&&Ia(t))}function yT(t,i){for(;t>0;)i=i[ls],t--;return i}function Ym(t){return!!(t[xe]&9216||t[Yr]?.dirty)}function Hf(t){t[En].changeDetectionScheduler?.notify(1),Ym(t)?Ia(t):t[xe]&64&&(pT()?(t[xe]|=1024,Ia(t)):t[En].changeDetectionScheduler?.notify())}function Ia(t){t[En].changeDetectionScheduler?.notify();let i=Ma(t);for(;i!==null&&!(i[xe]&8192||(i[xe]|=8192,!Zm(i)));)i=Ma(i)}function v0(t,i){if((t[xe]&256)===256)throw new W(911,!1);t[fr]===null&&(t[fr]=[]),t[fr].push(i)}function wT(t,i){if(t[fr]===null)return;let e=t[fr].indexOf(i);e!==-1&&t[fr].splice(e,1)}function Ma(t){let i=t[qt];return Qn(i)?i[qt]:i}var Pe={lFrame:M0(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function xT(){return Pe.lFrame.elementDepthCount}function DT(){Pe.lFrame.elementDepthCount++}function CT(){Pe.lFrame.elementDepthCount--}function y0(){return Pe.bindingsEnabled}function w0(){return Pe.skipHydrationRootTNode!==null}function ET(t){return Pe.skipHydrationRootTNode===t}function IT(){Pe.skipHydrationRootTNode=null}function Ae(){return Pe.lFrame.lView}function gt(){return Pe.lFrame.tView}function ne(t){return Pe.lFrame.contextLView=t,t[ti]}function re(t){return Pe.lFrame.contextLView=null,t}function Zt(){let t=x0();for(;t!==null&&t.type===64;)t=t.parent;return t}function x0(){return Pe.lFrame.currentTNode}function MT(){let t=Pe.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function oo(t,i){let e=Pe.lFrame;e.currentTNode=t,e.isParent=i}function Qm(){return Pe.lFrame.isParent}function Km(){Pe.lFrame.isParent=!1}function kT(){return Pe.lFrame.contextLView}function D0(){let t=Pe.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function ST(){return Pe.lFrame.bindingIndex}function TT(t){return Pe.lFrame.bindingIndex=t}function gr(){return Pe.lFrame.bindingIndex++}function Xm(t){let i=Pe.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function AT(){return Pe.lFrame.inI18n}function RT(t,i){let e=Pe.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uf(i)}function OT(){return Pe.lFrame.currentDirectiveIndex}function Uf(t){Pe.lFrame.currentDirectiveIndex=t}function Jm(t){let i=Pe.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function C0(){return Pe.lFrame.currentQueryIndex}function ep(t){Pe.lFrame.currentQueryIndex=t}function PT(t){let i=t[Se];return i.type===2?i.declTNode:i.type===1?t[Ei]:null}function E0(t,i,e){if(e&Ze.SkipSelf){let r=i,o=t;for(;r=r.parent,r===null&&!(e&Ze.Host);)if(r=PT(o),r===null||(o=o[ls],r.type&10))break;if(r===null)return!1;i=r,t=o}let n=Pe.lFrame=I0();return n.currentTNode=i,n.lView=t,!0}function tp(t){let i=I0(),e=t[Se];Pe.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function I0(){let t=Pe.lFrame,i=t===null?null:t.child;return i===null?M0(t):i}function M0(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function k0(){let t=Pe.lFrame;return Pe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var S0=k0;function ip(){let t=k0();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function FT(t){return(Pe.lFrame.contextLView=yT(t,Pe.lFrame.contextLView))[ti]}function Kn(){return Pe.lFrame.selectedIndex}function Kr(t){Pe.lFrame.selectedIndex=t}function Na(){let t=Pe.lFrame;return qm(t.tView,t.selectedIndex)}function vi(){Pe.lFrame.currentNamespace=p0}function cs(){NT()}function NT(){Pe.lFrame.currentNamespace=null}function LT(){return Pe.lFrame.currentNamespace}var T0=!0;function bd(){return T0}function vd(t){T0=t}function VT(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){let a=h0(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function yd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:c,ngAfterViewInit:u,ngAfterViewChecked:f,ngOnDestroy:p}=o;a&&(t.contentHooks??=[]).push(-e,a),c&&((t.contentHooks??=[]).push(e,c),(t.contentCheckHooks??=[]).push(e,c)),u&&(t.viewHooks??=[]).push(-e,u),f&&((t.viewHooks??=[]).push(e,f),(t.viewCheckHooks??=[]).push(e,f)),p!=null&&(t.destroyHooks??=[]).push(e,p)}}function Vc(t,i,e){A0(t,i,3,e)}function jc(t,i,e,n){(t[xe]&3)===e&&A0(t,i,e,n)}function yf(t,i){let e=t[xe];(e&3)===i&&(e&=16383,e+=1,t[xe]=e)}function A0(t,i,e,n){let r=n!==void 0?t[Zo]&65535:0,o=n??-1,a=i.length-1,c=0;for(let u=r;u<a;u++)if(typeof i[u+1]=="number"){if(c=i[u],n!=null&&c>=n)break}else i[u]<0&&(t[Zo]+=65536),(c<o||o==-1)&&(jT(t,e,i,u),t[Zo]=(t[Zo]&4294901760)+u+2),u++}function uy(t,i){wn(4,t,i);let e=We(null);try{i.call(t)}finally{We(e),wn(5,t,i)}}function jT(t,i,e,n){let r=e[n]<0,o=e[n+1],a=r?-e[n]:e[n],c=t[a];r?t[xe]>>14<t[Zo]>>16&&(t[xe]&3)===i&&(t[xe]+=16384,uy(c,o)):uy(c,o)}var Ko=-1,Xr=class{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}};function BT(t){return t instanceof Xr}function zT(t){return(t.flags&8)!==0}function HT(t){return(t.flags&16)!==0}function R0(t){return t!==Ko}function Zc(t){return t&32767}function UT(t){return t>>16}function Yc(t,i){let e=UT(t),n=i;for(;e>0;)n=n[ls],e--;return n}var $f=!0;function Qc(t){let i=$f;return $f=t,i}var $T=256,O0=$T-1,P0=5,WT=0,xn={};function GT(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(ba)&&(n=e[ba]),n==null&&(n=e[ba]=WT++);let r=n&O0,o=1<<r;i.data[t+(r>>P0)]|=o}function Kc(t,i){let e=F0(t,i);if(e!==-1)return e;let n=i[Se];n.firstCreatePass&&(t.injectorIndex=i.length,wf(n.data,t),wf(i,null),wf(n.blueprint,null));let r=np(t,i),o=t.injectorIndex;if(R0(r)){let a=Zc(r),c=Yc(r,i),u=c[Se].data;for(let f=0;f<8;f++)i[o+f]=c[a+f]|u[a+f]}return i[o+8]=r,o}function wf(t,i){t.push(0,0,0,0,0,0,0,0,i)}function F0(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function np(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=B0(r),n===null)return Ko;if(e++,r=r[ls],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Ko}function Wf(t,i,e){GT(t,i,e)}function qT(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r<n;){let o=e[r];if(Ky(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof e[r]=="string";)r++;else{if(o===i)return e[r+1];r=r+2}}}return null}function N0(t,i,e){if(e&Ze.Optional||t!==void 0)return t;jm(i,"NodeInjector")}function L0(t,i,e,n){if(e&Ze.Optional&&n===void 0&&(n=null),!(e&(Ze.Self|Ze.Host))){let r=t[is],o=gi(void 0);try{return r?r.get(i,n,e&Ze.Optional):Wy(i,n,e&Ze.Optional)}finally{gi(o)}}return N0(n,i,e)}function V0(t,i,e,n=Ze.Default,r){if(t!==null){if(i[xe]&2048&&!(n&Ze.Self)){let a=KT(t,i,e,n,xn);if(a!==xn)return a}let o=j0(t,i,e,n,xn);if(o!==xn)return o}return L0(i,e,n,r)}function j0(t,i,e,n,r){let o=YT(e);if(typeof o=="function"){if(!E0(i,t,n))return n&Ze.Host?N0(r,e,n):L0(i,e,n,r);try{let a;if(a=o(n),a==null&&!(n&Ze.Optional))jm(e);else return a}finally{S0()}}else if(typeof o=="number"){let a=null,c=F0(t,i),u=Ko,f=n&Ze.Host?i[Bi][Ei]:null;for((c===-1||n&Ze.SkipSelf)&&(u=c===-1?np(t,i):i[c+8],u===Ko||!fy(n,!1)?c=-1:(a=i[Se],c=Zc(u),i=Yc(u,i)));c!==-1;){let p=i[Se];if(hy(o,c,p.data)){let _=ZT(c,i,e,a,n,f);if(_!==xn)return _}u=i[c+8],u!==Ko&&fy(n,i[Se].data[c+8]===f)&&hy(o,c,i)?(a=p,c=Zc(u),i=Yc(u,i)):c=-1}}return r}function ZT(t,i,e,n,r,o){let a=i[Se],c=a.data[t+8],u=n==null?gd(c)&&$f:n!=a&&(c.type&3)!==0,f=r&Ze.Host&&o===c,p=Bc(c,a,e,u,f);return p!==null?Jr(i,a,p,c):xn}function Bc(t,i,e,n,r){let o=t.providerIndexes,a=i.data,c=o&1048575,u=t.directiveStart,f=t.directiveEnd,p=o>>20,_=n?c:c+p,w=r?c+p:f;for(let y=_;y<w;y++){let C=a[y];if(y<u&&e===C||y>=u&&C.type===e)return y}if(r){let y=a[u];if(y&&qn(y)&&y.type===e)return u}return null}function Jr(t,i,e,n){let r=t[e],o=i.data;if(BT(r)){let a=r;a.resolving&&bS(_S(o[e]));let c=Qc(a.canSeeViewProviders);a.resolving=!0;let u,f=a.injectImpl?gi(a.injectImpl):null,p=E0(t,n,Ze.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&VT(e,o[e],i)}finally{f!==null&&gi(f),Qc(c),a.resolving=!1,S0()}}return r}function YT(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(ba)?t[ba]:void 0;return typeof i=="number"?i>=0?i&O0:QT:i}function hy(t,i,e){let n=1<<t;return!!(e[i+(t>>P0)]&n)}function fy(t,i){return!(t&Ze.Self)&&!(t&Ze.Host&&i)}var qr=class{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return V0(this._tNode,this._lView,i,dd(n),e)}};function QT(){return new qr(Zt(),Ae())}function Mt(t){return Oa(()=>{let i=t.prototype.constructor,e=i[Uc]||Gf(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Uc]||Gf(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Gf(t){return By(t)?()=>{let i=Gf(di(t));return i&&i()}:Zr(t)}function KT(t,i,e,n,r){let o=t,a=i;for(;o!==null&&a!==null&&a[xe]&2048&&!(a[xe]&512);){let c=j0(o,a,e,n|Ze.Self,xn);if(c!==xn)return c;let u=o.parent;if(!u){let f=a[d0];if(f){let p=f.get(e,xn,n);if(p!==xn)return p}u=B0(a),a=a[ls]}o=u}return r}function B0(t){let i=t[Se],e=i.type;return e===2?i.declTNode:e===1?t[Ei]:null}function Yt(t){return qT(Zt(),t)}function my(t,i=null,e=null,n){let r=XT(t,i,e,n);return r.resolveInjectorInitializers(),r}function XT(t,i=null,e=null,n,r=new Set){let o=[e||_i,QS(t)];return n=n||(typeof t=="object"?void 0:Di(t)),new Da(o,i||Um(),n||null,r)}var Ii=(()=>{class t{static{this.THROW_IF_NOT_FOUND=ya}static{this.NULL=new Gc}static create(e,n){if(Array.isArray(e))return my({name:""},n,e,"");{let r=e.name??"";return my({name:r},e.parent,e.providers,r)}}static{this.\u0275prov=j({token:t,providedIn:"any",factory:()=>T(Zy)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();var JT="ngOriginalError";function xf(t){return t[JT]}var bi=class{constructor(){this._console=console}handleError(i){let e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&xf(i);for(;e&&xf(e);)e=xf(e);return e||null}},z0=new R("",{providedIn:"root",factory:()=>U(bi).handleError.bind(void 0)}),rp=(()=>{class t{static{this.__NG_ELEMENT_ID__=eA}static{this.__NG_ENV_ID__=e=>e}}return t})(),qf=class extends rp{constructor(i){super(),this._lView=i}onDestroy(i){return v0(this._lView,i),()=>wT(this._lView,i)}};function eA(){return new qf(Ae())}function tA(){return ds(Zt(),Ae())}function ds(t,i){return new H(zi(t,i))}var H=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=tA}}return t})();function iA(t){return t instanceof H?t.nativeElement:t}var Zf=class extends Y{constructor(i=!1){super(),this.destroyRef=void 0,this.__isAsync=i,c0()&&(this.destroyRef=U(rp,{optional:!0})??void 0)}emit(i){let e=We(null);try{super.next(i)}finally{We(e)}}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&typeof i=="object"){let u=i;r=u.next?.bind(u),o=u.error?.bind(u),a=u.complete?.bind(u)}this.__isAsync&&(o=Df(o),r&&(r=Df(r)),a&&(a=Df(a)));let c=super.subscribe({next:r,error:o,complete:a});return i instanceof Ce&&i.add(c),c}};function Df(t){return i=>{setTimeout(t,void 0,i)}}var B=Zf;function nA(){return this._results[Symbol.iterator]()}var eo=class t{get changes(){return this._changes??=new B}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=nA)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=SS(i);(this._changesDetected=!kS(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function H0(t){return(t.flags&128)===128}var U0=new Map,rA=0;function oA(){return rA++}function sA(t){U0.set(t[pd],t)}function aA(t){U0.delete(t[pd])}var py="__ngContext__";function mr(t,i){Gr(i)?(t[py]=i[pd],sA(i)):t[py]=i}function $0(t){return G0(t[Ea])}function W0(t){return G0(t[nn])}function G0(t){for(;t!==null&&!Qn(t);)t=t[nn];return t}var Yf;function q0(t){Yf=t}function lA(){if(Yf!==void 0)return Yf;if(typeof document<"u")return document;throw new W(210,!1)}var La=new R("",{providedIn:"root",factory:()=>cA}),cA="ng",op=new R(""),kn=new R("",{providedIn:"platform",factory:()=>"unknown"});var ot=new R(""),Va=new R("",{providedIn:"root",factory:()=>lA().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var dA="h",uA="b";var hA=()=>null;function sp(t,i,e=!1){return hA(t,i,e)}var Z0=!1,fA=new R("",{providedIn:"root",factory:()=>Z0});var Rc;function mA(){if(Rc===void 0&&(Rc=null,Wr.trustedTypes))try{Rc=Wr.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rc}function wd(t){return mA()?.createHTML(t)||t}var Zn=class{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vy})`}},Qf=class extends Zn{getTypeName(){return"HTML"}},Kf=class extends Zn{getTypeName(){return"Style"}},Xf=class extends Zn{getTypeName(){return"Script"}},Jf=class extends Zn{getTypeName(){return"URL"}},em=class extends Zn{getTypeName(){return"ResourceURL"}};function Xn(t){return t instanceof Zn?t.changingThisBreaksApplicationSecurity:t}function us(t,i){let e=pA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Vy})`)}return e===i}function pA(t){return t instanceof Zn&&t.getTypeName()||null}function Y0(t){return new Qf(t)}function Q0(t){return new Kf(t)}function K0(t){return new Xf(t)}function X0(t){return new Jf(t)}function J0(t){return new em(t)}function gA(t){let i=new im(t);return _A()?new tm(i):i}var tm=class{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{let e=new window.DOMParser().parseFromString(wd(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}},im=class{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=wd(i),e}};function _A(){try{return!!new window.DOMParser().parseFromString(wd(""),"text/html")}catch{return!1}}var bA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ap(t){return t=String(t),t.match(bA)?t:"unsafe:"+t}function Jn(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function ja(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var ew=Jn("area,br,col,hr,img,wbr"),tw=Jn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iw=Jn("rp,rt"),vA=ja(iw,tw),yA=ja(tw,Jn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wA=ja(iw,Jn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),gy=ja(ew,yA,wA,vA),nw=Jn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xA=Jn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),DA=Jn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),CA=ja(nw,xA,DA),EA=Jn("script,style,template"),nm=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=kA(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=MA(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=_y(i).toLowerCase();if(!gy.hasOwnProperty(e))return this.sanitizedSomething=!0,!EA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),a=o.name,c=a.toLowerCase();if(!CA.hasOwnProperty(c)){this.sanitizedSomething=!0;continue}let u=o.value;nw[c]&&(u=ap(u)),this.buf.push(" ",a,'="',by(u),'"')}return this.buf.push(">"),!0}endElement(i){let e=_y(i).toLowerCase();gy.hasOwnProperty(e)&&!ew.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(by(i))}};function IA(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function MA(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw rw(i);return i}function kA(t){let i=t.firstChild;if(i&&IA(t,i))throw rw(i);return i}function _y(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function rw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var SA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TA=/([^\#-~ |!])/g;function by(t){return t.replace(/&/g,"&").replace(SA,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(TA,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Oc;function ow(t,i){let e=null;try{Oc=Oc||gA(t);let n=i?String(i):"";e=Oc.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Oc.getInertBodyElement(n)}while(n!==o);let c=new nm().sanitizeChildren(vy(e)||e);return wd(c)}finally{if(e){let n=vy(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function vy(t){return"content"in t&&AA(t)?t.content:null}function AA(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var yi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(yi||{});var RA=/^>|^->|<!--|-->|--!>|<!-$/g,OA=/(<|>)/g,PA="\u200B$1\u200B";function FA(t){return t.replace(RA,i=>i.replace(OA,PA))}var Yn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Yn||{}),NA;function lp(t,i){return NA(t,i)}function Yo(t,i,e,n,r){if(n!=null){let o,a=!1;Qn(n)?o=n:Gr(n)&&(a=!0,n=n[Mn]);let c=In(n);t===0&&e!==null?r==null?dw(i,e,c):Xc(i,e,c,r||null,!0):t===1&&e!==null?Xc(i,e,c,r||null,!0):t===2?XA(i,c,a):t===3&&i.destroyNode(c),o!=null&&e1(i,t,o,e,r)}}function LA(t,i){return t.createText(i)}function VA(t,i,e){t.setValue(i,e)}function jA(t,i){return t.createComment(FA(i))}function sw(t,i,e){return t.createElement(i,e)}function BA(t,i){aw(t,i),i[Mn]=null,i[Ei]=null}function zA(t,i,e,n,r,o){n[Mn]=r,n[Ei]=i,Cd(t,n,e,1,r,o)}function aw(t,i){i[En].changeDetectionScheduler?.notify(1),Cd(t,i,i[pt],2,null,null)}function HA(t){let i=t[Ea];if(!i)return Cf(t[Se],t);for(;i;){let e=null;if(Gr(i))e=i[Ea];else{let n=i[ii];n&&(e=n)}if(!e){for(;i&&!i[nn]&&i!==t;)Gr(i)&&Cf(i[Se],i),i=i[qt];i===null&&(i=t),Gr(i)&&Cf(i[Se],i),e=i&&i[nn]}i=e}}function UA(t,i,e,n){let r=ii+n,o=e.length;n>0&&(e[r-1][nn]=i),n<o-ii?(i[nn]=e[r],qy(e,ii+n,i)):(e.push(i),i[nn]=null),i[qt]=e;let a=i[Fa];a!==null&&e!==a&&$A(a,i);let c=i[Gn];c!==null&&c.insertView(t),Hf(i),i[xe]|=128}function $A(t,i){let e=t[ns],r=i[qt][qt][Bi];i[Bi]!==r&&(t[xe]|=Wm.HasTransplantedViews),e===null?t[ns]=[i]:e.push(i)}function lw(t,i){let e=t[ns],n=e.indexOf(i);e.splice(n,1)}function ka(t,i){if(t.length<=ii)return;let e=ii+i,n=t[e];if(n){let r=n[Fa];r!==null&&r!==t&&lw(r,n),i>0&&(t[e-1][nn]=n[nn]);let o=Wc(t,ii+i);BA(n[Se],n);let a=o[Gn];a!==null&&a.detachView(o[Se]),n[qt]=null,n[nn]=null,n[xe]&=-129}return n}function xd(t,i){if(!(i[xe]&256)){let e=i[pt];e.destroyNode&&Cd(t,i,e,3,null,null),HA(i)}}function Cf(t,i){if(i[xe]&256)return;let e=We(null);try{i[xe]&=-129,i[xe]|=256,i[Yr]&&ef(i[Yr]),GA(t,i),WA(t,i),i[Se].type===1&&i[pt].destroy();let n=i[Fa];if(n!==null&&Qn(i[qt])){n!==i[qt]&&lw(n,i);let r=i[Gn];r!==null&&r.detachView(t)}aA(i)}finally{We(e)}}function WA(t,i){let e=t.cleanup,n=i[Ca];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let a=e[o+3];a>=0?n[a]():n[-a].unsubscribe(),o+=2}else{let a=n[e[o+1]];e[o].call(a)}n!==null&&(i[Ca]=null);let r=i[fr];if(r!==null){i[fr]=null;for(let o=0;o<r.length;o++){let a=r[o];a()}}}function GA(t,i){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let n=0;n<e.length;n+=2){let r=i[e[n]];if(!(r instanceof Xr)){let o=e[n+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let c=r[o[a]],u=o[a+1];wn(4,c,u);try{u.call(c)}finally{wn(5,c,u)}}else{wn(4,r,o);try{o.call(r)}finally{wn(5,r,o)}}}}}function cw(t,i,e){return qA(t,i.parent,e)}function qA(t,i,e){let n=i;for(;n!==null&&n.type&40;)i=n,n=i.parent;if(n===null)return e[Mn];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===Dn.None||o===Dn.Emulated)return null}return zi(n,e)}}function Xc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function dw(t,i,e){t.appendChild(i,e)}function yy(t,i,e,n,r){n!==null?Xc(t,i,e,n,r):dw(t,i,e)}function ZA(t,i,e,n){t.removeChild(i,e,n)}function cp(t,i){return t.parentNode(i)}function YA(t,i){return t.nextSibling(i)}function uw(t,i,e){return KA(t,i,e)}function QA(t,i,e){return t.type&40?zi(t,e):null}var KA=QA,wy;function Dd(t,i,e,n){let r=cw(t,n,i),o=i[pt],a=n.parent||i[Ei],c=uw(a,n,i);if(r!=null)if(Array.isArray(e))for(let u=0;u<e.length;u++)yy(o,r,e[u],c,!1);else yy(o,r,e,c,!1);wy!==void 0&&wy(o,n,i,e,r)}function zc(t,i){if(i!==null){let e=i.type;if(e&3)return zi(i,t);if(e&4)return rm(-1,t[i.index]);if(e&8){let n=i.child;if(n!==null)return zc(t,n);{let r=t[i.index];return Qn(r)?rm(-1,r):In(r)}}else{if(e&32)return lp(i,t)()||In(t[i.index]);{let n=hw(t,i);if(n!==null){if(Array.isArray(n))return n[0];let r=Ma(t[Bi]);return zc(r,n)}else return zc(t,i.next)}}}return null}function hw(t,i){if(i!==null){let n=t[Bi][Ei],r=i.projection;return n.projection[r]}return null}function rm(t,i){let e=ii+t+1;if(e<i.length){let n=i[e],r=n[Se].firstChild;if(r!==null)return zc(n,r)}return i[Qr]}function XA(t,i,e){let n=cp(t,i);n&&ZA(t,n,i,e)}function dp(t,i,e,n,r,o,a){for(;e!=null;){let c=n[e.index],u=e.type;if(a&&i===0&&(c&&mr(In(c),n),e.flags|=2),(e.flags&32)!==32)if(u&8)dp(t,i,e.child,n,r,o,!1),Yo(i,t,r,c,o);else if(u&32){let f=lp(e,n),p;for(;p=f();)Yo(i,t,r,p,o);Yo(i,t,r,c,o)}else u&16?fw(t,i,n,e,r,o):Yo(i,t,r,c,o);e=a?e.projectionNext:e.next}}function Cd(t,i,e,n,r,o){dp(e,n,t.firstChild,i,r,o,!1)}function JA(t,i,e){let n=i[pt],r=cw(t,e,i),o=e.parent||i[Ei],a=uw(o,e,i);fw(n,0,i,e,r,a)}function fw(t,i,e,n,r,o){let a=e[Bi],u=a[Ei].projection[n.projection];if(Array.isArray(u))for(let f=0;f<u.length;f++){let p=u[f];Yo(i,t,r,p,o)}else{let f=u,p=a[qt];H0(n)&&(f.flags|=128),dp(t,i,f,p,r,o,!0)}}function e1(t,i,e,n,r){let o=e[Qr],a=In(e);o!==a&&Yo(i,t,n,o,r);for(let c=ii;c<e.length;c++){let u=e[c];Cd(u[Se],u,t,i,n,o)}}function t1(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=n.indexOf("-")===-1?void 0:Yn.DashCase;r==null?t.removeStyle(e,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Yn.Important),t.setStyle(e,n,r,o))}}function i1(t,i,e){t.setAttribute(i,"style",e)}function mw(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function pw(t,i,e){let{mergedAttrs:n,classes:r,styles:o}=e;n!==null&&Lf(t,i,n),r!==null&&mw(t,i,r),o!==null&&i1(t,i,o)}var rn={};function S(t=1){gw(gt(),Ae(),Kn()+t,!1)}function gw(t,i,e,n){if(!n)if((i[xe]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Vc(i,o,e)}else{let o=t.preOrderHooks;o!==null&&jc(i,o,0,e)}Kr(e)}function b(t,i=Ze.Default){let e=Ae();if(e===null)return T(t,i);let n=Zt();return V0(n,e,di(t),i)}function Ed(){let t="invalid";throw new Error(t)}function _w(t,i,e,n,r,o){let a=We(null);try{let c=null;r&D.SignalBased&&(c=i[n][dr]),c!==null&&c.transformFn!==void 0&&(o=c.transformFn(o)),r&D.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(i,o)),t.setInput!==null?t.setInput(i,c,o,e,n):u0(i,c,n,o)}finally{We(a)}}function n1(t,i){let e=t.hostBindingOpCodes;if(e!==null)try{for(let n=0;n<e.length;n++){let r=e[n];if(r<0)Kr(~r);else{let o=r,a=e[++n],c=e[++n];RT(a,o);let u=i[o];c(2,u)}}}finally{Kr(-1)}}function Id(t,i,e,n,r,o,a,c,u,f,p){let _=i.blueprint.slice();return _[Mn]=r,_[xe]=n|4|128|8|64,(f!==null||t&&t[xe]&2048)&&(_[xe]|=2048),b0(_),_[qt]=_[ls]=t,_[ti]=e,_[En]=a||t&&t[En],_[pt]=c||t&&t[pt],_[is]=u||t&&t[is]||null,_[Ei]=o,_[pd]=oA(),_[ts]=p,_[d0]=f,_[Bi]=i.type==2?t[Bi]:_,_}function hs(t,i,e,n,r){let o=t.data[i];if(o===null)o=r1(t,i,e,n,r),AT()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=n,o.attrs=r;let a=MT();o.injectorIndex=a===null?-1:a.injectorIndex}return oo(o,!0),o}function r1(t,i,e,n,r){let o=x0(),a=Qm(),c=a?o:o&&o.parent,u=t.data[i]=d1(t,c,e,i,n,r);return t.firstChild===null&&(t.firstChild=u),o!==null&&(a?o.child==null&&u.parent!==null&&(o.child=u):o.next===null&&(o.next=u,u.prev=o)),u}function bw(t,i,e,n){if(e===0)return-1;let r=i.length;for(let o=0;o<e;o++)i.push(n),t.blueprint.push(n),t.data.push(null);return r}function vw(t,i,e,n,r){let o=Kn(),a=n&2;try{Kr(-1),a&&i.length>ni&&gw(t,i,ni,!1),wn(a?2:0,r),e(n,r)}finally{Kr(o),wn(a?3:1,r)}}function up(t,i,e){if(Gm(i)){let n=We(null);try{let r=i.directiveStart,o=i.directiveEnd;for(let a=r;a<o;a++){let c=t.data[a];if(c.contentQueries){let u=e[a];c.contentQueries(1,u,a)}}}finally{We(n)}}}function hp(t,i,e){y0()&&(g1(t,i,e,zi(e,i)),(e.flags&64)===64&&xw(t,i,e))}function fp(t,i,e=zi){let n=i.localNames;if(n!==null){let r=i.index+1;for(let o=0;o<n.length;o+=2){let a=n[o+1],c=a===-1?e(i,t):t[a];t[r++]=c}}}function yw(t){let i=t.tView;return i===null||i.incompleteFirstPass?t.tView=mp(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i}function mp(t,i,e,n,r,o,a,c,u,f,p){let _=ni+n,w=_+r,y=o1(_,w),C=typeof f=="function"?f():f;return y[Se]={type:t,blueprint:y,template:e,queries:null,viewQuery:c,declTNode:i,data:y.slice().fill(null,_),bindingStartIndex:_,expandoStartIndex:w,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:u,consts:C,incompleteFirstPass:!1,ssrId:p}}function o1(t,i){let e=[];for(let n=0;n<i;n++)e.push(n<t?null:rn);return e}function s1(t,i,e,n){let o=n.get(fA,Z0)||e===Dn.ShadowDom,a=t.selectRootElement(i,o);return a1(a),a}function a1(t){l1(t)}var l1=()=>null;function c1(t,i,e,n){let r=Ew(i);r.push(e),t.firstCreatePass&&Iw(t).push(n,r.length-1)}function d1(t,i,e,n,r,o){let a=i?i.injectorIndex:-1,c=0;return w0()&&(c|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xy(t,i,e,n,r){for(let o in i){if(!i.hasOwnProperty(o))continue;let a=i[o];if(a===void 0)continue;n??={};let c,u=D.None;Array.isArray(a)?(c=a[0],u=a[1]):c=a;let f=o;if(r!==null){if(!r.hasOwnProperty(o))continue;f=r[o]}t===0?Dy(n,e,f,c,u):Dy(n,e,f,c)}return n}function Dy(t,i,e,n,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(i,n):o=t[e]=[i,n],r!==void 0&&o.push(r)}function u1(t,i,e){let n=i.directiveStart,r=i.directiveEnd,o=t.data,a=i.attrs,c=[],u=null,f=null;for(let p=n;p<r;p++){let _=o[p],w=e?e.get(_):null,y=w?w.inputs:null,C=w?w.outputs:null;u=xy(0,_.inputs,p,u,y),f=xy(1,_.outputs,p,f,C);let I=u!==null&&a!==null&&!zm(i)?M1(u,p,a):null;c.push(I)}u!==null&&(u.hasOwnProperty("class")&&(i.flags|=8),u.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=c,i.inputs=u,i.outputs=f}function h1(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Md(t,i,e,n,r,o,a,c){let u=zi(i,e),f=i.inputs,p;!c&&f!=null&&(p=f[n])?(gp(t,e,p,n,r),gd(i)&&f1(e,i.index)):i.type&3?(n=h1(n),r=a!=null?a(r,i.value||"",n):r,o.setProperty(u,n,r)):i.type&12}function f1(t,i){let e=pr(i,t);e[xe]&16||(e[xe]|=64)}function pp(t,i,e,n){if(y0()){let r=n===null?null:{"":-1},o=b1(t,e),a,c;o===null?a=c=null:[a,c]=o,a!==null&&ww(t,i,e,a,r,c),r&&v1(e,n,r)}e.mergedAttrs=xa(e.mergedAttrs,e.attrs)}function ww(t,i,e,n,r,o){for(let f=0;f<n.length;f++)Wf(Kc(e,i),t,n[f].type);w1(e,t.data.length,n.length);for(let f=0;f<n.length;f++){let p=n[f];p.providersResolver&&p.providersResolver(p)}let a=!1,c=!1,u=bw(t,i,n.length,null);for(let f=0;f<n.length;f++){let p=n[f];e.mergedAttrs=xa(e.mergedAttrs,p.hostAttrs),x1(t,e,i,u,p),y1(u,p,r),p.contentQueries!==null&&(e.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(e.flags|=64);let _=p.type.prototype;!a&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),a=!0),!c&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),c=!0),u++}u1(t,e,o)}function m1(t,i,e,n,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let c=~i.index;p1(a)!=c&&a.push(c),a.push(e,n,o)}}function p1(t){let i=t.length;for(;i>0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function g1(t,i,e,n){let r=e.directiveStart,o=e.directiveEnd;gd(e)&&D1(i,e,t.data[r+e.componentOffset]),t.firstCreatePass||Kc(e,i),mr(n,i);let a=e.initialInputs;for(let c=r;c<o;c++){let u=t.data[c],f=Jr(i,t,c,e);if(mr(f,i),a!==null&&I1(i,c-r,f,u,e,a),qn(u)){let p=pr(e.index,i);p[ti]=Jr(i,t,c,e)}}}function xw(t,i,e){let n=e.directiveStart,r=e.directiveEnd,o=e.index,a=OT();try{Kr(o);for(let c=n;c<r;c++){let u=t.data[c],f=i[c];Uf(c),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&_1(u,f)}}finally{Kr(-1),Uf(a)}}function _1(t,i){t.hostBindings!==null&&t.hostBindings(1,i)}function b1(t,i){let e=t.directiveRegistry,n=null,r=null;if(e)for(let o=0;o<e.length;o++){let a=e[o];if(Jy(i,a.selectors,!1))if(n||(n=[]),qn(a))if(a.findHostDirectiveDefs!==null){let c=[];r=r||new Map,a.findHostDirectiveDefs(a,c,r),n.unshift(...c,a);let u=c.length;om(t,i,u)}else n.unshift(a),om(t,i,0);else r=r||new Map,a.findHostDirectiveDefs?.(a,n,r),n.push(a)}return n===null?null:[n,r]}function om(t,i,e){i.componentOffset=e,(t.components??=[]).push(i.index)}function v1(t,i,e){if(i){let n=t.localNames=[];for(let r=0;r<i.length;r+=2){let o=e[i[r+1]];if(o==null)throw new W(-301,!1);n.push(i[r],o)}}}function y1(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;qn(i)&&(e[""]=t)}}function w1(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function x1(t,i,e,n,r){t.data[n]=r;let o=r.factory||(r.factory=Zr(r.type,!0)),a=new Xr(o,qn(r),b);t.blueprint[n]=a,e[n]=a,m1(t,i,n,bw(t,e,r.hostVars,rn),r)}function D1(t,i,e){let n=zi(i,t),r=yw(e),o=t[En].rendererFactory,a=16;e.signals?a=4096:e.onPush&&(a=64);let c=kd(t,Id(t,r,null,a,n,i,null,o.createRenderer(n,e),null,null,null));t[i.index]=c}function C1(t,i,e,n,r,o){let a=zi(t,i);E1(i[pt],a,o,t.value,e,n,r)}function E1(t,i,e,n,r,o,a){if(o==null)t.removeAttribute(i,r,e);else{let c=a==null?va(o):a(o,n||"",r);t.setAttribute(i,r,c,e)}}function I1(t,i,e,n,r,o){let a=o[i];if(a!==null)for(let c=0;c<a.length;){let u=a[c++],f=a[c++],p=a[c++],_=a[c++];_w(n,e,u,f,p,_)}}function M1(t,i,e){let n=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let a=t[o];for(let c=0;c<a.length;c+=3)if(a[c]===i){n.push(o,a[c+1],a[c+2],e[r+1]);break}}r+=2}return n}function Dw(t,i,e,n){return[t,!0,0,i,null,n,null,e,null,null]}function Cw(t,i){let e=t.contentQueries;if(e!==null){let n=We(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a!==-1){let c=t.data[a];ep(o),c.contentQueries(2,i[a],a)}}}finally{We(n)}}}function kd(t,i){return t[Ea]?t[cy][nn]=i:t[Ea]=i,t[cy]=i,i}function sm(t,i,e){ep(0);let n=We(null);try{i(t,e)}finally{We(n)}}function Ew(t){return t[Ca]||(t[Ca]=[])}function Iw(t){return t.cleanup||(t.cleanup=[])}function Mw(t,i,e){return(t===null||qn(t))&&(e=gT(e[i.index])),e[pt]}function kw(t,i){let e=t[is],n=e?e.get(bi,null):null;n&&n.handleError(i)}function gp(t,i,e,n,r){for(let o=0;o<e.length;){let a=e[o++],c=e[o++],u=e[o++],f=i[a],p=t.data[a];_w(p,f,n,c,u,r)}}function Sw(t,i,e){let n=g0(i,t);VA(t[pt],n,e)}function k1(t,i){let e=pr(i,t),n=e[Se];S1(n,e);let r=e[Mn];r!==null&&e[ts]===null&&(e[ts]=sp(r,e[is])),_p(n,e,e[ti])}function S1(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])}function _p(t,i,e){tp(i);try{let n=t.viewQuery;n!==null&&sm(1,n,e);let r=t.template;r!==null&&vw(t,i,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),i[Gn]?.finishViewCreation(t),t.staticContentQueries&&Cw(t,i),t.staticViewQueries&&sm(2,t.viewQuery,e);let o=t.components;o!==null&&T1(i,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[xe]&=-5,ip()}}function T1(t,i){for(let e=0;e<i.length;e++)k1(t,i[e])}function Sd(t,i,e,n){let r=We(null);try{let o=i.tView,c=t[xe]&4096?4096:16,u=Id(t,o,e,c,null,i,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),f=t[i.index];u[Fa]=f;let p=t[Gn];return p!==null&&(u[Gn]=p.createEmbeddedView(o)),_p(o,u,e),u}finally{We(r)}}function Tw(t,i){let e=ii+i;if(e<t.length)return t[e]}function Sa(t,i){return!i||i.firstChild===null||H0(t)}function Td(t,i,e,n=!0){let r=i[Se];if(UA(r,i,t,e),n){let a=rm(e,t),c=i[pt],u=cp(c,t[Qr]);u!==null&&zA(r,t[Ei],c,i,u,a)}let o=i[ts];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Aw(t,i){let e=ka(t,i);return e!==void 0&&xd(e[Se],e),e}function Jc(t,i,e,n,r=!1){for(;e!==null;){let o=i[e.index];o!==null&&n.push(In(o)),Qn(o)&&A1(o,n);let a=e.type;if(a&8)Jc(t,i,e.child,n);else if(a&32){let c=lp(e,i),u;for(;u=c();)n.push(u)}else if(a&16){let c=hw(i,e);if(Array.isArray(c))n.push(...c);else{let u=Ma(i[Bi]);Jc(u[Se],u,c,n,!0)}}e=r?e.projectionNext:e.next}return n}function A1(t,i){for(let e=ii;e<t.length;e++){let n=t[e],r=n[Se].firstChild;r!==null&&Jc(n[Se],n,r,i)}t[Qr]!==t[Mn]&&i.push(t[Qr])}var Rw=[];function R1(t){return t[Yr]??O1(t)}function O1(t){let i=Rw.pop()??Object.create(F1);return i.lView=t,i}function P1(t){t.lView[Yr]!==t&&(t.lView=null,Rw.push(t))}var F1=Nt(ye({},Jl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ia(t.lView)},consumerOnSignalRead(){this.lView[Yr]=this}}),Ow=100;function Pw(t,i=!0,e=0){let n=t[En],r=n.rendererFactory,o=!1;o||r.begin?.();try{N1(t,e)}catch(a){throw i&&kw(t,a),a}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function N1(t,i){am(t,i);let e=0;for(;Ym(t);){if(e===Ow)throw new W(103,!1);e++,am(t,1)}}function L1(t,i,e,n){let r=i[xe];if((r&256)===256)return;let o=!1;!o&&i[En].inlineEffectRunner?.flush(),tp(i);let a=null,c=null;!o&&V1(t)&&(c=R1(i),a=Xh(c));try{b0(i),TT(t.bindingStartIndex),e!==null&&vw(t,i,e,2,n);let u=(r&3)===3;if(!o)if(u){let _=t.preOrderCheckHooks;_!==null&&Vc(i,_,null)}else{let _=t.preOrderHooks;_!==null&&jc(i,_,0,null),yf(i,0)}if(j1(i),Fw(i,0),t.contentQueries!==null&&Cw(t,i),!o)if(u){let _=t.contentCheckHooks;_!==null&&Vc(i,_)}else{let _=t.contentHooks;_!==null&&jc(i,_,1),yf(i,1)}n1(t,i);let f=t.components;f!==null&&Lw(i,f,0);let p=t.viewQuery;if(p!==null&&sm(2,p,n),!o)if(u){let _=t.viewCheckHooks;_!==null&&Vc(i,_)}else{let _=t.viewHooks;_!==null&&jc(i,_,2),yf(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lc]){for(let _ of i[Lc])_();i[Lc]=null}o||(i[xe]&=-73)}catch(u){throw Ia(i),u}finally{c!==null&&(Jh(c,a),P1(c)),ip()}}function V1(t){return t.type!==2}function Fw(t,i){for(let e=$0(t);e!==null;e=W0(e))for(let n=ii;n<e.length;n++){let r=e[n];Nw(r,i)}}function j1(t){for(let i=$0(t);i!==null;i=W0(i)){if(!(i[xe]&Wm.HasTransplantedViews))continue;let e=i[ns];for(let n=0;n<e.length;n++){let r=e[n],o=r[qt];vT(r)}}}function B1(t,i,e){let n=pr(i,t);Nw(n,e)}function Nw(t,i){Zm(t)&&am(t,i)}function am(t,i){let n=t[Se],r=t[xe],o=t[Yr],a=!!(i===0&&r&16);if(a||=!!(r&64&&i===0),a||=!!(r&1024),a||=!!(o?.dirty&&ec(o)),o&&(o.dirty=!1),t[xe]&=-9217,a)L1(n,t,n.template,t[ti]);else if(r&8192){Fw(t,1);let c=n.components;c!==null&&Lw(t,c,1)}}function Lw(t,i,e){for(let n=0;n<i.length;n++)B1(t,i[n],e)}function bp(t){for(t[En].changeDetectionScheduler?.notify();t;){t[xe]|=64;let i=Ma(t);if(cT(t)&&!i)return t;t=i}return null}var to=class{get rootNodes(){let i=this._lView,e=i[Se];return Jc(e,i,e.firstChild,[])}constructor(i,e,n=!0){this._lView=i,this._cdRefInjectingView=e,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ti]}set context(i){this._lView[ti]=i}get destroyed(){return(this._lView[xe]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let i=this._lView[qt];if(Qn(i)){let e=i[qc],n=e?e.indexOf(this):-1;n>-1&&(ka(i,n),Wc(e,n))}this._attachedToViewContainer=!1}xd(this._lView[Se],this._lView)}onDestroy(i){v0(this._lView,i)}markForCheck(){bp(this._cdRefInjectingView||this._lView)}detach(){this._lView[xe]&=-129}reattach(){Hf(this._lView),this._lView[xe]|=128}detectChanges(){this._lView[xe]|=1024,Pw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,aw(this._lView[Se],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=i,Hf(this._lView)}},yt=(()=>{class t{static{this.__NG_ELEMENT_ID__=U1}}return t})(),z1=yt,H1=class extends z1{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let r=Sd(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new to(r)}};function U1(){return Ad(Zt(),Ae())}function Ad(t,i){return t.type&4?new H1(i,t,ds(t,i)):null}var b$=new RegExp(`^(\\d+)*(${uA}|${dA})*(.*)`);var $1=()=>null;function Ta(t,i){return $1(t,i)}var Aa=class{},lm=class{},ed=class{};function W1(t){let i=Error(`No component factory found for ${Di(t)}.`);return i[G1]=t,i}var G1="ngComponent";var cm=class{resolveComponentFactory(i){throw W1(i)}},so=(()=>{class t{static{this.NULL=new cm}}return t})(),io=class{},fs=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>q1()}}return t})();function q1(){let t=Ae(),i=Zt(),e=pr(i.index,t);return(Gr(e)?e:t)[pt]}var Z1=(()=>{class t{static{this.\u0275prov=j({token:t,providedIn:"root",factory:()=>null})}}return t})(),Ef={};var Cy=new Set;function er(t){Cy.has(t)||(Cy.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Ey(...t){}function Y1(){let t=typeof Wr.requestAnimationFrame=="function",i=Wr[t?"requestAnimationFrame":"setTimeout"],e=Wr[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){let n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}var G=class t{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new B(!1),this.onMicrotaskEmpty=new B(!1),this.onStable=new B(!1),this.onError=new B(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=Y1().nativeRequestAnimationFrame,X1(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new W(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,Q1,Ey,Ey);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Q1={};function vp(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function K1(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Wr,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dm(t),t.isCheckStableRunning=!0,vp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dm(t))}function X1(t){let i=()=>{K1(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,c)=>{if(J1(c))return e.invokeTask(r,o,a,c);try{return Iy(t),e.invokeTask(r,o,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),My(t)}},onInvoke:(e,n,r,o,a,c,u)=>{try{return Iy(t),e.invoke(r,o,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&i(),My(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,dm(t),vp(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function dm(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Iy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function My(t){t._nesting--,vp(t)}function J1(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Vw=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of e)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=j({token:t,providedIn:"root",factory:()=>new t})}}return t})();function td(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(i!==null)for(let a=0;a<i.length;a++){let c=i[a];if(typeof c=="number")o=c;else if(o==1)r=Of(r,c);else if(o==2){let u=c,f=i[++a];n=Of(n,u+": "+f+";")}}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=r:t.classesWithoutHost=r}var um=class extends so{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=Jo(i);return new id(e,this.ngModule)}};function ky(t){let i=[];for(let e in t){if(!t.hasOwnProperty(e))continue;let n=t[e];n!==void 0&&i.push({propName:Array.isArray(n)?n[0]:n,templateName:e})}return i}function eR(t){let i=t.toLowerCase();return i==="svg"?p0:i==="math"?fT:null}var hm=class{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=dd(n);let r=this.injector.get(i,Ef,n);return r!==Ef||e===Ef?r:this.parentInjector.get(i,e,n)}},id=class extends ed{get inputs(){let i=this.componentDef,e=i.inputTransforms,n=ky(i.inputs);if(e!==null)for(let r of n)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return n}get outputs(){return ky(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=$S(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=We(null);try{r=r||this.ngModule;let a=r instanceof Cn?r:r?.injector;a&&this.componentDef.getStandaloneInjector!==null&&(a=this.componentDef.getStandaloneInjector(a)||a);let c=a?new hm(i,a):i,u=c.get(io,null);if(u===null)throw new W(407,!1);let f=c.get(Z1,null),p=c.get(Vw,null),_=c.get(Aa,null),w={rendererFactory:u,sanitizer:f,inlineEffectRunner:null,afterRenderEventManager:p,changeDetectionScheduler:_},y=u.createRenderer(null,this.componentDef),C=this.componentDef.selectors[0][0]||"div",I=n?s1(y,n,this.componentDef.encapsulation,c):sw(y,C,eR(C)),A=512;this.componentDef.signals?A|=4096:this.componentDef.onPush||(A|=16);let z=null;I!==null&&(z=sp(I,c,!0));let Ne=mp(0,null,null,1,0,null,null,null,null,null,null),be=Id(null,Ne,null,A,null,null,w,y,c,null,z);tp(be);let qe,zt;try{let st=this.componentDef,at,Dt=null;st.findHostDirectiveDefs?(at=[],Dt=new Map,st.findHostDirectiveDefs(st,at,Dt),at.push(st)):at=[st];let ft=tR(be,I),Ct=iR(ft,I,st,at,be,w,y);zt=qm(Ne,ni),I&&oR(y,st,I,n),e!==void 0&&sR(zt,this.ngContentSelectors,e),qe=rR(Ct,st,at,Dt,be,[aR]),_p(Ne,be,null)}finally{ip()}return new fm(this.componentType,qe,ds(zt,be),be,zt)}finally{We(o)}}},fm=class extends lm{constructor(i,e,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new to(r,void 0,!1),this.componentType=i}setInput(i,e){let n=this._tNode.inputs,r;if(n!==null&&(r=n[i])){if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView;gp(o[Se],o,r,i,e),this.previousInputValues.set(i,e);let a=pr(this._tNode.index,o);bp(a)}}get injector(){return new qr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function tR(t,i){let e=t[Se],n=ni;return t[n]=i,hs(e,n,2,"#host",null)}function iR(t,i,e,n,r,o,a){let c=r[Se];nR(n,t,i,a);let u=null;i!==null&&(u=sp(i,r[is]));let f=o.rendererFactory.createRenderer(i,e),p=16;e.signals?p=4096:e.onPush&&(p=64);let _=Id(r,yw(e),null,p,r[t.index],t,o,f,null,null,u);return c.firstCreatePass&&om(c,t,n.length-1),kd(r,_),r[t.index]=_}function nR(t,i,e,n){for(let r of t)i.mergedAttrs=xa(i.mergedAttrs,r.hostAttrs);i.mergedAttrs!==null&&(td(i,i.mergedAttrs,!0),e!==null&&pw(n,e,i))}function rR(t,i,e,n,r,o){let a=Zt(),c=r[Se],u=zi(a,r);ww(c,r,a,e,null,n);for(let p=0;p<e.length;p++){let _=a.directiveStart+p,w=Jr(r,c,_,a);mr(w,r)}xw(c,r,a),u&&mr(u,r);let f=Jr(r,c,a.directiveStart+a.componentOffset,a);if(t[ti]=r[ti]=f,o!==null)for(let p of o)p(f,i);return up(c,a,r),f}function oR(t,i,e,n){if(n)Lf(t,e,["ng-version","17.3.12"]);else{let{attrs:r,classes:o}=WS(i.selectors[0]);r&&Lf(t,e,r),o&&o.length>0&&mw(t,e,o.join(" "))}}function sR(t,i,e){let n=t.projection=[];for(let r=0;r<i.length;r++){let o=e[r];n.push(o!=null?Array.from(o):null)}}function aR(){let t=Zt();yd(Ae()[Se],t)}var _t=(()=>{class t{static{this.__NG_ELEMENT_ID__=lR}}return t})();function lR(){let t=Zt();return Bw(t,Ae())}var cR=_t,jw=class extends cR{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return ds(this._hostTNode,this._hostLView)}get injector(){return new qr(this._hostTNode,this._hostLView)}get parentInjector(){let i=np(this._hostTNode,this._hostLView);if(R0(i)){let e=Yc(i,this._hostLView),n=Zc(i),r=e[Se].data[n+8];return new qr(r,e)}else return new qr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Sy(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-ii}createEmbeddedView(i,e,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let a=Ta(this._lContainer,i.ssrId),c=i.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(c,r,Sa(this._hostTNode,a)),c}createComponent(i,e,n,r,o){let a=i&&!lT(i),c;if(a)c=e;else{let C=e||{};c=C.index,n=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}let u=a?i:new id(Jo(i)),f=n||this.parentInjector;if(!o&&u.ngModule==null){let I=(a?f:this.parentInjector).get(Cn,null);I&&(o=I)}let p=Jo(u.componentType??{}),_=Ta(this._lContainer,p?.id??null),w=_?.firstChild??null,y=u.create(f,r,w,o);return this.insertImpl(y.hostView,c,Sa(this._hostTNode,_)),y}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(bT(r)){let c=this.indexOf(i);if(c!==-1)this.detach(c);else{let u=r[qt],f=new jw(u,u[Ei],u[qt]);f.detach(f.indexOf(i))}}let o=this._adjustIndex(e),a=this._lContainer;return Td(a,r,o,n),i.attachToViewContainerRef(),qy(If(a),o,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Sy(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=ka(this._lContainer,e);n&&(Wc(If(this._lContainer),e),xd(n[Se],n))}detach(i){let e=this._adjustIndex(i,-1),n=ka(this._lContainer,e);return n&&Wc(If(this._lContainer),e)!=null?new to(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Sy(t){return t[qc]}function If(t){return t[qc]||(t[qc]=[])}function Bw(t,i){let e,n=i[t.index];return Qn(n)?e=n:(e=Dw(n,i,null,t),i[t.index]=e,kd(i,e)),uR(e,i,t,n),new jw(e,t,i)}function dR(t,i){let e=t[pt],n=e.createComment(""),r=zi(i,t),o=cp(e,r);return Xc(e,o,n,YA(e,r),!1),n}var uR=mR,hR=()=>!1;function fR(t,i,e){return hR(t,i,e)}function mR(t,i,e,n){if(t[Qr])return;let r;e.type&8?r=In(n):r=dR(i,e),t[Qr]=r}var mm=class t{constructor(i){this.queryList=i,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},pm=class t{constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){let a=e.getByIndex(o),c=this.queries[a.indexInDeclarationView];r.push(c.clone())}return new t(r)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}finishViewCreation(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)yp(i,e).matches!==null&&this.queries[e].setDirty()}},nd=class{constructor(i,e,n=null){this.flags=e,this.read=n,typeof i=="string"?this.predicate=xR(i):this.predicate=i}},gm=class t{constructor(i=[]){this.queries=i}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){let r=e!==null?e.length:0,o=this.getByIndex(n).embeddedTView(i,r);o&&(o.indexInDeclarationView=n,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}},_m=class t{constructor(i,e=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new t(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,n=i.parent;for(;n!==null&&n.type&8&&n.index!==e;)n=n.parent;return e===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(i,e,pR(e,o)),this.matchTNodeWithReadOption(i,e,Bc(e,i,o,!1,!1))}else n===yt?e.type&4&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,Bc(e,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===H||r===_t||r===yt&&e.type&4)this.addMatch(e.index,-2);else{let o=Bc(e,i,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}addMatch(i,e){this.matches===null?this.matches=[i,e]:this.matches.push(i,e)}};function pR(t,i){let e=t.localNames;if(e!==null){for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1]}return null}function gR(t,i){return t.type&11?ds(t,i):t.type&4?Ad(t,i):null}function _R(t,i,e,n){return e===-1?gR(i,t):e===-2?bR(t,i,n):Jr(t,t[Se],e,i)}function bR(t,i,e){if(e===H)return ds(i,t);if(e===yt)return Ad(i,t);if(e===_t)return Bw(i,t)}function zw(t,i,e,n){let r=i[Gn].queries[n];if(r.matches===null){let o=t.data,a=e.matches,c=[];for(let u=0;a!==null&&u<a.length;u+=2){let f=a[u];if(f<0)c.push(null);else{let p=o[f];c.push(_R(i,p,a[u+1],e.metadata.read))}}r.matches=c}return r.matches}function bm(t,i,e,n){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let a=zw(t,i,r,e);for(let c=0;c<o.length;c+=2){let u=o[c];if(u>0)n.push(a[c/2]);else{let f=o[c+1],p=i[-u];for(let _=ii;_<p.length;_++){let w=p[_];w[Fa]===w[qt]&&bm(w[Se],w,f,n)}if(p[ns]!==null){let _=p[ns];for(let w=0;w<_.length;w++){let y=_[w];bm(y[Se],y,f,n)}}}}}return n}function vR(t,i){return t[Gn].queries[i].queryList}function Hw(t,i,e){let n=new eo((e&4)===4);return c1(t,i,n,n.destroy),(i[Gn]??=new pm).queries.push(new mm(n))-1}function yR(t,i,e){let n=gt();return n.firstCreatePass&&(Uw(n,new nd(t,i,e),-1),(i&2)===2&&(n.staticViewQueries=!0)),Hw(n,Ae(),i)}function wR(t,i,e,n){let r=gt();if(r.firstCreatePass){let o=Zt();Uw(r,new nd(i,e,n),o.index),DR(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return Hw(r,Ae(),e)}function xR(t){return t.split(",").map(i=>i.trim())}function Uw(t,i,e){t.queries===null&&(t.queries=new gm),t.queries.track(new _m(i,e))}function DR(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function yp(t,i){return t.queries.getByIndex(i)}function CR(t,i){let e=t[Se],n=yp(e,i);return n.crossesNgTemplate?bm(e,t,i,[]):zw(e,t,n,i)}function Rd(t){return typeof t=="function"&&t[dr]!==void 0}function $w(t,i){er("NgSignals");let e=yv(t),n=e[dr];return i?.equal&&(n.equal=i.equal),e.set=r=>tf(n,r),e.update=r=>wv(n,r),e.asReadonly=ER.bind(e),e}function ER(){let t=this[dr];if(t.readonlyFn===void 0){let i=()=>this();i[dr]=t,t.readonlyFn=i}return t.readonlyFn}function Ww(t){return Rd(t)&&typeof t.set=="function"}function IR(t){return Object.getPrototypeOf(t.prototype).constructor}function Ee(t){let i=IR(t.type),e=!0,n=[t];for(;i;){let r;if(qn(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new W(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);let a=t;a.inputs=Pc(t.inputs),a.inputTransforms=Pc(t.inputTransforms),a.declaredInputs=Pc(t.declaredInputs),a.outputs=Pc(t.outputs);let c=r.hostBindings;c&&AR(t,c);let u=r.viewQuery,f=r.contentQueries;if(u&&SR(t,u),f&&TR(t,f),MR(t,r),dS(t.outputs,r.outputs),qn(r)&&r.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let c=o[a];c&&c.ngInherit&&c(t),c===Ee&&(e=!1)}}i=Object.getPrototypeOf(i)}kR(n)}function MR(t,i){for(let e in i.inputs){if(!i.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let n=i.inputs[e];if(n!==void 0&&(t.inputs[e]=n,t.declaredInputs[e]=i.declaredInputs[e],i.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!i.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=i.inputTransforms[r]}}}function kR(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=xa(r.hostAttrs,e=xa(e,r.hostAttrs))}}function Pc(t){return t===Xo?{}:t===_i?[]:t}function SR(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function TR(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,o)=>{i(n,r,o),e(n,r,o)}:t.contentQueries=i}function AR(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function Re(t){let i=t.inputConfig,e={};for(let n in i)if(i.hasOwnProperty(n)){let r=i[n];Array.isArray(r)&&r[3]&&(e[n]=r[3])}t.inputTransforms=e}var os=class{};var rd=class extends os{constructor(i){super(),this.componentFactoryResolver=new um(this),this.instance=null;let e=new Da([...i.providers,{provide:os,useValue:this},{provide:so,useValue:this.componentFactoryResolver}],i.parent||Um(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function RR(t,i,e=null){return new rd({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Ba=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new li(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Gw(t){return PR(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function OR(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{let e=t[Symbol.iterator](),n;for(;!(n=e.next()).done;)i(n.value)}}function PR(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function qw(t,i,e){return t[i]=e}function Ci(t,i,e){let n=t[i];return Object.is(n,e)?!1:(t[i]=e,!0)}function Zw(t,i,e,n){let r=Ci(t,i,e);return Ci(t,i+1,n)||r}function FR(t){return(t.flags&32)===32}function NR(t,i,e,n,r,o,a,c,u){let f=i.consts,p=hs(i,t,4,a||null,rs(f,c));pp(i,e,p,rs(f,u)),yd(i,p);let _=p.tView=mp(2,p,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,f,null);return i.queries!==null&&(i.queries.template(i,p),_.queries=i.queries.embeddedTView(p)),p}function J(t,i,e,n,r,o,a,c){let u=Ae(),f=gt(),p=t+ni,_=f.firstCreatePass?NR(p,f,u,i,e,n,r,o,a):f.data[p];oo(_,!1);let w=LR(f,u,_,t);bd()&&Dd(f,u,w,_),mr(w,u);let y=Dw(w,u,w,_);return u[p]=y,kd(u,y),fR(y,_,u),_d(_)&&hp(f,u,_),a!=null&&fp(u,_,c),J}var LR=VR;function VR(t,i,e,n){return vd(!0),i[pt].createComment("")}function de(t,i,e,n){let r=Ae(),o=gr();if(Ci(r,o,i)){let a=gt(),c=Na();C1(c,r,t,i,e,n)}return de}function Yw(t,i,e,n){return Ci(t,gr(),e)?i+va(e)+n:rn}function jR(t,i,e,n,r,o){let a=ST(),c=Zw(t,a,e,r);return Xm(2),c?i+va(e)+n+va(r)+o:rn}function Fc(t,i){return t<<17|i<<2}function no(t){return t>>17&32767}function BR(t){return(t&2)==2}function zR(t,i){return t&131071|i<<17}function vm(t){return t|2}function ss(t){return(t&131068)>>2}function Mf(t,i){return t&-131069|i<<2}function HR(t){return(t&1)===1}function ym(t){return t|1}function UR(t,i,e,n,r,o){let a=o?i.classBindings:i.styleBindings,c=no(a),u=ss(a);t[n]=e;let f=!1,p;if(Array.isArray(e)){let _=e;p=_[1],(p===null||Pa(_,p)>0)&&(f=!0)}else p=e;if(r)if(u!==0){let w=no(t[c+1]);t[n+1]=Fc(w,c),w!==0&&(t[w+1]=Mf(t[w+1],n)),t[c+1]=zR(t[c+1],n)}else t[n+1]=Fc(c,0),c!==0&&(t[c+1]=Mf(t[c+1],n)),c=n;else t[n+1]=Fc(u,0),c===0?c=n:t[u+1]=Mf(t[u+1],n),u=n;f&&(t[n+1]=vm(t[n+1])),Ty(t,p,n,!0),Ty(t,p,n,!1),$R(i,p,t,n,o),a=Fc(c,u),o?i.classBindings=a:i.styleBindings=a}function $R(t,i,e,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof i=="string"&&Pa(o,i)>=0&&(e[n+1]=ym(e[n+1]))}function Ty(t,i,e,n){let r=t[e+1],o=i===null,a=n?no(r):ss(r),c=!1;for(;a!==0&&(c===!1||o);){let u=t[a],f=t[a+1];WR(u,i)&&(c=!0,t[a+1]=n?ym(f):vm(f)),a=n?no(f):ss(f)}c&&(t[e+1]=n?vm(r):ym(r))}function WR(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Pa(t,i)>=0:!1}var tn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function GR(t){return t.substring(tn.key,tn.keyEnd)}function qR(t){return ZR(t),Qw(t,Kw(t,0,tn.textEnd))}function Qw(t,i){let e=tn.textEnd;return e===i?-1:(i=tn.keyEnd=YR(t,tn.key=i,e),Kw(t,i,e))}function ZR(t){tn.key=0,tn.keyEnd=0,tn.value=0,tn.valueEnd=0,tn.textEnd=t.length}function Kw(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function YR(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i}function V(t,i,e){let n=Ae(),r=gr();if(Ci(n,r,i)){let o=gt(),a=Na();Md(o,a,n,t,i,n[pt],e,!1)}return V}function wm(t,i,e,n,r){let o=i.inputs,a=r?"class":"style";gp(t,e,o[a],a,n)}function Lt(t,i,e){return Jw(t,i,e,!1),Lt}function oe(t,i){return Jw(t,i,null,!0),oe}function Rt(t){ex(tO,Xw,t,!0)}function Xw(t,i){for(let e=qR(i);e>=0;e=Qw(i,e))ud(t,GR(i),!0)}function Jw(t,i,e,n){let r=Ae(),o=gt(),a=Xm(2);if(o.firstUpdatePass&&ix(o,t,a,n),i!==rn&&Ci(r,a,i)){let c=o.data[Kn()];nx(o,c,r,r[pt],t,r[a+1]=nO(i,e),n,a)}}function ex(t,i,e,n){let r=gt(),o=Xm(2);r.firstUpdatePass&&ix(r,null,o,n);let a=Ae();if(e!==rn&&Ci(a,o,e)){let c=r.data[Kn()];if(rx(c,n)&&!tx(r,o)){let u=n?c.classesWithoutHost:c.stylesWithoutHost;u!==null&&(e=Of(u,e||"")),wm(r,c,a,e,n)}else iO(r,c,a,a[pt],a[o+1],a[o+1]=eO(t,i,e),n,o)}}function tx(t,i){return i>=t.expandoStartIndex}function ix(t,i,e,n){let r=t.data;if(r[e+1]===null){let o=r[Kn()],a=tx(t,e);rx(o,n)&&i===null&&!a&&(i=!1),i=QR(r,o,i,n),UR(r,o,i,e,a,n)}}function QR(t,i,e,n){let r=Jm(t),o=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=kf(null,t,i,e,n),e=Ra(e,i.attrs,n),o=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==r)if(e=kf(r,t,i,e,n),o===null){let u=KR(t,i,n);u!==void 0&&Array.isArray(u)&&(u=kf(null,t,i,u[1],n),u=Ra(u,i.attrs,n),XR(t,i,n,u))}else o=JR(t,i,n)}return o!==void 0&&(n?i.residualClasses=o:i.residualStyles=o),e}function KR(t,i,e){let n=e?i.classBindings:i.styleBindings;if(ss(n)!==0)return t[no(n)]}function XR(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[no(r)]=n}function JR(t,i,e){let n,r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;n=Ra(n,a,e)}return Ra(n,i.attrs,e)}function kf(t,i,e,n,r){let o=null,a=e.directiveEnd,c=e.directiveStylingLast;for(c===-1?c=e.directiveStart:c++;c<a&&(o=i[c],n=Ra(n,o.hostAttrs,r),o!==t);)c++;return t!==null&&(e.directiveStylingLast=c),n}function Ra(t,i,e){let n=e?1:2,r=-1;if(i!==null)for(let o=0;o<i.length;o++){let a=i[o];typeof a=="number"?r=a:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),ud(t,a,e?!0:i[++o]))}return t===void 0?null:t}function eO(t,i,e){if(e==null||e==="")return _i;let n=[],r=Xn(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&i(n,r);return n}function tO(t,i,e){let n=String(i);n!==""&&!n.includes(" ")&&ud(t,n,e)}function iO(t,i,e,n,r,o,a,c){r===rn&&(r=_i);let u=0,f=0,p=0<r.length?r[0]:null,_=0<o.length?o[0]:null;for(;p!==null||_!==null;){let w=u<r.length?r[u+1]:void 0,y=f<o.length?o[f+1]:void 0,C=null,I;p===_?(u+=2,f+=2,w!==y&&(C=_,I=y)):_===null||p!==null&&p<_?(u+=2,C=p):(f+=2,C=_,I=y),C!==null&&nx(t,i,e,n,C,I,a,c),p=u<r.length?r[u]:null,_=f<o.length?o[f]:null}}function nx(t,i,e,n,r,o,a,c){if(!(i.type&3))return;let u=t.data,f=u[c+1],p=HR(f)?Ay(u,i,e,r,ss(f),a):void 0;if(!od(p)){od(o)||BR(f)&&(o=Ay(u,null,e,r,c,a));let _=g0(Kn(),e);t1(n,a,_,r,o)}}function Ay(t,i,e,n,r,o){let a=i===null,c;for(;r>0;){let u=t[r],f=Array.isArray(u),p=f?u[1]:u,_=p===null,w=e[r+1];w===rn&&(w=_?_i:void 0);let y=_?bf(w,n):p===n?w:void 0;if(f&&!od(y)&&(y=bf(u,n)),od(y)&&(c=y,a))return c;let C=t[r+1];r=a?no(C):ss(C)}if(i!==null){let u=o?i.residualClasses:i.residualStyles;u!=null&&(c=bf(u,n))}return c}function od(t){return t!==void 0}function nO(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Di(Xn(t)))),t}function rx(t,i){return(t.flags&(i?8:16))!==0}function ox(t,i,e){let n=Ae(),r=Yw(n,t,i,e);ex(ud,Xw,r,!0)}var xm=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),r=Math.max(i,e),o=this.detach(r);if(r-n>1){let a=this.detach(n);this.attach(n,o),this.attach(r,a)}else this.attach(n,o)}move(i,e){this.attach(e,this.detach(i))}};function Sf(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function rO(t,i,e){let n,r,o=0,a=t.length-1;if(Array.isArray(i)){let c=i.length-1;for(;o<=a&&o<=c;){let u=t.at(o),f=i[o],p=Sf(o,u,o,f,e);if(p!==0){p<0&&t.updateValue(o,f),o++;continue}let _=t.at(a),w=i[c],y=Sf(a,_,c,w,e);if(y!==0){y<0&&t.updateValue(a,w),a--,c--;continue}let C=e(o,u),I=e(a,_),A=e(o,f);if(Object.is(A,I)){let z=e(c,w);Object.is(z,C)?(t.swap(o,a),t.updateValue(a,w),c--,a--):t.move(a,o),t.updateValue(o,f),o++;continue}if(n??=new sd,r??=Oy(t,o,a,e),Dm(t,n,o,A))t.updateValue(o,f),o++,a++;else if(r.has(A))n.set(C,t.detach(o)),a--;else{let z=t.create(o,i[o]);t.attach(o,z),o++,a++}}for(;o<=c;)Ry(t,n,e,o,i[o]),o++}else if(i!=null){let c=i[Symbol.iterator](),u=c.next();for(;!u.done&&o<=a;){let f=t.at(o),p=u.value,_=Sf(o,f,o,p,e);if(_!==0)_<0&&t.updateValue(o,p),o++,u=c.next();else{n??=new sd,r??=Oy(t,o,a,e);let w=e(o,p);if(Dm(t,n,o,w))t.updateValue(o,p),o++,a++,u=c.next();else if(!r.has(w))t.attach(o,t.create(o,p)),o++,a++,u=c.next();else{let y=e(o,f);n.set(y,t.detach(o)),a--}}}for(;!u.done;)Ry(t,n,e,t.length,u.value),u=c.next()}for(;o<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function Dm(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Ry(t,i,e,n,r){if(Dm(t,i,n,e(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function Oy(t,i,e,n){let r=new Set;for(let o=i;o<=e;o++)r.add(n(o,t.at(o)));return r}var sd=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),i(n,e)}}};function Te(t,i,e){er("NgControlFlow");let n=Ae(),r=gr(),o=Mm(n,ni+t),a=0;if(Ci(n,r,i)){let c=We(null);try{if(Aw(o,a),i!==-1){let u=km(n[Se],ni+i),f=Ta(o,u.tView.ssrId),p=Sd(n,u,e,{dehydratedView:f});Td(o,p,a,Sa(u,f))}}finally{We(c)}}else{let c=Tw(o,a);c!==void 0&&(c[ti]=e)}}var Cm=class{constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-ii}};function sx(t){return t}function Od(t,i){return i}var Em=class{constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function ms(t,i,e,n,r,o,a,c,u,f,p,_,w){er("NgControlFlow");let y=u!==void 0,C=Ae(),I=c?a.bind(C[Bi][ti]):a,A=new Em(y,I);C[ni+t]=A,J(t+1,i,e,n,r,o),y&&J(t+2,u,f,p,_,w)}var Im=class extends xm{constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ii}at(i){return this.getLView(i)[ti].$implicit}attach(i,e){let n=e[ts];this.needsIndexUpdate||=i!==this.length,Td(this.lContainer,e,i,Sa(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,oO(this.lContainer,i)}create(i,e){let n=Ta(this.lContainer,this.templateTNode.tView.ssrId);return Sd(this.hostLView,this.templateTNode,new Cm(this.lContainer,e,i),{dehydratedView:n})}destroy(i){xd(i[Se],i)}updateValue(i,e){this.getLView(i)[ti].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i<this.length;i++)this.getLView(i)[ti].$index=i}getLView(i){return sO(this.lContainer,i)}};function ps(t){let i=We(null),e=Kn();try{let n=Ae(),r=n[Se],o=n[e];if(o.liveCollection===void 0){let c=e+1,u=Mm(n,c),f=km(r,c);o.liveCollection=new Im(u,n,f)}else o.liveCollection.reset();let a=o.liveCollection;if(rO(a,t,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let c=gr(),u=a.length===0;if(Ci(n,c,u)){let f=e+2,p=Mm(n,f);if(u){let _=km(r,f),w=Ta(p,_.tView.ssrId),y=Sd(n,_,void 0,{dehydratedView:w});Td(p,y,0,Sa(_,w))}else Aw(p,0)}}}finally{We(i)}}function Mm(t,i){return t[i]}function oO(t,i){return ka(t,i)}function sO(t,i){return Tw(t,i)}function km(t,i){return qm(t,i)}function aO(t,i,e,n,r,o){let a=i.consts,c=rs(a,r),u=hs(i,t,2,n,c);return pp(i,e,u,rs(a,o)),u.attrs!==null&&td(u,u.attrs,!1),u.mergedAttrs!==null&&td(u,u.mergedAttrs,!0),i.queries!==null&&i.queries.elementStart(i,u),u}function E(t,i,e,n){let r=Ae(),o=gt(),a=ni+t,c=r[pt],u=o.firstCreatePass?aO(a,o,r,i,e,n):o.data[a],f=lO(o,r,u,c,i,t);r[a]=f;let p=_d(u);return oo(u,!0),pw(c,f,u),!FR(u)&&bd()&&Dd(o,r,f,u),xT()===0&&mr(f,r),DT(),p&&(hp(o,r,u),up(o,u,r)),n!==null&&fp(r,u),E}function M(){let t=Zt();Qm()?Km():(t=t.parent,oo(t,!1));let i=t;ET(i)&&IT(),CT();let e=gt();return e.firstCreatePass&&(yd(e,t),Gm(t)&&e.queries.elementEnd(t)),i.classesWithoutHost!=null&&zT(i)&&wm(e,i,Ae(),i.classesWithoutHost,!0),i.stylesWithoutHost!=null&&HT(i)&&wm(e,i,Ae(),i.stylesWithoutHost,!1),M}function ie(t,i,e,n){return E(t,i,e,n),M(),ie}var lO=(t,i,e,n,r,o)=>(vd(!0),sw(n,r,LT()));function cO(t,i,e,n,r){let o=i.consts,a=rs(o,n),c=hs(i,t,8,"ng-container",a);a!==null&&td(c,a,!0);let u=rs(o,r);return pp(i,e,c,u),i.queries!==null&&i.queries.elementStart(i,c),c}function _r(t,i,e){let n=Ae(),r=gt(),o=t+ni,a=r.firstCreatePass?cO(o,r,n,i,e):r.data[o];oo(a,!0);let c=dO(r,n,a,t);return n[o]=c,bd()&&Dd(r,n,c,a),mr(c,n),_d(a)&&(hp(r,n,a),up(r,a,n)),e!=null&&fp(n,a),_r}function br(){let t=Zt(),i=gt();return Qm()?Km():(t=t.parent,oo(t,!1)),i.firstCreatePass&&(yd(i,t),Gm(t)&&i.queries.elementEnd(t)),br}function Vt(t,i,e){return _r(t,i,e),br(),Vt}var dO=(t,i,e,n)=>(vd(!0),jA(i[pt],""));function rt(){return Ae()}function ui(t,i,e){let n=Ae(),r=gr();if(Ci(n,r,i)){let o=gt(),a=Na();Md(o,a,n,t,i,n[pt],e,!0)}return ui}function wp(t,i,e){let n=Ae(),r=gr();if(Ci(n,r,i)){let o=gt(),a=Na(),c=Jm(o.data),u=Mw(c,a,n);Md(o,a,n,t,i,u,e,!0)}return wp}var ad="en-US";var uO=ad;function hO(t){typeof t=="string"&&(uO=t.toLowerCase().replace(/_/g,"-"))}function X(t,i,e,n){let r=Ae(),o=gt(),a=Zt();return Dp(o,r,r[pt],a,t,i,n),X}function xp(t,i){let e=Zt(),n=Ae(),r=gt(),o=Jm(r.data),a=Mw(o,e,n);return Dp(r,n,a,e,t,i),xp}function fO(t,i,e,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===e&&r[o+1]===n){let c=i[Ca],u=r[o+2];return c.length>u?c[u]:null}typeof a=="string"&&(o+=2)}return null}function Dp(t,i,e,n,r,o,a){let c=_d(n),f=t.firstCreatePass&&Iw(t),p=i[ti],_=Ew(i),w=!0;if(n.type&3||a){let I=zi(n,i),A=a?a(I):I,z=_.length,Ne=a?qe=>a(In(qe[n.index])):n.index,be=null;if(!a&&c&&(be=fO(t,i,r,n.index)),be!==null){let qe=be.__ngLastListenerFn__||be;qe.__ngNextListenerFn__=o,be.__ngLastListenerFn__=o,w=!1}else{o=Fy(n,i,p,o,!1);let qe=e.listen(A,r,o);_.push(o,qe),f&&f.push(r,Ne,z,z+1)}}else o=Fy(n,i,p,o,!1);let y=n.outputs,C;if(w&&y!==null&&(C=y[r])){let I=C.length;if(I)for(let A=0;A<I;A+=2){let z=C[A],Ne=C[A+1],zt=i[z][Ne].subscribe(o),st=_.length;_.push(o,zt),f&&f.push(r,n.index,st,-(st+1))}}}function Py(t,i,e,n){let r=We(null);try{return wn(6,i,e),e(n)!==!1}catch(o){return kw(t,o),!1}finally{wn(7,i,e),We(r)}}function Fy(t,i,e,n,r){return function o(a){if(a===Function)return n;let c=t.componentOffset>-1?pr(t.index,i):i;bp(c);let u=Py(i,e,n,a),f=o.__ngNextListenerFn__;for(;f;)u=Py(i,e,f,a)&&u,f=f.__ngNextListenerFn__;return r&&u===!1&&a.preventDefault(),u}}function $(t=1){return FT(t)}function mO(t,i){let e=null,n=jS(t);for(let r=0;r<i.length;r++){let o=i[r];if(o==="*"){e=r;continue}if(n===null?Jy(t,o,!0):HS(n,o))return r}return e}function Xe(t){let i=Ae()[Bi][Ei];if(!i.projection){let e=t?t.length:1,n=i.projection=TS(e,null),r=n.slice(),o=i.child;for(;o!==null;){let a=t?mO(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:n[a]=o,r[a]=o),o=o.next}}}function ae(t,i=0,e){let n=Ae(),r=gt(),o=hs(r,ni+t,16,null,e||null);o.projection===null&&(o.projection=i),Km(),(!n[ts]||w0())&&(o.flags&32)!==32&&JA(r,n,o)}function et(t,i,e,n){wR(t,i,e,n)}function De(t,i,e){yR(t,i,e)}function q(t){let i=Ae(),e=gt(),n=C0();ep(n+1);let r=yp(e,n);if(t.dirty&&_T(i)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=CR(i,n);t.reset(o,iA),t.notifyOnChanges()}return!0}return!1}function Z(){return vR(Ae(),C0())}function pO(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function ri(t){let i=kT();return _0(i,ni+t)}function me(t,i=""){let e=Ae(),n=gt(),r=t+ni,o=n.firstCreatePass?hs(n,r,1,i,null):n.data[r],a=gO(n,e,o,i,t);e[r]=a,bd()&&Dd(n,e,a,o),oo(o,!1)}var gO=(t,i,e,n,r)=>(vd(!0),LA(i[pt],n));function kt(t){return xt("",t,""),kt}function xt(t,i,e){let n=Ae(),r=Yw(n,t,i,e);return r!==rn&&Sw(n,Kn(),r),xt}function Cp(t,i,e,n,r){let o=Ae(),a=jR(o,t,i,e,n,r);return a!==rn&&Sw(o,Kn(),a),Cp}function Hi(t,i,e){Ww(i)&&(i=i());let n=Ae(),r=gr();if(Ci(n,r,i)){let o=gt(),a=Na();Md(o,a,n,t,i,n[pt],e,!1)}return Hi}function on(t,i){let e=Ww(t);return e&&t.set(i),e}function Ui(t,i){let e=Ae(),n=gt(),r=Zt();return Dp(n,e,e[pt],r,t,i),Ui}function _O(t,i,e){let n=gt();if(n.firstCreatePass){let r=qn(t);Sm(e,n.data,n.blueprint,r,!0),Sm(i,n.data,n.blueprint,r,!1)}}function Sm(t,i,e,n,r){if(t=di(t),Array.isArray(t))for(let o=0;o<t.length;o++)Sm(t[o],i,e,n,r);else{let o=gt(),a=Ae(),c=Zt(),u=es(t)?t:di(t.provide),f=a0(t),p=c.providerIndexes&1048575,_=c.directiveStart,w=c.providerIndexes>>20;if(es(t)||!t.multi){let y=new Xr(f,r,b),C=Af(u,i,r?p:p+w,_);C===-1?(Wf(Kc(c,a),o,u),Tf(o,t,i.length),i.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(y),a.push(y)):(e[C]=y,a[C]=y)}else{let y=Af(u,i,p+w,_),C=Af(u,i,p,p+w),I=y>=0&&e[y],A=C>=0&&e[C];if(r&&!A||!r&&!I){Wf(Kc(c,a),o,u);let z=yO(r?vO:bO,e.length,r,n,f);!r&&A&&(e[C].providerFactory=z),Tf(o,t,i.length,0),i.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(z),a.push(z)}else{let z=ax(e[r?C:y],f,!r&&n);Tf(o,t,y>-1?y:C,z)}!r&&n&&A&&e[C].componentProviders++}}}function Tf(t,i,e,n){let r=es(i),o=eT(i);if(r||o){let u=(o?di(i.useClass):i).prototype.ngOnDestroy;if(u){let f=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let p=f.indexOf(e);p===-1?f.push(e,[n,u]):f[p+1].push(n,u)}else f.push(e,u)}}}function ax(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Af(t,i,e,n){for(let r=e;r<n;r++)if(i[r]===t)return r;return-1}function bO(t,i,e,n){return Tm(this.multi,[])}function vO(t,i,e,n){let r=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Jr(e,e[Se],this.providerFactory.index,n);o=c.slice(0,a),Tm(r,o);for(let u=a;u<c.length;u++)o.push(c[u])}else o=[],Tm(r,o);return o}function Tm(t,i){for(let e=0;e<t.length;e++){let n=t[e];i.push(n())}return i}function yO(t,i,e,n,r){let o=new Xr(t,e,b);return o.multi=[],o.index=i,o.componentProviders=0,ax(o,r,n&&!e),o}function pe(t,i=[]){return e=>{e.providersResolver=(n,r)=>_O(n,r?r(t):t,i)}}var wO=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=r0(!1,e.type),r=n.length>0?RR([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=j({token:t,providedIn:"environment",factory:()=>new t(T(Cn))})}}return t})();function ue(t){er("NgStandalone"),t.getStandaloneInjector=i=>i.get(wO).getOrCreateStandaloneInjector(t)}function lx(t,i,e,n,r){return DO(Ae(),D0(),t,i,e,n,r)}function cx(t,i){let e=t[i];return e===rn?void 0:e}function xO(t,i,e,n,r,o){let a=i+e;return Ci(t,a,r)?qw(t,a+1,o?n.call(o,r):n(r)):cx(t,a+1)}function DO(t,i,e,n,r,o,a){let c=i+e;return Zw(t,c,r,o)?qw(t,c+2,a?n.call(a,r,o):n(r,o)):cx(t,c+2)}function ao(t,i){let e=gt(),n,r=t+ni;e.firstCreatePass?(n=CO(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let o=n.factory||(n.factory=Zr(n.type,!0)),a,c=gi(b);try{let u=Qc(!1),f=o();return Qc(u),pO(e,Ae(),r,f),f}finally{gi(c)}}function CO(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function lo(t,i,e){let n=t+ni,r=Ae(),o=_0(r,n);return EO(r,n)?xO(r,D0(),i,o.transform,e,o):o.transform(e)}function EO(t,i){return t[Se].data[i].pure}function co(t,i){return Ad(t,i)}var dx=new R("");function gs(t){return!!t&&typeof t.then=="function"}function Ep(t){return!!t&&typeof t.subscribe=="function"}var IO=new R(""),ux=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=U(IO,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(gs(o))e.push(o);else if(Ep(o)){let a=new Promise((c,u)=>{o.subscribe({complete:c,error:u})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),hx=new R("");function MO(){vv(()=>{throw new W(600,!1)})}function kO(t){return t.isBoundToModule}function SO(t,i,e){try{let n=e();return gs(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var _s=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=U(z0),this.afterRenderEffectManager=U(Vw),this.externalTestViews=new Set,this.beforeRender=new Y,this.afterTick=new Y,this.componentTypes=[],this.components=[],this.isStable=U(Ba).hasPendingTasks.pipe(Ke(e=>!e)),this._injector=U(Cn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){let r=e instanceof ed;if(!this._injector.get(ux).done){let w=!r&&ZS(e),y=!1;throw new W(405,y)}let a;r?a=e:a=this._injector.get(so).resolveComponentFactory(e),this.componentTypes.push(a.componentType);let c=kO(a)?void 0:this._injector.get(os),u=n||a.selector,f=a.create(Ii.NULL,[],u,c),p=f.location.nativeElement,_=f.injector.get(dx,null);return _?.registerApplication(p),f.onDestroy(()=>{this.detachView(f.hostView),Rf(this.components,f),_?.unregisterApplication(p)}),this._loadComponent(f),f}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new W(101,!1);let n=We(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,We(n)}}detectChangesInAttachedViews(e){let n=0,r=this.afterRenderEffectManager;for(;;){if(n===Ow)throw new W(103,!1);if(e){let o=n===0;this.beforeRender.next(o);for(let{_lView:a,notifyErrorHandler:c}of this._views)TO(a,o,c)}if(n++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>Am(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>Am(o))))break}}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Rf(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let n=this._injector.get(hx,[]);[...this._bootstrapListeners,...n].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Rf(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new W(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Rf(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function TO(t,i,e){!i&&!Am(t)||AO(t,e,i)}function Am(t){return Ym(t)}function AO(t,i,e){let n;e?(n=0,t[xe]|=1024):t[xe]&64?n=0:n=1,Pw(t,i,n)}var RO=(()=>{class t{constructor(){this.zone=U(G),this.applicationRef=U(_s)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function OO(t){return[{provide:G,useFactory:t},{provide:wa,multi:!0,useFactory:()=>{let i=U(RO,{optional:!0});return()=>i.initialize()}},{provide:wa,multi:!0,useFactory:()=>{let i=U(LO);return()=>{i.initialize()}}},{provide:z0,useFactory:PO}]}function PO(){let t=U(G),i=U(bi);return e=>t.runOutsideAngular(()=>i.handleError(e))}function FO(t){let i=OO(()=>new G(NO(t)));return fd([[],i])}function NO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var LO=(()=>{class t{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=U(G),this.pendingTasks=U(Ba)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function VO(){return typeof $localize<"u"&&$localize.locale||ad}var za=new R("",{providedIn:"root",factory:()=>U(za,Ze.Optional|Ze.SkipSelf)||VO()});var fx=new R("");var Hc=null;function jO(t=[],i){return Ii.create({name:i,providers:[{provide:md,useValue:"platform"},{provide:fx,useValue:new Set([()=>Hc=null])},...t]})}function BO(t=[]){if(Hc)return Hc;let i=jO(t);return Hc=i,MO(),zO(i),i}function zO(t){t.get(op,null)?.forEach(e=>e())}var Le=(()=>{class t{static{this.__NG_ELEMENT_ID__=HO}}return t})();function HO(t){return UO(Zt(),Ae(),(t&16)===16)}function UO(t,i,e){if(gd(t)&&!e){let n=pr(t.index,i);return new to(n,n)}else if(t.type&47){let n=i[Bi];return new to(n,i)}return null}var Rm=class{constructor(){}supports(i){return Gw(i)}create(i){return new Om(i)}},$O=(t,i)=>i,Om=class{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||$O}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){let a=!n||e&&e.currentIndex<Ny(n,r,o)?e:n,c=Ny(a,r,o),u=a.currentIndex;if(a===n)r--,n=n._nextRemoved;else if(e=e._next,a.previousIndex==null)r++;else{o||(o=[]);let f=c-r,p=u-r;if(f!=p){for(let w=0;w<f;w++){let y=w<o.length?o[w]:o[w]=0,C=y+w;p<=C&&C<f&&(o[w]=y+1)}let _=a.previousIndex;o[_]=p-f}}c!==u&&i(a,c,u)}}forEachPreviousItem(i){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e)}forEachMovedItem(i){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)i(e)}diff(i){if(i==null&&(i=[]),!Gw(i))throw new W(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._itHead,n=!1,r,o,a;if(Array.isArray(i)){this.length=i.length;for(let c=0;c<this.length;c++)o=i[c],a=this._trackByFn(c,o),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,o,a,c),n=!0):(n&&(e=this._verifyReinsertion(e,o,a,c)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,OR(i,c=>{a=this._trackByFn(r,c),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,c,a,r),n=!0):(n&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return i===null?o=this._itTail:(o=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new Pm(e,n),o,r)),i}_verifyReinsertion(i,e,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,o=i._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new ld),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ld),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},Pm=class{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Fm=class{constructor(){this._head=null,this._tail=null}add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},ld=class{constructor(){this.map=new Map}put(i){let e=i.trackById,n=this.map.get(e);n||(n=new Fm,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ny(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+i+r}function Ly(){return new Sn([new Rm])}var Sn=(()=>{class t{static{this.\u0275prov=j({token:t,providedIn:"root",factory:Ly})}constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ly()),deps:[[t,new as,new ro]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new W(901,!1)}}return t})();function mx(t){try{let{rootComponent:i,appProviders:e,platformProviders:n}=t,r=BO(n),o=[FO(),...e||[]],c=new rd({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,u=c.get(G);return u.run(()=>{c.resolveInjectorInitializers();let f=c.get(bi,null),p;u.runOutsideAngular(()=>{p=u.onError.subscribe({next:y=>{f.handleError(y)}})});let _=()=>c.destroy(),w=r.get(fx);return w.add(_),c.onDestroy(()=>{p.unsubscribe(),w.delete(_)}),SO(f,u,()=>{let y=c.get(ux);return y.runInitializers(),y.donePromise.then(()=>{let C=c.get(za,ad);hO(C||ad);let I=c.get(_s);return i!==void 0&&I.bootstrap(i),I})})})}catch(i){return Promise.reject(i)}}function Q(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function bt(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function Ip(t){let i=We(null);try{return t()}finally{We(i)}}var WO=new R("",{providedIn:"root",factory:()=>U(GO)}),GO=(()=>{class t{static{this.\u0275prov=j({token:t,providedIn:"root",factory:()=>new Nm})}}return t})(),Nm=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=U(Ba),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(i){let e=i.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}},Lm=class{constructor(i,e,n,r,o,a){this.scheduler=i,this.effectFn=e,this.creationZone=n,this.injector=o,this.watcher=Dv(c=>this.runEffect(c),()=>this.schedule(),a),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(e){this.injector.get(bi,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Mp(t,i){er("NgSignals"),!i?.injector&&aT(Mp);let e=i?.injector??U(Ii),n=i?.manualCleanup!==!0?e.get(rp):null,r=new Lm(e.get(WO),t,typeof Zone>"u"?null:Zone.current,n,e,i?.allowSignalWrites??!1),o=e.get(Le,null,{optional:!0});return!o||!(o._lView[xe]&8)?r.watcher.notify():(o._lView[Lc]??=[]).push(r.watcher.notify),r}var yx=null;function tr(){return yx}function wx(t){yx??=t}var Pd=class{};var ge=new R(""),xx=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:()=>U(qO),providedIn:"platform"})}}return t})();var qO=(()=>{class t extends xx{constructor(){super(),this._doc=U(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return tr().getBaseHref(this._doc)}onPopState(e){let n=tr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=tr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function Dx(t,i){if(t.length==0)return i;if(i.length==0)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,e==2?t+i.substring(1):e==1?t+i:t+"/"+i}function px(t){let i=t.match(/#|\?|$/),e=i&&i.index||t.length,n=e-(t[e-1]==="/"?1:0);return t.slice(0,n)+t.slice(e)}function uo(t){return t&&t[0]!=="?"?"?"+t:t}var Pp=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:()=>U(YO),providedIn:"root"})}}return t})(),ZO=new R(""),YO=(()=>{class t extends Pp{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??U(ge).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Dx(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+uo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+uo(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+uo(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(n){return new(n||t)(T(xx),T(ZO,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Fp=(()=>{class t{constructor(e){this._subject=new B,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=XO(px(gx(n))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+uo(n))}normalize(e){return t.stripTrailingSlash(KO(this._basePath,gx(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uo(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uo(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}static{this.normalizeQueryParams=uo}static{this.joinWithSlash=Dx}static{this.stripTrailingSlash=px}static{this.\u0275fac=function(n){return new(n||t)(T(Pp))}}static{this.\u0275prov=j({token:t,factory:()=>QO(),providedIn:"root"})}}return t})();function QO(){return new Fp(T(Pp))}function KO(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function gx(t){return t.replace(/\/index.html$/,"")}function XO(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function Fd(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}var kp=/\s+/,_x=[],vr=(()=>{class t{constructor(e,n){this._ngEl=e,this._renderer=n,this.initialClasses=_x,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(kp):_x}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(kp):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(kp).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(fs))}}static{this.\u0275dir=N({type:t,selectors:[["","ngClass",""]],inputs:{klass:[D.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();var Sp=class{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Cx=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new Sp(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(o===null?void 0:o);else if(o!==null){let c=n.get(o);n.move(c,a),bx(c,r)}});for(let r=0,o=n.length;r<o;r++){let c=n.get(r).context;c.index=r,c.count=o,c.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);bx(o,r)})}static ngTemplateContextGuard(e,n){return!0}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(yt),b(Sn))}}static{this.\u0275dir=N({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function bx(t,i){t.context.$implicit=i.item}var vs=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new Tp,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){vx("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){vx("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(yt))}}static{this.\u0275dir=N({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),Tp=class{constructor(){this.$implicit=null,this.ngIf=null}};function vx(t,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Di(i)}'.`)}var Nd=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static{this.\u0275fac=function(n){return new(n||t)(b(_t))}}static{this.\u0275dir=N({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ge]})}}return t})();function JO(t,i){return new W(2100,!1)}var Ap=class{createSubscription(i,e){return Ip(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){Ip(()=>i.unsubscribe())}},Rp=class{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}},eP=new Rp,tP=new Ap,Ld=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(gs(e))return eP;if(Ep(e))return tP;throw JO(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(n){return new(n||t)(b(Le,16))}}static{this.\u0275pipe=hd({name:"async",type:t,pure:!1,standalone:!0})}}return t})();var jt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})(),Np="browser",iP="server";function Ex(t){return t===Np}function Vd(t){return t===iP}var bs=class{};var $a=class{},Bd=class{},ho=class t{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(`
|
|
8
|
+
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=i.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(c=>o.indexOf(c)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Vp=class{encodeKey(i){return Ix(i)}encodeValue(i){return Ix(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function oP(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,c]=o==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],u=e.get(a)||[];u.push(c),e.set(a,u)}),e}var sP=/%(\d[a-f0-9])/gi,aP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ix(t){return encodeURIComponent(t).replace(sP,(i,e)=>aP[e]??i)}function jd(t){return`${t}`}var yr=class t{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new Vp,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=oP(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(jd):[jd(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(jd(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(jd(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var jp=class{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function lP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mx(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function kx(t){return typeof Blob<"u"&&t instanceof Blob}function Sx(t){return typeof FormData<"u"&&t instanceof FormData}function cP(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ua=class t{constructor(i,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase();let o;if(lP(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ho,this.context??=new jp,!this.params)this.params=new yr,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),u=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+u+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Mx(this.body)||kx(this.body)||Sx(this.body)||cP(this.body)?this.body:this.body instanceof yr?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Sx(this.body)?null:kx(this.body)?this.body.type||null:Mx(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof yr?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(i={}){let e=i.method||this.method,n=i.url||this.url,r=i.responseType||this.responseType,o=i.transferCache??this.transferCache,a=i.body!==void 0?i.body:this.body,c=i.withCredentials??this.withCredentials,u=i.reportProgress??this.reportProgress,f=i.headers||this.headers,p=i.params||this.params,_=i.context??this.context;return i.setHeaders!==void 0&&(f=Object.keys(i.setHeaders).reduce((w,y)=>w.set(y,i.setHeaders[y]),f)),i.setParams&&(p=Object.keys(i.setParams).reduce((w,y)=>w.set(y,i.setParams[y]),p)),new t(e,n,a,{params:p,headers:f,context:_,reportProgress:u,responseType:r,withCredentials:c,transferCache:o})}},ys=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ys||{}),Wa=class{constructor(i,e=Ud.Ok,n="OK"){this.headers=i.headers||new ho,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Bp=class t extends Wa{constructor(i={}){super(i),this.type=ys.ResponseHeader}clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},zd=class t extends Wa{constructor(i={}){super(i),this.type=ys.Response,this.body=i.body!==void 0?i.body:null}clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Hd=class extends Wa{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},Ud=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Ud||{});function Lp(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var fo=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Ua)o=e;else{let u;r.headers instanceof ho?u=r.headers:u=new ho(r.headers);let f;r.params&&(r.params instanceof yr?f=r.params:f=new yr({fromObject:r.params})),o=new Ua(e,n,r.body!==void 0?r.body:null,{headers:u,context:r.context,params:f,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=mt(o).pipe(ff(u=>this.handler.handle(u)));if(e instanceof Ua||r.observe==="events")return a;let c=a.pipe(ut(u=>u instanceof zd));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Ke(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(Ke(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(Ke(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(Ke(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new yr().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Lp(r,n))}post(e,n,r={}){return this.request("POST",e,Lp(r,n))}put(e,n,r={}){return this.request("PUT",e,Lp(r,n))}static{this.\u0275fac=function(n){return new(n||t)(T($a))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function dP(t,i){return i(t)}function uP(t,i,e){return(n,r)=>l0(e,()=>i(n,o=>t(o,r)))}var Rx=new R(""),hP=new R(""),fP=new R("");var Tx=(()=>{class t extends $a{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=U(Ba);let r=U(fP,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Rx),...this.injector.get(hP,[])]));this.chain=r.reduceRight((o,a)=>uP(o,a,this.injector),dP)}let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(pa(()=>this.pendingTasks.remove(n)))}static{this.\u0275fac=function(n){return new(n||t)(T(Bd),T(Cn))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();var mP=/^\)\]\}',?\n/;function pP(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ax=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new W(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Jt(n.\u0275loadImpl()):mt(null)).pipe(yn(()=>new ke(o=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((I,A)=>a.setRequestHeader(I,A.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let I=e.detectContentTypeHeader();I!==null&&a.setRequestHeader("Content-Type",I)}if(e.responseType){let I=e.responseType.toLowerCase();a.responseType=I!=="json"?I:"text"}let c=e.serializeBody(),u=null,f=()=>{if(u!==null)return u;let I=a.statusText||"OK",A=new ho(a.getAllResponseHeaders()),z=pP(a)||e.url;return u=new Bp({headers:A,status:a.status,statusText:I,url:z}),u},p=()=>{let{headers:I,status:A,statusText:z,url:Ne}=f(),be=null;A!==Ud.NoContent&&(be=typeof a.response>"u"?a.responseText:a.response),A===0&&(A=be?Ud.Ok:0);let qe=A>=200&&A<300;if(e.responseType==="json"&&typeof be=="string"){let zt=be;be=be.replace(mP,"");try{be=be!==""?JSON.parse(be):null}catch(st){be=zt,qe&&(qe=!1,be={error:st,text:be})}}qe?(o.next(new zd({body:be,headers:I,status:A,statusText:z,url:Ne||void 0})),o.complete()):o.error(new Hd({error:be,headers:I,status:A,statusText:z,url:Ne||void 0}))},_=I=>{let{url:A}=f(),z=new Hd({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:A||void 0});o.error(z)},w=!1,y=I=>{w||(o.next(f()),w=!0);let A={type:ys.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(A.total=I.total),e.responseType==="text"&&a.responseText&&(A.partialText=a.responseText),o.next(A)},C=I=>{let A={type:ys.UploadProgress,loaded:I.loaded};I.lengthComputable&&(A.total=I.total),o.next(A)};return a.addEventListener("load",p),a.addEventListener("error",_),a.addEventListener("timeout",_),a.addEventListener("abort",_),e.reportProgress&&(a.addEventListener("progress",y),c!==null&&a.upload&&a.upload.addEventListener("progress",C)),a.send(c),o.next({type:ys.Sent}),()=>{a.removeEventListener("error",_),a.removeEventListener("abort",_),a.removeEventListener("load",p),a.removeEventListener("timeout",_),e.reportProgress&&(a.removeEventListener("progress",y),c!==null&&a.upload&&a.upload.removeEventListener("progress",C)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(n){return new(n||t)(T(bs))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),Ox=new R(""),gP="XSRF-TOKEN",_P=new R("",{providedIn:"root",factory:()=>gP}),bP="X-XSRF-TOKEN",vP=new R("",{providedIn:"root",factory:()=>bP}),$d=class{},yP=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(kn),T(_P))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function wP(t,i){let e=t.url.toLowerCase();if(!U(Ox)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=U($d).getToken(),r=U(vP);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}function Px(...t){let i=[fo,Ax,Tx,{provide:$a,useExisting:Tx},{provide:Bd,useExisting:Ax},{provide:Rx,useValue:wP,multi:!0},{provide:Ox,useValue:!0},{provide:$d,useClass:yP}];for(let e of t)i.push(...e.\u0275providers);return fd(i)}var $p=class extends Pd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Wp=class t extends $p{static makeCurrent(){wx(new t)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=DP();return e==null?null:CP(e)}resetBaseElement(){Ga=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Fd(document.cookie,i)}},Ga=null;function DP(){return Ga=Ga||document.querySelector("base"),Ga?Ga.getAttribute("href"):null}function CP(t){return new URL(t,document.baseURI).pathname}var EP=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),Gp=new R(""),Lx=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new W(5101,!1);return this._eventNameToPlugin.set(e,n),n}static{this.\u0275fac=function(n){return new(n||t)(T(Gp),T(G))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),Wd=class{constructor(i){this._doc=i}},Hp="ng-app-id",Vx=(()=>{class t{constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vd(o),this.resetHostNodes()}addStyles(e){for(let n of e)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(e){for(let n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){let n=this.styleRef;n.get(e)?.elements?.forEach(r=>r.remove()),n.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Hp}="${this.appId}"]`);if(e?.length){let n=new Map;return e.forEach(r=>{r.textContent!=null&&n.set(r.textContent,r)}),n}return null}changeUsageCount(e,n){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=n,o.usage}return r.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){let r=this.styleNodesInDOM,o=r?.get(n);if(o?.parentNode===e)return r.delete(n),o.removeAttribute(Hp),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(Hp,this.appId),e.appendChild(a),a}}addStyleToHost(e,n){let r=this.getStyleElement(e,n),o=this.styleRef,a=o.get(n)?.elements;a?a.push(r):o.set(n,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(La),T(Va,8),T(kn))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),Up={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Zp=/%COMP%/g,jx="%COMP%",IP=`_nghost-${jx}`,MP=`_ngcontent-${jx}`,kP=!0,SP=new R("",{providedIn:"root",factory:()=>kP});function TP(t){return MP.replace(Zp,t)}function AP(t){return IP.replace(Zp,t)}function Bx(t,i){return i.map(e=>e.replace(Zp,t))}var Gd=(()=>{class t{constructor(e,n,r,o,a,c,u,f=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=Vd(c),this.defaultRenderer=new qa(e,a,u,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Dn.ShadowDom&&(n=Nt(ye({},n),{encapsulation:Dn.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof qd?r.applyToHost(e):r instanceof Za&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,o=r.get(n.id);if(!o){let a=this.doc,c=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(n.encapsulation){case Dn.Emulated:o=new qd(u,f,n,this.appId,p,a,c,_);break;case Dn.ShadowDom:return new qp(u,f,e,n,a,c,this.nonce,_);default:o=new Za(u,f,n,p,a,c,_);break}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(n){return new(n||t)(T(Lx),T(Vx),T(La),T(SP),T(ge),T(kn),T(G),T(Va))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),qa=class{constructor(i,e,n,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(Up[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Fx(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(Fx(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new W(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let o=Up[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=Up[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Yn.DashCase|Yn.Important)?i.style.setProperty(e,n,r&Yn.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Yn.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n){if(typeof i=="string"&&(i=tr().getGlobalEventTarget(this.doc,i),!i))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function Fx(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var qp=class extends qa{constructor(i,e,n,r,o,a,c,u){super(i,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=Bx(r.id,r.styles);for(let p of f){let _=document.createElement("style");c&&_.setAttribute("nonce",c),_.textContent=p,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Za=class extends qa{constructor(i,e,n,r,o,a,c,u){super(i,o,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=u?Bx(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},qd=class extends Za{constructor(i,e,n,r,o,a,c,u){let f=r+"-"+n.id;super(i,e,n,o,a,c,u,f),this.contentAttr=TP(f),this.hostAttr=AP(f)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}},RP=(()=>{class t extends Wd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}static{this.\u0275fac=function(n){return new(n||t)(T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),Nx=["alt","control","meta","shift"],OP={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},PP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},FP=(()=>{class t extends Wd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r){let o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tr().onAndCancel(e,o.domEventName,a))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),Nx.forEach(f=>{let p=n.indexOf(f);p>-1&&(n.splice(p,1),a+=f+".")}),a+=o,n.length!=0||o.length===0)return null;let u={};return u.domEventName=r,u.fullKey=a,u}static matchEventFullKeyCode(e,n){let r=OP[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Nx.forEach(a=>{if(a!==r){let c=PP[a];c(e)&&(o+=a+".")}}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(n){return new(n||t)(T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function zx(t,i){return mx(ye({rootComponent:t},NP(i)))}function NP(t){return{appProviders:[...zP,...t?.providers??[]],platformProviders:BP}}function LP(){Wp.makeCurrent()}function VP(){return new bi}function jP(){return q0(document),document}var BP=[{provide:kn,useValue:Np},{provide:op,useValue:LP,multi:!0},{provide:ge,useFactory:jP,deps:[]}];var zP=[{provide:md,useValue:"root"},{provide:bi,useFactory:VP,deps:[]},{provide:Gp,useClass:RP,multi:!0,deps:[ge,G,kn]},{provide:Gp,useClass:FP,multi:!0,deps:[ge]},Gd,Vx,Lx,{provide:io,useExisting:Gd},{provide:bs,useClass:EP,deps:[]},[]];var Yp=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=T(HP),r},providedIn:"root"})}}return t})(),HP=(()=>{class t extends Yp{constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case yi.NONE:return n;case yi.HTML:return us(n,"HTML")?Xn(n):ow(this._doc,String(n)).toString();case yi.STYLE:return us(n,"Style")?Xn(n):n;case yi.SCRIPT:if(us(n,"Script"))return Xn(n);throw new W(5200,!1);case yi.URL:return us(n,"URL")?Xn(n):ap(String(n));case yi.RESOURCE_URL:if(us(n,"ResourceURL"))return Xn(n);throw new W(5201,!1);default:throw new W(5202,!1)}}bypassSecurityTrustHtml(e){return Y0(e)}bypassSecurityTrustStyle(e){return Q0(e)}bypassSecurityTrustScript(e){return K0(e)}bypassSecurityTrustUrl(e){return X0(e)}bypassSecurityTrustResourceUrl(e){return J0(e)}static{this.\u0275fac=function(n){return new(n||t)(T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ie=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Ie||{}),Tn="*";function sn(t,i){return{type:Ie.Trigger,name:t,definitions:i,options:{}}}function Mi(t,i=null){return{type:Ie.Animate,styles:i,timings:t}}function Hx(t,i=null){return{type:Ie.Sequence,steps:t,options:i}}function wt(t){return{type:Ie.Style,styles:t,offset:null}}function $i(t,i,e){return{type:Ie.State,name:t,styles:i,options:e}}function Qp(t){return{type:Ie.Keyframes,steps:t}}function wi(t,i,e=null){return{type:Ie.Transition,expr:t,animation:i,options:e}}function Ux(t=null){return{type:Ie.AnimateChild,options:t}}function $x(t,i,e=null){return{type:Ie.Query,selector:t,animation:i,options:e}}var wr=class{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ya=class{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Zd="!";function Wx(t){return new W(3e3,!1)}function $P(){return new W(3100,!1)}function WP(){return new W(3101,!1)}function GP(t){return new W(3001,!1)}function qP(t){return new W(3003,!1)}function ZP(t){return new W(3004,!1)}function YP(t,i){return new W(3005,!1)}function QP(){return new W(3006,!1)}function KP(){return new W(3007,!1)}function XP(t,i){return new W(3008,!1)}function JP(t){return new W(3002,!1)}function eF(t,i,e,n,r){return new W(3010,!1)}function tF(){return new W(3011,!1)}function iF(){return new W(3012,!1)}function nF(){return new W(3200,!1)}function rF(){return new W(3202,!1)}function oF(){return new W(3013,!1)}function sF(t){return new W(3014,!1)}function aF(t){return new W(3015,!1)}function lF(t){return new W(3016,!1)}function cF(t,i){return new W(3404,!1)}function dF(t){return new W(3502,!1)}function uF(t){return new W(3503,!1)}function hF(){return new W(3300,!1)}function fF(t){return new W(3504,!1)}function mF(t){return new W(3301,!1)}function pF(t,i){return new W(3302,!1)}function gF(t){return new W(3303,!1)}function _F(t,i){return new W(3400,!1)}function bF(t){return new W(3401,!1)}function vF(t){return new W(3402,!1)}function yF(t,i){return new W(3505,!1)}function xr(t){switch(t.length){case 0:return new wr;case 1:return t[0];default:return new Ya(t)}}function oD(t,i,e=new Map,n=new Map){let r=[],o=[],a=-1,c=null;if(i.forEach(u=>{let f=u.get("offset"),p=f==a,_=p&&c||new Map;u.forEach((w,y)=>{let C=y,I=w;if(y!=="offset")switch(C=t.normalizePropertyName(C,r),I){case Zd:I=e.get(y);break;case Tn:I=n.get(y);break;default:I=t.normalizeStyleValue(y,C,I,r);break}_.set(C,I)}),p||o.push(_),c=_,a=f}),r.length)throw dF(r);return o}function vg(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Kp(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Kp(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Kp(e,"destroy",t)));break}}function Kp(t,i,e){let n=e.totalTime,r=!!e.disabled,o=yg(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o}function yg(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function Si(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function Gx(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var wF=typeof document>"u"?null:document.documentElement;function wg(t){let i=t.parentNode||t.host||null;return i===wF?null:i}function xF(t){return t.substring(1,6)=="ebkit"}var mo=null,qx=!1;function DF(t){mo||(mo=CF()||{},qx=mo.style?"WebkitAppearance"in mo.style:!1);let i=!0;return mo.style&&!xF(t)&&(i=t in mo.style,!i&&qx&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in mo.style)),i}function CF(){return typeof document<"u"?document.body:null}function sD(t,i){for(;i;){if(i===t)return!0;i=wg(i)}return!1}function aD(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var xg=(()=>{class t{validateStyleProperty(e){return DF(e)}matchesElement(e,n){return!1}containsElement(e,n){return sD(e,n)}getParentElement(e){return wg(e)}query(e,n,r){return aD(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,c=[],u){return new wr(r,o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),_o=class{static{this.NOOP=new xg}},bo=class{};var EF=1e3,lD="{{",IF="}}",cD="ng-enter",ng="ng-leave",Yd="ng-trigger",eu=".ng-trigger",Zx="ng-animating",rg=".ng-animating";function ir(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:og(parseFloat(i[1]),i[2])}function og(t,i){switch(i){case"s":return t*EF;default:return t}}function tu(t,i,e){return t.hasOwnProperty("duration")?t:MF(t,i,e)}function MF(t,i,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof t=="string"){let c=t.match(n);if(c===null)return i.push(Wx(t)),{duration:0,delay:0,easing:""};r=og(parseFloat(c[1]),c[2]);let u=c[3];u!=null&&(o=og(parseFloat(u),c[4]));let f=c[5];f&&(a=f)}else r=t;if(!e){let c=!1,u=i.length;r<0&&(i.push($P()),c=!0),o<0&&(i.push(WP()),c=!0),c&&i.splice(u,0,Wx(t))}return{duration:r,delay:o,easing:a}}function kF(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function An(t,i,e){i.forEach((n,r)=>{let o=Dg(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n})}function go(t,i){i.forEach((e,n)=>{let r=Dg(n);t.style[r]=""})}function Qa(t){return Array.isArray(t)?t.length==1?t[0]:Hx(t):t}function SF(t,i,e){let n=i.params||{},r=dD(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(GP(o))})}var sg=new RegExp(`${lD}\\s*(.+?)\\s*${IF}`,"g");function dD(t){let i=[];if(typeof t=="string"){let e;for(;e=sg.exec(t);)i.push(e[1]);sg.lastIndex=0}return i}function Xa(t,i,e){let n=`${t}`,r=n.replace(sg,(o,a)=>{let c=i[a];return c==null&&(e.push(qP(a)),c=""),c.toString()});return r==n?t:r}var TF=/-+([a-z0-9])/g;function Dg(t){return t.replace(TF,(...i)=>i[1].toUpperCase())}function AF(t,i){return t===0||i===0}function RF(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;o<i.length;o++){let a=i[o];r.forEach(c=>a.set(c,Cg(t,c)))}}return i}function ki(t,i,e){switch(i.type){case Ie.Trigger:return t.visitTrigger(i,e);case Ie.State:return t.visitState(i,e);case Ie.Transition:return t.visitTransition(i,e);case Ie.Sequence:return t.visitSequence(i,e);case Ie.Group:return t.visitGroup(i,e);case Ie.Animate:return t.visitAnimate(i,e);case Ie.Keyframes:return t.visitKeyframes(i,e);case Ie.Style:return t.visitStyle(i,e);case Ie.Reference:return t.visitReference(i,e);case Ie.AnimateChild:return t.visitAnimateChild(i,e);case Ie.AnimateRef:return t.visitAnimateRef(i,e);case Ie.Query:return t.visitQuery(i,e);case Ie.Stagger:return t.visitStagger(i,e);default:throw ZP(i.type)}}function Cg(t,i){return window.getComputedStyle(t)[i]}var OF=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),iu=class extends bo{normalizePropertyName(i,e){return Dg(i)}normalizeStyleValue(i,e,n,r){let o="",a=n.toString().trim();if(OF.has(e)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let c=n.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&r.push(YP(i,n))}return a+o}};var nu="*";function PF(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>FF(n,e,i)):e.push(t),e}function FF(t,i,e){if(t[0]==":"){let u=NF(t,e);if(typeof u=="function"){i.push(u);return}t=u}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(aF(t)),i;let r=n[1],o=n[2],a=n[3];i.push(Yx(r,a));let c=r==nu&&a==nu;o[0]=="<"&&!c&&i.push(Yx(a,r))}function NF(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return i.push(lF(t)),"* => *"}}var Qd=new Set(["true","1"]),Kd=new Set(["false","0"]);function Yx(t,i){let e=Qd.has(t)||Kd.has(t),n=Qd.has(i)||Kd.has(i);return(r,o)=>{let a=t==nu||t==r,c=i==nu||i==o;return!a&&e&&typeof r=="boolean"&&(a=r?Qd.has(t):Kd.has(t)),!c&&n&&typeof o=="boolean"&&(c=o?Qd.has(i):Kd.has(i)),a&&c}}var uD=":self",LF=new RegExp(`s*${uD}s*,?`,"g");function hD(t,i,e,n){return new ag(t).build(i,e,n)}var Qx="",ag=class{constructor(i){this._driver=i}build(i,e,n){let r=new lg(e);return this._resetContextStyleTimingState(r),ki(this,Qa(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector=Qx,i.collectedStyles=new Map,i.collectedStyles.set(Qx,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0,o=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(QP()),i.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),c.type==Ie.State){let u=c,f=u.name;f.toString().split(/\s*,\s*/).forEach(p=>{u.name=p,o.push(this.visitState(u,e))}),u.name=f}else if(c.type==Ie.Transition){let u=this.visitTransition(c,e);n+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push(KP())}),{type:Ie.Trigger,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){let o=new Set,a=r||{};n.styles.forEach(c=>{c instanceof Map&&c.forEach(u=>{dD(u).forEach(f=>{a.hasOwnProperty(f)||o.add(f)})})}),o.size&&e.errors.push(XP(i.name,[...o.values()]))}return{type:Ie.State,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ki(this,Qa(i.animation),e),r=PF(i.expr,e.errors);return{type:Ie.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:po(i.options)}}visitSequence(i,e){return{type:Ie.Sequence,steps:i.steps.map(n=>ki(this,n,e)),options:po(i.options)}}visitGroup(i,e){let n=e.currentTime,r=0,o=i.steps.map(a=>{e.currentTime=n;let c=ki(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:Ie.Group,steps:o,options:po(i.options)}}visitAnimate(i,e){let n=zF(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:wt({});if(o.type==Ie.Keyframes)r=this.visitKeyframes(o,e);else{let a=i.styles,c=!1;if(!a){c=!0;let f={};n.easing&&(f.easing=n.easing),a=wt(f)}e.currentTime+=n.duration+n.delay;let u=this.visitStyle(a,e);u.isEmptyStep=c,r=u}return e.currentAnimateTimings=null,{type:Ie.Animate,timings:n,style:r,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let c of r)typeof c=="string"?c===Tn?n.push(c):e.errors.push(JP(c)):n.push(new Map(Object.entries(c)));let o=!1,a=null;return n.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o)){for(let u of c.values())if(u.toString().indexOf(lD)>=0){o=!0;break}}}),{type:Ie.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((c,u)=>{let f=e.collectedStyles.get(e.currentQuerySelector),p=f.get(u),_=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(eF(u,p.startTime,p.endTime,o,r)),_=!1),o=p.startTime),_&&f.set(u,{startTime:o,endTime:r}),e.options&&SF(c,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Ie.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(tF()),n;let r=1,o=0,a=[],c=!1,u=!1,f=0,p=i.steps.map(z=>{let Ne=this._makeStyleAst(z,e),be=Ne.offset!=null?Ne.offset:BF(Ne.styles),qe=0;return be!=null&&(o++,qe=Ne.offset=be),u=u||qe<0||qe>1,c=c||qe<f,f=qe,a.push(qe),Ne});u&&e.errors.push(iF()),c&&e.errors.push(nF());let _=i.steps.length,w=0;o>0&&o<_?e.errors.push(rF()):o==0&&(w=r/(_-1));let y=_-1,C=e.currentTime,I=e.currentAnimateTimings,A=I.duration;return p.forEach((z,Ne)=>{let be=w>0?Ne==y?1:w*Ne:a[Ne],qe=be*A;e.currentTime=C+I.delay+qe,I.duration=qe,this._validateStyleAst(z,e),z.offset=be,n.styles.push(z)}),n}visitReference(i,e){return{type:Ie.Reference,animation:ki(this,Qa(i.animation),e),options:po(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Ie.AnimateChild,options:po(i.options)}}visitAnimateRef(i,e){return{type:Ie.AnimateRef,animation:this.visitReference(i.animation,e),options:po(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,a]=VF(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,Si(e.collectedStyles,e.currentQuerySelector,new Map);let c=ki(this,Qa(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Ie.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:i.selector,options:po(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(oF());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:tu(i.timings,e.errors,!0);return{type:Ie.Stagger,animation:ki(this,Qa(i.animation),e),timings:n,options:null}}};function VF(t){let i=!!t.split(/\s*,\s*/).find(e=>e==uD);return i&&(t=t.replace(LF,"")),t=t.replace(/@\*/g,eu).replace(/@\w+/g,e=>eu+"-"+e.slice(1)).replace(/:animating/g,rg),[t,i]}function jF(t){return t?ye({},t):null}var lg=class{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function BF(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function zF(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=tu(t,i).duration;return Xp(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Xp(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=tu(e,i);return Xp(r.duration,r.delay,r.easing)}function po(t){return t?(t=ye({},t),t.params&&(t.params=jF(t.params))):t={},t}function Xp(t,i,e){return{duration:t,delay:i,easing:e}}function Eg(t,i,e,n,r,o,a=null,c=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}var Ja=class{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},HF=1,UF=":enter",$F=new RegExp(UF,"g"),WF=":leave",GF=new RegExp(WF,"g");function fD(t,i,e,n,r,o=new Map,a=new Map,c,u,f=[]){return new cg().buildKeyframes(t,i,e,n,r,o,a,c,u,f)}var cg=class{buildKeyframes(i,e,n,r,o,a,c,u,f,p=[]){f=f||new Ja;let _=new dg(i,e,f,r,o,p,[]);_.options=u;let w=u.delay?ir(u.delay):0;_.currentTimeline.delayNextStep(w),_.currentTimeline.setStyles([a],null,_.errors,u),ki(this,n,_);let y=_.timelines.filter(C=>C.containsAnimation());if(y.length&&c.size){let C;for(let I=y.length-1;I>=0;I--){let A=y[I];if(A.element===e){C=A;break}}C&&!C.allowOnlyTimelineStyles()&&C.setStyles([c],null,_.errors,u)}return y.length?y.map(C=>C.buildKeyframes()):[Eg(e,[],[],[],0,w,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let r of i){let o=r?.delay;if(o){let a=typeof o=="number"?o:ir(Xa(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime,a=n.duration!=null?ir(n.duration):null,c=n.delay!=null?ir(n.delay):null;return a!==0&&i.forEach(u=>{let f=e.appendInstructionToTimeline(u,a,c);o=Math.max(o,f.duration+f.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ki(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Ie.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ru);let a=ir(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ki(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?ir(i.options.delay):0;i.steps.forEach(a=>{let c=e.createSubContext(i.options);o&&c.delayNextStep(o),ki(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),n.push(c.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,r=e.params?Xa(n,e.params,e.errors):n;return tu(r,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let o=i.style;o.type==Ie.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,c=e.createSubContext().currentTimeline;c.easing=n.easing,i.styles.forEach(u=>{let f=u.offset||0;c.forwardTime(f*o),c.setStyles(u.styles,u.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?ir(r.delay):0;o&&(e.previousNode.type===Ie.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ru);let a=n,c=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let u=null;c.forEach((f,p)=>{e.currentQueryIndex=p;let _=e.createSubContext(i.options,f);o&&_.delayNextStep(o),f===e.element&&(u=_.currentTimeline),ki(this,i.animation,_),_.currentTimeline.applyStylesToKeyframe();let w=_.currentTimeline.currentTime;a=Math.max(a,w)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1),u=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=c-u;break;case"full":u=n.currentStaggerTime;break}let p=e.currentTimeline;u&&p.delayNextStep(u);let _=p.currentTime;ki(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-_+(r.startTime-n.currentTimeline.startTime)}},ru={},dg=class t{constructor(i,e,n,r,o,a,c,u){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new ou(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,r=this.options;n.duration!=null&&(r.duration=ir(n.duration)),n.delay!=null&&(r.delay=ir(n.delay));let o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=Xa(o[c],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new ug(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let c=[];if(r&&c.push(this.element),i.length>0){i=i.replace($F,"."+this._enterClassName),i=i.replace(GF,"."+this._leaveClassName);let u=n!=1,f=this._driver.query(this.element,i,u);n!==0&&(f=n<0?f.slice(f.length+n,f.length):f.slice(0,n)),c.push(...f)}return!o&&c.length==0&&a.push(sF(e)),c}},ou=class t{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=HF,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Tn),this._currentKeyframe.set(e,Tn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=qF(i,this._globalTimelineStyles);for(let[c,u]of a){let f=Xa(u,o,n);this._pendingStyles.set(c,f),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??Tn),this._updateStyle(c,f)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((c,u)=>{let f=new Map([...this._backFill,...c]);f.forEach((p,_)=>{p===Zd?i.add(_):p===Tn&&e.add(_)}),n||f.set("offset",u/this.duration),r.push(f)});let o=[...i.values()],a=[...e.values()];if(n){let c=r[0],u=new Map(c);c.set("offset",0),u.set("offset",1),r=[c,u]}return Eg(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},ug=class extends ou{constructor(i,e,n,r,o,a,c=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=n+e,c=e/a,u=new Map(i[0]);u.set("offset",0),o.push(u);let f=new Map(i[0]);f.set("offset",Kx(c)),o.push(f);let p=i.length-1;for(let _=1;_<=p;_++){let w=new Map(i[_]),y=w.get("offset"),C=e+y*n;w.set("offset",Kx(C/a)),o.push(w)}n=a,e=0,r="",i=o}return Eg(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function Kx(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function qF(t,i){let e=new Map,n;return t.forEach(r=>{if(r==="*"){n??=i.keys();for(let o of n)e.set(o,Tn)}else for(let[o,a]of r)e.set(o,a)}),e}function Xx(t,i,e,n,r,o,a,c,u,f,p,_,w){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:c,queriedElements:u,preStyleProps:f,postStyleProps:p,totalTime:_,errors:w}}var Jp={},su=class{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return ZF(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,c,u,f,p){let _=[],w=this.ast.options&&this.ast.options.params||Jp,y=c&&c.params||Jp,C=this.buildStyles(n,y,_),I=u&&u.params||Jp,A=this.buildStyles(r,I,_),z=new Set,Ne=new Map,be=new Map,qe=r==="void",zt={params:mD(I,w),delay:this.ast.options?.delay},st=p?[]:fD(i,e,this.ast.animation,o,a,C,A,zt,f,_),at=0;return st.forEach(Dt=>{at=Math.max(Dt.duration+Dt.delay,at)}),_.length?Xx(e,this._triggerName,n,r,qe,C,A,[],[],Ne,be,at,_):(st.forEach(Dt=>{let ft=Dt.element,Ct=Si(Ne,ft,new Set);Dt.preStyleProps.forEach(Wt=>Ct.add(Wt));let Al=Si(be,ft,new Set);Dt.postStyleProps.forEach(Wt=>Al.add(Wt)),ft!==e&&z.add(ft)}),Xx(e,this._triggerName,n,r,qe,C,A,st,[...z.values()],Ne,be,at))}};function ZF(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}function mD(t,i){let e=ye({},i);return Object.entries(t).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var hg=class{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,r=mD(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{a&&(a=Xa(a,r,e));let u=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,u,a,e),n.set(c,a)})}),n}};function YF(t,i,e){return new fg(t,i,e)}var fg=class{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new hg(r.style,o,n))}),Jx(this.states,"true","1"),Jx(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new su(i,r,this.states))}),this.fallbackTransition=QF(i,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function QF(t,i,e){let n=[(a,c)=>!0],r={type:Ie.Sequence,steps:[],options:null},o={type:Ie.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new su(t,o,i)}function Jx(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var KF=new Ja,mg=class{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){let n=[],r=[],o=hD(this._driver,e,n,r);if(n.length)throw uF(n);r.length&&void 0,this._animations.set(i,o)}_buildPlayer(i,e,n){let r=i.element,o=oD(this._normalizer,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let r=[],o=this._animations.get(i),a,c=new Map;if(o?(a=fD(this._driver,e,o,cD,ng,new Map,new Map,n,KF,r),a.forEach(p=>{let _=Si(c,p.element,new Map);p.postStyleProps.forEach(w=>_.set(w,null))})):(r.push(hF()),a=[]),r.length)throw fF(r);c.forEach((p,_)=>{p.forEach((w,y)=>{p.set(y,this._driver.computeStyle(_,y,Tn))})});let u=a.map(p=>{let _=c.get(p.element);return this._buildPlayer(p,new Map,_)}),f=xr(u);return this._playersById.set(i,f),f.onDestroy(()=>this.destroy(i)),this.players.push(f),f}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw mF(i);return e}listen(i,e,n,r){let o=yg(e,"","","");return vg(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if(n=="register"){this.register(i,r[0]);return}if(n=="create"){let a=r[0]||{};this.create(i,e,a);return}let o=this._getPlayer(i);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i);break}}},eD="ng-animate-queued",XF=".ng-animate-queued",eg="ng-animate-disabled",JF=".ng-animate-disabled",eN="ng-star-inserted",tN=".ng-star-inserted",iN=[],pD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},an="__ng_removed",el=class{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),r=n?i.value:i;if(this.value=oN(r),n){let o=i,{value:a}=o,c=Qh(o,["value"]);this.options=c}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},Ka="void",tg=new el(Ka),pg=class{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Wi(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw pF(n,e);if(n==null||n.length==0)throw gF(e);if(!sN(n))throw _F(n,e);let o=Si(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);let c=Si(this._engine.statesByElement,i,new Map);return c.has(e)||(Wi(i,Yd),Wi(i,Yd+"-"+e),c.set(e,tg)),()=>{this._engine.afterFlush(()=>{let u=o.indexOf(a);u>=0&&o.splice(u,1),this._triggers.has(e)||c.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw bF(i);return e}trigger(i,e,n,r=!0){let o=this._getTrigger(e),a=new tl(this.id,e,i),c=this._engine.statesByElement.get(i);c||(Wi(i,Yd),Wi(i,Yd+"-"+e),this._engine.statesByElement.set(i,c=new Map));let u=c.get(e),f=new el(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&f.absorbOptions(u.options),c.set(e,f),u||(u=tg),!(f.value===Ka)&&u.value===f.value){if(!cN(u.params,f.params)){let I=[],A=o.matchStyles(u.value,u.params,I),z=o.matchStyles(f.value,f.params,I);I.length?this._engine.reportError(I):this._engine.afterFlush(()=>{go(i,A),An(i,z)})}return}let w=Si(this._engine.playersByElement,i,[]);w.forEach(I=>{I.namespaceId==this.id&&I.triggerName==e&&I.queued&&I.destroy()});let y=o.matchTransition(u.value,f.value,i,f.params),C=!1;if(!y){if(!r)return;y=o.fallbackTransition,C=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:y,fromState:u,toState:f,player:a,isFallbackTransition:C}),C||(Wi(i,eD),a.onStart(()=>{ws(i,eD)})),a.onDone(()=>{let I=this.players.indexOf(a);I>=0&&this.players.splice(I,1);let A=this._engine.playersByElement.get(i);if(A){let z=A.indexOf(a);z>=0&&A.splice(z,1)}}),this.players.push(a),w.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,eu,!0);n.forEach(r=>{if(r[an])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){let o=this._engine.statesByElement.get(i),a=new Map;if(o){let c=[];if(o.forEach((u,f)=>{if(a.set(f,u.value),this._triggers.has(f)){let p=this.trigger(i,f,Ka,r);p&&c.push(p)}}),c.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&xr(c).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let u=this._triggers.get(a).fallbackTransition,f=n.get(a)||tg,p=new el(Ka),_=new tl(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:u,fromState:f,toState:p,player:_,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{let o=i[an];(!o||o===pD)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Wi(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==n.triggerName){let u=yg(o,n.triggerName,n.fromState.value,n.toState.value);u._data=i,vg(n.player,c.phase,u,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let o=n.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},gg=class{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n,r){this.bodyNode=i,this.driver=e,this._normalizer=n,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,a)=>{}}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new pg(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){let u=r.get(c);if(u){let f=n.indexOf(u);n.splice(f+1,0,i),a=!0;break}c=this.driver.getParentElement(c)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(i,e,n,r){if(Xd(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!Xd(e))return;let o=e[an];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Wi(i,eg)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),ws(i,eg))}removeNode(i,e,n){if(Xd(e)){this.scheduler?.notify();let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[an]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return Xd(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,eu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,rg,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return xr(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[an];if(e&&e.setForRemoval){if(i[an]=pD,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(eg)&&this.markElementAsDisabled(i,!1),this.driver.query(i,JF,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];Wi(r,eN)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,i)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?xr(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw vF(i)}_flushAnimations(i,e){let n=new Ja,r=[],o=new Map,a=[],c=new Map,u=new Map,f=new Map,p=new Set;this.disabledNodes.forEach(O=>{p.add(O);let he=this.driver.query(O,XF,!0);for(let F=0;F<he.length;F++)p.add(he[F])});let _=this.bodyNode,w=Array.from(this.statesByElement.keys()),y=nD(w,this.collectedEnterElements),C=new Map,I=0;y.forEach((O,he)=>{let F=cD+I++;C.set(he,F),O.forEach(ce=>Wi(ce,F))});let A=[],z=new Set,Ne=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){let he=this.collectedLeaveElements[O],F=he[an];F&&F.setForRemoval&&(A.push(he),z.add(he),F.hasAnimation?this.driver.query(he,tN,!0).forEach(ce=>z.add(ce)):Ne.add(he))}let be=new Map,qe=nD(w,Array.from(z));qe.forEach((O,he)=>{let F=ng+I++;be.set(he,F),O.forEach(ce=>Wi(ce,F))}),i.push(()=>{y.forEach((O,he)=>{let F=C.get(he);O.forEach(ce=>ws(ce,F))}),qe.forEach((O,he)=>{let F=be.get(he);O.forEach(ce=>ws(ce,F))}),A.forEach(O=>{this.processLeaveNode(O)})});let zt=[],st=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(F=>{let ce=F.player,Je=F.element;if(zt.push(ce),this.collectedEnterElements.length){let Ft=Je[an];if(Ft&&Ft.setForMove){if(Ft.previousTriggersValues&&Ft.previousTriggersValues.has(F.triggerName)){let Zi=Ft.previousTriggersValues.get(F.triggerName),Xt=this.statesByElement.get(F.element);if(Xt&&Xt.has(F.triggerName)){let fn=Xt.get(F.triggerName);fn.value=Zi,Xt.set(F.triggerName,fn)}}ce.destroy();return}}let dt=!_||!this.driver.containsElement(_,Je),Ye=be.get(Je),$e=C.get(Je),le=this._buildInstruction(F,n,$e,Ye,dt);if(le.errors&&le.errors.length){st.push(le);return}if(dt){ce.onStart(()=>go(Je,le.fromStyles)),ce.onDestroy(()=>An(Je,le.toStyles)),r.push(ce);return}if(F.isFallbackTransition){ce.onStart(()=>go(Je,le.fromStyles)),ce.onDestroy(()=>An(Je,le.toStyles)),r.push(ce);return}let Ni=[];le.timelines.forEach(Ft=>{Ft.stretchStartingKeyframe=!0,this.disabledNodes.has(Ft.element)||Ni.push(Ft)}),le.timelines=Ni,n.append(Je,le.timelines);let hn={instruction:le,player:ce,element:Je};a.push(hn),le.queriedElements.forEach(Ft=>Si(c,Ft,[]).push(ce)),le.preStyleProps.forEach((Ft,Zi)=>{if(Ft.size){let Xt=u.get(Zi);Xt||u.set(Zi,Xt=new Set),Ft.forEach((fn,Rr)=>Xt.add(Rr))}}),le.postStyleProps.forEach((Ft,Zi)=>{let Xt=f.get(Zi);Xt||f.set(Zi,Xt=new Set),Ft.forEach((fn,Rr)=>Xt.add(Rr))})});if(st.length){let O=[];st.forEach(he=>{O.push(yF(he.triggerName,he.errors))}),zt.forEach(he=>he.destroy()),this.reportError(O)}let at=new Map,Dt=new Map;a.forEach(O=>{let he=O.element;n.has(he)&&(Dt.set(he,he),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,at))}),r.forEach(O=>{let he=O.element;this._getPreviousPlayers(he,!1,O.namespaceId,O.triggerName,null).forEach(ce=>{Si(at,he,[]).push(ce),ce.destroy()})});let ft=A.filter(O=>rD(O,u,f)),Ct=new Map;iD(Ct,this.driver,Ne,f,Tn).forEach(O=>{rD(O,u,f)&&ft.push(O)});let Wt=new Map;y.forEach((O,he)=>{iD(Wt,this.driver,new Set(O),u,Zd)}),ft.forEach(O=>{let he=Ct.get(O),F=Wt.get(O);Ct.set(O,new Map([...he?.entries()??[],...F?.entries()??[]]))});let Gs=[],Kt=[],ar={};a.forEach(O=>{let{element:he,player:F,instruction:ce}=O;if(n.has(he)){if(p.has(he)){F.onDestroy(()=>An(he,ce.toStyles)),F.disabled=!0,F.overrideTotalTime(ce.totalTime),r.push(F);return}let Je=ar;if(Dt.size>1){let Ye=he,$e=[];for(;Ye=Ye.parentNode;){let le=Dt.get(Ye);if(le){Je=le;break}$e.push(Ye)}$e.forEach(le=>Dt.set(le,Je))}let dt=this._buildAnimation(F.namespaceId,ce,at,o,Wt,Ct);if(F.setRealPlayer(dt),Je===ar)Gs.push(F);else{let Ye=this.playersByElement.get(Je);Ye&&Ye.length&&(F.parentPlayer=xr(Ye)),r.push(F)}}else go(he,ce.fromStyles),F.onDestroy(()=>An(he,ce.toStyles)),Kt.push(F),p.has(he)&&r.push(F)}),Kt.forEach(O=>{let he=o.get(O.element);if(he&&he.length){let F=xr(he);O.setRealPlayer(F)}}),r.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<A.length;O++){let he=A[O],F=he[an];if(ws(he,ng),F&&F.hasAnimation)continue;let ce=[];if(c.size){let dt=c.get(he);dt&&dt.length&&ce.push(...dt);let Ye=this.driver.query(he,rg,!0);for(let $e=0;$e<Ye.length;$e++){let le=c.get(Ye[$e]);le&&le.length&&ce.push(...le)}}let Je=ce.filter(dt=>!dt.destroyed);Je.length?aN(this,he,Je):this.processLeaveNode(he)}return A.length=0,Gs.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let he=this.players.indexOf(O);this.players.splice(he,1)}),O.play()}),Gs}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){let c=this.playersByQueriedElement.get(i);c&&(a=c)}else{let c=this.playersByElement.get(i);if(c){let u=!o||o==Ka;c.forEach(f=>{f.queued||!u&&f.triggerName!=r||a.push(f)})}}return(n||r)&&(a=a.filter(c=>!(n&&n!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(i,e,n){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:i,c=e.isRemovalTransition?void 0:r;for(let u of e.timelines){let f=u.element,p=f!==o,_=Si(n,f,[]);this._getPreviousPlayers(f,p,a,c,e.toState).forEach(y=>{let C=y.getRealPlayer();C.beforeDestroy&&C.beforeDestroy(),y.destroy(),_.push(y)})}go(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){let c=e.triggerName,u=e.element,f=[],p=new Set,_=new Set,w=e.timelines.map(C=>{let I=C.element;p.add(I);let A=I[an];if(A&&A.removedBeforeQueried)return new wr(C.duration,C.delay);let z=I!==u,Ne=lN((n.get(I)||iN).map(at=>at.getRealPlayer())).filter(at=>{let Dt=at;return Dt.element?Dt.element===I:!1}),be=o.get(I),qe=a.get(I),zt=oD(this._normalizer,C.keyframes,be,qe),st=this._buildPlayer(C,zt,Ne);if(C.subTimeline&&r&&_.add(I),z){let at=new tl(i,c,I);at.setRealPlayer(st),f.push(at)}return st});f.forEach(C=>{Si(this.playersByQueriedElement,C.element,[]).push(C),C.onDone(()=>rN(this.playersByQueriedElement,C.element,C))}),p.forEach(C=>Wi(C,Zx));let y=xr(w);return y.onDestroy(()=>{p.forEach(C=>ws(C,Zx)),An(u,e.toStyles)}),_.forEach(C=>{Si(r,C,[]).push(y)}),y}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new wr(i.duration,i.delay)}},tl=class{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new wr,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>vg(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){Si(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function rN(t,i,e){let n=t.get(i);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&t.delete(i)}return n}function oN(t){return t??null}function Xd(t){return t&&t.nodeType===1}function sN(t){return t=="start"||t=="done"}function tD(t,i){let e=t.style.display;return t.style.display=i??"none",e}function iD(t,i,e,n,r){let o=[];e.forEach(u=>o.push(tD(u)));let a=[];n.forEach((u,f)=>{let p=new Map;u.forEach(_=>{let w=i.computeStyle(f,_,r);p.set(_,w),(!w||w.length==0)&&(f[an]=nN,a.push(f))}),t.set(f,p)});let c=0;return e.forEach(u=>tD(u,o[c++])),a}function nD(t,i){let e=new Map;if(t.forEach(c=>e.set(c,[])),i.length==0)return e;let n=1,r=new Set(i),o=new Map;function a(c){if(!c)return n;let u=o.get(c);if(u)return u;let f=c.parentNode;return e.has(f)?u=f:r.has(f)?u=n:u=a(f),o.set(c,u),u}return i.forEach(c=>{let u=a(c);u!==n&&e.get(u).push(c)}),e}function Wi(t,i){t.classList?.add(i)}function ws(t,i){t.classList?.remove(i)}function aN(t,i,e){xr(e).onDone(()=>t.processLeaveNode(i))}function lN(t){let i=[];return gD(t,i),i}function gD(t,i){for(let e=0;e<t.length;e++){let n=t[e];n instanceof Ya?gD(n.players,i):i.push(n)}}function cN(t,i){let e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||t[o]!==i[o])return!1}return!0}function rD(t,i,e){let n=e.get(t);if(!n)return!1;let r=i.get(t);return r?n.forEach(o=>r.add(o)):i.set(t,n),e.delete(t),!0}var xs=class{constructor(i,e,n,r){this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,a)=>{},this._transitionEngine=new gg(i.body,e,n,r),this._timelineEngine=new mg(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,a)=>this.onRemovalComplete(o,a)}registerTrigger(i,e,n,r,o){let a=i+"-"+r,c=this._triggerCache[a];if(!c){let u=[],f=[],p=hD(this._driver,o,u,f);if(u.length)throw cF(r,u);f.length&&void 0,c=YF(r,p,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if(n.charAt(0)=="@"){let[o,a]=Gx(n),c=r;this._timelineEngine.command(o,e,a,c)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if(n.charAt(0)=="@"){let[a,c]=Gx(n);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function dN(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=ig(i[0]),i.length>1&&(n=ig(i[i.length-1]))):i instanceof Map&&(e=ig(i)),e||n?new _g(t,e,n):null}var _g=class t{static{this.initialStylesByElement=new WeakMap}constructor(i,e,n){this._element=i,this._startStyles=e,this._endStyles=n,this._state=0;let r=t.initialStylesByElement.get(i);r||t.initialStylesByElement.set(i,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&An(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(An(this._element,this._initialStyles),this._endStyles&&(An(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(go(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(go(this._element,this._endStyles),this._endStyles=null),An(this._element,this._initialStyles),this._state=3)}};function ig(t){let i=null;return t.forEach((e,n)=>{uN(n)&&(i=i||new Map,i.set(n,e))}),i}function uN(t){return t==="display"||t==="position"}var au=class{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&i.set(r,this._finished?n:Cg(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},lu=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return sD(i,e)}getParentElement(i){return wg(i)}query(i,e,n){return aD(i,e,n)}computeStyle(i,e,n){return Cg(i,e)}animate(i,e,n,r,o,a=[]){let c=r==0?"both":"forwards",u={duration:n,delay:r,fill:c};o&&(u.easing=o);let f=new Map,p=a.filter(y=>y instanceof au);AF(n,r)&&p.forEach(y=>{y.currentSnapshot.forEach((C,I)=>f.set(I,C))});let _=kF(e).map(y=>new Map(y));_=RF(i,_,f);let w=dN(i,_);return new au(i,_,u,w)}};var Jd="@",_D="@.disabled",cu=class{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Jd&&e==_D?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},bg=class extends cu{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Jd?e.charAt(1)=="."&&e==_D?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if(e.charAt(0)==Jd){let r=hN(i),o=e.slice(1),a="";return o.charAt(0)!=Jd&&([o,a]=fN(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{let u=c._data||-1;this.factory.scheduleListenerCallback(u,n,c)})}return this.delegate.listen(i,e,n)}};function hN(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function fN(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var du=class{constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{let a=o?.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(i,e){let n="",r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let f=this._rendererCache,p=f.get(r);if(!p){let _=()=>f.delete(r);p=new cu(n,r,this.engine,_),f.set(r,p)}return p}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let c=f=>{Array.isArray(f)?f.forEach(c):this.engine.registerTrigger(o,a,i,f.name,f)};return e.data.animation.forEach(c),new bg(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var pN=(()=>{class t extends xs{constructor(e,n,r){super(e,n,r,U(Aa,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(_o),T(bo))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function gN(){return new iu}function _N(t,i,e){return new du(t,i,e)}var bD=[{provide:bo,useFactory:gN},{provide:xs,useClass:pN},{provide:io,useFactory:_N,deps:[Gd,xs,G]}],bN=[{provide:_o,useFactory:()=>new lu},{provide:ot,useValue:"BrowserAnimations"},...bD],kW=[{provide:_o,useClass:xg},{provide:ot,useValue:"NoopAnimations"},...bD];function vD(){return er("NgEagerAnimations"),[...bN]}var yD={providers:[Px(),vD()]};var vN=new R("cdk-dir-doc",{providedIn:"root",factory:yN});function yN(){return U(ge)}var wN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function xN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?wN.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Ot=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new B,e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=xN(n||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(n){return new(n||t)(T(vN,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})();function hu(t){return t&&typeof t.connect=="function"&&!(t instanceof la)}var Ds=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Ds||{}),il=new R("_ViewRepeater"),Cs=class{applyChanges(i,e,n,r,o){i.forEachOperation((a,c,u)=>{let f,p;if(a.previousIndex==null){let _=n(a,c,u);f=e.createEmbeddedView(_.templateRef,_.context,_.index),p=Ds.INSERTED}else u==null?(e.remove(c),p=Ds.REMOVED):(f=e.get(c),e.move(f,u),p=Ds.MOVED);o&&o({context:f?.context,operation:p,record:a})})}detach(){}};var uu=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(this._getConcreteValue(o,n))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var fu=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Mg;try{Mg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Mg=!1}var je=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ex(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Mg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(n){return new(n||t)(T(kn))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Es,xD=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function kg(){if(Es)return Es;if(typeof document!="object"||!document)return Es=new Set(xD),Es;let t=document.createElement("input");return Es=new Set(xD.filter(i=>(t.setAttribute("type",i),t.type===i))),Es}var nl;function DN(){if(nl==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nl=!0}))}finally{nl=nl||!1}return nl}function xi(t){return DN()?t:!!t.capture}var yo;function DD(){if(yo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return yo=!1,yo;if("scrollBehavior"in document.documentElement.style)yo=!0;else{let t=Element.prototype.scrollTo;t?yo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):yo=!1}}return yo}var Ig;function CN(){if(Ig==null){let t=typeof document<"u"?document.head:null;Ig=!!(t&&(t.createShadowRoot||t.attachShadow))}return Ig}function CD(t){if(CN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function mu(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Gi(t){return t.composedPath?t.composedPath()[0]:t.target}function rl(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ti(t){return t!=null&&`${t}`!="false"}function Is(t,i=0){return EN(t)?Number(t):i}function EN(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ms(t){return Array.isArray(t)?t:[t]}function St(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qi(t){return t instanceof H?t.nativeElement:t}function ED(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let r of n){let o=`${r}`.trim();o&&e.push(o)}}return e}var IN=20,ol=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}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=IN){return this._platform.isBrowser?new ke(n=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(kc(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):mt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(ut(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=qi(n),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Wo(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(n){return new(n||t)(T(G),T(je),T(ge,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var MN=20,Rn=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new Y,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}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:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,c=-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0;return{top:a,left:c}}change(e=MN){return e>0?this._change.pipe(kc(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{this.\u0275fac=function(n){return new(n||t)(T(je),T(G),T(ge,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cr=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})(),sl=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Dr,Cr,Dr,Cr]})}}return t})();var SN=[[["caption"]],[["colgroup"],["col"]],"*"],TN=["caption","colgroup, col","*"];function AN(t,i){t&1&&ae(0,2)}function RN(t,i){t&1&&(E(0,"thead",0),Vt(1,1),M(),E(2,"tbody",0),Vt(3,2)(4,3),M(),E(5,"tfoot",0),Vt(6,4),M())}function ON(t,i){t&1&&Vt(0,1)(1,2)(2,3)(3,4)}var cn=new R("CDK_TABLE");var wu=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(b(yt))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkCellDef",""]],standalone:!0})}}return t})(),xu=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(b(yt))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}}return t})(),kD=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(n){return new(n||t)(b(yt))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}}return t})(),ks=(()=>{class t{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static{this.\u0275fac=function(n){return new(n||t)(b(cn,8))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,r,o){if(n&1&&(et(o,wu,5),et(o,xu,5),et(o,kD,5)),n&2){let a;q(a=Z())&&(r.cell=a.first),q(a=Z())&&(r.headerCell=a.first),q(a=Z())&&(r.footerCell=a.first)}},inputs:{name:[D.None,"cdkColumnDef","name"],sticky:[D.HasDecoratorInputTransform,"sticky","sticky",Q],stickyEnd:[D.HasDecoratorInputTransform,"stickyEnd","stickyEnd",Q]},standalone:!0,features:[pe([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Re]})}}return t})(),_u=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},SD=(()=>{class t extends _u{constructor(e,n){super(e,n)}static{this.\u0275fac=function(n){return new(n||t)(b(ks),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[Ee]})}}return t})();var TD=(()=>{class t extends _u{constructor(e,n){super(e,n);let r=e._table?._getCellRole();r&&n.nativeElement.setAttribute("role",r)}static{this.\u0275fac=function(n){return new(n||t)(b(ks),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[Ee]})}}return t})(),bu=class{constructor(){this.tasks=[],this.endTasks=[]}},vu=new R("_COALESCED_STYLE_SCHEDULER"),Tg=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Y}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bu,this._getScheduleObservable().pipe(we(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new bu;for(let n of e.tasks)n();for(let n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Jt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(nt(1))}static{this.\u0275fac=function(n){return new(n||t)(T(G))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();var Ag=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof al?e.headerCell.template:this instanceof Rg?e.footerCell.template:e.cell.template}static{this.\u0275fac=function(n){return new(n||t)(b(yt),b(Sn))}}static{this.\u0275dir=N({type:t,features:[Ge]})}}return t})(),al=(()=>{class t extends Ag{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,n,r){super(e,n),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(n){return new(n||t)(b(yt),b(Sn),b(cn,8))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[D.None,"cdkHeaderRowDef","columns"],sticky:[D.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",Q]},standalone:!0,features:[Re,Ee,Ge]})}}return t})(),Rg=(()=>{class t extends Ag{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,n,r){super(e,n),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(n){return new(n||t)(b(yt),b(Sn),b(cn,8))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[D.None,"cdkFooterRowDef","columns"],sticky:[D.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",Q]},standalone:!0,features:[Re,Ee,Ge]})}}return t})(),Du=(()=>{class t extends Ag{constructor(e,n,r){super(e,n),this._table=r}static{this.\u0275fac=function(n){return new(n||t)(b(yt),b(Sn),b(cn,8))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[D.None,"cdkRowDefColumns","columns"],when:[D.None,"cdkRowDefWhen","when"]},standalone:!0,features:[Ee]})}}return t})(),wo=(()=>{class t{static{this.mostRecentCellOutlet=null}constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static{this.\u0275fac=function(n){return new(n||t)(b(_t))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkCellOutlet",""]],standalone:!0})}}return t})(),Og=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=se({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[ue],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Vt(0,0)},dependencies:[wo],encapsulation:2})}}return t})();var Pg=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=se({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[ue],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Vt(0,0)},dependencies:[wo],encapsulation:2})}}return t})(),AD=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static{this.\u0275fac=function(n){return new(n||t)(b(yt))}}static{this.\u0275dir=N({type:t,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}}return t})(),ID=["top","bottom","left","right"],Sg=class{constructor(i,e,n,r,o=!0,a=!0,c){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){let n=[];for(let r of i)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o<r.children.length;o++)n.push(r.children[o])}this._coalescedStyleScheduler.schedule(()=>{for(let r of n)this._removeStickyStyle(r,e)})}updateStickyColumns(i,e,n,r=!0){if(!i.length||!this._isBrowser||!(e.some(o=>o)||n.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=i[0],a=o.children.length,c=this._getCellWidths(o,r),u=this._getStickyStartColumnPositions(c,e),f=this._getStickyEndColumnPositions(c,n),p=e.lastIndexOf(!0),_=n.indexOf(!0),w=this.direction==="rtl",y=w?"right":"left",C=w?"left":"right";for(let I of i)for(let A=0;A<a;A++){let z=I.children[A];e[A]&&this._addStickyStyle(z,y,u[A],A===p),n[A]&&this._addStickyStyle(z,C,f[A],A===_)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:p===-1?[]:c.slice(0,p+1).map((I,A)=>e[A]?I:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:c.slice(_).map((I,A)=>n[A+_]?I:null).reverse()}))})}stickRows(i,e,n){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=n==="bottom"?i.slice().reverse():i,o=n==="bottom"?e.slice().reverse():e,a=[],c=[],u=[];for(let p=0,_=0;p<r.length;p++){if(!o[p])continue;a[p]=_;let w=r[p];u[p]=this._isNativeHtmlTable?Array.from(w.children):[w];let y=w.getBoundingClientRect().height;_+=y,c[p]=y}let f=o.lastIndexOf(!0);for(let p=0;p<r.length;p++){if(!o[p])continue;let _=a[p],w=p===f;for(let y of u[p])this._addStickyStyle(y,n,_,w)}n==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:c,offsets:a,elements:u}):this._positionListener?.stickyFooterRowsUpdated({sizes:c,offsets:a,elements:u})})}updateStickyFooterContainer(i,e){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{let n=i.querySelector("tfoot");n&&(e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))})}_removeStickyStyle(i,e){for(let r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);ID.some(r=>e.indexOf(r)===-1&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let r of ID)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],r=i.children;for(let o=0;o<r.length;o++){let a=r[o];n.push(a.getBoundingClientRect().width)}return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(i,e){let n=[],r=0;for(let o=0;o<i.length;o++)e[o]&&(n[o]=r,r+=i[o]);return n}_getStickyEndColumnPositions(i,e){let n=[],r=0;for(let o=i.length;o>0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}};var yu=new R("CDK_SPL");var Fg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n;let r=U(cn);r._rowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}}return t})(),Ng=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n;let r=U(cn);r._headerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}}return t})(),Lg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n;let r=U(cn);r._footerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}}return t})(),Vg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n;let r=U(cn);r._noDataRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(n){return new(n||t)(b(_t),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}}return t})();var jg=(()=>{class t{_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role"),n=e==="grid"||e==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,r,o,a,c,u,f,p,_,w,y){this._differs=e,this._changeDetectorRef=n,this._elementRef=r,this._dir=a,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=p,this._viewportRuler=_,this._stickyPositioningListener=w,this._ngZone=y,this._onDestroy=new Y,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new B,this.viewChange=new li({start:0,end:Number.MAX_VALUE}),o||r.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!u.isBrowser,this._isNativeHtmlTable=r.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(we(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),hu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===Ds.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=n.get(r.currentIndex);o.context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&G.isInAngularZone()?this._ngZone.onStable.pipe(nt(1),we(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=MD(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=MD(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let c=0;c<n.length;c++)this._renderRows[c].rowDef===o&&a.push(n[c]);this._addStickyColumnStyles(a,o)}),r.forEach((o,a)=>{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r<this._data.length;r++){let o=this._data[r],a=this._getRenderRowsForData(o,r,n.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(let c=0;c<a.length;c++){let u=a[c],f=this._cachedRenderRowsMap.get(u.data);f.has(u.rowDef)?f.get(u.rowDef).push(u):f.set(u.rowDef,[u]),e.push(u)}}return e}_getRenderRowsForData(e,n,r){return this._getRowDefs(e,n).map(a=>{let c=r&&r.has(a)?r.get(a):[];if(c.length){let u=c.shift();return u.dataIndex=n,u}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),gu(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=gu(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=gu(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=gu(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,c)=>a||!!c.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],hu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;hu(this.dataSource)?e=this.dataSource.connect(this):ua(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=mt(this.dataSource)),this._renderChangeSubscription=e.pipe(we(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let r=Array.from(n.columns||[]).map(c=>{let u=this._columnDefsByName.get(c);return u}),o=r.map(c=>c.sticky),a=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let r=0;r<e.viewContainer.length;r++){let o=e.viewContainer.get(r);n.push(o.rootNodes[0])}return n}_getRowDefs(e,n){if(this._rowDefs.length==1)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,n){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:n}}_renderRow(e,n,r,o={}){let a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))wo.mostRecentCellOutlet&&wo.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n<r;n++){let a=e.get(n).context;a.count=r,a.first=n===0,a.last=n===r-1,a.even=n%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[n].dataIndex,a.renderIndex=n):a.index=this._renderRows[n].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,n=>{let r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,r)=>n||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new Sg(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:mt()).pipe(we(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(n){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(n){return new(n||t)(b(Sn),b(Le),b(H),Yt("role"),b(Ot,8),b(ge),b(je),b(il),b(vu),b(Rn),b(yu,12),b(G,8))}}static{this.\u0275cmp=se({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,r,o){if(n&1&&(et(o,AD,5),et(o,ks,5),et(o,Du,5),et(o,al,5),et(o,Rg,5)),n&2){let a;q(a=Z())&&(r._noDataRow=a.first),q(a=Z())&&(r._contentColumnDefs=a),q(a=Z())&&(r._contentRowDefs=a),q(a=Z())&&(r._contentHeaderRowDefs=a),q(a=Z())&&(r._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,r){n&2&&oe("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[D.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",Q],fixedLayout:[D.HasDecoratorInputTransform,"fixedLayout","fixedLayout",Q]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[pe([{provide:cn,useExisting:t},{provide:il,useClass:Cs},{provide:vu,useClass:Tg},{provide:yu,useValue:null}]),Re,ue],ngContentSelectors:TN,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(Xe(SN),ae(0),ae(1,1),J(2,AN,1,0)(3,RN,7,0)(4,ON,4,0)),n&2&&(S(2),Te(2,r._isServer?2:-1),S(),Te(3,r._isNativeHtmlTable?3:4))},dependencies:[Ng,Fg,Vg,Lg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}}return t})();function gu(t,i){return t.concat(Array.from(i))}function MD(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let r=n.nodeType===1?n.nodeName:null;if(r===e)return n;if(r==="TABLE")break;n=n.parentNode}return null}var RD=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[sl]})}}return t})();function Pt(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var PN=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[PN]})}}return t})();var OD=new Set,xo,FN=(()=>{class t{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):LN}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&NN(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(n){return new(n||t)(T(je),T(Va,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function NN(t,i){if(!OD.has(t))try{xo||(xo=document.createElement("style"),i&&xo.setAttribute("nonce",i),xo.setAttribute("type","text/css"),document.head.appendChild(xo)),xo.sheet&&(xo.sheet.insertRule(`@media ${t} {body{ }}`,0),OD.add(t))}catch(e){console.error(e)}}function LN(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var FD=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new Y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return PD(Ms(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=PD(Ms(e)).map(a=>this._registerQuery(a).observable),o=ha(r);return o=ur(o.pipe(nt(1)),o.pipe(_a(1),ma(0))),o.pipe(Ke(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:f})=>{c.matches=c.matches||u,c.breakpoints[f]=u}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),o={observable:new ke(a=>{let c=u=>this._zone.run(()=>a.next(u));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(ci(n),Ke(({matches:a})=>({query:e,matches:a})),we(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static{this.\u0275fac=function(n){return new(n||t)(T(FN),T(G))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function PD(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var BD=" ";function Gg(t,i,e){let n=ku(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(BD)))}function Tu(t,i,e){let n=ku(t,i);e=e.trim();let r=n.filter(o=>o!==e);r.length?t.setAttribute(i,r.join(BD)):t.removeAttribute(i)}function ku(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var zD="cdk-describedby-message",Eu="cdk-describedby-host",Hg=0,HD=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Hg++}`,this._document=e,this._id=U(La)+"-"+Hg++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let o=Bg(n,r);typeof n!="string"?(ND(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let o=Bg(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof n=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Eu}="${this._id}"]`);for(let n=0;n<e.length;n++)this._removeCdkDescribedByReferenceIds(e[n]),e[n].removeAttribute(Eu);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,n){let r=this._document.createElement("div");ND(r,this._id),r.textContent=e,n&&r.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Bg(e,n),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<n.length;o++)n[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){let n=ku(e,"aria-describedby").filter(r=>r.indexOf(zD)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);Gg(e,"aria-describedby",r.messageElement.id),e.setAttribute(Eu,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,Tu(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Eu)}_isElementDescribedByMessage(e,n){let r=ku(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(je))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Bg(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function ND(t,i){t.id||(t.id=`${zD}-${i}-${Hg++}`)}var Ug=class{constructor(i,e){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=Ce.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,i instanceof eo?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Rd(i)&&(this._effectRef=Mp(()=>this._itemsChanged(i()),{injector:e}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ji(e=>this._pressedLetters.push(e)),ma(i),ut(()=>this._pressedLetters.length>0),Ke(()=>this._pressedLetters.join(""))).subscribe(e=>{let n=this._getItemsArray();for(let r=1;r<n.length+1;r++){let o=(this._activeItemIndex+r)%n.length,a=n[o];if(!this._skipPredicateFn(a)&&a.getLabel().toUpperCase().trim().indexOf(e)===0){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem;this.updateActiveItem(i),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!i[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break}else return;default:(r||Pt(i,"shiftKey"))&&(i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e)));return}this._pressedLetters=[],i.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(i){let e=this._getItemsArray(),n=typeof i=="number"?i:e.indexOf(i),r=e[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let n=1;n<=e.length;n++){let r=(this._activeItemIndex+i*n+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){let n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(i+=e,!n[i])return;this.setActiveItem(i)}}_getItemsArray(){return Rd(this._items)?this._items():this._items instanceof eo?this._items.toArray():this._items}_itemsChanged(i){if(this._activeItem){let e=i.indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}}},Su=class extends Ug{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qN=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return YN(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=ZN(nL(e));if(n&&(LD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=LD(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!tL(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return iL(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(n){return new(n||t)(T(je))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ZN(t){try{return t.frameElement}catch{return null}}function YN(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function QN(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function KN(t){return JN(t)&&t.type=="hidden"}function XN(t){return eL(t)&&t.hasAttribute("href")}function JN(t){return t.nodeName.toLowerCase()=="input"}function eL(t){return t.nodeName.toLowerCase()=="a"}function UD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function LD(t){if(!UD(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function tL(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function iL(t){return KN(t)?!1:QN(t)||XN(t)||t.hasAttribute("contenteditable")||UD(t)}function nL(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var $g=class{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n<e.length;n++){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=e.length-1;n>=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(nt(1)).subscribe(i)}},rL=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new $g(e,this._checker,this._ngZone,this._document,n)}static{this.\u0275fac=function(n){return new(n||t)(T(qN),T(G),T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$D=(()=>{class t{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,n,r){this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,U(je).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=mu(),this.focusTrap?.focusInitialElementWhenReady()}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(rL),b(ge))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[D.HasDecoratorInputTransform,"cdkTrapFocus","enabled",Q],autoCapture:[D.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",Q]},exportAs:["cdkTrapFocus"],standalone:!0,features:[Re,Ge]})}}return t})();function qg(t){return t.buttons===0||t.detail===0}function Zg(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var oL=new R("cdk-input-modality-detector-options"),sL={ignoreKeys:[18,17,224,91,16]},WD=650,Ss=xi({passive:!0,capture:!0}),aL=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new li(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<WD||(this._modality.next(qg(a)?"keyboard":"mouse"),this._mostRecentTarget=Gi(a))},this._onTouchstart=a=>{if(Zg(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(a)},this._options=ye(ye({},sL),o),this.modalityDetected=this._modality.pipe(_a(1)),this.modalityChanged=this.modalityDetected.pipe(Go()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ss),r.addEventListener("mousedown",this._onMousedown,Ss),r.addEventListener("touchstart",this._onTouchstart,Ss)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ss),document.removeEventListener("mousedown",this._onMousedown,Ss),document.removeEventListener("touchstart",this._onTouchstart,Ss))}static{this.\u0275fac=function(n){return new(n||t)(T(je),T(G),T(ge),T(oL,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lL=new R("liveAnnouncerElement",{providedIn:"root",factory:cL});function cL(){return null}var dL=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),uL=0,GD=(()=>{class t{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,o,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<n.length;o++)n[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${uL++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let o=n[r],a=o.getAttribute("aria-owns");a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(n){return new(n||t)(T(lL,8),T(G),T(ge),T(dL,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Mu=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Mu||{}),hL=new R("cdk-focus-monitor-default-options"),Iu=xi({passive:!0,capture:!0}),nr=(()=>{class t{constructor(e,n,r,o,a){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=c=>{let u=Gi(c);for(let f=u;f;f=f.parentElement)c.type==="focus"?this._onFocus(c,f):this._onBlur(c,f)},this._document=o,this._detectionMode=a?.detectionMode||Mu.IMMEDIATE}monitor(e,n=!1){let r=qi(e);if(!this._platform.isBrowser||r.nodeType!==1)return mt();let o=CD(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;let c={checkChildren:n,subject:new Y,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){let n=qi(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let o=qi(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([c,u])=>this._originChanged(c,n,u)):(this._setOrigin(n),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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===Mu.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===Mu.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?WD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),o=Gi(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,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,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Iu),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Iu)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(we(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Iu),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Iu),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(n))return!0}return!1}static{this.\u0275fac=function(n){return new(n||t)(T(G),T(je),T(aL),T(ge,8),T(hL,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yg=(()=>{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new B}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(nr))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return t})(),Do=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}(Do||{}),VD="cdk-high-contrast-black-on-white",jD="cdk-high-contrast-white-on-black",zg="cdk-high-contrast-active",Qg=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=U(FD).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Do.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,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Do.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Do.BLACK_ON_WHITE}return Do.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(zg,VD,jD),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Do.BLACK_ON_WHITE?e.add(zg,VD):n===Do.WHITE_ON_BLACK&&e.add(zg,jD)}}static{this.\u0275fac=function(n){return new(n||t)(T(je),T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Au=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(n){return new(n||t)(T(Qg))}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Cu]})}}return t})();var fL=["text"],mL=[[["mat-icon"]],"*"],pL=["mat-icon","*"];function gL(t,i){if(t&1&&ie(0,"mat-pseudo-checkbox",1),t&2){let e=$();V("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function _L(t,i){if(t&1&&ie(0,"mat-pseudo-checkbox",3),t&2){let e=$();V("disabled",e.disabled)}}function bL(t,i){if(t&1&&(E(0,"span",4),me(1),M()),t&2){let e=$();S(),xt("(",e.group.label,")")}}var vL=["mat-internal-form-field",""],yL=["*"];function wL(){return!0}var xL=new R("mat-sanity-checks",{providedIn:"root",factory:wL}),Fe=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return rl()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(n){return new(n||t)(T(Qg),T(xL,8),T(ge))}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Dr,Dr]})}}return t})();var Er=class{constructor(i,e,n,r,o){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,e)??!1;o!==i&&(this.errorState=o,this._stateChanges.next())}};var qD=new R("MAT_DATE_LOCALE",{providedIn:"root",factory:DL});function DL(){return U(za)}var ct=class{constructor(){this._localeChanges=new Y,this.localeChanges=this._localeChanges}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),r=this.isValid(e);return n&&r?!this.compareDate(i,e):n==r}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ln=new R("mat-date-formats"),CL=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Kg(t,i){let e=Array(t);for(let n=0;n<t;n++)e[n]=i(n);return e}var EL=(()=>{class t extends ct{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=U(qD,{optional:!0}),e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Kg(12,r=>this._format(n,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Kg(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Kg(7,r=>this._format(n,new Date(2017,0,r+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,r){let o=this._createDateWithOverflow(e,n,r);return o.getMonth()!=n,o}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Nt(ye({},n),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+n)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(CL.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,n,r){let o=new Date;return o.setFullYear(e,n,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let r=new Date;return r.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),r.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(r)}static{this.\u0275fac=function(n){return new(n||t)(T(qD,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),IL={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var iC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[ML()]})}}return t})();function ML(t=IL){return[{provide:ct,useClass:EL},{provide:Ln,useValue:t}]}var Ir=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hi=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(hi||{}),e_=class{constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=hi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},ZD=xi({passive:!0,capture:!0}),t_=class{constructor(){this._events=new Map,this._delegateEventHandler=i=>{let e=Gi(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){let o=this._events.get(e);if(o){let a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ZD)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let o=r.get(e);o&&(o.delete(n),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,ZD)))}},YD={enterDuration:225,exitDuration:150},kL=800,QD=xi({passive:!0,capture:!0}),KD=["mousedown","touchstart"],XD=["mouseup","mouseleave","touchend","touchcancel"],i_=class t{static{this._eventManager=new t_}constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qi(n))}fadeInRipple(i,e,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=ye(ye({},YD),n.animation);n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);let a=n.radius||SL(i,e,r),c=i-r.left,u=e-r.top,f=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${c-a}px`,p.style.top=`${u-a}px`,p.style.height=`${a*2}px`,p.style.width=`${a*2}px`,n.color!=null&&(p.style.backgroundColor=n.color),p.style.transitionDuration=`${f}ms`,this._containerElement.appendChild(p);let _=window.getComputedStyle(p),w=_.transitionProperty,y=_.transitionDuration,C=w==="none"||y==="0s"||y==="0s, 0s"||r.width===0&&r.height===0,I=new e_(this,p,n,C);p.style.transform="scale3d(1, 1, 1)",I.state=hi.FADING_IN,n.persistent||(this._mostRecentTransientRipple=I);let A=null;return!C&&(f||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let z=()=>this._finishRippleTransition(I),Ne=()=>this._destroyRipple(I);p.addEventListener("transitionend",z),p.addEventListener("transitioncancel",Ne),A={onTransitionEnd:z,onTransitionCancel:Ne}}),this._activeRipples.set(I,A),(C||!f)&&this._finishRippleTransition(I),I}fadeOutRipple(i){if(i.state===hi.FADING_OUT||i.state===hi.HIDDEN)return;let e=i.element,n=ye(ye({},YD),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=hi.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=qi(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,KD.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{XD.forEach(e=>{this._triggerElement.addEventListener(e,this,QD)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===hi.FADING_IN?this._startFadeOutTransition(i):i.state===hi.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=hi.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=hi.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){let e=qg(i),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+kL;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig))}_onTouchStart(i){if(!this._target.rippleDisabled&&!Zg(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=i.changedTouches;if(e)for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{let e=i.state===hi.VISIBLE||i.config.terminateOnPointerUp&&i.state===hi.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(KD.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(XD.forEach(e=>i.removeEventListener(e,this,QD)),this._pointerUpEventsRegistered=!1))}};function SL(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}var Ou=new R("mat-ripple-global-options"),Vn=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new i_(this,n,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:ye(ye(ye({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,ye(ye({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,ye(ye({},this.rippleConfig),e))}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(G),b(je),b(Ou,8),b(ot,8))}}static{this.\u0275dir=N({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mat-ripple-unbounded",r.unbounded)},inputs:{color:[D.None,"matRippleColor","color"],unbounded:[D.None,"matRippleUnbounded","unbounded"],centered:[D.None,"matRippleCentered","centered"],radius:[D.None,"matRippleRadius","radius"],animation:[D.None,"matRippleAnimation","animation"],disabled:[D.None,"matRippleDisabled","disabled"],trigger:[D.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),ul=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,Fe]})}}return t})(),TL=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(n){return new(n||t)(b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){n&2&&oe("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ue],decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),AL=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe]})}}return t})(),r_=new R("MAT_OPTION_PARENT_COMPONENT");var o_=new R("MatOptgroup");var RL=0,n_=class{constructor(i,e=!1){this.source=i,this.isUserInput=e}},Rs=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${RL++}`,this.onSelectionChange=new B,this._stateChanges=new Y}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Pt(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new n_(this,e))}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(Le),b(r_,8),b(o_,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-option"]],viewQuery:function(n,r){if(n&1&&De(fL,7),n&2){let o;q(o=Z())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){n&1&&X("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),n&2&&(ui("id",r.id),de("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),oe("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Re,ue],ngContentSelectors:pL,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,r){n&1&&(Xe(mL),J(0,gL,1,2,"mat-pseudo-checkbox",1),ae(1),E(2,"span",2,0),ae(4,1),M(),J(5,_L,1,1,"mat-pseudo-checkbox",3)(6,bL,2,1,"span",4),ie(7,"div",5)),n&2&&(Te(0,r.multiple?0:-1),S(5),Te(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),S(),Te(6,r.group&&r.group._inert?6:-1),S(),V("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[TL,Vn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();function nC(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;a<t+1;a++)n[a].group&&n[a].group===r[o]&&o++;return o}return 0}function rC(t,i,e,n){return t<e?t:t+i>e+n?Math.max(0,t-n+i):e}var s_=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[ul,Fe,AL]})}}return t})(),JD={capture:!0},eC=["focus","click","mouseenter","touchstart"],Xg="mat-ripple-loader-uninitialized",Jg="mat-ripple-loader-class-name",tC="mat-ripple-loader-centered",Ru="mat-ripple-loader-disabled",oC=(()=>{class t{constructor(){this._document=U(ge,{optional:!0}),this._animationMode=U(ot,{optional:!0}),this._globalRippleOptions=U(Ou,{optional:!0}),this._platform=U(je),this._ngZone=U(G),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Xg}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of eC)this._document?.addEventListener(e,this._onInteraction,JD)})}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);for(let n of eC)this._document?.removeEventListener(n,this._onInteraction,JD)}configureRipple(e,n){e.setAttribute(Xg,""),(n.className||!e.hasAttribute(Jg))&&e.setAttribute(Jg,n.className||""),n.centered&&e.setAttribute(tC,""),n.disabled&&e.setAttribute(Ru,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,n){let r=this._hosts.get(e);if(r){r.disabled=n;return}n?e.setAttribute(Ru,""):e.removeAttribute(Ru)}_createRipple(e){if(!this._document)return;let n=this._hosts.get(e);if(n)return n;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Jg)),e.append(r);let o=new Vn(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(tC),o.disabled=e.hasAttribute(Ru),this.attachRipple(e,o),o}attachRipple(e,n){e.removeAttribute(Xg),this._hosts.set(e,n)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pu=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=se({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ue],attrs:vL,ngContentSelectors:yL,decls:1,vars:0,template:function(n,r){n&1&&(Xe(),ae(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();var OL=[[["caption"]],[["colgroup"],["col"]],"*"],PL=["caption","colgroup, col","*"];function FL(t,i){t&1&&ae(0,2)}function NL(t,i){t&1&&(E(0,"thead",0),Vt(1,1),M(),E(2,"tbody",2),Vt(3,3)(4,4),M(),E(5,"tfoot",0),Vt(6,5),M())}function LL(t,i){t&1&&Vt(0,1)(1,3)(2,4)(3,5)}var sC=(()=>{class t extends jg{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275cmp=se({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[pe([{provide:jg,useExisting:t},{provide:cn,useExisting:t},{provide:vu,useClass:Tg},{provide:il,useClass:Cs},{provide:yu,useValue:null}]),Ee,ue],ngContentSelectors:PL,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,r){n&1&&(Xe(OL),ae(0),ae(1,1),J(2,FL,1,0)(3,NL,7,0)(4,LL,4,0)),n&2&&(S(2),Te(2,r._isServer?2:-1),S(),Te(3,r._isNativeHtmlTable?3:4))},dependencies:[Ng,Fg,Vg,Lg],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}}return t})(),aC=(()=>{class t extends wu{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["","matCellDef",""]],standalone:!0,features:[pe([{provide:wu,useExisting:t}]),Ee]})}}return t})(),lC=(()=>{class t extends xu{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[pe([{provide:xu,useExisting:t}]),Ee]})}}return t})();var cC=(()=>{class t extends ks{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[D.None,"matColumnDef","name"]},standalone:!0,features:[pe([{provide:ks,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Ee]})}}return t})(),dC=(()=>{class t extends SD{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[Ee]})}}return t})();var uC=(()=>{class t extends TD{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[Ee]})}}return t})();var hC=(()=>{class t extends al{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[D.None,"matHeaderRowDef","columns"],sticky:[D.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",Q]},standalone:!0,features:[pe([{provide:al,useExisting:t}]),Re,Ee]})}}return t})();var fC=(()=>{class t extends Du{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[D.None,"matRowDefColumns","columns"],when:[D.None,"matRowDefWhen","when"]},standalone:!0,features:[pe([{provide:Du,useExisting:t}]),Ee]})}}return t})(),mC=(()=>{class t extends Og{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275cmp=se({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[pe([{provide:Og,useExisting:t}]),Ee,ue],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Vt(0,0)},dependencies:[wo],encapsulation:2})}}return t})();var pC=(()=>{class t extends Pg{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275cmp=se({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[pe([{provide:Pg,useExisting:t}]),Ee,ue],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,r){n&1&&Vt(0,0)},dependencies:[wo],encapsulation:2})}}return t})();var gC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,RD,Fe]})}}return t})();var _C=new R("CdkAccordion");var jL=0,bC=(()=>{class t{get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=Ce.EMPTY,this.closed=new B,this.opened=new B,this.destroyed=new B,this.expandedChange=new B,this.id=`cdk-accordion-child-${jL++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static{this.\u0275fac=function(n){return new(n||t)(b(_C,12),b(Le),b(fu))}}static{this.\u0275dir=N({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[D.HasDecoratorInputTransform,"expanded","expanded",Q],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[pe([{provide:_C,useValue:void 0}]),Re]})}}return t})(),vC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})();var hl=class{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Mr=class extends hl{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}},kr=class extends hl{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},a_=class extends hl{constructor(i){super(),this.element=i instanceof H?i.nativeElement:i}},Nu=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Mr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof kr)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof a_)return this._attachedPortal=i,this.attachDomPortal(i)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Lu=class extends Nu{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{this._document;let c=a.element;c.parentNode;let u=this._document.createComment("dom-portal");c.parentNode.insertBefore(u,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(c,u)})},this._document=o}attachComponentPortal(i){let n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||Ii.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var fl=(()=>{class t extends Nu{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new B,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}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)}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,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}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}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(n){return new(n||t)(b(so),b(_t),b(ge))}}static{this.\u0275dir=N({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[D.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Ee]})}}return t})();var Os=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})();var BL=["body"],zL=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],HL=["mat-expansion-panel-header","*","mat-action-row"];function UL(t,i){}var $L=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],WL=["mat-panel-title","mat-panel-description","*"];function GL(t,i){if(t&1&&(E(0,"span",1),vi(),E(1,"svg",2),ie(2,"path",3),M()()),t&2){let e=$();V("@indicatorRotate",e._getExpandedState())}}var yC=new R("MAT_ACCORDION"),wC="225ms cubic-bezier(0.4,0.0,0.2,1)",DC={indicatorRotate:sn("indicatorRotate",[$i("collapsed, void",wt({transform:"rotate(0deg)"})),$i("expanded",wt({transform:"rotate(180deg)"})),wi("expanded <=> collapsed, void => collapsed",Mi(wC))]),bodyExpansion:sn("bodyExpansion",[$i("collapsed, void",wt({height:"0px",visibility:"hidden"})),$i("expanded",wt({height:"*",visibility:""})),wi("expanded <=> collapsed, void => collapsed",Mi(wC))])},CC=new R("MAT_EXPANSION_PANEL"),qL=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}static{this.\u0275fac=function(n){return new(n||t)(b(yt),b(CC,8))}}static{this.\u0275dir=N({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}}return t})(),ZL=0,EC=new R("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),l_=(()=>{class t extends bC{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,a,c,u){super(e,n,r),this._viewContainerRef=o,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new B,this.afterCollapse=new B,this._inputChanges=new Y,this._headerId=`mat-expansion-panel-header-${ZL++}`,this.accordion=e,this._document=a,this._animationsDisabled=c==="NoopAnimations",u&&(this.hideToggle=u.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ci(null),ut(()=>this.expanded&&!this._portal),nt(1)).subscribe(()=>{this._portal=new kr(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}_animationStarted(e){!xC(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){xC(e)||(e.toState==="expanded"?this.afterExpand.emit():e.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static{this.\u0275fac=function(n){return new(n||t)(b(yC,12),b(Le),b(fu),b(_t),b(ge),b(ot,8),b(EC,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(n&1&&et(o,qL,5),n&2){let a;q(a=Z())&&(r._lazyContent=a.first)}},viewQuery:function(n,r){if(n&1&&De(BL,5),n&2){let o;q(o=Z())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,r){n&2&&oe("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[D.HasDecoratorInputTransform,"hideToggle","hideToggle",Q],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[pe([{provide:yC,useValue:void 0},{provide:CC,useExisting:t}]),Re,Ee,Ge,ue],ngContentSelectors:HL,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){if(n&1){let o=rt();Xe(zL),ae(0),E(1,"div",1,0),X("@bodyExpansion.start",function(c){return ne(o),re(r._animationStarted(c))})("@bodyExpansion.done",function(c){return ne(o),re(r._animationDone(c))}),E(3,"div",2),ae(4,1),J(5,UL,0,0,"ng-template",3),M(),ae(6,2),M()}n&2&&(S(),V("@bodyExpansion",r._getExpandedState())("id",r.id),de("aria-labelledby",r._headerId),S(4),V("cdkPortalOutlet",r._portal))},dependencies:[fl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[DC.bodyExpansion]},changeDetection:0})}}return t})();function xC(t){return t.fromState==="void"}var IC=(()=>{class t{constructor(e,n,r,o,a,c,u){this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=c,this._parentChangeSubscription=Ce.EMPTY,this.tabIndex=0;let f=e.accordion?e.accordion._stateChanges.pipe(ut(p=>!!(p.hideToggle||p.togglePosition))):Wn;this.tabIndex=parseInt(u||"")||0,this._parentChangeSubscription=ei(e.opened,e.closed,f,e._inputChanges.pipe(ut(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ut(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Pt(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(n){return new(n||t)(b(l_,1),b(H),b(nr),b(Le),b(EC,8),b(ot,8),Yt("tabindex"))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,r){n&1&&X("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),n&2&&(de("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Lt("height",r._getHeaderHeight()),oe("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[D.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:bt(e)]},standalone:!0,features:[Re,ue],ngContentSelectors:WL,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,r){n&1&&(Xe($L),E(0,"span",0),ae(1),ae(2,1),ae(3,2),M(),J(4,GL,3,1,"span",1)),n&2&&(oe("mat-content-hide-toggle",!r._showToggle()),S(4),Te(4,r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[DC.indicatorRotate]},changeDetection:0})}}return t})(),MC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"],standalone:!0})}}return t})(),kC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}}return t})();var SC=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,vC,Os]})}}return t})();var $t=dv(c_());var ml=(()=>{class t{transform(e){let n=new Date(e),r=navigator.language||"de-DE",o=new Intl.DateTimeFormat(r,{month:"2-digit",day:"2-digit"}),a=new Intl.DateTimeFormat(r,{hour:"2-digit",minute:"2-digit",hour12:!1}),c=o.format(n),u=a.format(n);return`${c} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=hd({name:"shortDateTimeFormat",type:t,pure:!0,standalone:!0})}}return t})();var Co={SK_URL:"sameOrigin",INITIAL_CENTER:[51.4825766,5],INITIAL_ZOOM:3,TRACK_COLORS:[[255,0,0],[225,0,0],[195,0,0],[165,0,0],[135,0,0],[105,0,0],[135,0,0],[165,0,0],[195,0,0],[225,0,0]]};var UC=dv(c_());var Oi=63710088e-1,Mq={centimeters:Oi*100,centimetres:Oi*100,degrees:360/(2*Math.PI),feet:Oi*3.28084,inches:Oi*39.37,kilometers:Oi/1e3,kilometres:Oi/1e3,meters:Oi,metres:Oi,miles:Oi/1609.344,millimeters:Oi*1e3,millimetres:Oi*1e3,nauticalmiles:Oi/1852,radians:1,yards:Oi*1.0936};function d_(t,i,e={}){let n={type:"Feature"};return(e.id===0||e.id)&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.properties=i||{},n.geometry=t,n}function AC(t,i,e={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return d_({type:"LineString",coordinates:t},i,e)}function RC(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function pl(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function OC(t,i){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}function PC(t,i){var e,n,r,o,a,c,u,f,p,_,w=0,y=t.type==="FeatureCollection",C=t.type==="Feature",I=y?t.features.length:1;for(e=0;e<I;e++){for(c=y?t.features[e].geometry:C?t.geometry:t,f=y?t.features[e].properties:C?t.properties:{},p=y?t.features[e].bbox:C?t.bbox:void 0,_=y?t.features[e].id:C?t.id:void 0,u=c?c.type==="GeometryCollection":!1,a=u?c.geometries.length:1,r=0;r<a;r++){if(o=u?c.geometries[r]:c,o===null){if(i(null,w,f,p,_)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(o,w,f,p,_)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<o.geometries.length;n++)if(i(o.geometries[n],w,f,p,_)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function LC(t,i={}){var e=typeof i=="object"?i.mutate:i;if(!t)throw new Error("geojson is required");var n=OC(t),r=[];switch(n){case"LineString":r=u_(t,n);break;case"MultiLineString":case"Polygon":pl(t).forEach(function(a){r.push(u_(a,n))});break;case"MultiPolygon":pl(t).forEach(function(a){var c=[];a.forEach(function(u){c.push(u_(u,n))}),r.push(c)});break;case"Point":return t;case"MultiPoint":var o={};pl(t).forEach(function(a){var c=a.join("-");Object.prototype.hasOwnProperty.call(o,c)||(r.push(a),o[c]=!0)});break;default:throw new Error(n+" geometry not supported")}return t.coordinates?e===!0?(t.coordinates=r,t):{type:n,coordinates:r}:e===!0?(t.geometry.coordinates=r,t):d_({type:n,coordinates:r},t.properties,{bbox:t.bbox,id:t.id})}function u_(t,i){var e=pl(t);if(e.length===2&&!FC(e[0],e[1]))return e;var n=[],r=e.length-1,o=n.length;n.push(e[0]);for(var a=1;a<r;a++){var c=n[n.length-1];e[a][0]===c[0]&&e[a][1]===c[1]||(n.push(e[a]),o=n.length,o>2&&NC(n[o-3],n[o-1],n[o-2])&&n.splice(n.length-2,1))}if(n.push(e[e.length-1]),o=n.length,(i==="Polygon"||i==="MultiPolygon")&&FC(e[0],e[e.length-1])&&o<4)throw new Error("invalid polygon");return i==="LineString"&&o<3||NC(n[o-3],n[o-1],n[o-2])&&n.splice(n.length-2,1),n}function FC(t,i){return t[0]===i[0]&&t[1]===i[1]}function NC(t,i,e){var n=e[0],r=e[1],o=t[0],a=t[1],c=i[0],u=i[1],f=n-o,p=r-a,_=c-o,w=u-a,y=f*w-p*_;return y!==0?!1:Math.abs(_)>=Math.abs(w)?_>0?o<=n&&n<=c:c<=n&&n<=o:w>0?a<=r&&r<=u:u<=r&&r<=a}function VC(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return jC(t);case"FeatureCollection":return KL(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return h_(t);default:throw new Error("unknown GeoJSON type")}}function jC(t){let i={type:"Feature"};return Object.keys(t).forEach(e=>{switch(e){case"type":case"properties":case"geometry":return;default:i[e]=t[e]}}),i.properties=BC(t.properties),t.geometry==null?i.geometry=null:i.geometry=h_(t.geometry),i}function BC(t){let i={};return t&&Object.keys(t).forEach(e=>{let n=t[e];typeof n=="object"?n===null?i[e]=null:Array.isArray(n)?i[e]=n.map(r=>r):i[e]=BC(n):i[e]=n}),i}function KL(t){let i={type:"FeatureCollection"};return Object.keys(t).forEach(e=>{switch(e){case"type":case"features":return;default:i[e]=t[e]}}),i.features=t.features.map(e=>jC(e)),i}function h_(t){let i={type:t.type};return t.bbox&&(i.bbox=t.bbox),t.type==="GeometryCollection"?(i.geometries=t.geometries.map(e=>h_(e)),i):(i.coordinates=zC(t.coordinates),i)}function zC(t){let i=t;return typeof i[0]!="object"?i.slice():i.map(e=>zC(e))}function XL(t,i){var e=t[0]-i[0],n=t[1]-i[1];return e*e+n*n}function JL(t,i,e){var n=i[0],r=i[1],o=e[0]-n,a=e[1]-r;if(o!==0||a!==0){var c=((t[0]-n)*o+(t[1]-r)*a)/(o*o+a*a);c>1?(n=e[0],r=e[1]):c>0&&(n+=o*c,r+=a*c)}return o=t[0]-n,a=t[1]-r,o*o+a*a}function eV(t,i){for(var e=t[0],n=[e],r,o=1,a=t.length;o<a;o++)r=t[o],XL(r,e)>i&&(n.push(r),e=r);return e!==r&&n.push(r),n}function f_(t,i,e,n,r){for(var o=n,a,c=i+1;c<e;c++){var u=JL(t[c],t[i],t[e]);u>o&&(a=c,o=u)}o>n&&(a-i>1&&f_(t,i,a,n,r),r.push(t[a]),e-a>1&&f_(t,a,e,n,r))}function tV(t,i){var e=t.length-1,n=[t[0]];return f_(t,0,e,i,n),n.push(t[e]),n}function ju(t,i,e){if(t.length<=2)return t;var n=i!==void 0?i*i:1;return t=e?t:eV(t,n),t=tV(t,n),t}function m_(t,i={}){var e,n,r;if(i=i??{},!RC(i))throw new Error("options is invalid");let o=(e=i.tolerance)!=null?e:1,a=(n=i.highQuality)!=null?n:!1,c=(r=i.mutate)!=null?r:!1;if(!t)throw new Error("geojson is required");if(o&&o<0)throw new Error("invalid tolerance");return c!==!0&&(t=VC(t)),PC(t,function(u){iV(u,o,a)}),t}function iV(t,i,e){let n=t.type;if(n==="Point"||n==="MultiPoint")return t;if(LC(t,{mutate:!0}),n!=="GeometryCollection")switch(n){case"LineString":t.coordinates=ju(t.coordinates,i,e);break;case"MultiLineString":t.coordinates=t.coordinates.map(r=>ju(r,i,e));break;case"Polygon":t.coordinates=HC(t.coordinates,i,e);break;case"MultiPolygon":t.coordinates=t.coordinates.map(r=>HC(r,i,e))}return t}function HC(t,i,e){return t.map(function(n){if(n.length<4)throw new Error("invalid polygon");let r=i,o=ju(n,r,e);for(;!nV(o);)r-=r*.01,o=ju(n,r,e);return(o[o.length-1][0]!==o[0][0]||o[o.length-1][1]!==o[0][1])&&o.push(o[0]),o})}function nV(t){return t.length<3?!1:!(t.length===3&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}var Ps=(()=>{class t{constructor(){this.segments=[]}parseTrack(e,n){this.segments=[];let r=new Date,o=new Date,a=new Date,c=new Date,u=!1,f=[];return e&&e.forEach(p=>{var _=new Date(p[0]),w=this.getSecondsDifference(a,_);w<180*n?(u||(console.log("starting segment #"+(this.segments.length+1)),f=[],u=!0,r=_),f.push([p[0],[p[1][1],p[1][0]],p[2]]),a=_,c=_):u&&(o=c,console.log("ending segment #"+(this.segments.length+1)),console.log("current segment length: "+f.length),f.length>2&&this.segments.push({coords:f,startPos:f[0][1],endPos:f[f.length-1][1],startTime:new Date(f[0][0]),endTime:new Date(f[f.length-1][0]),distance:this.getTrackLength(f,"nm")}),console.log("starting segment #"+(this.segments.length+1)),f=[],r=_,f.push([p[0],[p[1][1],p[1][0]],p[2]]),a=_,c=_)}),u&&(o=c,console.log("ending segment #"+(this.segments.length+1)),f.length>2&&this.segments.push({coords:f,startPos:f[0][1],endPos:f[f.length-1][1],startTime:new Date(f[0][0]),endTime:new Date(f[f.length-1][0]),distance:this.getTrackLength(f,"nm")})),this.segments}rawTrackToLatLngTrack(e){return e.map(r=>new UC.LatLng(r[1][0],r[1][1]))}removeNullPoints(e){console.log("GEODATA SERVICE Track with nulls has length "+e.length);let n=e.filter(([r,[o,a]])=>o!==null&&a!==null&&o<90&&a<180);return console.log("GEODATA SERVICE Track without nulls has length "+n.length),n}simplifyRawTrack(e,n){let r=e.length;console.log("GEODATA SERVICE simplifyRawTrack with tolerance "+n);let o=this.simplifyLineString(this.createLineString(e),n);return console.log("GEODATA SERVICE linestring was simplified from "+r+" to "+o.geometry.coordinates.length+" points"),o.geometry.coordinates.map(u=>{let f=e.find(([,[p,_]])=>u[1]==p&&u[0]==_);return f||["Unknown",[u[1],u[0]],void 0]})}segmentsToGpx(e){let n=["depth","speed","courseOverGroundTrue","temperature","revolutions"],r=`<?xml version="1.0" encoding="UTF-8"?>
|
|
9
|
+
<gpx version="1.1" creator="Trackviewer-SK"
|
|
10
|
+
xmlns="http://www.topografix.com/GPX/1/1"
|
|
11
|
+
xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
|
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
13
|
+
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd
|
|
14
|
+
http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd">
|
|
15
|
+
<trk>`;return r=r.concat("<name>Track exported "+new Date().toISOString()+"</name>"),this.segments.forEach(o=>{r=r.concat(`
|
|
16
|
+
<trkseg>`),console.log(" starting segment"),o.coords.forEach(a=>{r=r.concat(`
|
|
17
|
+
<trkpt lat="`+a[1][0].toFixed(8)+'" lon="'+a[1][1].toFixed(8)+`">
|
|
18
|
+
<ele>0</ele>
|
|
19
|
+
<time>`+a[0]+"</time>"),a[2]!==null&&n.some(c=>e.includes(c))&&(r=r.concat(`
|
|
20
|
+
<extensions>
|
|
21
|
+
<gpxx:TrackPointExtension>`),e.includes("depth")?r=r.concat(`
|
|
22
|
+
<gpxx:depth>`+a[2]+"</gpxx:depth>"):e.includes("speed")?r=r.concat(`
|
|
23
|
+
<gpxx:speed>`+a[2]+"</gpxx:speed>"):e.includes("courseOverGroundTrue")?r=r.concat(`
|
|
24
|
+
<gpxx:course>`+this.radianToDegrees(a[2]).toFixed(1)+"</gpxx:course>"):e.includes("temperature")&&e.includes("water")?r=r.concat(`
|
|
25
|
+
<gpxx:wtemp>`+a[2]+"</gpxx:wtemp>"):e.includes("temperature")?r=r.concat(`
|
|
26
|
+
<gpxx:atemp>`+a[2]+"</gpxx:atemp>"):e.includes("revolutions")&&(r=r.concat(`
|
|
27
|
+
<gpxx:cad>`+a[2]+"</gpxx:cad>")),r=r.concat(`
|
|
28
|
+
</gpxx:TrackPointExtension>
|
|
29
|
+
</extensions>`)),r=r.concat(`
|
|
30
|
+
</trkpt>`)}),r=r.concat(`
|
|
31
|
+
</trkseg>`)}),r=r.concat(`</trk>
|
|
32
|
+
</gpx>`),r}simplifyLineString(e,n){return m_(e,{tolerance:n})}createLineString(e){let n=e.map(r=>[r[1][1],r[1][0]]);return AC(n)}getSecondsDifference(e,n){let r=n.getTime()-e.getTime();return Math.floor(r/1e3)}getTrackLength(e,n){let r=0;for(let o=1;o<e.length;o++)r+=this.haversineDistance(e[o][1],e[o-1][1]);return n=="nm"?r/1852:n=="mi"?r/1609.344:r}haversineDistance(e,n){let o=e[0]*(Math.PI/180),a=e[1]*(Math.PI/180),c=n[0]*(Math.PI/180),u=n[1]*(Math.PI/180),f=c-o,p=u-a,_=Math.sin(f/2)*Math.sin(f/2)+Math.cos(o)*Math.cos(c)*Math.sin(p/2)*Math.sin(p/2);return 6371e3*(2*Math.atan2(Math.sqrt(_),Math.sqrt(1-_)))}radianToDegrees(e){return e!=null?e*(180/Math.PI):0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Bu=(()=>{class t{get options(){return this._options}set options(e){this._options=e}constructor(e,n){this.httpClient=e,this.geodataService=n,this.skUrl="http://localhost:3000",this.apiPath="/signalk/v1/history/values?paths=navigation.position",this.pathPath="/signalk/v1/history/paths?",this._options={resolution:60,start:new Date(2023,5,9),end:new Date(2023,5,11),extraData:null,simplify:!0,simplifyTolerance:2e-4,simplifyHQ:!0,zoomToFit:!0},this.paths=["environment.depth.belowTransducer"],this.initialTrackResponse={context:"",data:[],range:{from:"",to:""},values:[{path:"",method:""}]},this._trackdata$=new li(this.initialTrackResponse),this._pathdata$=new li(this.paths),this._loading$=new li(!1),this.tracks$=this._trackdata$.asObservable(),this.paths$=this._pathdata$.asObservable(),this.loading$=this._loading$.asObservable(),this.setServerUrl(),this.getPaths()}getTrackJson(){let e=this.buildTrackUrl();this._loading$.next(!0),this.httpClient.get(e).subscribe({next:n=>{this.lastTrack=n;let r=n;console.log("APISERVICE got track with "+n.data.length+" points"),console.log(r),this.lastTrack.data=this.geodataService.removeNullPoints(n.data),this.options.simplify&&(this.lastTrack.data=this.geodataService.simplifyRawTrack(this.lastTrack.data,this.options.simplifyTolerance)),console.log(this.lastTrack),this._trackdata$.next(this.lastTrack)},error:n=>{console.error("Error reading data from server!",n),this._loading$.next(!1)}})}setLoading(e){this._loading$.next(e)}getPaths(){this.httpClient.get(this.buildPathsUrl()).subscribe({next:e=>{this.paths=this.filterPaths(e),this._pathdata$.next(this.paths)},error:e=>{console.error("Error reading paths from server!",e)}})}getTrackGpxUrl(){return this.buildTrackUrl()+"&format=gpx"}refresh(){this.getTrackJson()}filterPaths(e){let n=[];return e.forEach(r=>{r!==null&&r!=="<empty>"&&!r.startsWith("notifications.")&&!r.startsWith("resources.")&&n.push(r)}),n}setQueryOptions(e){this.options=e}buildTrackUrl(){let e="";return this.options.extraData&&this.options.extraData.length>4&&(e+=","+this.options.extraData),this.skUrl+this.apiPath+e+"&from="+this.getMidnightDateUTCString(this.options.start)+"&to="+this.getMidnightDateUTCStringPlusOneDay(this.options.end)+"&resolution="+this.options.resolution}buildPathsUrl(){return this.skUrl+this.pathPath+"&from="+this.getMidnightDateUTCString(this.options.start)+"&to="+this.getMidnightDateUTCStringPlusOneDay(this.options.end)}getMidnightDateUTCString(e){let n=e.getTime();return n-=e.getTimezoneOffset()*6e4,new Date(n).toISOString().replace(/.\d+Z$/g,"Z")}getMidnightDateUTCStringPlusOneDay(e){let n=e.getTime();return n-=e.getTimezoneOffset()*6e4,n+=864e5,new Date(n).toISOString().replace(/.\d+Z$/g,"Z")}setServerUrl(){if(Co.SK_URL==="sameOrigin"){let e=window.location.protocol.slice(0,-1),n=window.location.hostname,r=window.location.port||(e==="https"?"443":"80");this.skUrl=e+"://"+n+":"+r}else this.skUrl=Co.SK_URL}static{this.\u0275fac=function(n){return new(n||t)(T(fo),T(Ps))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function oV(t,i){if(t&1&&(E(0,"div",14),me(1),M()),t&2){let e=$(2);S(),xt("Point reduction due to simplification: ",e.reductionRatio.toFixed(2)," %")}}function sV(t,i){t&1&&(E(0,"div",14),me(1,"All times in UTC"),M())}function aV(t,i){t&1&&(E(0,"th",15),me(1," Start "),M())}function lV(t,i){if(t&1&&(E(0,"td",16),me(1),ao(2,"shortDateTimeFormat"),M()),t&2){let e=i.$implicit;S(),xt(" ",lo(2,1,e.startTime)," ")}}function cV(t,i){t&1&&(E(0,"th",15),me(1," End "),M())}function dV(t,i){if(t&1&&(E(0,"td",16),me(1),ao(2,"shortDateTimeFormat"),M()),t&2){let e=i.$implicit;S(),xt(" ",lo(2,1,e.endTime)," ")}}function uV(t,i){t&1&&(E(0,"th",15),me(1," Distance "),M())}function hV(t,i){if(t&1&&(E(0,"td",16),me(1),M()),t&2){let e=i.$implicit;S(),xt(" ",e.distance.toFixed(1)," nm ")}}function fV(t,i){t&1&&ie(0,"tr",17)}function mV(t,i){if(t&1){let e=rt();E(0,"tr",18),X("click",function(){let r=ne(e).index,o=$(2);return re(o.onRowClicked(r))}),M()}}function pV(t,i){if(t&1&&(E(0,"div",4)(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),me(4," Track\xA0details "),M(),E(5,"mat-panel-description"),me(6),M()(),J(7,oV,2,1,"div",5)(8,sV,2,0,"div",5),E(9,"table",6),_r(10,7),J(11,aV,2,0,"th",8)(12,lV,3,3,"td",9),br(),_r(13,10),J(14,cV,2,0,"th",8)(15,dV,3,3,"td",9),br(),_r(16,11),J(17,uV,2,0,"th",8)(18,hV,2,1,"td",9),br(),J(19,fV,1,0,"tr",12)(20,mV,1,0,"tr",13),M()()()),t&2){let e=$();S(6),Cp(" ",e.segments.length," segments, ",e.getTotalDistance().toFixed(1)," nm "),S(),V("ngIf",e.reductionRatio),S(),V("ngIf",!e.reductionRatio),S(),V("dataSource",e.segments),S(10),V("matHeaderRowDef",e.displayedColumns),S(),V("matRowDefColumns",e.displayedColumns)}}var WC=(()=>{class t{constructor(e,n,r,o){this.http=e,this.apiService=n,this.geodataService=r,this.shortDateTimeFormatPipe=o,this.initialCenter=Co.INITIAL_CENTER,this.initialZoom=Co.INITIAL_ZOOM,this.colors=Co.TRACK_COLORS,this.lineStroke=6,this.highlightStroke=8,this.borderStroke=8,this.polylines=[],this.helperLayer=new $t.LayerGroup,this.tracksOnMap=new $t.FeatureGroup,this.reductionRatio=0,this.segmentIndex=[],this.segments=[],this.displayedColumns=["startTime","endTime","distance"],this.showTracksMeta=!1}ngOnInit(){this.apiService.tracks$.subscribe(e=>{if(e.range.from!="")try{e.data.length>0?this.showTrack(e):this.apiService.setLoading(!1)}catch(n){console.log("received unknown response"),console.log(n),console.log(e),this.apiService.setLoading(!1)}})}ngAfterViewInit(){this.initMap()}initMap(){let e={center:new $t.LatLng(this.initialCenter[0],this.initialCenter[1]),zoom:this.initialZoom};this.karte=$t.map("map",e),this.karte.on("click",n=>{for(let r=0;r<this.segmentIndex.length;r++)this.segmentIndex[r].closeTooltip(),this.segmentIndex[r].fireEvent("mouseout")}),this.streetLayer=$t.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}),this.streetLayer.addTo(this.karte),this.seaLayer=$t.tileLayer("http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}),this.seaLayer.addTo(this.karte),this.helperLayer.addTo(this.karte)}showTrack(e){if(this.resetMap(),this.segments=this.geodataService.parseTrack(e.data,this.apiService.options.resolution),this.segments.forEach(n=>this.addPolyline(n)),this.polylines.forEach(n=>{this.tracksOnMap.addLayer(n),n.addTo(this.karte)}),this.karte&&this.apiService.options.zoomToFit)try{this.karte.fitBounds(this.tracksOnMap.getBounds(),{animate:!0,padding:[20,20]})}catch(n){console.log(n)}this.apiService.setLoading(!1),this.showTracksMeta=!0}resetMap(){this.tracksOnMap.eachLayer(e=>this.karte.removeLayer(e)),this.helperLayer.clearLayers(),this.tracksOnMap=new $t.FeatureGroup,this.polylines=[],this.segments=[]}writeTrackInfo(){console.log("Got tracks:"),this.segments.forEach((e,n)=>{console.log(n+": "+e.startPos+"->"+e.endPos+", "+e.startTime+"->"+e.endTime+", "+e.distance)})}addPolyline(e){let n=new $t.Polyline(this.geodataService.rawTrackToLatLngTrack(e.coords),{color:"white",weight:this.borderStroke,opacity:1,smoothFactor:1}),r=new $t.Polyline(this.geodataService.rawTrackToLatLngTrack(e.coords),{color:this.getNextColor(),weight:this.lineStroke,opacity:1,smoothFactor:1});this.segmentIndex.push(r);let o="Start: "+this.shortDateTimeFormatPipe.transform(e.startTime)+" (UTC)<br>End: "+this.shortDateTimeFormatPipe.transform(e.endTime)+" (UTC)<br>Distance: "+e.distance.toFixed(1)+" nm";r.bindTooltip(o),r.on("mouseover",u=>{var f=u.target;f.originalWeight=f.options.weight,f.setStyle({weight:this.highlightStroke})}),r.on("mouseout",u=>{var f=u.target;f.setStyle({weight:this.lineStroke})}),this.polylines.push(n),this.polylines.push(r);let a=e.coords[0][1],c=e.coords[e.coords.length-1][1];this.helperLayer.addLayer($t.circleMarker(a,{radius:5,color:"black",weight:5})),this.helperLayer.addLayer($t.circleMarker(c,{radius:5,color:"black",weight:5})),console.log("Segment "+this.polylines.length+": "+e.coords.length+" points")}onRowClicked(e){for(let n=0;n<this.segmentIndex.length;n++)this.segmentIndex[n].closeTooltip(),this.segmentIndex[n].fireEvent("mouseout");this.segmentIndex[e].openTooltip(),this.segmentIndex[e].fireEvent("mouseover")}getTotalDistance(){let e=0;return this.segments.forEach(n=>{e+=n.distance}),e}getNextColor(){return"#"+this.pad(this.colors[this.polylines.length%10][0].toString(16),2)+this.pad(this.colors[this.polylines.length%10][1].toString(16),2)+this.pad(this.colors[this.polylines.length%10][2].toString(16),2)}pad(e,n){return e=e+"",e.length>=n?e:new Array(n-e.length+1).join("0")+e}static{this.\u0275fac=function(n){return new(n||t)(b(fo),b(Bu),b(Ps),b(ml))}}static{this.\u0275cmp=se({type:t,selectors:[["app-map"]],standalone:!0,features:[pe([ml]),ue],decls:4,vars:1,consts:[[1,"map-container"],[1,"map-frame"],["id","map"],["id","tracksMeta",4,"ngIf"],["id","tracksMeta"],["id","reduction",4,"ngIf"],["mat-table","",1,"mat-elevation-z0",3,"dataSource"],["matColumnDef","startTime"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","endTime"],["matColumnDef","distance"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["id","reduction"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"click"]],template:function(n,r){n&1&&(E(0,"div",0)(1,"div",1),ie(2,"div",2),M()(),J(3,pV,21,7,"div",3)),n&2&&(S(3),V("ngIf",r.showTracksMeta))},dependencies:[jt,vs,gC,sC,lC,hC,cC,aC,fC,dC,uC,mC,pC,SC,l_,IC,kC,MC,ml],styles:[".map-container[_ngcontent-%COMP%]{position:absolute;inset:0;margin:0}.map-frame[_ngcontent-%COMP%], #map[_ngcontent-%COMP%]{height:100%}#tracksMeta[_ngcontent-%COMP%]{position:relative;z-index:999;margin-top:7em;margin-left:3em;width:auto;display:inline-block;overflow:hidden}#tracksMeta[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.5em}#tracksMeta[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.5em .5em 0}.mat-mdc-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{height:2em!important}.mdc-data-table__table[_ngcontent-%COMP%]{min-width:unset}#reduction[_ngcontent-%COMP%]{font-size:70%}"]})}}return t})();var XC=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||t)(b(fs),b(H))}}static{this.\u0275dir=N({type:t})}}return t})(),JC=(()=>{class t extends XC{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,features:[Ee]})}}return t})(),oi=new R("");var gV={provide:oi,useExisting:It(()=>Ls),multi:!0};function _V(){let t=tr()?tr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var bV=new R(""),Ls=(()=>{class t extends XC{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!_V())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||t)(b(fs),b(H),b(bV,8))}}static{this.\u0275dir=N({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&X("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[pe([gV]),Ee]})}}return t})();function Sr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function eE(t){return t!=null&&typeof t.length=="number"}var Pi=new R(""),yl=new R(""),vV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jn=class{static min(i){return tE(i)}static max(i){return yV(i)}static required(i){return wV(i)}static requiredTrue(i){return xV(i)}static email(i){return DV(i)}static minLength(i){return CV(i)}static maxLength(i){return EV(i)}static pattern(i){return IV(i)}static nullValidator(i){return Hu(i)}static compose(i){return aE(i)}static composeAsync(i){return lE(i)}};function tE(t){return i=>{if(Sr(i.value)||Sr(t))return null;let e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}function yV(t){return i=>{if(Sr(i.value)||Sr(t))return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function wV(t){return Sr(t.value)?{required:!0}:null}function xV(t){return t.value===!0?null:{required:!0}}function DV(t){return Sr(t.value)||vV.test(t.value)?null:{email:!0}}function CV(t){return i=>Sr(i.value)||!eE(i.value)?null:i.value.length<t?{minlength:{requiredLength:t,actualLength:i.value.length}}:null}function EV(t){return i=>eE(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}function IV(t){if(!t)return Hu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Sr(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Hu(t){return null}function iE(t){return t!=null}function nE(t){return gs(t)?Jt(t):t}function rE(t){let i={};return t.forEach(e=>{i=e!=null?ye(ye({},i),e):i}),Object.keys(i).length===0?null:i}function oE(t,i){return i.map(e=>e(t))}function MV(t){return!t.validate}function sE(t){return t.map(i=>MV(i)?i:e=>i.validate(e))}function aE(t){if(!t)return null;let i=t.filter(iE);return i.length==0?null:function(e){return rE(oE(e,i))}}function __(t){return t!=null?aE(sE(t)):null}function lE(t){if(!t)return null;let i=t.filter(iE);return i.length==0?null:function(e){let n=oE(e,i).map(nE);return fa(n).pipe(Ke(rE))}}function b_(t){return t!=null?lE(sE(t)):null}function GC(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function cE(t){return t._rawValidators}function dE(t){return t._rawAsyncValidators}function g_(t){return t?Array.isArray(t)?t:[t]:[]}function Uu(t,i){return Array.isArray(t)?t.includes(i):t===i}function qC(t,i){let e=g_(i);return g_(t).forEach(r=>{Uu(e,r)||e.push(r)}),e}function ZC(t,i){return g_(i).filter(e=>!Uu(t,e))}var $u=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=__(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=b_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},dn=class extends $u{get formDirective(){return null}get path(){return null}},fi=class extends $u{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Wu=class{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},kV={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},vZ=Nt(ye({},kV),{"[class.ng-submitted]":"isSubmitted"}),Qu=(()=>{class t extends Wu{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||t)(b(fi,2))}}static{this.\u0275dir=N({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&oe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ee]})}}return t})(),uE=(()=>{class t extends Wu{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||t)(b(dn,10))}}static{this.\u0275dir=N({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&oe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Ee]})}}return t})();var gl="VALID",zu="INVALID",Fs="PENDING",_l="DISABLED";function hE(t){return(Ku(t)?t.validators:t)||null}function SV(t){return Array.isArray(t)?__(t):t||null}function fE(t,i){return(Ku(i)?i.asyncValidators:t)||null}function TV(t){return Array.isArray(t)?b_(t):t||null}function Ku(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function AV(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new W(1e3,"");if(!n[e])throw new W(1001,"")}function RV(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new W(1002,"")})}var Gu=class{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===gl}get invalid(){return this.status===zu}get pending(){return this.status==Fs}get disabled(){return this.status===_l}get enabled(){return this.status!==_l}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(qC(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(qC(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(ZC(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(ZC(i,this._rawAsyncValidators))}hasValidator(i){return Uu(this._rawValidators,i)}hasAsyncValidator(i){return Uu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Fs,i.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=_l,this.errors=null,this._forEachChild(n=>{n.disable(Nt(ye({},i),{onlySelf:!0}))}),this._updateValue(),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Nt(ye({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=gl,this._forEachChild(n=>{n.enable(Nt(ye({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Nt(ye({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gl||this.status===Fs)&&this._runAsyncValidator(i.emitEvent)),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_l:gl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Fs,this._hasOwnPendingAsyncValidator=!0;let e=nE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new B,this.statusChanges=new B}_calculateStatus(){return this._allControlsDisabled()?_l:this.errors?zu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fs)?Fs:this._anyControlsHaveStatus(zu)?zu:gl}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Ku(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=SV(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=TV(this._rawAsyncValidators)}},Ns=class extends Gu{constructor(i,e,n){super(hE(e),fE(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){RV(this,!0,i),Object.keys(i).forEach(n=>{AV(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Vs=new R("CallSetDisabledState",{providedIn:"root",factory:()=>Xu}),Xu="always";function mE(t,i){return[...i.path,t]}function vl(t,i,e=Xu){v_(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),PV(t,i),NV(t,i),FV(t,i),OV(t,i)}function qu(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),Yu(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Zu(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function OV(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function v_(t,i){let e=cE(t);i.validator!==null?t.setValidators(GC(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=dE(t);i.asyncValidator!==null?t.setAsyncValidators(GC(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Zu(i._rawValidators,r),Zu(i._rawAsyncValidators,r)}function Yu(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=cE(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(i.asyncValidator!==null){let r=dE(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Zu(i._rawValidators,n),Zu(i._rawAsyncValidators,n),e}function PV(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&pE(t,i)})}function FV(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&pE(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function pE(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function NV(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function gE(t,i){t==null,v_(t,i)}function LV(t,i){return Yu(t,i)}function y_(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function VV(t){return Object.getPrototypeOf(t.constructor)===JC}function _E(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function w_(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(o=>{o.constructor===Ls?e=o:VV(o)?n=o:r=o}),r||n||e||null}function jV(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var BV={provide:dn,useExisting:It(()=>rr)},bl=Promise.resolve(),rr=(()=>{class t extends dn{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new B,this.form=new Ns({},__(e),b_(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){bl.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),vl(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){bl.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){bl.then(()=>{let n=this._findContainer(e.path),r=new Ns({});gE(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){bl.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){bl.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_E(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(n){return new(n||t)(b(Pi,10),b(yl,10),b(Vs,8))}}static{this.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&X("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[D.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([BV]),Ee]})}}return t})();function YC(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function QC(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var or=class extends Gu{constructor(i=null,e,n){super(hE(e),fE(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ku(e)&&(e.nonNullable||e.initialValueIsDefault)&&(QC(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){YC(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){YC(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){QC(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var zV=t=>t instanceof or;var HV={provide:fi,useExisting:It(()=>x_)},KC=Promise.resolve(),x_=(()=>{class t extends fi{constructor(e,n,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new or,this._registered=!1,this.name="",this.update=new B,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=w_(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),y_(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){KC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&Q(n);KC.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?mE(e,this._parent):[e]}static{this.\u0275fac=function(n){return new(n||t)(b(dn,9),b(Pi,10),b(yl,10),b(oi,10),b(Le,8),b(Vs,8))}}static{this.\u0275dir=N({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[D.None,"disabled","isDisabled"],model:[D.None,"ngModel","model"],options:[D.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[pe([HV]),Ee,Ge]})}}return t})();var UV={provide:oi,useExisting:It(()=>D_),multi:!0},D_=(()=>{class t extends JC{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&X("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[pe([UV]),Ee]})}}return t})();var C_=new R(""),$V={provide:fi,useExisting:It(()=>wl)},wl=(()=>{class t extends fi{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new B,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=w_(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&qu(n,this,!1),vl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}y_(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(n){return new(n||t)(b(Pi,10),b(yl,10),b(oi,10),b(C_,8),b(Vs,8))}}static{this.\u0275dir=N({type:t,selectors:[["","formControl",""]],inputs:{form:[D.None,"formControl","form"],isDisabled:[D.None,"disabled","isDisabled"],model:[D.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pe([$V]),Ee,Ge]})}}return t})(),WV={provide:dn,useExisting:It(()=>un)},un=(()=>{class t extends dn{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new B,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return vl(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){qu(e.control||null,e,!1),jV(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,_E(this.form,this.directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(qu(n||null,e),zV(r)&&(vl(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);gE(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&LV(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){v_(this.form,this),this._oldForm&&Yu(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||t)(b(Pi,10),b(yl,10),b(Vs,8))}}static{this.\u0275dir=N({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&X("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[D.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([WV]),Ee,Ge]})}}return t})();var GV={provide:fi,useExisting:It(()=>E_)},E_=(()=>{class t extends fi{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new B,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=w_(this,o)}ngOnChanges(e){this._added||this._setUpControl(),y_(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return mE(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||t)(b(dn,13),b(Pi,10),b(yl,10),b(oi,10),b(C_,8))}}static{this.\u0275dir=N({type:t,selectors:[["","formControlName",""]],inputs:{name:[D.None,"formControlName","name"],isDisabled:[D.None,"disabled","isDisabled"],model:[D.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[pe([GV]),Ee,Ge]})}}return t})();function qV(t){return typeof t=="number"?t:parseFloat(t)}var ZV=(()=>{class t{constructor(){this._validator=Hu}ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Hu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,features:[Ge]})}}return t})();var YV={provide:Pi,useExisting:It(()=>I_),multi:!0},I_=(()=>{class t extends ZV{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>qV(e),this.createValidator=e=>tE(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275dir=N({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&de("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[pe([YV]),Ee]})}}return t})();var bE=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})();var vE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Vs,useValue:e.callSetDisabledState??Xu}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[bE]})}}return t})(),Ju=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:C_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Vs,useValue:e.callSetDisabledState??Xu}]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[bE]})}}return t})();var yE=DD(),M_=class{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=St(-this._previousScrollPosition.left),i.style.top=St(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,r=e.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yE&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yE&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};var k_=class{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(ut(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=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},eh=class{enable(){}disable(){}attach(){}};function S_(t,i){return i.some(e=>{let n=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,a=t.left>e.right;return n||r||o||a})}function wE(t,i){return i.some(e=>{let n=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,a=t.right>e.right;return n||r||o||a})}var T_=class{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();S_(e,[{width:n,height:r,bottom:r,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}},QV=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new eh,this.close=a=>new k_(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new M_(this._viewportRuler,this._document),this.reposition=a=>new T_(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static{this.\u0275fac=function(n){return new(n||t)(T(ol),T(Rn),T(G),T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),js=class{constructor(i){if(this.scrollStrategy=new eh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var A_=class{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IE=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}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{this.\u0275fac=function(n){return new(n||t)(T(ge))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),KV=(()=>{class t extends IE{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(G,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),XV=(()=>{class t extends IE{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Gi(o)},this._clickListener=o=>{let a=Gi(o),c=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){let p=u[f];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(c))break;let _=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(je),T(G,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ME=(()=>{class t{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||rl()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let n=this._document.createElement("div");n.classList.add(e),rl()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}static{this.\u0275fac=function(n){return new(n||t)(T(ge),T(je))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),R_=class{constructor(i,e,n,r,o,a,c,u,f,p=!1){this._portalOutlet=i,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=u,this._outsideClickDispatcher=f,this._animationsDisabled=p,this._backdropElement=null,this._backdropClick=new Y,this._attachments=new Y,this._detachments=new Y,this._locationChanges=Ce.EMPTY,this._backdropClickHandler=_=>this._backdropClick.next(_),this._backdropTransitionendHandler=_=>{this._disposeBackdrop(_.target)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(nt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),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 i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=ye(ye({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Nt(ye({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=St(this._config.width),i.height=St(this._config.height),i.minWidth=St(this._config.minWidth),i.minHeight=St(this._config.minHeight),i.maxWidth=St(this._config.maxWidth),i.maxHeight=St(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let i=this._backdropElement;if(i){if(this._animationsDisabled){this._disposeBackdrop(i);return}i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){let r=Ms(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let i=this._ngZone.onStable.pipe(we(ei(this._attachments,this._detachments))).subscribe(()=>{(!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()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},xE="cdk-overlay-connected-position-bounding-box",JV=/([A-Za-z%]+)$/,Dl=class{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Y,this._resizeSubscription=Ce.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(xE),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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 i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[],a;for(let c of this._preferredPositions){let u=this._getOriginPoint(i,r,c),f=this._getOverlayPoint(u,e,c),p=this._getOverlayFit(f,e,n,c);if(p.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(c,u);return}if(this._canFitWithFlexibleDimensions(p,f,n)){o.push({position:c,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,c)});continue}(!a||a.overlayFit.visibleArea<p.visibleArea)&&(a={overlayFit:p,overlayPoint:f,originPoint:u,position:c,overlayRect:e})}if(o.length){let c=null,u=-1;for(let f of o){let p=f.boundingBoxRect.width*f.boundingBoxRect.height*(f.position.weight||1);p>u&&(u=p,c=f)}this._isPushed=!1,this._applyPosition(c.position,c.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&&Eo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){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,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r;if(n.originX=="center")r=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,c=this._isRtl()?i.left:i.right;r=n.originX=="start"?a:c}e.left<0&&(r-=e.left);let o;return n.originY=="center"?o=i.top+i.height/2:o=n.originY=="top"?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r;n.overlayX=="center"?r=-e.width/2:n.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return n.overlayY=="center"?o=-e.height/2:o=n.overlayY=="top"?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){let o=CE(e),{x:a,y:c}=i,u=this._getOffset(r,"x"),f=this._getOffset(r,"y");u&&(a+=u),f&&(c+=f);let p=0-a,_=a+o.width-n.width,w=0-c,y=c+o.height-n.height,C=this._subtractOverflows(o.width,p,_),I=this._subtractOverflows(o.height,w,y),A=C*I;return{visibleArea:A,isCompletelyWithinViewport:o.width*o.height===A,fitsInViewportVertically:I===o.height,fitsInViewportHorizontally:C==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let r=n.bottom-e.y,o=n.right-e.x,a=DE(this._overlayRef.getConfig().minHeight),c=DE(this._overlayRef.getConfig().minWidth),u=i.fitsInViewportVertically||a!=null&&a<=r,f=i.fitsInViewportHorizontally||c!=null&&c<=o;return u&&f}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let r=CE(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),c=Math.max(i.y+r.height-o.height,0),u=Math.max(o.top-n.top-i.y,0),f=Math.max(o.left-n.left-i.x,0),p=0,_=0;return r.width<=o.width?p=f||-a:p=i.x<this._viewportMargin?o.left-n.left-i.x:0,r.height<=o.height?_=u||-c:_=i.y<this._viewportMargin?o.top-n.top-i.y:0,this._previousPushAmount={x:p,y:_},{x:i.x+p,y:i.y+_}}_applyPosition(i,e){if(this._setTransformOrigin(i),this._setOverlayElementStyles(e,i),this._setBoundingBoxStyles(e,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!e2(this._lastScrollVisibility,n)){let r=new A_(i,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=i.overlayY;i.overlayX==="center"?n="center":this._isRtl()?n=i.overlayX==="start"?"right":"left":n=i.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(i,e){let n=this._viewportRect,r=this._isRtl(),o,a,c;if(e.overlayY==="top")a=i.y,o=n.height-a+this._viewportMargin;else if(e.overlayY==="bottom")c=n.height-i.y+this._viewportMargin*2,o=n.height-c+this._viewportMargin;else{let y=Math.min(n.bottom-i.y+n.top,i.y),C=this._lastBoundingBoxSize.height;o=y*2,a=i.y-y,o>C&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-C/2)}let u=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,f=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,p,_,w;if(f)w=n.width-i.x+this._viewportMargin*2,p=i.x-this._viewportMargin;else if(u)_=i.x,p=n.right-i.x;else{let y=Math.min(n.right-i.x+n.left,i.x),C=this._lastBoundingBoxSize.width;p=y*2,_=i.x-y,p>C&&!this._isInitialRender&&!this._growAfterOpen&&(_=i.x-C/2)}return{top:a,left:_,bottom:c,right:w,width:p,height:o}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=St(n.height),r.top=St(n.top),r.bottom=St(n.bottom),r.width=St(n.width),r.left=St(n.left),r.right=St(n.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=St(o)),a&&(r.maxWidth=St(a))}this._lastBoundingBoxSize=n,Eo(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Eo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Eo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let p=this._viewportRuler.getViewportScrollPosition();Eo(n,this._getExactOverlayY(e,i,p)),Eo(n,this._getExactOverlayX(e,i,p))}else n.position="static";let c="",u=this._getOffset(e,"x"),f=this._getOffset(e,"y");u&&(c+=`translateX(${u}px) `),f&&(c+=`translateY(${f}px)`),n.transform=c.trim(),a.maxHeight&&(r?n.maxHeight=St(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=St(a.maxWidth):o&&(n.maxWidth="")),Eo(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=St(o.y);return r}_getExactOverlayX(i,e,n){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let c=this._document.documentElement.clientWidth;r.right=`${c-(o.x+this._overlayRect.width)}px`}else r.left=St(o.x);return r}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wE(i,n),isOriginOutsideView:S_(i,n),isOverlayClipped:wE(e,n),isOverlayOutsideView:S_(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){let i=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+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Ms(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof H)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}};function Eo(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DE(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(JV);return!e||e==="px"?parseFloat(i):null}return t||null}function CE(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 e2(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EE="cdk-global-overlay-wrapper",O_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EE),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=n,u=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),f=(o==="100%"||o==="100vh")&&(!c||c==="100%"||c==="100vh"),p=this._xPosition,_=this._xOffset,w=this._overlayRef.getConfig().direction==="rtl",y="",C="",I="";u?I="flex-start":p==="center"?(I="center",w?C=_:y=_):w?p==="left"||p==="end"?(I="flex-end",y=_):(p==="right"||p==="start")&&(I="flex-start",C=_):p==="left"||p==="start"?(I="flex-start",y=_):(p==="right"||p==="end")&&(I="flex-end",C=_),i.position=this._cssPosition,i.marginLeft=u?"0":y,i.marginTop=f?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=u?"0":C,e.justifyContent=I,e.alignItems=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EE),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},t2=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new O_}flexibleConnectedTo(e){return new Dl(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(n){return new(n||t)(T(Rn),T(ge),T(je),T(ME))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),i2=0,Qt=(()=>{class t{constructor(e,n,r,o,a,c,u,f,p,_,w,y){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=u,this._document=f,this._directionality=p,this._location=_,this._outsideClickDispatcher=w,this._animationsModuleType=y}create(e){let n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new js(e);return a.direction=a.direction||this._directionality.value,new R_(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=`cdk-overlay-${i2++}`,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(_s)),new Lu(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(n){return new(n||t)(T(QV),T(ME),T(so),T(t2),T(KV),T(Ii),T(G),T(ge),T(Ot),T(Fp),T(XV),T(ot,8))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),n2=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kE=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=U(Qt);return()=>t.scrollStrategies.reposition()}}),Cl=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(n){return new(n||t)(b(H))}}static{this.\u0275dir=N({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return t})(),P_=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,n,r,o,a){this._overlay=e,this._dir=a,this._backdropSubscription=Ce.EMPTY,this._attachSubscription=Ce.EMPTY,this._detachSubscription=Ce.EMPTY,this._positionSubscription=Ce.EMPTY,this._disposeOnNavigation=!1,this._ngZone=U(G),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new B,this.positionChange=new B,this.attach=new B,this.detach=new B,this.overlayKeydown=new B,this.overlayOutsideClick=new B,this._templatePortal=new kr(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=n2);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Pt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let r=this._getOriginElement(),o=Gi(n);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new js({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Cl?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Cl?this.origin.elementRef.nativeElement:this.origin instanceof H?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(_f(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(b(Qt),b(yt),b(_t),b(kE),b(Ot,8))}}static{this.\u0275dir=N({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[D.None,"cdkConnectedOverlayOrigin","origin"],positions:[D.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[D.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[D.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[D.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[D.None,"cdkConnectedOverlayWidth","width"],height:[D.None,"cdkConnectedOverlayHeight","height"],minWidth:[D.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[D.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[D.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[D.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[D.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[D.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[D.None,"cdkConnectedOverlayOpen","open"],disableClose:[D.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[D.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[D.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Q],lockPosition:[D.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",Q],flexibleDimensions:[D.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Q],growAfterOpen:[D.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Q],push:[D.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",Q],disposeOnNavigation:[D.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Q]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Re,Ge]})}}return t})();function r2(t){return()=>t.scrollStrategies.reposition()}var o2={provide:kE,deps:[Qt],useFactory:r2},zs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[Qt,o2],imports:[Dr,Os,sl,sl]})}}return t})();var s2=["mat-button",""],AE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],RE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var a2=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",l2=["mat-fab",""];var c2=["mat-icon-button",""],d2=["*"];var u2=new R("MAT_BUTTON_CONFIG");var h2=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],F_=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,n,r,o){this._elementRef=e,this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=U(nr),this._rippleLoader=U(oC),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=U(u2,{optional:!0}),c=e.nativeElement,u=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:f,mdcClasses:p}of h2)c.hasAttribute(f)&&u.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(n){Ed()}}static{this.\u0275dir=N({type:t,inputs:{color:"color",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Q],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],ariaDisabled:[D.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Q],disabledInteractive:[D.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Q]},features:[Re]})}}return t})();var El=(()=>{class t extends F_{constructor(e,n,r,o){super(e,n,r,o)}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(je),b(G),b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(de("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Rt(r.color?"mat-"+r.color:""),oe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ee,ue],attrs:s2,ngContentSelectors:RE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Xe(AE),ie(0,"span",0),ae(1),E(2,"span",1),ae(3,1),M(),ae(4,2),ie(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})();var f2=new R("mat-mdc-fab-default-options",{providedIn:"root",factory:OE});function OE(){return{color:"accent"}}var TE=OE(),PE=(()=>{class t extends F_{constructor(e,n,r,o,a){super(e,n,r,o),this._options=a,this._isFab=!0,this._options=this._options||TE,this.color=this._options.color||TE.color}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(je),b(G),b(ot,8),b(f2,8))}}static{this.\u0275cmp=se({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(n,r){n&2&&(de("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Rt(r.color?"mat-"+r.color:""),oe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0)("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended))},inputs:{extended:[D.HasDecoratorInputTransform,"extended","extended",Q]},exportAs:["matButton"],standalone:!0,features:[Re,Ee,ue],attrs:l2,ngContentSelectors:RE,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Xe(AE),ie(0,"span",0),ae(1),E(2,"span",1),ae(3,1),M(),ae(4,2),ie(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0})}}return t})();var Il=(()=>{class t extends F_{constructor(e,n,r,o){super(e,n,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(je),b(G),b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(de("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Rt(r.color?"mat-"+r.color:""),oe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ee,ue],attrs:c2,ngContentSelectors:d2,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(Xe(),ie(0,"span",0),ae(1),ie(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',a2],encapsulation:2,changeDetection:0})}}return t})();var Hs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,ul,Fe]})}}return t})();var N_=class{constructor(i){this._box=i,this._destroyed=new Y,this._resizeSubject=new Y,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new ke(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(ut(e=>e.some(n=>n.target===i)),Tc({bufferSize:1,refCount:!0}),we(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},NE=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=U(G),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,n){let r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new N_(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var m2=["notch"],p2=["matFormFieldNotchedOutline",""],g2=["*"],_2=["textField"],b2=["iconPrefixContainer"],v2=["textPrefixContainer"],y2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],w2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function x2(t,i){t&1&&ie(0,"span",17)}function D2(t,i){if(t&1&&(E(0,"label",16),ae(1,1),J(2,x2,1,0,"span",17),M()),t&2){let e=$(2);V("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),de("for",e._control.disableAutomaticLabeling?null:e._control.id),S(2),Te(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function C2(t,i){if(t&1&&J(0,D2,3,5,"label",16),t&2){let e=$();Te(0,e._hasFloatingLabel()?0:-1)}}function E2(t,i){t&1&&ie(0,"div",5)}function I2(t,i){}function M2(t,i){if(t&1&&J(0,I2,0,0,"ng-template",11),t&2){$(2);let e=ri(1);V("ngTemplateOutlet",e)}}function k2(t,i){if(t&1&&(E(0,"div",7),J(1,M2,1,1,null,11),M()),t&2){let e=$();V("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),S(),Te(1,e._forceDisplayInfixLabel()?-1:1)}}function S2(t,i){t&1&&(E(0,"div",8,2),ae(2,2),M())}function T2(t,i){t&1&&(E(0,"div",9,3),ae(2,3),M())}function A2(t,i){}function R2(t,i){if(t&1&&J(0,A2,0,0,"ng-template",11),t&2){$();let e=ri(1);V("ngTemplateOutlet",e)}}function O2(t,i){t&1&&(E(0,"div",12),ae(1,4),M())}function P2(t,i){t&1&&(E(0,"div",13),ae(1,5),M())}function F2(t,i){t&1&&ie(0,"div",14)}function N2(t,i){if(t&1&&(E(0,"div",18),ae(1,6),M()),t&2){let e=$();V("@transitionMessages",e._subscriptAnimationState)}}function L2(t,i){if(t&1&&(E(0,"mat-hint",20),me(1),M()),t&2){let e=$(2);V("id",e._hintLabelId),S(),kt(e.hintLabel)}}function V2(t,i){if(t&1&&(E(0,"div",19),J(1,L2,2,2,"mat-hint",20),ae(2,7),ie(3,"div",21),ae(4,8),M()),t&2){let e=$();V("@transitionMessages",e._subscriptAnimationState),S(),Te(1,e.hintLabel?1:-1)}}var ih=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["mat-label"]],standalone:!0})}}return t})(),j2=0,$E=new R("MatError"),WE=(()=>{class t{constructor(e,n){this.id=`mat-mdc-error-${j2++}`,e||n.nativeElement.setAttribute("aria-live","polite")}static{this.\u0275fac=function(n){return new(n||t)(Yt("aria-live"),b(H))}}static{this.\u0275dir=N({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,r){n&2&&ui("id",r.id)},inputs:{id:"id"},standalone:!0,features:[pe([{provide:$E,useExisting:t}])]})}}return t})(),B2=0,nh=(()=>{class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${B2++}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){n&2&&(ui("id",r.id),de("align",null),oe("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return t})(),z2=new R("MatPrefix");var GE=new R("MatSuffix"),qE=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[D.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[pe([{provide:GE,useExisting:t}])]})}}return t})(),ZE=new R("FloatingLabelParent"),LE=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=U(NE),this._ngZone=U(G),this._parent=U(ZE),this._resizeSubscription=new Ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return H2(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(n){return new(n||t)(b(H))}}static{this.\u0275dir=N({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return t})();function H2(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var VE="mdc-line-ripple--active",th="mdc-line-ripple--deactivating",jE=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,a=o.contains(th);r.propertyName==="opacity"&&a&&o.remove(VE,th)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(th),e.add(VE)}deactivate(){this._elementRef.nativeElement.classList.add(th)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(G))}}static{this.\u0275dir=N({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return t})(),BE=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(G))}}static{this.\u0275cmp=se({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(n&1&&De(m2,5),n&2){let o;q(o=Z())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mdc-notched-outline--notched",r.open)},inputs:{open:[D.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[ue],attrs:p2,ngContentSelectors:g2,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,r){n&1&&(Xe(),ie(0,"div",1),E(1,"div",2,0),ae(3),M(),ie(4,"div",3))},encapsulation:2,changeDetection:0})}}return t})(),U2={transitionMessages:sn("transitionMessages",[$i("enter",wt({opacity:1,transform:"translateY(0%)"})),wi("void => enter",[wt({opacity:0,transform:"translateY(-5px)"}),Mi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Io=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t})}}return t})();var Mo=new R("MatFormField"),$2=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),zE=0,HE="fill",W2="auto",UE="fixed",G2="translateY(-50%)",rh=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ti(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||W2}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let n=this._appearance,r=e||this._defaults?.appearance||HE;this._appearance=r,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||UE}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||UE}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,n,r,o,a,c,u,f){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=u,this._hideRequiredMarker=!1,this.color="primary",this._appearance=HE,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${zE++}`,this._hintLabelId=`mat-mdc-hint-${zE++}`,this._subscriptAnimationState="",this._destroyed=new Y,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(we(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ei(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(we(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(we(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",u=`${o+a}px`,p=`calc(${c} * (${u} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
|
|
33
|
+
--mat-mdc-form-field-label-transform,
|
|
34
|
+
${G2} translateX(${p})
|
|
35
|
+
)`}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(Le),b(G),b(Ot),b(je),b($2,8),b(ot,8),b(ge))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(n&1&&(et(o,ih,5),et(o,ih,7),et(o,Io,5),et(o,z2,5),et(o,GE,5),et(o,$E,5),et(o,nh,5)),n&2){let a;q(a=Z())&&(r._labelChildNonStatic=a.first),q(a=Z())&&(r._labelChildStatic=a.first),q(a=Z())&&(r._formFieldControl=a.first),q(a=Z())&&(r._prefixChildren=a),q(a=Z())&&(r._suffixChildren=a),q(a=Z())&&(r._errorChildren=a),q(a=Z())&&(r._hintChildren=a)}},viewQuery:function(n,r){if(n&1&&(De(_2,5),De(b2,5),De(v2,5),De(LE,5),De(BE,5),De(jE,5)),n&2){let o;q(o=Z())&&(r._textField=o.first),q(o=Z())&&(r._iconPrefixContainer=o.first),q(o=Z())&&(r._textPrefixContainer=o.first),q(o=Z())&&(r._floatingLabel=o.first),q(o=Z())&&(r._notchedOutline=o.first),q(o=Z())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){n&2&&oe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[pe([{provide:Mo,useExisting:t},{provide:ZE,useExisting:t}]),ue],ngContentSelectors:w2,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(n&1){let o=rt();Xe(y2),J(0,C2,1,1,"ng-template",null,0,co),E(2,"div",4,1),X("click",function(c){return ne(o),re(r._control.onContainerClick(c))}),J(4,E2,1,0,"div",5),E(5,"div",6),J(6,k2,2,2,"div",7)(7,S2,3,0,"div",8)(8,T2,3,0,"div",9),E(9,"div",10),J(10,R2,1,1,null,11),ae(11),M(),J(12,O2,2,0,"div",12)(13,P2,2,0,"div",13),M(),J(14,F2,1,0,"div",14),M(),E(15,"div",15),J(16,N2,2,1)(17,V2,5,2),M()}if(n&2){let o;S(2),oe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),S(2),Te(4,!r._hasOutline()&&!r._control.disabled?4:-1),S(2),Te(6,r._hasOutline()?6:-1),S(),Te(7,r._hasIconPrefix?7:-1),S(),Te(8,r._hasTextPrefix?8:-1),S(2),Te(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),S(2),Te(12,r._hasTextSuffix?12:-1),S(),Te(13,r._hasIconSuffix?13:-1),S(),Te(14,r._hasOutline()?-1:14),S(),oe("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),S(),Te(16,(o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[LE,BE,Nd,jE,nh],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[U2.transitionMessages]},changeDetection:0})}}return t})(),ko=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,jt,Cu,Fe]})}}return t})();var YE=xi({passive:!0}),QE=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wn;let n=qi(e),r=this._monitoredElements.get(n);if(r)return r.subject;let o=new Y,a="cdk-text-field-autofilled",c=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,YE),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",c,YE)}}),o}stopMonitoring(e){let n=qi(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static{this.\u0275fac=function(n){return new(n||t)(T(je),T(G))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var KE=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({})}}return t})();var Y2=new R("MAT_INPUT_VALUE_ACCESSOR"),Q2=["button","checkbox","file","hidden","image","radio","range","reset","submit"],K2=0,XE=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ti(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(jn.required)??!1}set required(e){this._required=Ti(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&kg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ti(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,a,c,u,f,p,_){this._elementRef=e,this._platform=n,this.ngControl=r,this._autofillMonitor=f,this._formField=_,this._uid=`mat-input-${K2++}`,this.focused=!1,this.stateChanges=new Y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(C=>kg().has(C)),this._iOSKeyupListener=C=>{let I=C.target;!I.value&&I.selectionStart===0&&I.selectionEnd===0&&(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};let w=this._elementRef.nativeElement,y=w.nodeName.toLowerCase();this._inputValueAccessor=u||w,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Er(c,r,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=y==="select",this._isTextarea=y==="textarea",this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=w.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Q2.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(je),b(fi,10),b(rr,8),b(un,8),b(Ir),b(Y2,10),b(QE),b(G),b(Mo,8))}}static{this.\u0275dir=N({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){n&1&&X("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),n&2&&(ui("id",r.id)("disabled",r.disabled)("required",r.required),de("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),oe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[D.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[pe([{provide:Io,useExisting:t}]),Ge]})}}return t})(),JE=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,ko,ko,KE,Fe]})}}return t})();var ej=["mat-calendar-body",""];function tj(t,i){if(t&1&&(E(0,"tr",0)(1,"td",3),me(2),M()()),t&2){let e=$();S(),Lt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),de("colspan",e.numCols),S(),xt(" ",e.label," ")}}function ij(t,i){if(t&1&&(E(0,"td",3),me(1),M()),t&2){let e=$(2);Lt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),de("colspan",e._firstRowOffset),S(),xt(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function nj(t,i){if(t&1){let e=rt();E(0,"td",6)(1,"button",7),X("click",function(r){let o=ne(e).$implicit,a=$(2);return re(a._cellClicked(o,r))})("focus",function(r){let o=ne(e).$implicit,a=$(2);return re(a._emitActiveDateChange(o,r))}),E(2,"span",8),me(3),M(),ie(4,"span",9),M()()}if(t&2){let e=i.$implicit,n=i.$index,r=$().$index,o=$();Lt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),de("data-mat-row",r)("data-mat-col",n),S(),oe("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,n))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,n))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,n))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),V("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,n)?0:-1),de("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),S(),oe("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),S(),xt(" ",e.displayValue," ")}}function rj(t,i){if(t&1&&(E(0,"tr",1),J(1,ij,2,6,"td",4),ms(2,nj,5,48,"td",5,Od),M()),t&2){let e=i.$implicit,n=i.$index,r=$();S(),Te(1,n===0&&r._firstRowOffset?1:-1),S(),ps(e)}}function oj(t,i){if(t&1&&(E(0,"th",2)(1,"span",6),me(2),M(),E(3,"span",3),me(4),M()()),t&2){let e=i.$implicit;S(2),kt(e.long),S(2),kt(e.narrow)}}var sj=["*"];function aj(t,i){}function lj(t,i){if(t&1){let e=rt();E(0,"mat-month-view",2),Ui("activeDateChange",function(r){ne(e);let o=$();return on(o.activeDate,r)||(o.activeDate=r),re(r)}),X("_userSelection",function(r){ne(e);let o=$();return re(o._dateSelected(r))})("dragStarted",function(r){ne(e);let o=$();return re(o._dragStarted(r))})("dragEnded",function(r){ne(e);let o=$();return re(o._dragEnded(r))}),M()}if(t&2){let e=$();Hi("activeDate",e.activeDate),V("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function cj(t,i){if(t&1){let e=rt();E(0,"mat-year-view",3),Ui("activeDateChange",function(r){ne(e);let o=$();return on(o.activeDate,r)||(o.activeDate=r),re(r)}),X("monthSelected",function(r){ne(e);let o=$();return re(o._monthSelectedInYearView(r))})("selectedChange",function(r){ne(e);let o=$();return re(o._goToDateInView(r,"month"))}),M()}if(t&2){let e=$();Hi("activeDate",e.activeDate),V("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function dj(t,i){if(t&1){let e=rt();E(0,"mat-multi-year-view",4),Ui("activeDateChange",function(r){ne(e);let o=$();return on(o.activeDate,r)||(o.activeDate=r),re(r)}),X("yearSelected",function(r){ne(e);let o=$();return re(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){ne(e);let o=$();return re(o._goToDateInView(r,"year"))}),M()}if(t&2){let e=$();Hi("activeDate",e.activeDate),V("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function uj(t,i){}var hj=["button"],fj=[[["","matDatepickerToggleIcon",""]]],mj=["[matDatepickerToggleIcon]"];function pj(t,i){t&1&&(vi(),E(0,"svg",2),ie(1,"path",3),M())}var gj=[[["input","matStartDate",""]],[["input","matEndDate",""]]],_j=["input[matStartDate]","input[matEndDate]"];var Sl=(()=>{class t{constructor(){this.changes=new Y,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),kl=class{constructor(i,e,n,r,o={},a=i,c){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=c}},bj=1,eI=xi({passive:!1,capture:!0}),Tr=xi({passive:!0,capture:!0}),oh=xi({passive:!0}),$s=(()=>{class t{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,n){this._elementRef=e,this._ngZone=n,this._platform=U(je),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new B,this.previewChange=new B,this.activeDateChange=new B,this.dragStarted=new B,this.dragEnded=new B,this._didDragSinceMouseDown=!1,this._enterHandler=r=>{if(this._skipNextFocus&&r.type==="focus"){this._skipNextFocus=!1;return}if(r.target&&this.isRange){let o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._touchmoveHandler=r=>{if(!this.isRange)return;let o=tI(r),a=o?this._getCellFromElement(o):null;o!==r.target&&(this._didDragSinceMouseDown=!0),V_(r.target)&&r.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:r}))},this._leaveHandler=r=>{this.previewEnd!==null&&this.isRange&&(r.type!=="blur"&&(this._didDragSinceMouseDown=!0),r.target&&this._getCellFromElement(r.target)&&!(r.relatedTarget&&this._getCellFromElement(r.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r})))},this._mousedownHandler=r=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let o=r.target&&this._getCellFromElement(r.target);!o||!this._isInRange(o.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:o.rawValue,event:r})})},this._mouseupHandler=r=>{if(!this.isRange)return;let o=V_(r.target);if(!o){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:r})});return}o.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(o);this.dragEnded.emit({value:a?.rawValue??null,event:r})})},this._touchendHandler=r=>{let o=tI(r);o&&this._mouseupHandler({target:o})},this._id=`mat-calendar-body-${bj++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let r=e.nativeElement;r.addEventListener("touchmove",this._touchmoveHandler,eI),r.addEventListener("mouseenter",this._enterHandler,Tr),r.addEventListener("focus",this._enterHandler,Tr),r.addEventListener("mouseleave",this._leaveHandler,Tr),r.addEventListener("blur",this._leaveHandler,Tr),r.addEventListener("mousedown",this._mousedownHandler,oh),r.addEventListener("touchstart",this._mousedownHandler,oh),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:r,numCols:o}=this;(e.rows||n)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,eI),e.removeEventListener("mouseenter",this._enterHandler,Tr),e.removeEventListener("focus",this._enterHandler,Tr),e.removeEventListener("mouseleave",this._leaveHandler,Tr),e.removeEventListener("blur",this._leaveHandler,Tr),e.removeEventListener("mousedown",this._mousedownHandler,oh),e.removeEventListener("touchstart",this._mousedownHandler,oh),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,n){let r=e*this.numCols+n;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(nt(1)).subscribe(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return j_(e,this.startValue,this.endValue)}_isRangeEnd(e){return B_(e,this.startValue,this.endValue)}_isInRange(e){return z_(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return j_(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[n][r-1];if(!o){let a=this.rows[n-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,n,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[n][r+1];if(!o){let a=this.rows[n+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return B_(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return z_(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return j_(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return B_(e,this.previewStart,this.previewEnd)}_isInPreview(e){return z_(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let n=V_(e);if(n){let r=n.getAttribute("data-mat-row"),o=n.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(G))}}static{this.\u0275cmp=se({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Ge,ue],attrs:ej,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,r){n&1&&(J(0,tj,3,6,"tr",0),ms(1,rj,4,1,"tr",1,Od),E(3,"label",2),me(4),M(),E(5,"label",2),me(6),M()),n&2&&(Te(0,r._firstRowOffset<r.labelMinRequiredCells?0:-1),S(),ps(r.rows),S(2),V("id",r._startDateLabelId),S(),xt(" ",r.startDateAccessibleName,`
|
|
36
|
+
`),S(),V("id",r._endDateLabelId),S(),xt(" ",r.endDateAccessibleName,`
|
|
37
|
+
`))},dependencies:[vr],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0})}}return t})();function L_(t){return t?.nodeName==="TD"}function V_(t){let i;return L_(t)?i=t:L_(t.parentNode)?i=t.parentNode:L_(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function j_(t,i,e){return e!==null&&i!==e&&t<e&&t===i}function B_(t,i,e){return i!==null&&i!==e&&t>=i&&t===e}function z_(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function tI(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var Bt=class{constructor(i,e){this.start=i,this.end=e}},Ar=(()=>{class t{constructor(e,n){this.selection=e,this._adapter=n,this._selectionChanged=new Y,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,n){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(n){Ed()}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),vj=(()=>{class t extends Ar{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(n){return new(n||t)(T(ct))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})(),yj=(()=>{class t extends Ar{constructor(e){super(new Bt(null,null),e)}add(e){let{start:n,end:r}=this.selection;n==null?n=e:r==null?r=e:(n=e,r=null),super.updateSelection(new Bt(n,r),this)}isValid(){let{start:e,end:n}=this.selection;return e==null&&n==null?!0:e!=null&&n!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(n)&&this._adapter.compareDate(e,n)<=0:(e==null||this._isValidDateInstance(e))&&(n==null||this._isValidDateInstance(n))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(n){return new(n||t)(T(ct))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function wj(t,i){return t||new vj(i)}var xj={provide:Ar,deps:[[new ro,new as,Ar],ct],useFactory:wj};function Dj(t,i){return t||new yj(i)}var Cj={provide:Ar,deps:[[new ro,new as,Ar],ct],useFactory:Dj},sh=new R("MAT_DATE_RANGE_SELECTION_STRATEGY"),Ej=(()=>{class t{constructor(e){this._dateAdapter=e}selectionFinished(e,n){let{start:r,end:o}=n;return r==null?r=e:o==null&&e&&this._dateAdapter.compareDate(e,r)>=0?o=e:(r=e,o=null),new Bt(r,o)}createPreview(e,n){let r=null,o=null;return n.start&&!n.end&&e&&(r=n.start,o=e),new Bt(r,o)}createDrag(e,n,r){let o=n.start,a=n.end;if(!o||!a)return null;let c=this._dateAdapter,u=c.compareDate(o,a)!==0,f=c.getYear(r)-c.getYear(e),p=c.getMonth(r)-c.getMonth(e),_=c.getDate(r)-c.getDate(e);return u&&c.sameDate(e,n.start)?(o=r,c.compareDate(r,a)>0&&(a=c.addCalendarYears(a,f),a=c.addCalendarMonths(a,p),a=c.addCalendarDays(a,_))):u&&c.sameDate(e,n.end)?(a=r,c.compareDate(r,o)<0&&(o=c.addCalendarYears(o,f),o=c.addCalendarMonths(o,p),o=c.addCalendarDays(o,_))):(o=c.addCalendarYears(o,f),o=c.addCalendarMonths(o,p),o=c.addCalendarDays(o,_),a=c.addCalendarYears(a,f),a=c.addCalendarMonths(a,p),a=c.addCalendarDays(a,_)),new Bt(o,a)}static{this.\u0275fac=function(n){return new(n||t)(T(ct))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac})}}return t})();function Ij(t,i){return t||new Ej(i)}var Mj={provide:sh,deps:[[new ro,new as,sh],ct],useFactory:Ij},H_=7,iI=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof Bt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,n,r,o,a){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rangeStrategy=a,this._rerenderSubscription=Ce.EMPTY,this.activeDrag=null,this.selectedChange=new B,this._userSelection=new B,this.dragStarted=new B,this.dragEnded=new B,this.activeDateChange=new B,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ci(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,r=this._getDateFromDayOfMonth(n),o,a;this._selected instanceof Bt?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==n||a!==n)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!Pt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(H_+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%H_,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let r=n?n.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,c)=>({long:a,narrow:n[c]}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r<e;r++,o++){o==H_&&(this._weeks.push([]),o=0);let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),c=this._shouldEnableDate(a),u=this._dateAdapter.format(a,this._dateFormats.display.dateA11yLabel),f=this.dateClass?this.dateClass(a,"month"):void 0;this._weeks[this._weeks.length-1].push(new kl(r+1,n[r],u,c,f,this._getCellCompareValue(a),a))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(n,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof Bt?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(Ln,8),b(ct,8),b(Ot,8),b(sh,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,r){if(n&1&&De($s,5),n&2){let o;q(o=Z())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Ge,ue],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,r){n&1&&(E(0,"table",0)(1,"thead",1)(2,"tr"),ms(3,oj,5,2,"th",2,Od),M(),E(5,"tr",3),ie(6,"th",4),M()(),E(7,"tbody",5),X("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),M()()),n&2&&(S(3),ps(r._weekdays),S(4),V("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[$s],encapsulation:2,changeDetection:0})}}return t})(),Fi=24,U_=4,nI=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),lI(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof Bt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,n,r){this._changeDetectorRef=e,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new B,this.yearSelected=new B,this.activeDateChange=new B,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ci(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-Ml(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r<Fi;r++)o.push(n+r),o.length==U_&&(this._years.push(o.map(a=>this._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,r=this._dateAdapter.createDate(n,0,1),o=this._getDateFromYear(n);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let n=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-U_);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U_);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ml(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fi-Ml(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Fi*10:-Fi);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Fi*10:Fi);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ml(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(n),o=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new kl(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let n=this._dateAdapter.createDate(e,0,1);for(let r=n;this._dateAdapter.getYear(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof Bt){let n=e.start||e.end;n&&(this._selectedYear=this._dateAdapter.getYear(n))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(ct,8),b(Ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(n,r){if(n&1&&De($s,5),n&2){let o;q(o=Z())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],standalone:!0,features:[ue],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(n,r){n&1&&(E(0,"table",0)(1,"thead",1)(2,"tr"),ie(3,"th",2),M()(),E(4,"tbody",3),X("selectedValueChange",function(a){return r._yearSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),M()()),n&2&&(S(4),V("rows",r._years)("todayValue",r._todayYear)("startValue",r._selectedYear)("endValue",r._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._getActiveCell()))},dependencies:[$s],encapsulation:2,changeDetection:0})}}return t})();function lI(t,i,e,n,r){let o=t.getYear(i),a=t.getYear(e),c=cI(t,n,r);return Math.floor((o-c)/Fi)===Math.floor((a-c)/Fi)}function Ml(t,i,e,n){let r=t.getYear(i);return kj(r-cI(t,e,n),Fi)}function cI(t,i,e){let n=0;return e?n=t.getYear(e)-Fi+1:i&&(n=t.getYear(i)),n}function kj(t,i){return(t%i+i)%i}var rI=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof Bt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,n,r,o){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new B,this.monthSelected=new B,this.activeDateChange=new B,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ci(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(n);this.selectedChange.emit(o)}_updateActiveDate(e){let n=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,n){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new kl(e,n.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(n,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&n>o}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e<r||e===r&&n<o}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof Bt?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(Ln,8),b(ct,8),b(Ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-year-view"]],viewQuery:function(n,r){if(n&1&&De($s,5),n&2){let o;q(o=Z())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],standalone:!0,features:[ue],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(n,r){n&1&&(E(0,"table",0)(1,"thead",1)(2,"tr"),ie(3,"th",2),M()(),E(4,"tbody",3),X("selectedValueChange",function(a){return r._monthSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),M()()),n&2&&(S(4),V("label",r._yearLabel)("rows",r._months)("todayValue",r._todayMonth)("startValue",r._selectedMonth)("endValue",r._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._dateAdapter.getMonth(r.activeDate)))},dependencies:[$s],encapsulation:2,changeDetection:0})}}return t})(),Sj=1,dI=(()=>{class t{constructor(e,n,r,o,a){this._intl=e,this.calendar=n,this._dateAdapter=r,this._dateFormats=o,this._id=`mat-calendar-header-${Sj++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Fi)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Fi)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):lI(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-Ml(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=n+Fi-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}static{this.\u0275fac=function(n){return new(n||t)(b(Sl),b(It(()=>$_)),b(ct,8),b(Ln,8),b(Le))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[ue],ngContentSelectors:sj,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(n,r){n&1&&(Xe(),E(0,"div",0)(1,"div",1)(2,"label",2),me(3),M(),E(4,"button",3),X("click",function(){return r.currentPeriodClicked()}),E(5,"span",4),me(6),M(),vi(),E(7,"svg",5),ie(8,"polygon",6),M()(),cs(),ie(9,"div",7),ae(10),E(11,"button",8),X("click",function(){return r.previousClicked()}),M(),E(12,"button",9),X("click",function(){return r.nextClicked()}),M()()()),n&2&&(S(2),V("id",r._periodButtonLabelId),S(),kt(r.periodButtonDescription),S(),de("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),S(2),kt(r.periodButtonText),S(),oe("mat-calendar-invert",r.calendar.currentView!=="month"),S(4),V("disabled",!r.previousEnabled()),de("aria-label",r.prevButtonLabel),S(),V("disabled",!r.nextEnabled()),de("aria-label",r.nextButtonLabel))},dependencies:[El,Il],encapsulation:2,changeDetection:0})}}return t})(),$_=(()=>{class t{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof Bt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(e,n,r,o){this._dateAdapter=n,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new B,this.yearSelected=new B,this.monthSelected=new B,this.viewChanged=new B(!0),this._userSelection=new B,this._userDragDrop=new B,this._activeDrag=null,this.stateChanges=new Y,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Mr(this.headerComponent||dI),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=n||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let n=e.value;(this.selected instanceof Bt||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static{this.\u0275fac=function(n){return new(n||t)(b(Sl),b(ct,8),b(Ln,8),b(Le))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,r){if(n&1&&(De(iI,5),De(rI,5),De(nI,5)),n&2){let o;q(o=Z())&&(r.monthView=o.first),q(o=Z())&&(r.yearView=o.first),q(o=Z())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[pe([xj]),Ge,ue],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,r){if(n&1&&(J(0,aj,0,0,"ng-template",0),E(1,"div",1),J(2,lj,1,11)(3,cj,1,6)(4,dj,1,6),M()),n&2){let o;V("cdkPortalOutlet",r._calendarHeaderPortal),S(2),Te(2,(o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[fl,Yg,iI,rI,nI],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),oI={transformPanel:sn("transformPanel",[wi("void => enter-dropdown",Mi("120ms cubic-bezier(0, 0, 0.2, 1)",Qp([wt({opacity:0,transform:"scale(1, 0.8)"}),wt({opacity:1,transform:"scale(1, 1)"})]))),wi("void => enter-dialog",Mi("150ms cubic-bezier(0, 0, 0.2, 1)",Qp([wt({opacity:0,transform:"scale(0.7)"}),wt({transform:"none",opacity:1})]))),wi("* => void",Mi("100ms linear",wt({opacity:0})))]),fadeInCalendar:sn("fadeInCalendar",[$i("void",wt({opacity:0})),$i("enter",wt({opacity:1})),wi("void => *",Mi("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Tj=0,uI=new R("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=U(Qt);return()=>t.scrollStrategies.reposition()}});function Aj(t){return()=>t.scrollStrategies.reposition()}var Rj={provide:uI,deps:[Qt],useFactory:Aj},hI=(()=>{class t{constructor(e,n,r,o,a,c){this._elementRef=e,this._changeDetectorRef=n,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=a,this._subscriptions=new Ce,this._animationDone=new Y,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,r=e.value,o=n instanceof Bt;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,n,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,n))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(Le),b(Ar),b(ct),b(sh,8),b(Sl))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,r){if(n&1&&De($_,5),n&2){let o;q(o=Z())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,r){n&1&&xp("@transformPanel.start",function(a){return r._handleAnimationEvent(a)})("@transformPanel.done",function(a){return r._handleAnimationEvent(a)}),n&2&&(wp("@transformPanel",r._animationState),Rt(r.color?"mat-"+r.color:""),oe("mat-datepicker-content-touch",r.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[ue],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,r){if(n&1&&(E(0,"div",0)(1,"mat-calendar",1),X("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),M(),J(2,uj,0,0,"ng-template",2),E(3,"button",3),X("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),me(4),M()()),n&2){let o;oe("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),de("aria-modal",!0)("aria-labelledby",(o=r._dialogLabelId)!==null&&o!==void 0?o:void 0),S(),Rt(r.datepicker.panelClass),V("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),S(),V("cdkPortalOutlet",r._actionsPortal),S(),oe("cdk-visually-hidden",!r._closeButtonFocused),V("color",r.color||"primary"),S(),kt(r._closeButtonText)}},dependencies:[$D,$_,fl,El],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[oI.transformPanel,oI.fadeInCalendar]},changeDetection:0})}}return t})(),sI=(()=>{class t{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=ED(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,n,r,o,a,c,u){this._overlay=e,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=c,this._model=u,this._inputStateChanges=Ce.EMPTY,this._document=U(ge),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new B,this.monthSelected=new B,this.viewChanged=new B(!0),this.openedStream=new B,this.closedStream=new B,this._opened=!1,this.id=`mat-datepicker-${Tj++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Y,this._dateAdapter,this._scrollStrategy=o}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof Dl&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=mu(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(nt(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new Mr(hI,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new js({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(nt(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",r=n==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return ei(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ut(r=>r.keyCode===27&&!Pt(r)||this.datepickerInput&&Pt(r,"altKey")&&r.keyCode===38&&n.every(o=>!Pt(r,o)))))}static{this.\u0275fac=function(n){return new(n||t)(b(Qt),b(G),b(_t),b(uI),b(ct,8),b(Ot,8),b(Ar))}}static{this.\u0275dir=N({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[D.HasDecoratorInputTransform,"touchUi","touchUi",Q],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[D.HasDecoratorInputTransform,"restoreFocus","restoreFocus",Q],dateClass:"dateClass",panelClass:"panelClass",opened:[D.HasDecoratorInputTransform,"opened","opened",Q]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Re,Ge]})}}return t})();var Us=class{constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Oj=(()=>{class t{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,r=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let r=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Us(this,this._elementRef.nativeElement)),this.dateChange.emit(new Us(this,this._elementRef.nativeElement))}})}constructor(e,n,r){this._elementRef=e,this._dateAdapter=n,this._dateFormats=r,this.dateChange=new B,this.dateInput=new B,this.stateChanges=new Y,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Ce.EMPTY,this._localeSubscription=Ce.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),c=this._getMinDate();return!c||!a||this._dateAdapter.compareDate(c,a)<=0?null:{matDatepickerMin:{min:c,actual:a}}},this._maxValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),c=this._getMaxDate();return!c||!a||this._dateAdapter.compareDate(c,a)>=0?null:{matDatepickerMax:{max:c,actual:a}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];Pt(e,"altKey")&&e.keyCode===40&&n.every(o=>!Pt(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=this._lastValueValid,r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),n!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new Us(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Us(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(ct,8),b(Ln,8))}}static{this.\u0275dir=N({type:t,inputs:{value:"value",disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Re,Ge]})}}return t})();function fI(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:r,currentValue:o}=t[n];if(i.isDateInstance(r)&&i.isDateInstance(o)){if(!i.sameDate(r,o))return!0}else return!0}return!1}var Pj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=N({type:t,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}}return t})(),G_=(()=>{class t{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,n,r){this._intl=e,this._changeDetectorRef=n,this._stateChanges=Ce.EMPTY;let o=Number(r);this.tabIndex=o||o===0?o:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:mt(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:mt(),r=this.datepicker?ei(this.datepicker.openedStream,this.datepicker.closedStream):mt();this._stateChanges.unsubscribe(),this._stateChanges=ei(this._intl.changes,e,n,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(n){return new(n||t)(b(Sl),b(Le),Yt("tabindex"))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,r,o){if(n&1&&et(o,Pj,5),n&2){let a;q(a=Z())&&(r._customIcon=a.first)}},viewQuery:function(n,r){if(n&1&&De(hj,5),n&2){let o;q(o=Z())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,r){n&1&&X("click",function(a){return r._open(a)}),n&2&&(de("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),oe("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[D.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[D.None,"aria-label","ariaLabel"],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[Re,Ge,ue],ngContentSelectors:mj,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,r){n&1&&(Xe(fj),E(0,"button",1,0),J(2,pj,2,0,":svg:svg",2),ae(3),M()),n&2&&(V("disabled",r.disabled)("disableRipple",r.disableRipple),de("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex),S(2),Te(2,r._customIcon?-1:2))},dependencies:[Il],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}}return t})();function Fj(t){return W_(t,!0)}function aI(t){return t.nodeType===Node.ELEMENT_NODE}function Nj(t){return t.nodeName==="INPUT"}function Lj(t){return t.nodeName==="TEXTAREA"}function W_(t,i){if(aI(t)&&i){let n=(t.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((r,o)=>{let a=document.getElementById(o);return a&&r.push(a),r},[]);if(n.length)return n.map(r=>W_(r,!1)).join(" ")}if(aI(t)){let e=t.getAttribute("aria-label")?.trim();if(e)return e}if(Nj(t)||Lj(t)){if(t.labels?.length)return Array.from(t.labels).map(r=>W_(r,!1)).join(" ");let e=t.getAttribute("placeholder")?.trim();if(e)return e;let n=t.getAttribute("title")?.trim();if(n)return n}return(t.textContent||"").replace(/\s+/g," ").trim()}var ah=new R("MAT_DATE_RANGE_INPUT_PARENT"),mI=(()=>{class t extends Oj{get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,a,c,u,f){super(n,u,f),this._rangeInput=e,this._elementRef=n,this._defaultErrorStateMatcher=r,this._injector=o,this._parentForm=a,this._parentFormGroup=c,this._dir=U(Ot,{optional:!0}),this._errorStateTracker=new Er(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(fi,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,n=e.value;return n.length>0?n:e.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Fj(this._elementRef.nativeElement)}static{this.\u0275fac=function(n){return new(n||t)(b(ah),b(H),b(Ir),b(Ii),b(rr,8),b(un,8),b(ct,8),b(Ln,8))}}static{this.\u0275dir=N({type:t,inputs:{errorStateMatcher:"errorStateMatcher"},standalone:!0,features:[Ee]})}}return t})(),q_=(()=>{class t extends mI{constructor(e,n,r,o,a,c,u,f){super(e,n,r,o,a,c,u,f),this._startValidator=p=>{let _=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(p.value)),w=this._model?this._model.selection.end:null;return!_||!w||this._dateAdapter.compareDate(_,w)<=0?null:{matStartDateInvalid:{end:w,actual:_}}},this._validator=jn.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let n=new Bt(e,this._model.selection.end);this._model.updateSelection(n,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){let n=this._rangeInput._endInput,r=this._elementRef.nativeElement,o=this._dir?.value!=="rtl";(e.keyCode===39&&o||e.keyCode===37&&!o)&&r.selectionStart===r.value.length&&r.selectionEnd===r.value.length?(e.preventDefault(),n._elementRef.nativeElement.setSelectionRange(0,0),n.focus()):super._onKeydown(e)}static{this.\u0275fac=function(n){return new(n||t)(b(ah),b(H),b(Ir),b(Ii),b(rr,8),b(un,8),b(ct,8),b(Ln,8))}}static{this.\u0275dir=N({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(n,r){n&1&&X("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("keydown",function(a){return r._onKeydown(a)})("blur",function(){return r._onBlur()}),n&2&&(ui("disabled",r.disabled),de("aria-haspopup",r._rangeInput.rangePicker?"dialog":null)("aria-owns",(r._rangeInput.rangePicker==null?null:r._rangeInput.rangePicker.opened)&&r._rangeInput.rangePicker.id||null)("min",r._getMinDate()?r._dateAdapter.toIso8601(r._getMinDate()):null)("max",r._getMaxDate()?r._dateAdapter.toIso8601(r._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[pe([{provide:oi,useExisting:t,multi:!0},{provide:Pi,useExisting:t,multi:!0}]),Ee]})}}return t})(),Z_=(()=>{class t extends mI{constructor(e,n,r,o,a,c,u,f){super(e,n,r,o,a,c,u,f),this._endValidator=p=>{let _=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(p.value)),w=this._model?this._model.selection.start:null;return!_||!w||this._dateAdapter.compareDate(_,w)>=0?null:{matEndDateInvalid:{start:w,actual:_}}},this._validator=jn.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let n=new Bt(this._model.selection.start,e);this._model.updateSelection(n,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,n=e.value;n.length>0&&e.setSelectionRange(n.length,n.length),e.focus()}_onKeydown(e){let n=this._elementRef.nativeElement,r=this._dir?.value!=="rtl";e.keyCode===8&&!n.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&r||e.keyCode===39&&!r)&&n.selectionStart===0&&n.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}static{this.\u0275fac=function(n){return new(n||t)(b(ah),b(H),b(Ir),b(Ii),b(rr,8),b(un,8),b(ct,8),b(Ln,8))}}static{this.\u0275dir=N({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(n,r){n&1&&X("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("keydown",function(a){return r._onKeydown(a)})("blur",function(){return r._onBlur()}),n&2&&(ui("disabled",r.disabled),de("aria-haspopup",r._rangeInput.rangePicker?"dialog":null)("aria-owns",(r._rangeInput.rangePicker==null?null:r._rangeInput.rangePicker.opened)&&r._rangeInput.rangePicker.id||null)("min",r._getMinDate()?r._dateAdapter.toIso8601(r._getMinDate()):null)("max",r._getMaxDate()?r._dateAdapter.toIso8601(r._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[pe([{provide:oi,useExisting:t,multi:!0},{provide:Pi,useExisting:t,multi:!0}]),Ee]})}}return t})(),Vj=0,pI=(()=>{class t{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){let e=this._startInput?._getPlaceholder()||"",n=this._endInput?._getPlaceholder()||"";return e||n?`${e} ${this.separator} ${n}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=e}get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._startInput,r=this._endInput,o=n&&n._matchesFilter(n.value),a=r&&r._matchesFilter(n.value);this._dateFilter=e,n&&n._matchesFilter(n.value)!==o&&n._validatorOnChange(),r&&r._matchesFilter(r.value)!==a&&r._validatorOnChange()}get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._revalidate())}get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,n=this._endInput?this._endInput.isEmpty():!1;return e&&n}constructor(e,n,r,o,a){this._changeDetectorRef=e,this._elementRef=n,this._dateAdapter=o,this._formField=a,this._closedSubscription=Ce.EMPTY,this.id=`mat-date-range-input-${Vj++}`,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new Y,this.disableAutomaticLabeling=!0,a?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&n.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=r}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),ei(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let n=e==="start"?this._startInput:this._endInput;return n?n.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(jn.required)}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(H),b(dn,10),b(ct,8),b(Mo,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(n,r,o){if(n&1&&(et(o,q_,5),et(o,Z_,5)),n&2){let a;q(a=Z())&&(r._startInput=a.first),q(a=Z())&&(r._endInput=a.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(n,r){n&2&&(de("id",r.id)("aria-labelledby",r._getAriaLabelledby())("aria-describedby",r._ariaDescribedBy)("data-mat-calendar",r.rangePicker?r.rangePicker.id:null),oe("mat-date-range-input-hide-placeholders",r._shouldHidePlaceholders())("mat-date-range-input-required",r.required))},inputs:{rangePicker:"rangePicker",required:[D.HasDecoratorInputTransform,"required","required",Q],dateFilter:"dateFilter",min:"min",max:"max",disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],standalone:!0,features:[pe([{provide:Io,useExisting:t},{provide:ah,useExisting:t}]),Re,Ge,ue],ngContentSelectors:_j,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(n,r){n&1&&(Xe(gj),E(0,"div",0),X("cdkFocusChange",function(a){return r._updateFocus(a)}),E(1,"div",1),ae(2),E(3,"span",2),me(4),M()(),E(5,"span",3),me(6),M(),E(7,"div",4),ae(8,1),E(9,"span",2),me(10),M()()()),n&2&&(S(4),kt(r._getInputMirrorValue("start")),S(),oe("mat-date-range-input-separator-hidden",r._shouldHideSeparator()),S(),kt(r.separator),S(4),kt(r._getInputMirrorValue("end")))},dependencies:[Yg],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}}return t})(),gI=(()=>{class t extends sI{_forwardContentValues(e){super._forwardContentValues(e);let n=this.datepickerInput;n&&(e.comparisonStart=n.comparisonStart,e.comparisonEnd=n.comparisonEnd,e.startDateAccessibleName=n._getStartDateAccessibleName(),e.endDateAccessibleName=n._getEndDateAccessibleName())}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Mt(t)))(r||t)}})()}static{this.\u0275cmp=se({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],standalone:!0,features:[pe([Cj,Mj,{provide:sI,useExisting:t}]),Ee,ue],decls:0,vars:0,template:function(n,r){},encapsulation:2,changeDetection:0})}}return t})();var _I=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[Sl,Rj],imports:[jt,Hs,zs,Au,Os,Fe,hI,G_,dI,Cr]})}}return t})();var Bj=["*"],lh;function zj(){if(lh===void 0&&(lh=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(lh=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return lh}function Tl(t){return zj()?.createHTML(t)||t}function bI(t){return Error(`Unable to find icon with the name "${t}"`)}function Hj(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function vI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function yI(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var sr=class{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},Uj=(()=>{class t{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new sr(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){let a=this._sanitizer.sanitize(yi.HTML,r);if(!a)throw yI(r);let c=Tl(a);return this._addSvgIconConfig(e,n,new sr("",c,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new sr(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){let o=this._sanitizer.sanitize(yi.HTML,n);if(!o)throw yI(n);let a=Tl(o);return this._addSvgIconSetConfig(e,new sr("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(yi.RESOURCE_URL,e);if(!n)throw vI(e);let r=this._cachedIconsByUrl.get(n);return r?mt(ch(r)):this._loadSvgIconFromConfig(new sr(e,null)).pipe(Ji(o=>this._cachedIconsByUrl.set(n,o)),Ke(o=>ch(o)))}getNamedSvgIcon(e,n=""){let r=wI(n,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):uf(bI(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?mt(ch(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ke(n=>ch(n)))}_getSvgFromIconSetConfigs(e,n){let r=this._extractIconWithNameFromAnySet(e,n);if(r)return mt(r);let o=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Sc(c=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(yi.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(f)),mt(null)})));return fa(o).pipe(Ke(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw bI(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){let o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ji(n=>e.svgText=n),Ke(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?mt(null):this._fetchIcon(e).pipe(Ji(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){let o=e.querySelector(`[id="${n}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let c=this._svgElementFromString(Tl("<svg></svg>"));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let r=n.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){let n=this._svgElementFromString(Tl("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:a,value:c}=r[o];a!=="id"&&n.setAttribute(a,c)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&n.appendChild(e.childNodes[o].cloneNode(!0));return n}_setSvgAttributes(e,n){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),n&&n.viewBox&&e.setAttribute("viewBox",n.viewBox),e}_fetchIcon(e){let{url:n,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw Hj();if(n==null)throw Error(`Cannot fetch icon from URL "${n}".`);let a=this._sanitizer.sanitize(yi.RESOURCE_URL,n);if(!a)throw vI(n);let c=this._inProgressUrlFetches.get(a);if(c)return c;let u=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ke(f=>Tl(f)),pa(()=>this._inProgressUrlFetches.delete(a)),ga());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(wI(e,n),r),this}_addSvgIconSetConfig(e,n){let r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](n,e);if(o)return $j(o)?new sr(o.url,null,o.options):new sr(o,null)}}static{this.\u0275fac=function(n){return new(n||t)(T(fo,8),T(Yp),T(ge,8),T(bi))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ch(t){return t.cloneNode(!0)}function wI(t,i){return t+":"+i}function $j(t){return!!(t.url&&t.options)}var Wj=new R("MAT_ICON_DEFAULT_OPTIONS"),Gj=new R("mat-icon-location",{providedIn:"root",factory:qj});function qj(){let t=U(ge),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}var xI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Zj=xI.map(t=>`[${t}]`).join(", "),Yj=/^url\(['"]?#(.*?)['"]?\)$/,dh=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,a,c){this._elementRef=e,this._iconRegistry=n,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ce.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let r=e.childNodes[n];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(Zj),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<n.length;o++)xI.forEach(a=>{let c=n[o],u=c.getAttribute(a),f=u?u.match(Yj):null;if(f){let p=r.get(c);p||(p=[],r.set(c,p)),p.push({name:a,value:f[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(nt(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${n}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(Uj),Yt("aria-hidden"),b(Gj),b(bi),b(Wj,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,r){n&2&&(de("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Rt(r.color?"mat-"+r.color:""),oe("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[D.HasDecoratorInputTransform,"inline","inline",Q],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Re,ue],ngContentSelectors:Bj,decls:1,vars:0,template:function(n,r){n&1&&(Xe(),ae(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return t})(),uh=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,Fe]})}}return t})();var Kj=["switch"],Xj=["*"];function Jj(t,i){t&1&&(E(0,"div",10),vi(),E(1,"svg",12),ie(2,"path",13),M(),E(3,"svg",14),ie(4,"path",15),M()())}var eB=new R("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),tB={provide:oi,useExisting:It(()=>fh),multi:!0},hh=class{constructor(i,e){this.source=i,this.checked=e}},iB=0,fh=(()=>{class t{_createChangeEvent(e){return new hh(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,c){this._elementRef=e,this._focusMonitor=n,this._changeDetectorRef=r,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new B,this.toggleChange=new B,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++iB}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new hh(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(nr),b(Le),Yt("tabindex"),b(eB),b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,r){if(n&1&&De(Kj,5),n&2){let o;q(o=Z())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,r){n&2&&(ui("id",r.id),de("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Rt(r.color?"mat-"+r.color:""),oe("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[D.None,"aria-label","ariaLabel"],ariaLabelledby:[D.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[D.None,"aria-describedby","ariaDescribedby"],required:[D.HasDecoratorInputTransform,"required","required",Q],color:"color",disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Q],tabIndex:[D.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:bt(e)],checked:[D.HasDecoratorInputTransform,"checked","checked",Q],hideIcon:[D.HasDecoratorInputTransform,"hideIcon","hideIcon",Q]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[pe([tB,{provide:Pi,useExisting:t,multi:!0}]),Re,Ge,ue],ngContentSelectors:Xj,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,r){if(n&1){let o=rt();Xe(),E(0,"div",1)(1,"button",2,0),X("click",function(){return ne(o),re(r._handleClick())}),ie(3,"div",3),E(4,"div",4)(5,"div",5)(6,"div",6),ie(7,"div",7),M(),E(8,"div",8),ie(9,"div",9),M(),J(10,Jj,5,0,"div",10),M()()(),E(11,"label",11),X("click",function(c){return ne(o),re(c.stopPropagation())}),ae(12),M()()}if(n&2){let o=ri(2);V("labelPosition",r.labelPosition),S(),oe("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),V("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled),de("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked),S(8),V("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),S(),Te(10,r.hideIcon?-1:10),S(),V("for",r.buttonId),de("id",r._labelId)}},dependencies:[Vn,Pu],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}}return t})();var CI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[fh,Fe,Fe]})}}return t})();var rB=["trigger"],oB=["panel"],sB=[[["mat-select-trigger"]],"*"],aB=["mat-select-trigger","*"];function lB(t,i){if(t&1&&(E(0,"span",4),me(1),M()),t&2){let e=$();S(),kt(e.placeholder)}}function cB(t,i){t&1&&ae(0)}function dB(t,i){if(t&1&&(E(0,"span",11),me(1),M()),t&2){let e=$(2);S(),kt(e.triggerValue)}}function uB(t,i){if(t&1&&(E(0,"span",10),J(1,cB,1,0)(2,dB,2,1),M()),t&2){let e=$();S(),Te(1,e.customTrigger?1:2)}}function hB(t,i){if(t&1){let e=rt();E(0,"div",12,1),X("@transformPanel.done",function(r){ne(e);let o=$();return re(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){ne(e);let o=$();return re(o._handleKeydown(r))}),ae(2,1),M()}if(t&2){let e=$();ox("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),V("ngClass",e.panelClass)("@transformPanel","showing"),de("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var fB={transformPanelWrap:sn("transformPanelWrap",[wi("* => void",$x("@transformPanel",[Ux()],{optional:!0}))]),transformPanel:sn("transformPanel",[$i("void",wt({opacity:0,transform:"scale(1, 0.8)"})),wi("void => showing",Mi("120ms cubic-bezier(0, 0, 0.2, 1)",wt({opacity:1,transform:"scale(1, 1)"}))),wi("* => void",Mi("100ms linear",wt({opacity:0})))])};var EI=0,II=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=U(Qt);return()=>t.scrollStrategies.reposition()}});function mB(t){return()=>t.scrollStrategies.reposition()}var pB=new R("MAT_SELECT_CONFIG"),gB={provide:II,deps:[Qt],useFactory:mB},_B=new R("MatSelectTrigger"),Y_=class{constructor(i,e){this.source=i,this.value=e}},mh=(()=>{class t{_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let r=this.panel.nativeElement,o=nC(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=rC(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Y_(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(jn.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,n,r,o,a,c,u,f,p,_,w,y,C,I){this._viewportRuler=e,this._changeDetectorRef=n,this._elementRef=a,this._dir=c,this._parentFormField=p,this.ngControl=_,this._liveAnnouncer=C,this._defaultOptions=I,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(A,z)=>A===z,this._uid=`mat-select-${EI++}`,this._triggerAriaLabelledBy=null,this._destroy=new Y,this.stateChanges=new Y,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${EI++}`,this._panelDoneAnimatingStream=new Y,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new Y,this.optionSelectionChanges=hf(()=>{let A=this.options;return A?A.changes.pipe(ci(A),yn(()=>ei(...A.map(z=>z.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))}),this.openedChange=new B,this._openedStream=this.openedChange.pipe(ut(A=>A),Ke(()=>{})),this._closedStream=this.openedChange.pipe(ut(A=>!A),Ke(()=>{})),this.selectionChange=new B,this.valueChange=new B,this._trackedModal=null,this._skipPredicate=A=>this.panelOpen?!1:A.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),I?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=I.typeaheadDebounceInterval),this._errorStateTracker=new Er(o,_,f,u,this.stateChanges),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(w)||0,this.id=this.id}ngOnInit(){this._selectionModel=new uu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Go(),we(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(we(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(we(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(ci(null),we(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Tu(this._trackedModal,"aria-owns",n),Gg(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Tu(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,r=n===40||n===38||n===37||n===39,o=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&o&&!Pt(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(e);let u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,r=e.keyCode,o=r===40||r===38,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&n.activeItem&&!Pt(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(nt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Cl?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Su(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ei(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(we(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ei(...this.options.map(n=>n._stateChanges)).pipe(we(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(r=>r.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n<this.options.length;n++)if(!this.options.get(n).disabled){e=n;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(n){return new(n||t)(b(Rn),b(Le),b(G),b(Ir),b(H),b(Ot,8),b(rr,8),b(un,8),b(Mo,8),b(fi,10),Yt("tabindex"),b(II),b(GD),b(pB,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(n&1&&(et(o,_B,5),et(o,Rs,5),et(o,o_,5)),n&2){let a;q(a=Z())&&(r.customTrigger=a.first),q(a=Z())&&(r.options=a),q(a=Z())&&(r.optionGroups=a)}},viewQuery:function(n,r){if(n&1&&(De(rB,5),De(oB,5),De(P_,5)),n&2){let o;q(o=Z())&&(r.trigger=o.first),q(o=Z())&&(r.panel=o.first),q(o=Z())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){n&1&&X("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),n&2&&(de("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),oe("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[D.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Q],tabIndex:[D.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:bt(e)],hideSingleSelectionIndicator:[D.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Q],placeholder:"placeholder",required:[D.HasDecoratorInputTransform,"required","required",Q],multiple:[D.HasDecoratorInputTransform,"multiple","multiple",Q],disableOptionCentering:[D.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",Q],compareWith:"compareWith",value:"value",ariaLabel:[D.None,"aria-label","ariaLabel"],ariaLabelledby:[D.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[D.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",bt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[pe([{provide:Io,useExisting:t},{provide:r_,useExisting:t}]),Re,Ge,ue],ngContentSelectors:aB,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,r){if(n&1){let o=rt();Xe(sB),E(0,"div",2,0),X("click",function(){return ne(o),re(r.open())}),E(3,"div",3),J(4,lB,2,1,"span",4)(5,uB,3,1),M(),E(6,"div",5)(7,"div",6),vi(),E(8,"svg",7),ie(9,"path",8),M()()()(),J(10,hB,3,9,"ng-template",9),X("backdropClick",function(){return ne(o),re(r.close())})("attach",function(){return ne(o),re(r._onAttached())})("detach",function(){return ne(o),re(r.close())})}if(n&2){let o=ri(1);S(3),de("id",r._valueId),S(),Te(4,r.empty?4:5),S(6),V("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Cl,P_,vr],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[fB.transformPanel]},changeDetection:0})}}return t})();var MI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[gB],imports:[jt,zs,s_,Fe,Cr,ko,s_,Fe]})}}return t})();var vB=["input"],yB=["label"],wB=["*"],xB=new R("mat-checkbox-default-options",{providedIn:"root",factory:SI});function SI(){return{color:"accent",clickAction:"check-indeterminate"}}var si=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(si||{}),DB={provide:oi,useExisting:It(()=>ph),multi:!0},Q_=class{},CB=0,kI=SI(),ph=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new Q_;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,c){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._animationMode=a,this._options=c,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new B,this.indeterminateChange=new B,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=si.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||kI,this.color=this._options.color||kI.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++CB}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let n=e!=this._indeterminate;this._indeterminate=e,n&&(this._indeterminate?this._transitionCheckState(si.Indeterminate):this._transitionCheckState(this.checked?si.Checked:si.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(!(n===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?si.Checked:si.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationMode==="NoopAnimations")return"";switch(e){case si.Init:if(n===si.Checked)return this._animationClasses.uncheckedToChecked;if(n==si.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case si.Unchecked:return n===si.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case si.Checked:return n===si.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case si.Indeterminate:return n===si.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(Le),b(G),Yt("tabindex"),b(ot,8),b(xB,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(n&1&&(De(vB,5),De(yB,5),De(Vn,5)),n&2){let o;q(o=Z())&&(r._inputElement=o.first),q(o=Z())&&(r._labelElement=o.first),q(o=Z())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,r){n&2&&(ui("id",r.id),de("tabindex",null)("aria-label",null)("aria-labelledby",null),Rt(r.color?"mat-"+r.color:"mat-accent"),oe("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:[D.None,"aria-label","ariaLabel"],ariaLabelledby:[D.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[D.None,"aria-describedby","ariaDescribedby"],id:"id",required:[D.HasDecoratorInputTransform,"required","required",Q],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Q],tabIndex:[D.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?void 0:bt(e)],color:"color",checked:[D.HasDecoratorInputTransform,"checked","checked",Q],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],indeterminate:[D.HasDecoratorInputTransform,"indeterminate","indeterminate",Q]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[pe([DB,{provide:Pi,useExisting:t,multi:!0}]),Re,Ge,ue],ngContentSelectors:wB,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,r){if(n&1){let o=rt();Xe(),E(0,"div",3),X("click",function(c){return ne(o),re(r._preventBubblingFromLabel(c))}),E(1,"div",4,0)(3,"div",5),X("click",function(){return ne(o),re(r._onTouchTargetClick())}),M(),E(4,"input",6,1),X("blur",function(){return ne(o),re(r._onBlur())})("click",function(){return ne(o),re(r._onInputClick())})("change",function(c){return ne(o),re(r._onInteractionEvent(c))}),M(),ie(6,"div",7),E(7,"div",8),vi(),E(8,"svg",9),ie(9,"path",10),M(),cs(),ie(10,"div",11),M(),ie(11,"div",12),M(),E(12,"label",13,2),ae(14),M()()}if(n&2){let o=ri(2);V("labelPosition",r.labelPosition),S(4),oe("mdc-checkbox--selected",r.checked),V("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),de("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),S(7),V("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),S(),V("for",r.inputId)}},dependencies:[Vn,Pu],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();var TI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[ph,Fe,Fe]})}}return t})();var IB=["determinateSpinner"];function MB(t,i){if(t&1&&(vi(),E(0,"svg",11),ie(1,"circle",12),M()),t&2){let e=$();de("viewBox",e._viewBox()),S(),Lt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),de("r",e._circleRadius())}}var kB=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:SB});function SB(){return{diameter:AI}}var AI=100,TB=10,RI=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,n,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=AI,this._noopAnimations=n==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-TB)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(n){return new(n||t)(b(H),b(ot,8),b(kB))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,r){if(n&1&&De(IB,5),n&2){let o;q(o=Z())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,r){n&2&&(de("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Rt("mat-"+r.color),Lt("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),oe("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[D.HasDecoratorInputTransform,"value","value",bt],diameter:[D.HasDecoratorInputTransform,"diameter","diameter",bt],strokeWidth:[D.HasDecoratorInputTransform,"strokeWidth","strokeWidth",bt]},exportAs:["matProgressSpinner"],standalone:!0,features:[Re,ue],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,r){if(n&1&&(J(0,MB,2,8,"ng-template",null,0,co),E(2,"div",2,1),vi(),E(4,"svg",3),ie(5,"circle",4),M()(),cs(),E(6,"div",5)(7,"div",6)(8,"div",7),Vt(9,8),M(),E(10,"div",9),Vt(11,8),M(),E(12,"div",10),Vt(13,8),M()()()),n&2){let o=ri(1);S(4),de("viewBox",r._viewBox()),S(),Lt("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),de("r",r._circleRadius()),S(4),V("ngTemplateOutlet",o),S(2),V("ngTemplateOutlet",o),S(2),V("ngTemplateOutlet",o)}},dependencies:[Nd],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}}return t})();var gh=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[jt,Fe]})}}return t})();var RB=["tooltip"],FI=20;var NI=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=U(Qt);return()=>t.scrollStrategies.reposition({scrollThrottle:FI})}});function OB(t){return()=>t.scrollStrategies.reposition({scrollThrottle:FI})}var PB={provide:NI,deps:[Qt],useFactory:OB};function FB(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var NB=new R("mat-tooltip-default-options",{providedIn:"root",factory:FB});var OI="tooltip-panel",PI=xi({passive:!0}),LB=8,VB=8,jB=24,BB=200,LI=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Ti(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ti(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Is(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Is(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,n,r,o,a,c,u,f,p,_,w,y){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=u,this._focusMonitor=f,this._dir=_,this._defaultOptions=w,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=zB,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y,this._scrollStrategy=p,this._document=y,w&&(this._showDelay=w.showDelay,this._hideDelay=w.hideDelay,w.position&&(this.position=w.position),w.positionAtOrigin&&(this.positionAtOrigin=w.positionAtOrigin),w.touchGestures&&(this.touchGestures=w.touchGestures)),_.change.pipe(we(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=LB}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(we(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,PI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Mr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof H)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(we(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${OI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(we(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(we(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(we(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!Pt(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset(ye(ye({},r.main),o.main)),this._addOffset(ye(ye({},r.fallback),o.fallback))])}_addOffset(e){let n=VB,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=r?-n:n:e.originX==="end"&&(e.offsetX=r?n:-n),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"||n=="below"?r={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,r;n=="above"?r={overlayX:"center",overlayY:"bottom"}:n=="below"?r={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(nt(1),we(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:r,originY:o}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=n==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let c=this._overlayRef;if(c){let u=`${this._cssClassPrefix}-${OI}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,PI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,r=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static{this.\u0275fac=function(n){return new(n||t)(b(Qt),b(H),b(ol),b(_t),b(G),b(je),b(HD),b(nr),b(NI),b(Ot),b(NB,8),b(ge))}}static{this.\u0275dir=N({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){n&2&&oe("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[D.None,"matTooltipPosition","position"],positionAtOrigin:[D.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[D.None,"matTooltipDisabled","disabled"],showDelay:[D.None,"matTooltipShowDelay","showDelay"],hideDelay:[D.None,"matTooltipHideDelay","hideDelay"],touchGestures:[D.None,"matTooltipTouchGestures","touchGestures"],message:[D.None,"matTooltip","message"],tooltipClass:[D.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return t})(),zB=(()=>{class t{constructor(e,n,r){this._changeDetectorRef=e,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Y,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=r==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>jB&&e.width>=BB}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(H),b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(n&1&&De(RB,7),n&2){let o;q(o=Z())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){n&1&&X("mouseleave",function(a){return r._handleMouseLeave(a)}),n&2&&Lt("zoom",r.isVisible()?1:null)},standalone:!0,features:[ue],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){if(n&1){let o=rt();E(0,"div",1,0),X("animationend",function(c){return ne(o),re(r._handleAnimationEnd(c))}),E(2,"div",2),me(3),M()()}n&2&&(oe("mdc-tooltip--multiline",r._isMultiline),V("ngClass",r.tooltipClass),S(3),kt(r.message))},dependencies:[vr],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return t})();var VI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({providers:[PB],imports:[Au,jt,zs,Fe,Fe,Cr]})}}return t})();var jI=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ti(e)}get inset(){return this._inset}set inset(e){this._inset=Ti(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=se({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,r){n&2&&(de("aria-orientation",r.vertical?"vertical":"horizontal"),oe("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[ue],decls:0,vars:0,template:function(n,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return t})(),BI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,Fe]})}}return t})();var $B=["searchSelectInput"],WB=["innerSelectSearch"],GB=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],qB=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],ZB=(t,i)=>({"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":i});function YB(t,i){if(t&1){let e=rt();E(0,"mat-checkbox",12),X("change",function(r){ne(e);let o=$();return re(o._emitSelectAllBooleanToParent(r.checked))}),M()}if(t&2){let e=$();V("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function QB(t,i){t&1&&ie(0,"mat-spinner",13)}function KB(t,i){t&1&&ae(0,1,["*ngIf","clearIcon; else defaultIcon"])}function XB(t,i){if(t&1&&(E(0,"mat-icon",16),me(1),M()),t&2){let e=$(2);V("svgIcon",e.closeSvgIcon),S(),xt(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function JB(t,i){if(t&1){let e=rt();E(0,"button",14),X("click",function(){ne(e);let r=$();return re(r._reset(!0))}),J(1,KB,1,0,"ng-content",15)(2,XB,2,2,"ng-template",null,2,co),M()}if(t&2){let e=ri(3),n=$();S(),V("ngIf",n.clearIcon)("ngIfElse",e)}}function ez(t,i){t&1&&ae(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function tz(t,i){if(t&1&&me(0),t&2){let e=$(2);kt(e.noEntriesFoundLabel)}}function iz(t,i){if(t&1&&(E(0,"div",17),J(1,ez,1,0,"ng-content",15)(2,tz,1,1,"ng-template",null,3,co),M()),t&2){let e=ri(3),n=$();S(),V("ngIf",n.noEntriesFound)("ngIfElse",e)}}var nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=N({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})(),rz=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],oz=new R("mat-selectsearch-default-options"),sz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=N({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),t})(),zI=(()=>{class t{constructor(e,n,r,o,a,c){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=r,this.matOption=o,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new B,this.onTouched=u=>{},this._options$=new li(null),this.optionsList$=this._options$.pipe(yn(u=>u?u.changes.pipe(Ke(f=>f.toArray()),ci(u.toArray())):mt(null))),this.optionsLength$=this.optionsList$.pipe(Ke(u=>u?u.length:0)),this._formControl=new or("",{nonNullable:!0}),this._showNoEntriesFound$=ha([this._formControl.valueChanges,this.optionsLength$]).pipe(Ke(([u,f])=>!!(this.noEntriesFoundLabel&&u&&f===this.getOptionsLengthOffset()))),this._onDestroy=new Y,this.applyDefaultOptions(c)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let n of rz)e.hasOwnProperty(n)&&(this[n]=e[n])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(pf(1),we(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(nt(1),yn(e=>{this._options=this.matSelect.options;let n=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ji(()=>{setTimeout(()=>{let r=this._options.toArray(),o=r[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&o&&((!n||!this.matSelect.compareWith(n.value,o.value)||!a.activeItem||!r.find(u=>this.matSelect.compareWith(u.value,a.activeItem?.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),n=o})}))})).pipe(we(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(we(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(we(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(we(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),r=this._options.toArray().findIndex(o=>o.id===n);r!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[r]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(ut(n=>n!==this._lastExternalInputValue),Ji(()=>this._lastExternalInputValue=void 0),we(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(we(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let r=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!e.some(a=>this.matSelect.compareWith(a,o))&&!r.some(a=>this.matSelect.compareWith(a,o))&&(this.recreateValuesArray?e=[...e,o]:e.push(o),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return t.\u0275fac=function(e){return new(e||t)(b(mh),b(Le),b(Rn),b(Rs,8),b(rh,8),b(oz,8))},t.\u0275cmp=se({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,n,r){if(e&1&&(et(r,nz,5),et(r,sz,5)),e&2){let o;q(o=Z())&&(n.clearIcon=o.first),q(o=Z())&&(n.noEntriesFound=o.first)}},viewQuery:function(e,n){if(e&1&&(De($B,7,H),De(WB,7,H)),e&2){let r;q(r=Z())&&(n.searchSelectInput=r.first),q(r=Z())&&(n.innerSelectSearch=r.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[pe([{provide:oi,useExisting:It(()=>t),multi:!0}])],ngContentSelectors:qB,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,n){if(e&1){let r=rt();Xe(GB),ie(0,"input",4),E(1,"div",5,0)(3,"div",6),J(4,YB,1,5,"mat-checkbox",7),E(5,"input",8,1),X("keydown",function(a){return ne(r),re(n._handleKeydown(a))})("keyup",function(a){return ne(r),re(n._handleKeyup(a))})("blur",function(){return ne(r),re(n.onBlur())}),M(),J(7,QB,1,0,"mat-spinner",9)(8,JB,4,2,"button",10),ae(9),M(),ie(10,"mat-divider"),M(),J(11,iz,4,2,"div",11),ao(12,"async")}e&2&&(S(),V("ngClass",lx(11,ZB,n.matSelect.multiple,n._isToggleAllCheckboxVisible())),S(3),V("ngIf",n._isToggleAllCheckboxVisible()),S(),V("type",n.type)("formControl",n._formControl)("placeholder",n.placeholderLabel),de("aria-label",n.ariaLabel),S(2),V("ngIf",n.searching),S(),V("ngIf",!n.hideClearSearchButton&&n.value&&!n.searching),S(3),V("ngIf",lo(12,9,n._showNoEntriesFound$)))},dependencies:[vr,vs,Ls,Qu,wl,Il,ph,dh,RI,LI,jI,Ld],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),t})();var HI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=ee({imports:[jt,Ju,Hs,TI,uh,gh,VI,BI]}),t})();var lz=["knob"],cz=["valueIndicatorContainer"];function dz(t,i){if(t&1&&(E(0,"div",2,1)(2,"div",5)(3,"span",6),me(4),M()()()),t&2){let e=$();S(4),kt(e.valueIndicatorText)}}var uz=["trackActive"],hz=["*"];function fz(t,i){if(t&1&&ie(0,"div"),t&2){let e=i.$implicit,n=i.$index,r=$(3);Rt(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Lt("transform",r._calcTickMarkTransform(n))}}function mz(t,i){if(t&1&&ms(0,fz,1,4,"div",8,sx),t&2){let e=$(2);ps(e._tickMarks)}}function pz(t,i){if(t&1&&(E(0,"div",6,1),J(2,mz,2,0),M()),t&2){let e=$();S(2),Te(2,e._cachedWidth?2:-1)}}function gz(t,i){if(t&1&&ie(0,"mat-slider-visual-thumb",7),t&2){let e=$();V("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var Me=function(t){return t[t.START=1]="START",t[t.END=2]="END",t}(Me||{}),Ws=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t}(Ws||{}),K_=new R("_MatSlider"),UI=new R("_MatSliderThumb"),_z=new R("_MatSliderRangeThumb"),$I=new R("_MatSliderVisualThumb");var bz=(()=>{class t{constructor(e,n,r,o){this._cdr=e,this._ngZone=n,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=U(je),this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let c=this._hostElement.getBoundingClientRect(),u=this._slider._isCursorOnSliderThumb(a,c);this._isHovered=u,u?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=r.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;let e=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{e.addEventListener("pointermove",this._onPointerMove),e.addEventListener("pointerdown",this._onDragStart),e.addEventListener("pointerup",this._onDragEnd),e.addEventListener("pointerleave",this._onMouseLeave),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur)})}ngOnDestroy(){let e=this._sliderInputEl;e&&(e.removeEventListener("pointermove",this._onPointerMove),e.removeEventListener("pointerdown",this._onDragStart),e.removeEventListener("pointerup",this._onDragEnd),e.removeEventListener("pointerleave",this._onMouseLeave),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===hi.FADING_IN||e?.state===hi.VISIBLE}_showRipple(e,n){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===Me.START?Me.END:Me.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!n)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let n=this._getSibling();n._isShowingAnyRipple()||(this._hideValueIndicator(),n._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===Me.START?Me.END:Me.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static{this.\u0275fac=function(n){return new(n||t)(b(Le),b(G),b(H),b(K_))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(n,r){if(n&1&&(De(Vn,5),De(lz,5),De(cz,5)),n&2){let o;q(o=Z())&&(r._ripple=o.first),q(o=Z())&&(r._knob=o.first),q(o=Z())&&(r._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[pe([{provide:$I,useExisting:t}]),ue],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(n,r){n&1&&(J(0,dz,5,1,"div",2),ie(1,"div",3,0)(3,"div",4)),n&2&&(Te(0,r.discrete?0:-1),S(3),V("matRippleDisabled",!0))},dependencies:[Vn],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}}return t})(),WI=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e;let n=this._getInput(Me.END),r=this._getInput(Me.START);n&&(n.disabled=this._disabled),r&&(r.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}get min(){return this._min}set min(e){let n=isNaN(e)?this._min:e;this._min!==n&&this._updateMin(n)}_updateMin(e){let n=this._min;this._min=e,this._isRange?this._updateMinRange({old:n,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let n=this._getInput(Me.END),r=this._getInput(Me.START),o=n.value,a=r.value;r.min=e.new,n.min=Math.max(e.new,r.value),r.max=Math.min(n.max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(n,r):this._onTranslateXChangeBySideEffect(r,n),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r)}_updateMinNonRange(e){let n=this._getInput(Me.END);if(n){let r=n.value;n.min=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n)}}get max(){return this._max}set max(e){let n=isNaN(e)?this._max:e;this._max!==n&&this._updateMax(n)}_updateMax(e){let n=this._max;this._max=e,this._isRange?this._updateMaxRange({old:n,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange()}_updateMaxRange(e){let n=this._getInput(Me.END),r=this._getInput(Me.START),o=n.value,a=r.value;n.max=e.new,r.max=Math.min(e.new,n.value),n.min=r.value,n._updateWidthInactive(),r._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(r,n):this._onTranslateXChangeBySideEffect(n,r),o!==n.value&&this._onValueChange(n),a!==r.value&&this._onValueChange(r)}_updateMaxNonRange(e){let n=this._getInput(Me.END);if(n){let r=n.value;n.max=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n)}}get step(){return this._step}set step(e){let n=isNaN(e)?this._step:e;this._step!==n&&this._updateStep(n)}_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(Me.END),n=this._getInput(Me.START),r=e.value,o=n.value,a=n.value;e.min=this._min,n.max=this._max,e.step=this._step,n.step=this._step,this._platform.SAFARI&&(e.value=e.value,n.value=n.value),e.min=Math.max(this._min,n.value),n.max=Math.min(this._max,e.value),n._updateWidthInactive(),e._updateWidthInactive(),e.value<a?this._onTranslateXChangeBySideEffect(n,e):this._onTranslateXChangeBySideEffect(e,n),r!==e.value&&this._onValueChange(e),o!==n.value&&this._onValueChange(n)}_updateStepNonRange(){let e=this._getInput(Me.END);if(e){let n=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),n!==e.value&&this._onValueChange(e)}}constructor(e,n,r,o,a,c){this._ngZone=e,this._cdr=n,this._elementRef=r,this._dir=o,this._globalRippleOptions=a,this._disabled=!1,this._discrete=!1,this.showTickMarks=!1,this._min=0,this.disableRipple=!1,this._max=100,this._step=1,this.displayWith=u=>`${u}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=U(je),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=c==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(Me.END),n=this._getInput(Me.START);this._isRange=!!e&&!!n,this._cdr.detectChanges();let r=this._getThumb(Me.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,n):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,n){e.initProps(),e.initUI(),n.initProps(),n.initUI(),e._updateMinMax(),n._updateMinMax(),e._updateStaticStyles(),n._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),n._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let e=this._getInput(Me.END),n=this._getInput(Me.START);e._setIsLeftThumb(),n._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),n.translateX=n._calcTranslateXByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateWidthInactive(),n._updateWidthInactive(),e._updateThumbUIByValue(),n._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(Me.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(Me.START)._isActive||this._getThumb(Me.END)._isActive}_getValue(e=Me.END){let n=this._getInput(e);return n?n.value:this.min}_skipUpdate(){return!!(this._getInput(Me.START)?._skipUIUpdate||this._getInput(Me.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let n=this._trackActive.nativeElement.style;n.left=e.left,n.right=e.right,n.transformOrigin=e.transformOrigin,n.transform=e.transform}_calcTickMarkTransform(e){return`translateX(${e*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,n){this._hasViewInitialized&&(e._updateThumbUIByValue(),n._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(Me.END),n=this._getInput(Me.START);e._updateThumbUIByValue(),n._updateThumbUIByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateMinMax(),n._updateMinMax(),e._updateWidthInactive(),n._updateWidthInactive()}else{let e=this._getInput(Me.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let e=this._getInput(Me.START),n=this._getInput(Me.END);return!e||!n?!1:n.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let n=e.getSibling(),r=this._getThumb(e.thumbPosition);this._getThumb(n.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let n=this._getThumb(e.thumbPosition===Me.END?Me.END:Me.START);n._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let n=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(n):e._hostElement.setAttribute("aria-valuetext",n),this.discrete){e.thumbPosition===Me.START?this.startValueIndicatorText=n:this.endValueIndicatorText=n;let r=this._getThumb(e.thumbPosition);n.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(Me.END),n=this._getInput(Me.START);e&&this._updateValueIndicatorUI(e),n&&this._updateValueIndicatorUI(n)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*r-6}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let n=e.getSibling();if(!n||!this._cachedWidth)return;let r=Math.abs(n.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-n.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${n.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`})}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(e){let n=this._getValue(),r=Math.max(Math.floor((n-this.min)/e),0),o=Math.max(Math.floor((this.max-n)/e),0);this._isRtl?r++:o++,this._tickMarks=Array(r).fill(Ws.ACTIVE).concat(Array(o).fill(Ws.INACTIVE))}_updateTickMarkUIRange(e){let n=this._getValue(),r=this._getValue(Me.START),o=Math.max(Math.floor((r-this.min)/e),0),a=Math.max(Math.floor((n-r)/e)+1,0),c=Math.max(Math.floor((this.max-n)/e),0);this._tickMarks=Array(o).fill(Ws.INACTIVE).concat(Array(a).fill(Ws.ACTIVE),Array(c).fill(Ws.INACTIVE))}_getInput(e){if(e===Me.END&&this._input)return this._input;if(this._inputs?.length)return e===Me.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===Me.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,n){let r=n.width/2,o=n.x+r,a=n.y+r,c=e.clientX-o,u=e.clientY-a;return Math.pow(c,2)+Math.pow(u,2)<Math.pow(r,2)}static{this.\u0275fac=function(n){return new(n||t)(b(G),b(Le),b(H),b(Ot,8),b(Ou,8),b(ot,8))}}static{this.\u0275cmp=se({type:t,selectors:[["mat-slider"]],contentQueries:function(n,r,o){if(n&1&&(et(o,UI,5),et(o,_z,4)),n&2){let a;q(a=Z())&&(r._input=a.first),q(a=Z())&&(r._inputs=a)}},viewQuery:function(n,r){if(n&1&&(De(uz,5),De($I,5)),n&2){let o;q(o=Z())&&(r._trackActive=o.first),q(o=Z())&&(r._thumbs=o)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(n,r){n&2&&(Rt("mat-"+(r.color||"primary")),oe("mdc-slider--range",r._isRange)("mdc-slider--disabled",r.disabled)("mdc-slider--discrete",r.discrete)("mdc-slider--tick-marks",r.showTickMarks)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Q],discrete:[D.HasDecoratorInputTransform,"discrete","discrete",Q],showTickMarks:[D.HasDecoratorInputTransform,"showTickMarks","showTickMarks",Q],min:[D.HasDecoratorInputTransform,"min","min",bt],color:"color",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Q],max:[D.HasDecoratorInputTransform,"max","max",bt],step:[D.HasDecoratorInputTransform,"step","step",bt],displayWith:"displayWith"},exportAs:["matSlider"],standalone:!0,features:[pe([{provide:K_,useExisting:t}]),Re,ue],ngContentSelectors:hz,decls:9,vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(n,r){n&1&&(Xe(),ae(0),E(1,"div",2),ie(2,"div",3),E(3,"div",4),ie(4,"div",5,0),M(),J(6,pz,3,1,"div",6),M(),J(7,gz,1,3,"mat-slider-visual-thumb",7),ie(8,"mat-slider-visual-thumb",7)),n&2&&(S(6),Te(6,r.showTickMarks?6:-1),S(),Te(7,r._isRange?7:-1),S(),V("discrete",r.discrete)("thumbPosition",2)("valueIndicatorText",r.endValueIndicatorText))},dependencies:[bz],styles:['.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{overflow:hidden}.mdc-slider .mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:translateX(-50%);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:translateX(-50%);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__thumb{display:flex;left:-24px;outline:none;position:absolute;user-select:none;height:48px;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-sizing:border-box;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;pointer-events:none;position:absolute;top:2px;width:44px}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;margin-left:8px;margin-right:8px;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider .mdc-slider__thumb-knob{background-color:var(--mdc-slider-handle-color);border-color:var(--mdc-slider-handle-color)}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color);border-color:var(--mdc-slider-disabled-handle-color)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb::before,.mat-mdc-slider .mdc-slider__thumb::after{background-color:var(--mdc-slider-handle-color)}.mat-mdc-slider .mdc-slider__thumb:hover::before,.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:var(--mdc-ripple-hover-opacity)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:var(--mdc-ripple-focus-opacity)}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:var(--mdc-ripple-press-opacity)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity)}.mat-mdc-slider .mdc-slider__track--active_fill{border-color:var(--mdc-slider-active-track-color)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color)}.mat-mdc-slider .mdc-slider__track--inactive{background-color:var(--mdc-slider-inactive-track-color);opacity:.24}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color);opacity:.24}.mat-mdc-slider .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color);opacity:var(--mdc-slider-with-tick-marks-active-container-opacity)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color);opacity:var(--mdc-slider-with-tick-marks-active-container-opacity)}.mat-mdc-slider .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-inactive-container-color);opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-disabled-container-color);opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity)}.mat-mdc-slider .mdc-slider__value-indicator{background-color:var(--mdc-slider-label-container-color);opacity:1}.mat-mdc-slider .mdc-slider__value-indicator::before{border-top-color:var(--mdc-slider-label-container-color)}.mat-mdc-slider .mdc-slider__value-indicator{color:var(--mdc-slider-label-label-text-color)}.mat-mdc-slider .mdc-slider__track{height:var(--mdc-slider-inactive-track-height)}.mat-mdc-slider .mdc-slider__track--active{height:var(--mdc-slider-active-track-height);top:calc((var(--mdc-slider-inactive-track-height) - var(--mdc-slider-active-track-height)) / 2)}.mat-mdc-slider .mdc-slider__track--active_fill{border-top-width:var(--mdc-slider-active-track-height)}.mat-mdc-slider .mdc-slider__track--inactive{height:var(--mdc-slider-inactive-track-height)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{height:var(--mdc-slider-with-tick-marks-container-size);width:var(--mdc-slider-with-tick-marks-container-size)}.mat-mdc-slider.mdc-slider--disabled{opacity:0.38}.mat-mdc-slider .mdc-slider__value-indicator-text{letter-spacing:var(--mdc-slider-label-label-text-tracking);font-size:var(--mdc-slider-label-label-text-size);font-family:var(--mdc-slider-label-label-text-font);font-weight:var(--mdc-slider-label-label-text-weight);line-height:var(--mdc-slider-label-label-text-line-height)}.mat-mdc-slider .mdc-slider__track--active{border-radius:var(--mdc-slider-active-track-shape)}.mat-mdc-slider .mdc-slider__track--inactive{border-radius:var(--mdc-slider-inactive-track-shape)}.mat-mdc-slider .mdc-slider__thumb-knob{border-radius:var(--mdc-slider-handle-shape);width:var(--mdc-slider-handle-width);height:var(--mdc-slider-handle-height);border-style:solid;border-width:calc(var(--mdc-slider-handle-height) / 2) calc(var(--mdc-slider-handle-width) / 2)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{border-radius:var(--mdc-slider-with-tick-marks-container-shape)}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color);border-color:var(--mdc-slider-hover-handle-color)}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color);border-color:var(--mdc-slider-focus-handle-color)}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:var(--mdc-slider-with-overlap-handle-outline-color);border-width:var(--mdc-slider-with-overlap-handle-outline-width)}.mat-mdc-slider .mdc-slider__thumb-knob{box-shadow:var(--mdc-slider-handle-elevation)}.mat-mdc-slider .mdc-slider__input{box-sizing:content-box;pointer-events:auto}.mat-mdc-slider .mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mat-mdc-slider .mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mdc-slider__track,.mat-mdc-slider .mdc-slider__thumb{pointer-events:none}.mat-mdc-slider .mdc-slider__value-indicator-container{transform:var(--mat-slider-value-indicator-container-transform)}.mat-mdc-slider .mdc-slider__value-indicator{width:var(--mat-slider-value-indicator-width);height:var(--mat-slider-value-indicator-height);padding:var(--mat-slider-value-indicator-padding);opacity:var(--mat-slider-value-indicator-opacity);border-radius:var(--mat-slider-value-indicator-border-radius)}.mat-mdc-slider .mdc-slider__value-indicator::before{display:var(--mat-slider-value-indicator-caret-display)}.mat-mdc-slider .mdc-slider__value-indicator-text{width:var(--mat-slider-value-indicator-width);transform:var(--mat-slider-value-indicator-text-transform)}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color)}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slider .mdc-slider__value-indicator{word-break:normal}.mat-mdc-slider .mdc-slider__value-indicator-text{text-align:center}.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();var vz={provide:oi,useExisting:It(()=>X_),multi:!0};var X_=(()=>{class t{get value(){return bt(this._hostElement.value,0)}set value(e){e=isNaN(e)?0:e;let n=e+"";if(!this._hasSetInitialValue){this._initialValue=n;return}this._isActive||this._setValue(n)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}get min(){return bt(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return bt(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return bt(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return Q(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(e){this._isFocused=e}constructor(e,n,r,o){this._ngZone=e,this._elementRef=n,this._cdr=r,this._slider=o,this.valueChange=new B,this.dragStart=new B,this.dragEnd=new B,this.thumbPosition=Me.END,this._valuetext=$w(""),this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new Y,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=U(je),this._hostElement=n.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let n=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=n,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let n=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),c=this._slider._isRtl?1-n/r:n/r,f=Math.round(c*a)/a*(this._slider.max-this._slider.min)+this._slider.min,p=Math.round(f/o)*o,_=this.value;if(p===_){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=p,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let n=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,r),n)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,n){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(n)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static{this.\u0275fac=function(n){return new(n||t)(b(G),b(H),b(Le),b(K_))}}static{this.\u0275dir=N({type:t,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(n,r){n&1&&X("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),n&2&&de("aria-valuetext",r._valuetext())},inputs:{value:[D.HasDecoratorInputTransform,"value","value",bt]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[pe([vz,{provide:UI,useExisting:t}]),Re]})}}return t})();var GI=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=te({type:t})}static{this.\u0275inj=ee({imports:[Fe,ul]})}}return t})();var wz=["singleSelect"];function xz(t,i){t&1&&(E(0,"mat-error"),me(1,"Invalid start date"),M())}function Dz(t,i){t&1&&(E(0,"mat-error"),me(1,"Invalid end date"),M())}function Cz(t,i){if(t&1&&(E(0,"mat-option",19),me(1),M()),t&2){let e=i.$implicit;V("value",e),S(),xt(" ",e," ")}}function Ez(t,i){if(t&1){let e=rt();E(0,"mat-form-field",15)(1,"mat-label"),me(2,"Additional data for export"),M(),E(3,"mat-select",16,1),Ui("valueChange",function(r){ne(e);let o=$();return on(o.additionalPath,r)||(o.additionalPath=r),re(r)}),X("selectionChange",function(){ne(e);let r=$();return re(r.settingsChanged())}),E(5,"mat-option"),ie(6,"ngx-mat-select-search",17),M(),J(7,Cz,2,2,"mat-option",18),ao(8,"async"),M()()}if(t&2){let e=$();S(3),V("formControl",e.pathCtrl),Hi("value",e.additionalPath),S(3),V("formControl",e.pathFilterCtrl),S(),V("ngForOf",lo(8,4,e.filteredPaths))}}function Iz(t,i){t&1&&(E(0,"div",24),me(1,"Tolerance"),M())}function Mz(t,i){if(t&1){let e=rt();E(0,"mat-slider",25),X("input",function(){ne(e);let r=$(2);return re(r.settingsChanged())}),E(1,"input",26),Ui("ngModelChange",function(r){ne(e);let o=$(2);return on(o.step,r)||(o.step=r),re(r)}),M()()}if(t&2){let e=$(2);V("displayWith",e.formatLabel),S(),Hi("ngModel",e.step)}}function kz(t,i){if(t&1){let e=rt();E(0,"div",20)(1,"mat-slide-toggle",21),Ui("ngModelChange",function(r){ne(e);let o=$();return on(o.autoReload,r)||(o.autoReload=r),re(r)}),X("change",function(){ne(e);let r=$();return re(r.settingsChanged())}),me(2," Auto refresh "),M(),E(3,"mat-slide-toggle",21),Ui("ngModelChange",function(r){ne(e);let o=$();return on(o.zoomToFit,r)||(o.zoomToFit=r),re(r)}),X("change",function(){ne(e);let r=$();return re(r.settingsChanged())}),me(4," Auto zoom to fit "),M(),E(5,"mat-slide-toggle",21),Ui("ngModelChange",function(r){ne(e);let o=$();return on(o.simplify,r)||(o.simplify=r),re(r)}),X("change",function(){ne(e);let r=$();return re(r.settingsChanged())}),me(6," Simplify track "),M(),J(7,Iz,2,0,"div",22)(8,Mz,2,2,"mat-slider",23),M()}if(t&2){let e=$();S(),Hi("ngModel",e.autoReload),V("color",e.color)("checked",!1)("disabled",!1),S(2),Hi("ngModel",e.zoomToFit),V("color",e.color)("checked",!0)("disabled",!1),S(2),Hi("ngModel",e.simplify),V("color",e.color)("checked",!1)("disabled",!1),S(2),V("ngIf",e.simplify),S(),V("ngIf",e.simplify)}}var qI=(()=>{class t{constructor(e,n,r){this.dateAdapter=e,this.apiService=n,this.geodataService=r,this.color="primary",this.paths=[],this.additionalPath="",this.autoReload=!0,this.range=new Ns({start:new or(new Date(2023,5,9)),end:new or(new Date(2023,5,11))}),this.resolution=60,this.simplify=!0,this.step=1,this.zoomToFit=!0,this.loading=!1,this.optionsShown=!1,this.stops=[1e-4,2e-4,5e-4,.001,.01],this.pathCtrl=new or(""),this.pathFilterCtrl=new or(""),this.filteredPaths=new Hr(1),this._onDestroy=new Y,this.formatLabel=()=>this.stops[this.step].toString()}ngOnInit(){this.pathCtrl.setValue("initial"),this.apiService.paths$.subscribe(e=>{this.paths=["None",...e],this.filteredPaths.next(this.paths.slice())}),this.apiService.loading$.subscribe(e=>{this.loading=e}),this.pathFilterCtrl.valueChanges.pipe(we(this._onDestroy)).subscribe(()=>{this.filterPaths()}),this.dateAdapter.getFirstDayOfWeek=()=>1,this.dateAdapter.setLocale(navigator.language)}settingsChanged(){let e=this.stops[this.step];this.apiService.setQueryOptions({resolution:this.resolution,start:this.range.value.start,end:this.range.value.end,extraData:this.additionalPath,simplify:this.simplify,simplifyTolerance:e,simplifyHQ:!0,zoomToFit:this.zoomToFit}),this.autoReload&&this.apiService.refresh()}toggleOptionsClicked(){this.optionsShown=!this.optionsShown}reloadButtonClicked(){this.apiService.refresh()}downloadGpx(){let e="track_";console.log(" start: "+this.range.value.start),console.log(" end: "+this.range.value.end),console.log(" additional path: "+this.additionalPath);let n="",r="";this.range.value.start!=null&&this.range.value.end!=null&&(n=this.apiService.getMidnightDateUTCString(this.range.value.start),r=this.apiService.getMidnightDateUTCStringPlusOneDay(this.range.value.end),console.log(" startString "+n)),e=e.concat(n+"_"+r),e=e.concat(this.additionalPath?"_+"+this.additionalPath.substring(this.additionalPath.lastIndexOf(".")+1):""),e=e.concat("_"+this.resolution+"s.gpx");let o=new Blob([this.geodataService.segmentsToGpx(this.additionalPath)],{type:"application/gpx+xml"}),a=URL.createObjectURL(o),c=document.createElement("a");c.href=a,c.download=e,c.click(),URL.revokeObjectURL(a)}ngAfterViewInit(){this.setInitialValue()}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}setInitialValue(){this.filteredPaths.pipe(nt(1),we(this._onDestroy)).subscribe(()=>{try{this.singleSelect.compareWith=(e,n)=>e!=null&&n!=null&&e===n}catch(e){console.log(e)}})}filterPaths(){if(!this.paths)return;let e=this.pathFilterCtrl.value;if(e===null&&(e=""),e)e=e.toLowerCase();else{this.filteredPaths.next(this.paths.slice());return}this.filteredPaths.next(this.paths.filter(n=>n.toLowerCase().indexOf(e||"")>-1))}static{this.\u0275fac=function(n){return new(n||t)(b(ct),b(Bu),b(Ps))}}static{this.\u0275cmp=se({type:t,selectors:[["app-control"]],viewQuery:function(n,r){if(n&1&&De(wz,7),n&2){let o;q(o=Z())&&(r.singleSelect=o.first)}},standalone:!0,features:[ue],decls:26,vars:11,consts:[["picker",""],["singleSelect",""],["id","controlContainer"],["id","daterange",1,"leftWithMargin"],[3,"formGroup","rangePicker"],["matStartDate","","formControlName","start","placeholder","Start date"],["matEndDate","","formControlName","end","placeholder","End date",3,"dateChange"],["matIconSuffix","",3,"for"],["id","resolution",1,"leftWithMargin"],["matInput","","placeholder","60","step","10","min","0","type","number",3,"ngModelChange","keypress","keydown.enter","change","ngModel"],["class","leftWithMargin","id","additionalData",4,"ngIf"],["mat-fab","","color","primary","aria-label","Reload track",3,"click"],["mat-raised-button","","color","primary","id","exportButton",3,"click"],["mat-stroked-button","","color","secondary","aria-label","Toggle options","id","optionsButton",3,"click"],["id","options",4,"ngIf"],["id","additionalData",1,"leftWithMargin"],[3,"valueChange","selectionChange","formControl","value"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["id","options"],[1,"option",3,"ngModelChange","change","ngModel","color","checked","disabled"],["class","option",4,"ngIf"],["id","tolerance","min","0","max","4","step","1","class","option","showTickMarks","","discrete","",3,"displayWith","input",4,"ngIf"],[1,"option"],["id","tolerance","min","0","max","4","step","1","showTickMarks","","discrete","",1,"option",3,"input","displayWith"],["matSliderThumb","",3,"ngModelChange","ngModel"]],template:function(n,r){if(n&1){let o=rt();E(0,"div",2)(1,"mat-form-field",3)(2,"mat-label"),me(3,"Enter a date range"),M(),E(4,"mat-date-range-input",4),ie(5,"input",5),E(6,"input",6),X("dateChange",function(){return ne(o),re(r.settingsChanged())}),M()(),ie(7,"mat-hint")(8,"mat-datepicker-toggle",7)(9,"mat-date-range-picker",null,0),J(11,xz,2,0,"mat-error")(12,Dz,2,0,"mat-error"),M(),E(13,"mat-form-field",8)(14,"mat-label"),me(15,"Resolution (s)"),M(),E(16,"input",9),Ui("ngModelChange",function(c){return ne(o),on(r.resolution,c)||(r.resolution=c),re(c)}),X("keypress",function(c){return ne(o),re(c.charCode>=48&&c.charCode<58)})("keydown.enter",function(){return ne(o),re(r.settingsChanged())})("change",function(){return ne(o),re(r.settingsChanged())}),M()(),J(17,Ez,9,6,"mat-form-field",10),E(18,"button",11),X("click",function(){return ne(o),re(r.reloadButtonClicked())}),E(19,"mat-icon"),me(20,"refresh"),M()(),E(21,"button",12),X("click",function(){return ne(o),re(r.downloadGpx())}),me(22,"Export as GPX"),M(),E(23,"button",13),X("click",function(){return ne(o),re(r.toggleOptionsClicked())}),me(24),M(),J(25,kz,9,14,"div",14),M()}if(n&2){let o=ri(10);S(4),V("formGroup",r.range)("rangePicker",o),S(4),V("for",o),S(3),Te(11,r.range.controls.start.hasError("matStartDateInvalid")?11:-1),S(),Te(12,r.range.controls.end.hasError("matEndDateInvalid")?12:-1),S(4),Hi("ngModel",r.resolution),S(),V("ngIf",r.optionsShown),S(2),Rt(r.loading?"rotate":""),S(5),xt(" ",r.optionsShown?"-":"+"," "),S(),V("ngIf",r.optionsShown)}},dependencies:[jt,Cx,vs,Ld,ko,rh,ih,nh,WE,qE,JE,XE,_I,G_,pI,q_,Z_,gI,iC,Hs,El,PE,Ju,Ls,D_,Qu,uE,I_,wl,un,E_,vE,x_,uh,dh,CI,fh,MI,mh,Rs,HI,zI,GI,WI,X_,gh],styles:["#controlContainer[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;z-index:999;background-color:#fff;padding:1em 1em 0}#optionsButton[_ngcontent-%COMP%]{float:right;margin-right:.3em;height:56px;font-size:30px;background-color:#f3f3f3}#options[_ngcontent-%COMP%]{clear:both;float:left;font-size:.8em;line-height:46px;margin-top:-1.5em}.option[_ngcontent-%COMP%]{float:left;height:46px;margin:0 1em 0 0}.mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%]{background-color:beige;border:1px solid violet}.leftWithMargin[_ngcontent-%COMP%]{float:left;margin-right:.5em}#daterange[_ngcontent-%COMP%]{width:16em}#resolution[_ngcontent-%COMP%]{width:6em}#exportButton[_ngcontent-%COMP%]{float:right;margin-right:.3em;height:56px}.mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%]{display:none}h3[_ngcontent-%COMP%]{font-size:.8em;font-weight:400;margin-top:0;margin-bottom:0;color:gray}.rotate[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate 2s infinite;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(359deg)}}"]})}}return t})();var ZI=(()=>{class t{constructor(){this.title="trackviewer"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=se({type:t,selectors:[["app-root"]],standalone:!0,features:[ue],decls:2,vars:0,template:function(n,r){n&1&&ie(0,"app-control")(1,"app-map")},dependencies:[jt,WC,qI]})}}return t})();zx(ZI,yD).catch(t=>console.error(t));
|