@drayman/elements 1.24.0 → 1.26.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.
Files changed (115) hide show
  1. package/README.md +2 -4
  2. package/dist/button/3rdpartylicenses.txt +3 -45
  3. package/dist/button/main.js +1 -1
  4. package/dist/button/polyfills.js +1 -1
  5. package/dist/calendar/3rdpartylicenses.txt +3 -52
  6. package/dist/calendar/main.js +1 -1
  7. package/dist/calendar/polyfills.js +1 -1
  8. package/dist/calendar/styles.css +1 -1
  9. package/dist/checkbox/3rdpartylicenses.txt +3 -30
  10. package/dist/checkbox/main.js +1 -1
  11. package/dist/checkbox/polyfills.js +1 -1
  12. package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
  13. package/dist/claviz-charts/main.js +1 -1
  14. package/dist/claviz-charts/polyfills.js +1 -1
  15. package/dist/code-editor/3rdpartylicenses.txt +2 -139
  16. package/dist/code-editor/main.js +1 -1
  17. package/dist/code-editor/polyfills.js +1 -1
  18. package/dist/datepicker/3rdpartylicenses.txt +3 -91
  19. package/dist/datepicker/main.js +1 -1
  20. package/dist/datepicker/polyfills.js +1 -1
  21. package/dist/file-uploader/3rdpartylicenses.txt +1 -28
  22. package/dist/file-uploader/main.js +1 -1
  23. package/dist/file-uploader/polyfills.js +1 -1
  24. package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
  25. package/dist/gauge/main.js +1 -0
  26. package/dist/gauge/polyfills.js +1 -0
  27. package/dist/grid/3rdpartylicenses.txt +3 -45
  28. package/dist/grid/main.js +1 -1
  29. package/dist/grid/polyfills.js +1 -1
  30. package/dist/menu/3rdpartylicenses.txt +3 -45
  31. package/dist/menu/main.js +1 -1
  32. package/dist/menu/polyfills.js +1 -1
  33. package/dist/nebula/3rdpartylicenses.txt +24 -62
  34. package/dist/nebula/main.js +1 -1
  35. package/dist/nebula/polyfills.js +1 -1
  36. package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
  37. package/dist/ngx-charts/main.js +1 -1
  38. package/dist/ngx-charts/polyfills.js +1 -1
  39. package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
  40. package/dist/ngx-graph/main.js +1 -1
  41. package/dist/ngx-graph/polyfills.js +1 -1
  42. package/dist/number-field/3rdpartylicenses.txt +3 -30
  43. package/dist/number-field/main.js +1 -1
  44. package/dist/number-field/polyfills.js +1 -1
  45. package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
  46. package/dist/pdf-viewer/main.js +1 -1
  47. package/dist/pdf-viewer/polyfills.js +1 -1
  48. package/dist/radio-group/3rdpartylicenses.txt +3 -52
  49. package/dist/radio-group/main.js +1 -1
  50. package/dist/radio-group/polyfills.js +1 -1
  51. package/dist/select/3rdpartylicenses.txt +3 -30
  52. package/dist/select/main.js +1 -1
  53. package/dist/select/polyfills.js +1 -1
  54. package/dist/table/3rdpartylicenses.txt +3 -91
  55. package/dist/table/main.js +1 -1
  56. package/dist/table/polyfills.js +1 -1
  57. package/dist/text-field/3rdpartylicenses.txt +3 -45
  58. package/dist/text-field/main.js +1 -1
  59. package/dist/text-field/polyfills.js +1 -1
  60. package/dist/textarea-field/3rdpartylicenses.txt +3 -30
  61. package/dist/textarea-field/main.js +1 -1
  62. package/dist/textarea-field/polyfills.js +1 -1
  63. package/dist/timepicker/3rdpartylicenses.txt +3 -67
  64. package/dist/timepicker/main.js +1 -1
  65. package/dist/timepicker/polyfills.js +1 -1
  66. package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
  67. package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
  68. package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
  69. package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
  70. package/dist/types/gauge/src/app/models/gauge-options.d.ts +91 -0
  71. package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
  72. package/dist/types/nebula/src/app/models/nebula-options.d.ts +0 -0
  73. package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
  74. package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
  75. package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
  76. package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
  77. package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
  78. package/dist/types/select/src/app/models/select-options.d.ts +0 -0
  79. package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
  80. package/dist/types/shared/models/button-options-base.d.ts +0 -0
  81. package/dist/types/shared/models/button-options.d.ts +0 -0
  82. package/dist/types/shared/models/field-options-base.d.ts +0 -0
  83. package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
  84. package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
  85. package/dist/types/table/src/app/models/table-options.d.ts +0 -0
  86. package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
  87. package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
  88. package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
  89. package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
  90. package/dist/youtube-player/3rdpartylicenses.txt +2 -29
  91. package/dist/youtube-player/main.js +1 -1
  92. package/dist/youtube-player/polyfills.js +1 -1
  93. package/package.json +188 -183
  94. package/types/index.d.ts +35 -0
  95. package/dist/jsondiffpatch/favicon.ico +0 -0
  96. package/dist/jsondiffpatch/main.js +0 -1
  97. package/dist/jsondiffpatch/polyfills.js +0 -1
  98. package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
  99. package/dist/monaco-editor/favicon.ico +0 -0
  100. package/dist/monaco-editor/main.js +0 -1
  101. package/dist/monaco-editor/polyfills.js +0 -1
  102. package/dist/monaco-editor/styles.css +0 -1
  103. package/dist/picasso/3rdpartylicenses.txt +0 -465
  104. package/dist/picasso/favicon.ico +0 -0
  105. package/dist/picasso/main.js +0 -1
  106. package/dist/picasso/polyfills.js +0 -1
  107. package/dist/picasso/styles.css +0 -0
  108. package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
  109. package/dist/pivot-grid/main.js +0 -1
  110. package/dist/pivot-grid/polyfills.js +0 -1
  111. package/dist/pivot-grid/styles.css +0 -0
  112. package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
  113. package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
  114. /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
  115. /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
@@ -1 +1 @@
1
- !function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,(function(e){return t[e]}).bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},BQ33:function(t,e,n){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",i="second",s="minute",r="hour",o="day",a="week",l="month",c="quarter",u="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+g(i,2,"0")+":"+g(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(i,l),r=n-s<0,o=e.clone().add(i+(r?-1:1),l);return+(-(i+(n-s)/(r?s-o:o-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:u,w:a,d:o,D:h,h:r,m:s,s:i,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",v={};v[_]=m;var b=function(t){return t instanceof S},w=function(t,e,n){var i;if(!t)return _;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var s=t.name;v[s]=t,i=s}return!n&&i&&(_=i),i||!n&&_},x=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},E=y;E.l=w,E.i=b,E.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t)}var g=m.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(f);if(i){var s=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],s,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return x(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<x(t)},g.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,c=!!E.u(e)||e,d=E.p(t),f=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?i:i.endOf(o)},p=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case u:return c?f(1,0):f(31,11);case l:return c?f(1,g):f(0,g+1);case a:var v=this.$locale().weekStart||0,b=(m<v?m+7:m)-v;return f(c?y-b:y+(6-b),g);case o:case h:return p(_+"Hours",0);case r:return p(_+"Minutes",1);case s:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var a,c=E.p(t),d="set"+(this.$u?"UTC":""),f=(a={},a[o]=d+"Date",a[h]=d+"Date",a[l]=d+"Month",a[u]=d+"FullYear",a[r]=d+"Hours",a[s]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[c],p=c===o?this.$D+(e-this.$W):e;if(c===l||c===u){var m=this.clone().set(h,1);m.$d[f](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[E.p(t)]()},g.add=function(n,c){var h,d=this;n=Number(n);var f=E.p(c),p=function(t){var e=x(d);return E.w(e.date(e.date()+Math.round(t*n)),d)};if(f===l)return this.set(l,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===o)return p(1);if(f===a)return p(7);var m=(h={},h[s]=t,h[r]=e,h[i]=1e3,h)[f]||1,g=this.$d.getTime()+n*m;return E.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=t||"YYYY-MM-DDTHH:mm:ssZ",s=E.z(this),r=this.$H,o=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=function(t,n,s,r){return t&&(t[n]||t(e,i))||s[n].substr(0,r)},h=function(t){return E.s(r%12||12,t,"0")},f=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:E.s(r,2,"0"),h:h(1),hh:h(2),a:f(r,o,!0),A:f(r,o,!1),m:String(o),mm:E.s(o,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:s};return i.replace(p,(function(t,e){return e||m[t]||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,d){var f,p=E.p(h),m=x(n),g=(m.utcOffset()-this.utcOffset())*t,y=this-m,_=E.m(this,m);return _=(f={},f[u]=_/12,f[l]=_,f[c]=_/3,f[a]=(y-g)/6048e5,f[o]=(y-g)/864e5,f[r]=y/e,f[s]=y/t,f[i]=y/1e3,f)[p]||y,d?_:E.a(_)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=w(t,e,!0);return i&&(n.$L=i),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),k=S.prototype;return x.prototype=k,[["$ms",n],["$s",i],["$m",s],["$H",r],["$W",o],["$M",l],["$y",u],["$D",h]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,S,x),t.$i=!0),x},x.locale=w,x.isDayjs=b,x.unix=function(t){return x(1e3*t)},x.en=v[_],x.Ls=v,x.p={},x}()},QbNu:function(t,e,n){var i;!function(s){var r=/^\s+/,o=/\s+$/,a=0,l=s.round,c=s.min,u=s.max,h=s.random;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var n=function(t){var e,n,i={r:0,g:0,b:0},a=1,l=null,h=null,d=null,f=!1,p=!1;return"string"==typeof t&&(t=function(t){t=t.replace(r,"").replace(o,"").toLowerCase();var e,n=!1;if(O[t])t=O[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=z.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=z.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=z.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=z.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=z.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=z.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=z.hex8.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),a:B(e[4]),format:n?"name":"hex8"}:(e=z.hex6.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),format:n?"name":"hex"}:(e=z.hex4.exec(t))?{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),a:B(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=z.hex3.exec(t))&&{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==typeof t&&(W(t.r)&&W(t.g)&&W(t.b)?(e=t.g,n=t.b,i={r:255*P(t.r,255),g:255*P(e,255),b:255*P(n,255)},f=!0,p="%"===String(t.r).substr(-1)?"prgb":"rgb"):W(t.h)&&W(t.s)&&W(t.v)?(l=N(t.s),h=N(t.v),i=function(t,e,n){t=6*P(t,360),e=P(e,100),n=P(n,100);var i=s.floor(t),r=t-i,o=n*(1-e),a=n*(1-r*e),l=n*(1-(1-r)*e),c=i%6;return{r:255*[n,a,o,o,l,n][c],g:255*[l,n,n,a,o,o][c],b:255*[o,o,l,n,n,a][c]}}(t.h,l,h),f=!0,p="hsv"):W(t.h)&&W(t.s)&&W(t.l)&&(l=N(t.s),d=N(t.l),i=function(t,e,n){var i,s,r;function o(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=P(t,360),e=P(e,100),n=P(n,100),0===e)i=s=r=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=o(l,a,t+1/3),s=o(l,a,t),r=o(l,a,t-1/3)}return{r:255*i,g:255*s,b:255*r}}(t.h,l,d),f=!0,p="hsl"),t.hasOwnProperty("a")&&(a=t.a)),a=M(a),{ok:f,format:t.format||p,r:c(255,u(i.r,0)),g:c(255,u(i.g,0)),b:c(255,u(i.b,0)),a:a}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var i,s,r=u(t,e,n),o=c(t,e,n),a=(r+o)/2;if(r==o)i=s=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:s,l:a}}function p(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var i,s,r=u(t,e,n),o=c(t,e,n),a=r,l=r-o;if(s=0===r?0:l/r,r==o)i=0;else{switch(r){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:s,v:a}}function m(t,e,n,i){var s=[F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function g(t,e,n,i){return[F(j(i)),F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16))].join("")}function y(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s-=e/100,n.s=R(n.s),d(n)}function _(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s+=e/100,n.s=R(n.s),d(n)}function v(t){return d(t).desaturate(100)}function b(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l+=e/100,n.l=R(n.l),d(n)}function w(t,e){e=0===e?0:e||10;var n=d(t).toRgb();return n.r=u(0,c(255,n.r-l(-e/100*255))),n.g=u(0,c(255,n.g-l(-e/100*255))),n.b=u(0,c(255,n.b-l(-e/100*255))),d(n)}function x(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l-=e/100,n.l=R(n.l),d(n)}function E(t,e){var n=d(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,d(n)}function S(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function k(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+120)%360,s:e.s,l:e.l}),d({h:(n+240)%360,s:e.s,l:e.l})]}function C(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+90)%360,s:e.s,l:e.l}),d({h:(n+180)%360,s:e.s,l:e.l}),d({h:(n+270)%360,s:e.s,l:e.l})]}function T(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+72)%360,s:e.s,l:e.l}),d({h:(n+216)%360,s:e.s,l:e.l})]}function D(t,e,n){e=e||6,n=n||30;var i=d(t).toHsl(),s=360/n,r=[d(t)];for(i.h=(i.h-(s*e>>1)+720)%360;--e;)i.h=(i.h+s)%360,r.push(d(i));return r}function A(t,e){e=e||6;for(var n=d(t).toHsv(),i=n.h,s=n.s,r=n.v,o=[],a=1/e;e--;)o.push(d({h:i,s:s,v:r})),r=(r+a)%1;return o}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,i=this.toRgb();return e=i.g/255,n=i.b/255,.2126*((t=i.r/255)<=.03928?t/12.92:s.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:s.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:s.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=l(100*this._a)/100,this},toHsv:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=p(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),i=l(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),i=l(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return m(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,i,s){var r=[F(l(t).toString(16)),F(l(e).toString(16)),F(l(n).toString(16)),F(j(i))];return s&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+g(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var s=d(t);n="#"+g(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1;return e||!(this._a<1&&this._a>=0)||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},d.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:N(t[i]));t=n}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:h(),g:h(),b:h()})},d.mix=function(t,e,n){n=0===n?0:n||50;var i=d(t).toRgb(),s=d(e).toRgb(),r=n/100;return d({r:(s.r-i.r)*r+i.r,g:(s.g-i.g)*r+i.g,b:(s.b-i.b)*r+i.b,a:(s.a-i.a)*r+i.a})},d.readability=function(t,e){var n=d(t),i=d(e);return(s.max(n.getLuminance(),i.getLuminance())+.05)/(s.min(n.getLuminance(),i.getLuminance())+.05)},d.isReadable=function(t,e,n){var i,s,r,o,a,l=d.readability(t,e);switch(s=!1,(r=n,"AA"!==(o=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(a=(r.size||"small").toLowerCase())&&"large"!==a&&(a="small"),i={level:o,size:a}).level+i.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},d.mostReadable=function(t,e,n){var i,s,r,o,a=null,l=0;s=(n=n||{}).includeFallbackColors,r=n.level,o=n.size;for(var c=0;c<e.length;c++)(i=d.readability(t,e[c]))>l&&(l=i,a=d(e[c]));return d.isReadable(t,a,{level:r,size:o})||!s?a:(n.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],n))};var O=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=d.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=c(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),s.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function R(t){return c(1,u(0,t))}function L(t){return parseInt(t,16)}function F(t){return 1==t.length?"0"+t:""+t}function N(t){return t<=1&&(t=100*t+"%"),t}function j(t){return s.round(255*parseFloat(t)).toString(16)}function B(t){return L(t)/255}var H,V,$,z=(V="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",$="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(t){return!!z.CSS_UNIT.exec(t)}t.exports?t.exports=d:void 0===(i=(function(){return d}).call(e,n,e,t))||(t.exports=i)}(Math)},aPkM:function(t,e,n){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,s,r){var o=s.prototype;r.utc=function(t){return new s({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=r(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var l=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(i,s){var r=this.$utils().u;if(r(i))return this.$u?0:r(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&null===(i=function(t){void 0===t&&(t="");var i=t.match(e);if(!i)return null;var s=(""+i[0]).match(n)||["-",0,0],r=60*+s[1]+ +s[2];return 0===r?0:"+"===s[0]?r:-r}(i)))return this;var o=Math.abs(i)<=16?60*i:i,a=this;if(s)return a.$offset=o,a.$u=0===i,a;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(o+l,t)).$offset=o,a.$x.$localOffset=l}else a=this.utc();return a};var u=o.format;o.format=function(t){return u.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var i=this.local(),s=r(t).local();return d.call(i,s,e,n)}}}()},dvnC:function(t,e,n){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,s=/\d*[^\s\d-_:/()]+/,r={},o=function(t){return(t=+t)+(t>68?1900:2e3)},a=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],c=function(t){var e=r[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=r.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=u(t,!1)}],a:[s,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,a("seconds")],ss:[i,a("seconds")],m:[i,a("minutes")],mm:[i,a("minutes")],H:[i,a("hours")],h:[i,a("hours")],HH:[i,a("hours")],hh:[i,a("hours")],D:[i,a("day")],DD:[n,a("day")],Do:[s,function(t){var e=r.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,a("month")],MM:[n,a("month")],MMM:[s,function(t){var e=c("months"),n=(c("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=o(t)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function d(n){var i;i=r&&r.formats;for(var s=(n=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,s){var r=s&&s.toUpperCase();return n||i[s]||t[s]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=s.length,a=0;a<o;a+=1){var l=s[a],c=h[l],u=c&&c[1];s[a]=u?{regex:c&&c[0],parser:u}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var r=s[n];if("string"==typeof r)i+=r.length;else{var a=r.regex,l=r.parser,c=t.substr(i),u=a.exec(c)[0];l.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,o=t.args;this.$u=i;var a=o[1];if("string"==typeof a){var l=!0===o[2],c=!0===o[3],u=l||c,h=o[2];c&&(h=o[2]),r=this.$locale(),!l&&h&&(r=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=d(e)(t),s=i.year,r=i.month,o=i.day,a=i.hours,l=i.minutes,c=i.seconds,u=i.milliseconds,h=i.zone,f=new Date,p=o||(s||r?1:f.getDate()),m=s||f.getFullYear(),g=0;s&&!r||(g=r>0?r-1:f.getMonth());var y=a||0,_=l||0,v=c||0,b=u||0;return h?new Date(Date.UTC(m,g,p,y,_,v,b+60*h.offset*1e3)):n?new Date(Date.UTC(m,g,p,y,_,v,b)):new Date(m,g,p,y,_,v,b)}catch(t){return new Date("")}}(e,a,i),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(a)&&(this.$d=new Date("")),r={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){o[1]=a[p-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else s.call(this,t)}}}()},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(r)){s&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof u?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof u?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[f](){return this}static create(t,e,n){const i=new p(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends p{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class x extends p{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new x(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new b;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new b;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new b;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}function C(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new D(t,this.project,this.thisArg))}}class D extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const A=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=O(),M=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return A(t);if(P(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[I])return e=t,t=>{const n=e[I]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function L(t,e){return new _(n=>{const i=new h;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function F(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new _(n=>{const i=new h;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(P(t))return function(t,e){return new _(n=>{const i=new h;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(M(t))return L(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const i=new h;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[I](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(R(t))}class N extends p{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends p{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function B(t,e){if(!e.closed)return t instanceof _?t.subscribe(e):R(t)(e)}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(H((n,i)=>F(t(n,i)).pipe(C((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new V(t,n)))}class V{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends j{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new N(this),n=this.destination;n.add(e);const i=B(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return H(y,t)}function W(t,e){return e?L(t,e):new _(A(t))}function Y(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:z(e)(W(t,n))}function U(){return function(t){return t.lift(new q(t))}}class q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Q(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Q extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new G(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return U()(this)}}const K=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class G extends x{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,K);return i.source=t,i.subjectFactory=n,i})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=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}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const ht=ut;function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return pt(t,t[gt])||pt(t,t[vt])}function pt(t,e){return e&&e.token===t?e:null}function mt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(bt))?t[yt]:null}const gt=lt({"\u0275prov":lt}),yt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),vt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Et=lt({__forward_ref__:lt});function St(t){return t.__forward_ref__=St,t.toString=function(){return wt(this())},t}function kt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(Et)&&t.__forward_ref__===St}const Tt="undefined"!=typeof globalThis&&globalThis,Dt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot="undefined"!=typeof global&&global,It=Tt||Ot||Dt||At,Mt=lt({"\u0275cmp":lt}),Pt=lt({"\u0275dir":lt}),Rt=lt({"\u0275pipe":lt}),Lt=lt({"\u0275mod":lt}),Ft=lt({"\u0275loc":lt}),Nt=lt({"\u0275fac":lt}),jt=lt({__NG_ELEMENT_ID__:lt});class Bt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ht=new Bt("INJECTOR",-1),Vt={},$t=/\n/gm,zt="__source",Wt=lt({provide:String,useValue:lt});let Yt,Ut=void 0;function qt(t){const e=Ut;return Ut=t,e}function Qt(t){const e=Yt;return Yt=t,e}function Zt(t,e=at.Default){if(void 0===Ut)throw new Error("inject() must be called from an injection context");return null===Ut?Xt(t,void 0,e):Ut.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return(Yt||Zt)(kt(t),e)}const Gt=Kt;function Xt(t,e,n){const i=ft(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Jt(t){const e=[];for(let n=0;n<t.length;n++){const i=kt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof st||"Optional"===s.ngMetadataName||s===st?n|=at.Optional:s instanceof ot||"SkipSelf"===s.ngMetadataName||s===ot?n|=at.SkipSelf:s instanceof rt||"Self"===s.ngMetadataName||s===rt?n|=at.Self:t=s instanceof it||s===it?s.token:s}e.push(Kt(t,n))}else e.push(Kt(i))}return e}class te{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${wt(t)}!`);throw e.name="NullInjectorError",e}return e}}class ee{}function ne(t,e){t.forEach(t=>Array.isArray(t)?ne(t,e):e(t))}function ie(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function re(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function oe(t,e,n){let i=le(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function ae(t,e){const n=le(t,e);if(n>=0)return t[1|n]}function le(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var ce=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ue=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},de=[];let fe=0;function pe(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||de,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ue.Emulated,id:"c",styles:t.styles||de,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=fe++,n.inputs=ve(t.inputs,e),n.outputs=ve(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(me):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(ge):null,n})}function me(t){return xe(t)||function(t){return t[Pt]||null}(t)}function ge(t){return function(t){return t[Rt]||null}(t)}const ye={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||de,declarations:t.declarations||de,imports:t.imports||de,exports:t.exports||de,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ye[t.id]=t.type}),e}function ve(t,e){if(null==t)return he;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const be=pe;function we(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function xe(t){return t[Mt]||null}function Ee(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function Se(t,e){const n=t[Lt]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}const ke=20,Ce=10;function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function De(t){return Array.isArray(t)&&!0===t[1]}function Ae(t){return 0!=(8&t.flags)}function Oe(t){return 2==(2&t.flags)}function Ie(t){return 1==(1&t.flags)}function Me(t){return null!==t.template}function Pe(t){return 0!=(512&t[2])}class Re{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Le(){return Fe}function Fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=je),Ne}function Ne(){const t=Be(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function je(t,e,n,i){const s=Be(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Re(l&&l.currentValue,e,o===he),t[i]=e}function Be(t){return t.__ngSimpleChanges__||null}Le.ngInherit=!0;let He=void 0;function Ve(){return void 0!==He?He:"undefined"!=typeof document?document:void 0}function $e(t){return!!t.listen}const ze={createRenderer:(t,e)=>Ve()};function We(t){for(;Array.isArray(t);)t=t[0];return t}function Ye(t,e){return We(e[t+ke])}function Ue(t,e){return We(e[t.index])}function qe(t,e){return t.data[e+ke]}function Qe(t,e){return t[e+ke]}function Ze(t,e){const n=e[t];return Te(n)?n:n[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Xe(t){return 128==(128&t[2])}function Je(t,e){return null===t||null==e?null:t[e]}function tn(t){t[18]=0}function en(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const nn={lFrame:En(null),bindingsEnabled:!0,checkNoChangesMode:!1};function sn(){return nn.bindingsEnabled}function rn(){return nn.lFrame.lView}function on(){return nn.lFrame.tView}function an(t){nn.lFrame.contextLView=t}function ln(){return nn.lFrame.previousOrParentTNode}function cn(t,e){nn.lFrame.previousOrParentTNode=t,nn.lFrame.isParent=e}function un(){return nn.lFrame.isParent}function hn(){nn.lFrame.isParent=!1}function dn(){return nn.checkNoChangesMode}function fn(t){nn.checkNoChangesMode=t}function pn(){const t=nn.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function mn(){return nn.lFrame.bindingIndex++}function gn(t,e){const n=nn.lFrame;n.bindingIndex=n.bindingRootIndex=t,yn(e)}function yn(t){nn.lFrame.currentDirectiveIndex=t}function _n(){return nn.lFrame.currentQueryIndex}function vn(t){nn.lFrame.currentQueryIndex=t}function bn(t,e){const n=xn();nn.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function wn(t,e){const n=xn(),i=t[1];nn.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function xn(){const t=nn.lFrame,e=null===t?null:t.child;return null===e?En(t):e}function En(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Sn(){const t=nn.lFrame;return nn.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const kn=Sn;function Cn(){const t=Sn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Tn(){return nn.lFrame.selectedIndex}function Dn(t){nn.lFrame.selectedIndex=t}function An(){const t=nn.lFrame;return qe(t.tView,t.selectedIndex)}function On(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function In(t,e,n){Rn(t,e,3,n)}function Mn(t,e,n,i){(3&t[2])===n&&Rn(t,e,n,i)}function Pn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Rn(t,e,n,i){const s=null!=i?i:-1;let r=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=i&&r>=i)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Ln(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Ln(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Fn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Nn(t,e,n){const i=$e(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];Bn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function jn(t){return 3===t||4===t||6===t}function Bn(t){return 64===t.charCodeAt(0)}function Hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Vn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Vn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function $n(t){return-1!==t}function zn(t){return 32767&t}function Wn(t){return t>>16}function Yn(t,e){let n=Wn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Un(t){return"string"==typeof t?t:null==t?"":""+t}function qn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Un(t)}const Qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(It))();function Zn(t){return{name:"body",target:t.ownerDocument.body}}function Kn(t){return t instanceof Function?t():t}let Gn=!0;function Xn(t){const e=Gn;return Gn=t,e}let Jn=0;function ti(t,e){const n=ni(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ei(i.data,t),ei(e,null),ei(i.blueprint,null));const s=ii(t,e),r=t.injectorIndex;if($n(s)){const t=zn(s),n=Yn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function ei(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ni(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function ii(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function si(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(i=n[jt]),null==i&&(i=n[jt]=Jn++);const s=255&i,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function ri(t,e,n,i=at.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(jt)?t[jt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){bn(e,t);try{const t=s();if(null!=t||i&at.Optional)return t;throw new Error(`No provider for ${qn(n)}!`)}finally{kn()}}else if("number"==typeof s){if(-1===s)return new di(t,e);let r=null,o=ni(t,e),a=-1,l=i&at.Host?e[16][6]:null;for((-1===o||i&at.SkipSelf)&&(a=-1===o?ii(t,e):e[o+8],hi(i,!1)?(r=e[1],o=zn(a),e=Yn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(ui(s,o,t.data)){const t=ai(o,e,n,r,i,l);if(t!==oi)return t}hi(i,e[1].data[o+8]===l)&&ui(s,o,e)?(r=t,o=zn(a),e=Yn(a,e)):o=-1}}}if(i&at.Optional&&void 0===s&&(s=null),0==(i&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,s,i&at.Optional):Xt(n,s,i&at.Optional)}finally{Qt(r)}}if(i&at.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${qn(n)}]`)}const oi={};function ai(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=li(a,o,n,null==i?Oe(a)&&Gn:i!=o&&3===a.type,s&at.Host&&r===a);return null!==l?ci(e,o,l,a):oi}function li(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Me(t)&&t.type===n)return l}return null}function ci(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Fn){const o=s;if(o.resolving)throw new Error("Circular dep for "+qn(r[n]));const a=Xn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),bn(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=Fe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Xn(a),o.resolving=!1,kn()}}return s}function ui(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<<t)}function hi(t,e){return!(t&at.Self||t&at.Host&&e)}class di{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ri(this._tNode,this._lView,t,void 0,e)}}function fi(t){const e=t;if(Ct(t))return()=>{const t=fi(kt(e));return t?t():null};let n=Ee(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function pi(t){return tt(()=>{const e=t.prototype.constructor,n=e[Nt]||fi(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Nt]||fi(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function mi(t){return t.ngDebugContext}function gi(t){return t.ngOriginalError}function yi(t,...e){t.error(...e)}class _i{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||yi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?mi(t)?mi(t):this._findContext(gi(t)):null}_findOriginalError(t){let e=gi(t);for(;e&&gi(e);)e=gi(e);return e}}class vi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class bi extends vi{getTypeName(){return"HTML"}}class wi extends vi{getTypeName(){return"Style"}}class xi extends vi{getTypeName(){return"Script"}}class Ei extends vi{getTypeName(){return"URL"}}class Si extends vi{getTypeName(){return"ResourceURL"}}function ki(t){return t instanceof vi?t.changingThisBreaksApplicationSecurity:t}function Ci(t,e){const n=Ti(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ti(t){return t instanceof vi&&t.getTypeName()||null}let Di=!0,Ai=!1;function Oi(){return Ai=!0,Di}class Ii{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Mi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Pi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ri=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Li(t){return(t=String(t)).match(Pi)||t.match(Ri)?t:(Oi()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Fi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ni(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ji=Fi("area,br,col,hr,img,wbr"),Bi=Fi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hi=Fi("rp,rt"),Vi=Ni(Hi,Bi),$i=Ni(ji,Ni(Bi,Fi("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")),Ni(Hi,Fi("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")),Vi),zi=Fi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wi=Fi("srcset"),Yi=Ni(zi,Wi,Fi("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Fi("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")),Ui=Fi("script,style,template");class qi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;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)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!$i.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ui.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!Yi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;zi[r]&&(o=Li(o)),Wi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Li(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ki(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();$i.hasOwnProperty(e)&&!ji.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ki(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zi=/([^\#-~ |!])/g;function Ki(t){return t.replace(/&/g,"&amp;").replace(Qi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Zi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gi;function Xi(t,e){let n=null;try{Gi=Gi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ii:new Mi(t)}(t);let i=e?String(e):"";n=Gi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Gi.getInertBodyElement(i)}while(i!==r);const o=new qi,a=o.sanitizeChildren(Ji(n)||n);return Oi()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Ji(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ji(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ts=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}({});function es(t){const e=function(){const t=rn();return t&&t[12]}();return e?e.sanitize(ts.HTML,t)||"":Ci(t,"HTML")?ki(t):Xi(Ve(),Un(t))}function ns(t,e){t.__ngContext__=e}function is(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ss(){throw new Error("Cannot mix multi providers and regular providers")}function rs(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}const os="ng-template";function as(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==rs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ls(t){return 0===t.type&&t.tagName!==os}function cs(t,e,n){return e===(0!==t.type||n?t.tagName:os)}function us(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(jn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!cs(t,l,n)||""===l&&1===e.length){if(hs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!as(t.attrs,c,n)){if(hs(i))return!1;o=!0}continue}const u=ds(8&i?"class":l,s,ls(t),n);if(-1===u){if(hs(i))return!1;o=!0;continue}if(""!==c){let t;t=u>r?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==rs(e,c,0)||2&i&&c!==t){if(hs(i))return!1;o=!0}}}}else{if(!o&&!hs(i)&&!hs(l))return!1;if(o&&hs(l))continue;o=!1,i=l|1&i}}return hs(i)||o}function hs(t){return 0==(1&t)}function ds(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function fs(t,e,n=!1){for(let i=0;i<e.length;i++)if(us(t,e[i],n))return!0;return!1}function ps(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function ms(t,e){return t?":not("+e.trim()+")":e}function gs(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||hs(o)||(e+=ms(r,s),s=""),i=o,r=r||!hs(i);n++}return""!==s&&(e+=ms(r,s)),e}const ys={};function _s(t){const e=t[3];return De(e)?e[3]:e}function vs(t){return ws(t[13])}function bs(t){return ws(t[4])}function ws(t){for(;null!==t&&!De(t);)t=t[4];return t}function xs(t){Es(on(),rn(),Tn()+t,dn())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&In(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Mn(e,i,0,n)}Dn(n)}function Ss(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Cs(t){return 2|t}function Ts(t){return(131068&t)>>2}function Ds(t,e){return-131069&t|e<<2}function As(t){return 1|t}function Os(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];vn(s),n.contentQueries(2,e[r],r)}}}function Is(t,e,n){return $e(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ms(t,e,n,i,s,r,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|i,tn(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function Ps(t,e,n,i,s,r){const o=n+ke,a=t.data[o]||function(t,e,n,i,s,r){const o=ln(),a=un(),l=a?o:o&&o.parent,c=t.data[n]=zs(0,l&&l!==e?l:null,i,n,s,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,s,r);return cn(a,!0),a}function Rs(t,e,n){wn(e,e[6]);try{const i=t.viewQuery;null!==i&&ur(1,i,n);const s=t.template;null!==s&&Ns(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Os(t,e),t.staticViewQueries&&ur(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Cn()}}function Ls(t,e,n,i){const s=e[2];if(256==(256&s))return;wn(e,e[6]);const r=dn();try{tn(e),nn.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ns(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&In(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Mn(e,n,0,null),Pn(e,0)}if(function(t){for(let e=vs(t);null!==e;e=bs(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&en(i,1),n[2]|=1024}}}(e),function(t){for(let e=vs(t);null!==e;e=bs(e))for(let t=Ce;t<e.length;t++){const n=e[t],i=n[1];Xe(n)&&Ls(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Os(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&In(e,n)}else{const n=t.contentHooks;null!==n&&Mn(e,n,1),Pn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Dn(r),i+=9+n[++t],s=i):i+=o:(null!==o&&(gn(i,s),o(2,e[s])),s++)}}}finally{Dn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)sr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ur(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&In(e,n)}else{const n=t.viewHooks;null!==n&&Mn(e,n,2),Pn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,en(e[3],-1))}finally{Cn()}}function Fs(t,e,n,i){const s=e[10],r=!dn(),o=Ge(e);try{r&&!o&&s.begin&&s.begin(),o&&Rs(t,e,i),Ls(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Ns(t,e,n,i,s){const r=Tn();try{Dn(-1),2&i&&e.length>ke&&Es(t,e,0,dn()),n(i,s)}finally{Dn(r)}}function js(t,e,n){sn()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||ti(n,e),ns(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=Me(i);r&&tr(e,n,i);const l=ci(e,t,a,n);ns(l,e),null!==o&&er(0,a-s,l,i,0,o),r&&(Ze(n.index,e)[8]=l)}}(t,e,n,Ue(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-ke,l=nn.lFrame.currentDirectiveIndex;try{Dn(a);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];yn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Qs(i,s):o&&r.push(null)}}finally{Dn(-1),yn(l)}}(t,e,n))}function Bs(t,e,n=Ue){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Hs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Vs(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Vs(t,e,n,i,s,r,o,a,l,c){const u=ke+i,h=u+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:ys);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function $s(t,e,n,i){const s=dr(e);s.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,s.length-1)}function zs(t,e,n,i,s,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ws(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Ys(t,e,n,i){let s=!1;if(sn()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];fs(n,o.selectors,!1)&&(s||(s=[]),si(ti(n,e),t,o.type),Me(o)?(2&n.flags&&is(n),Ks(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){let i=0;s=!0,Xs(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Zs(t,n,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=Hn(n.mergedAttrs,c.hostAttrs),Js(t,e,c),Gs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-ke),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-ke),l=!0),Us(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||ls(e)?null:nr(n,s);r.push(c),o=Ws(n,l,o),a=Ws(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),qs(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=Hn(n.mergedAttrs,n.attrs),s}function Us(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function qs(t,e,n){for(let i=0;i<n;i++)e.push(ys),t.blueprint.push(ys),t.data.push(null)}function Qs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Zs(t,e,n){const i=ke-e.index,s=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,s,n)}function Ks(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gs(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Me(e)&&(n[""]=t)}}function Xs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Js(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Ee(n.type)),s=new Fn(i,Me(n),null);t.blueprint.push(s),e.push(s)}function tr(t,e,n){const i=Ue(e,t),s=Hs(n),r=t[10],o=or(t,Ms(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=o}function er(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function nr(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ir(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function sr(t,e){const n=Ze(e,t);if(Xe(n)){const t=n[1];80&n[2]?Ls(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=vs(e);null!==i;i=bs(i))for(let e=Ce;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Ls(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=Ze(n[i],e);Xe(s)&&s[5]>0&&t(s)}}(n)}}function rr(t,e){const n=Ze(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Rs(i,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_s(t);if(Pe(t)&&!e)return t;t=e}return null}function lr(t,e,n){const i=e[10];i.begin&&i.begin();try{Ls(t,e,t.template,n)}catch(s){throw fr(e,s),s}finally{i.end&&i.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Ke(n),s=i[1];Fs(s,i,s.template,n)}}(t[8])}function ur(t,e,n){vn(0),e(t,n)}const hr=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function fr(t,e){const n=t[9],i=n?n.get(_i,null):null;i&&i.handleError(e)}function pr(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function mr(t,e){const n=e[3];return-1===t.index?De(n)?n:null:n}function gr(t,e){const n=mr(t,e);return n?Dr(e[11],n[7]):null}function yr(t,e,n,i,s){if(null!=i){let r,o=!1;De(i)?r=i:Te(i)&&(o=!0,i=i[0]);const a=We(i);0===t&&null!==n?null==s?Cr(e,n,a):kr(e,n,a,s||null):1===t&&null!==n?kr(e,n,a,s||null):2===t?function(t,e,n){const i=Dr(t,e);i&&function(t,e,n,i){$e(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==We(n)&&yr(e,t,i,r,s);for(let o=Ce;o<n.length;o++){const s=n[o];Pr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function _r(t,e,n,i){const s=gr(t.node,e);s&&Pr(t,e,e[11],n?1:2,s,i)}function vr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&en(e[3],-1),n.splice(i,1)}function br(t,e){if(t.length<=Ce)return;const n=Ce+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&vr(s,i),e>0&&(t[n-1][4]=i[4]);const r=se(t,Ce+e);_r(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function wr(t,e){if(!(256&e[2])){const n=e[11];$e(n)&&n.destroyNode&&Pr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Er(t[1],t);for(;e;){let n=null;if(Te(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&Er(e[1],e),e=xr(e,t);null===e&&(e=t),Te(e)&&Er(e[1],e),n=e&&e[4]}e=n}}(e)}}function xr(t,e){let n;return Te(t)&&(n=t[6])&&2===n.type?mr(n,t):t[3]===e?null:t[3]}function Er(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Fn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],r="function"==typeof s?s(e):We(e[s]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&$e(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&De(e[3])){i!==e[3]&&vr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Sr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?gr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ue(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==ue.ShadowDom&&n!==ue.Native)return null}return Ue(i,n)}function kr(t,e,n,i){$e(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Cr(t,e,n){$e(t)?t.appendChild(e,n):e.appendChild(n)}function Tr(t,e,n,i){null!==i?kr(t,e,n,i):Cr(t,e,n)}function Dr(t,e){return $e(t)?t.parentNode(e):e.parentNode}function Ar(t,e){if(2===t.type){const n=mr(t,e);return null===n?null:Ir(n.indexOf(e,Ce)-Ce,n)}return 4===t.type||5===t.type?Ue(t,e):null}function Or(t,e,n,i){const s=Sr(t,i,e);if(null!=s){const t=e[11],r=Ar(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Tr(t,s,n[e],r);else Tr(t,s,n,r)}}function Ir(t,e){const n=Ce+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return Ue(n,e);if(0===i)return Ir(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return De(t)?Ir(-1,t):We(t)}}{const i=e[16],s=i[6],r=_s(i),o=s.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Mr(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;o&&0===e&&(a&&ns(We(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Mr(t,e,n.child,i,s,r,!1),yr(e,t,s,a,r)):1===l?Rr(t,e,i,n,s,r):yr(e,t,s,a,r)),n=o?n.projectionNext:n.next}}function Pr(t,e,n,i,s,r){Mr(n,i,t.node.child,e,s,r,!1)}function Rr(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)yr(e,t,s,a[l],r);else Mr(t,e,a,o[3],s,r,!0)}function Lr(t,e,n){$e(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Fr(t,e,n){$e(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Nr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,s,r=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&s.push(We(o)),De(o))for(let e=Ce;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,s)}const a=i.type;if(4===a||5===a)t(e,n,i.child,s);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))s.push(...r);else{const n=_s(e);t(n[1],n,r,s,!0)}}i=r?i.projectionNext:i.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wr(this._lView[1],this._lView)}onDestroy(t){$s(this._lView[1],this._lView,null,t)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){fn(!0);try{lr(t,e,n)}finally{fn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Pr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class jr extends Nr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){fn(!0);try{cr(t)}finally{fn(!1)}}(this._view)}get context(){return null}}let Br,Hr,Vr;function $r(t,e,n){return Br||(Br=class extends t{}),new Br(Ue(e,n))}function zr(t,e,n,i){return Hr||(Hr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ms(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Rs(e,n,t),new Nr(n)}}),0===n.type?new Hr(i,n,$r(e,n,i)):null}function Wr(t,e,n,i){let s;Vr||(Vr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return $r(e,this._hostTNode,this._hostView)}get injector(){return new di(this._hostTNode,this._hostView)}get parentInjector(){const t=ii(this._hostTNode,this._hostView),e=Yn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=Wn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return $n(t)&&null!=n?new di(n,e):new di(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(ee,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),De(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Vr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=Ce+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-Ce?(e[4]=n[s],ie(n,Ce+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,s),_r(i,n,!0,Ir(s,this._lContainer)),t.attachToViewContainerRef(this),ie(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=br(this._lContainer,e);n&&(se(this._lContainer[8],e),wr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=br(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Nr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(De(r))s=r;else{let t;if(4===n.type)t=We(r);else if(t=i[11].createComment(""),Pe(i)){const e=i[11],s=Ue(n,i);kr(e,Dr(e,s),t,function(t,e){return $e(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Or(i[1],i,t,n);i[n.index]=s=ir(r,i,t,n),or(i,s)}return new Vr(s,n,i)}function Yr(t=!1){return function(t,e,n){if(!n&&Oe(t)){const n=Ze(t.index,e);return new Nr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Nr(e[16],e):null}(ln(),rn(),t)}let Ur=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qr(),t})();const qr=Yr,Qr=new Bt("Set Injector scope."),Zr={},Kr={},Gr=[];let Xr=void 0;function Jr(){return void 0===Xr&&(Xr=new te),Xr}function to(t,e=null,n=null,i){return new eo(t,n,e||Jr(),i)}class eo{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ne(e,n=>this.processProvider(n,t,e)),ne([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ht,io(void 0,this));const r=this.records.get(Qr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:wt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Vt,n=at.Default){this.assertNotDestroyed();const i=qt(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Bt)&&ft(t);e=n&&this.injectableDefInScope(n)?io(no(t),Zr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Jr():this.parent).get(t,e=n&at.Optional&&e===Vt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(wt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[zt]&&s.unshift(e[zt]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=wt(e);if(Array.isArray(e))s=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):wt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace($t,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{qt(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=kt(t)))return!1;let i=mt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=mt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ne(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ne(i,t=>this.processProvider(t,n,i||Gr))}}this.injectorDefTypes.add(r),this.records.set(r,io(i.factory,Zr));const a=i.providers;if(null!=a&&!o){const e=t;ne(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=ro(t=kt(t))?t:kt(t&&t.provide);const s=function(t,e,n){return so(t)?io(void 0,t.useValue):io(function(t,e,n){let i=void 0;if(ro(t)){const e=kt(t);return Ee(e)||no(e)}if(so(t))i=()=>kt(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Jt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Kt(kt(t.useExisting));else{const s=kt(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(s)||no(s);i=()=>new s(...Jt(t.deps))}var s;return i}(t,e,n),Zr)}(t,e,n);if(ro(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ss()}else{let e=this.records.get(i);e?void 0===e.multi&&ss():(e=io(void 0,Zr,!0),e.factory=()=>Jt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Kr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===Zr&&(e.value=Kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function no(t){const e=ft(t),n=null!==e?e.factory:Ee(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof Bt)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=re(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[vt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function io(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function so(t){return null!==t&&"object"==typeof t&&Wt in t}function ro(t){return"function"==typeof t}const oo=function(t,e,n){return function(t,e=null,n=null,i){const s=to(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ao=(()=>{class t{static create(t,e){return Array.isArray(t)?oo(t,e,""):oo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new te,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Kt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();function lo(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=xt(s,t):2==r&&(i=xt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}let co=null;function uo(){if(!co){const t=It.Symbol;if(t&&t.iterator)co=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(co=n)}}}return co}class ho{constructor(t){this.wrapped=t}static wrap(t){return new ho(t)}static unwrap(t){return ho.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof ho}}function fo(t){return!!po(t)&&(Array.isArray(t)||!(t instanceof Map)&&uo()in t)}function po(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function mo(t,e,n){return t[e]=n}function go(t,e){return t[e]}function yo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function _o(t,e,n,i){const s=yo(t,e,n);return yo(t,e+1,i)||s}function vo(t,e,n,i){const s=rn();return yo(s,mn(),e)&&(on(),function(t,e,n,i,s,r){const o=Ue(t,e),a=e[11];if(null==i)$e(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==s?Un(i):s(i,t.tagName||"",n);$e(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(An(),s,t,e,n,i)),vo}function bo(t,e,n,i,s,r,o,a){const l=rn(),c=on(),u=t+ke,h=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,u=Ps(e,n[6],t,0,o||null,Je(c,a));Ys(e,n,u,Je(c,l)),On(e,u);const h=u.tViews=Vs(2,-1,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=zs(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,i,s,r,o):c.data[u];cn(h,!1);const d=l[11].createComment("");Or(c,l,d,h),ns(d,l),or(l,l[u]=ir(d,l,d,h)),Ie(h)&&js(c,l,h),null!=o&&Bs(l,h,a)}function wo(t){return Qe(nn.lFrame.contextLView,t)}function xo(t,e=at.Default){const n=rn();return null==n?Kt(t,e):ri(ln(),n,kt(t),e)}function Eo(t,e,n){const i=rn();return yo(i,mn(),e)&&function(t,e,n,i,s,r,o,a){const l=Ue(e,n);let c,u=e.inputs;var h;null!=u&&(c=u[i])?(pr(t,n,c,i,s),Oe(e)&&function(t,e){const n=Ze(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",i):s,$e(r)?r.setProperty(l,i,s):Bn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(on(),An(),i,t,e,i[11],n),Eo}function So(t,e,n,i,s){const r=s?"class":"style";pr(t,n,e.inputs[r],r,i)}function ko(t,e,n,i){const s=rn(),r=on(),o=ke+t,a=s[11],l=s[o]=Is(e,a,nn.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=Je(a,r),c=Ps(e,n[6],t,3,s,l);return Ys(e,n,c,Je(a,o)),null!==c.attrs&&lo(c,c.attrs,!1),null!==c.mergedAttrs&&lo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,n,i):r.data[o];cn(c,!0);const u=c.mergedAttrs;null!==u&&Nn(a,l,u);const h=c.classes;null!==h&&Fr(a,l,h);const d=c.styles;null!==d&&Lr(a,l,d),Or(r,s,l,c),0===nn.lFrame.elementDepthCount&&ns(l,s),nn.lFrame.elementDepthCount++,Ie(c)&&(js(r,s,c),function(t,e,n){if(Ae(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(r,c,s)),null!==i&&Bs(s,c)}function Co(){let t=ln();un()?hn():(t=t.parent,cn(t,!1));const e=t;nn.lFrame.elementDepthCount--;const n=on();n.firstCreatePass&&(On(n,t),Ae(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&So(n,e,rn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&So(n,e,rn(),e.stylesWithoutHost,!1)}function To(t,e,n,i){ko(t,e,n,i),Co()}function Do(){return rn()}function Ao(t){return!!t&&"function"==typeof t.then}function Oo(t,e,n=!1,i){const s=rn(),r=on(),o=ln();return function(t,e,n,i,s,r,o=!1,a){const l=Ie(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=dr(e);let h=!0;if(3===i.type){const d=Ue(i,e),f=a?a(d):he,p=f.target||d,m=u.length,g=a?t=>a(We(t[i.index])).target:i.index;if($e(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=Mo(i,e,r,!1);const t=n.listen(f.name||p,s,r);u.push(r,t),c&&c.push(s,g,m,m+1)}}else r=Mo(i,e,r,!0),p.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,m,o)}const d=i.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(r),o=u.length;u.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,t,e,n,i),Oo}function Io(t,e,n){try{return!1!==e(n)}catch(i){return fr(t,i),!1}}function Mo(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?Ze(t.index,e):e;0==(32&e[2])&&ar(o);let a=Io(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=Io(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Po(t=1){return function(t){return(nn.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,nn.lFrame.contextLView))[8]}(t)}function Ro(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?fs(t,r,!0):ps(i,r))return s}else n=s}return n}function Lo(t){const e=rn()[16][6];if(!e.projection){const n=e.projection=re(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Ro(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Fo(t,e=0,n){const i=rn(),s=on(),r=Ps(s,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),hn(),function(t,e,n){Rr(e[11],0,e,n,Sr(t,n,e),Ar(n.parent||e[6],e))}(s,i,r)}const No=[];function jo(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?ks(r):Ts(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Bo(t[a],e)&&(l=!0,t[a+1]=i?As(n):Cs(n)),a=i?ks(n):Ts(n)}l&&(t[n+1]=i?Cs(r):As(r))}function Bo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&le(t,e)>=0}function Ho(t,e,n){return $o(t,e,n,!1),Ho}function Vo(t,e){return $o(t,e,null,!0),Vo}function $o(t,e,n,i){const s=rn(),r=on(),o=function(t){const e=nn.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[Tn()+ke],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=nn.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Wo(n=zo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=zo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ks(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=zo(null,t,e,n[1],i),n=Wo(n,e.attrs,i),function(t,e,n,i){t[ks(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=Wo(i,t[r].hostAttrs,n);return Wo(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=ks(o),l=Ts(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||le(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ks(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=Ds(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=Ds(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=Ds(t[l+1],i),l=i;u&&(t[i+1]=Cs(t[i+1])),jo(t,c,i,!0),jo(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&le(r,e)>=0&&(n[i+1]=As(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}(r,t,o,i),e!==ys&&yo(s,o,e)&&function(t,e,n,i,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Uo(1==(1&c)?Yo(l,e,n,s,Ts(c),o):void 0)||(Uo(r)||function(t){return 2==(2&t)}(c)&&(r=Yo(l,null,n,s,a,o)),function(t,e,n,i,s){const r=$e(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==s?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,s,e):n.style.setProperty(i,s)}}(i,o,Ye(Tn(),n),s,r))}(r,r.data[Tn()+ke],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(ki(t)))),t}(e,n),i,o)}function zo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=Wo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Wo(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),oe(t,o,!!n||e[++r]))}return void 0===t?null:t}function Yo(t,e,n,i,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===ys&&(u=c?No:void 0);let h=c?ae(u,i):l===i?u:void 0;if(r&&!Uo(h)&&(h=ae(e,i)),Uo(h)&&(a=h,o))return a;const d=t[s+1];s=o?ks(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=ae(t,i))}return a}function Uo(t){return void 0!==t}function qo(t,e=""){const n=rn(),i=on(),s=t+ke,r=i.firstCreatePass?Ps(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return $e(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Or(i,n,o,r),cn(r,!1)}function Qo(t){return Zo("",t,""),Qo}function Zo(t,e,n){const i=rn(),s=function(t,e,n,i){return yo(t,mn(),n)?e+Un(n)+i:ys}(i,t,e,n);return s!==ys&&function(t,e,n){const i=Ye(e,t),s=t[11];$e(s)?s.setValue(i,n):i.textContent=n}(i,Tn(),s),Zo}function Ko(t,e){const n=Ke(t)[1],i=n.data.length-1;On(n,{directiveStart:i,directiveEnd:i+1})}function Go(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Me(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Xo(t.inputs),e.declaredInputs=Xo(t.declaredInputs),e.outputs=Xo(t.outputs);const n=s.hostBindings;n&&ea(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Jo(t,r),o&&ta(t,o),ct(t.inputs,s.inputs),ct(t.declaredInputs,s.declaredInputs),ct(t.outputs,s.outputs),Me(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Go&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Hn(s.hostAttrs,n=Hn(n,s.hostAttrs))}}(i)}function Xo(t){return t===he?{}:t===de?[]:t}function Jo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ta(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function ea(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class na{}class ia{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let sa=(()=>{class t{}return t.NULL=new ia,t})(),ra=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>oa(t),t})();const oa=function(t){return $r(t,ln(),rn())};class aa{}var la=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ua(),t})();const ua=function(){const t=rn(),e=Ze(ln().index,t);return function(t){const e=t[11];if($e(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Te(e)?e:t)};let ha=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class da{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fa=new da("10.1.0");class pa{constructor(){}supports(t){return fo(t)}create(t){return new ga(t)}}const ma=(t,e)=>e;class ga{constructor(t){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=t||ma}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<ba(n,i,s)?e:n,o=ba(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!fo(t))throw new Error(`Error trying to diff '${wt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[uo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new ya(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new va),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new va),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ya{constructor(t,e){this.item=t,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}}class _a{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class va{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new _a,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class wa{constructor(){}supports(t){return t instanceof Map||po(t)}create(){return new xa}}class xa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||po(t)))throw new Error(`Error trying to diff '${wt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Ea(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ea{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Sa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new pa])}),t})(),ka=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new t([new wa])}),t})();const Ca=[new wa],Ta=new Sa([new pa]),Da=new ka(Ca);let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Oa(t,ra),t})();const Oa=function(t,e){return zr(t,e,ln(),rn())};let Ia=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ma(t,ra),t})();const Ma=function(t,e){return Wr(t,e,ln(),rn())},Pa={};class Ra extends sa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=xe(t);return new Na(e,this.ngModule)}}function La(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Fa=new Bt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qn});class Na extends na{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(gs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return La(this.componentDef.inputs)}get outputs(){return La(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Pa,s);return r!==Pa||i===Pa?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(aa,ze),o=s.get(ha,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if($e(t))return t.selectRootElement(e,n===ue.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Is(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Qn,clean:hr,playerHandler:null,flags:0},d=Vs(0,-1,null,1,0,null,null,null,null,null),f=Ms(null,d,h,u,null,null,r,a,o,s);let p,m;wn(f,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ps(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(lo(a,l,!0),null!==t&&(Nn(s,t,l),null!==a.classes&&Fr(s,t,a.classes),null!==a.styles&&Lr(s,t,a.styles)));const c=i.createRenderer(t,e),u=Ms(n,Hs(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(si(ti(a,n),o,e.type),Ks(o,a),Xs(a,n.length,1)),or(n,u),n[20]=u}(c,this.componentDef,f,r,a);if(c)if(n)Nn(a,c,["ng-version",fa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!hs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Nn(a,c,t),e&&e.length>0&&Fr(a,c,e.join(" "))}if(m=qe(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=ln();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Zs(t,i,1),Js(t,e,n));const s=ci(e,t,e.length-1,i);ns(s,e);const r=Ue(i,e);return r&&ns(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=ln();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Dn(a.index-ke);const t=n[1];Us(t,e),qs(t,n,e.hostVars),Qs(e,o)}return o}(t,this.componentDef,f,h,[Ko]),Rs(d,f,null)}finally{Cn()}const g=new ja(this.componentType,p,$r(ra,m,f),f,m);return d.node.child=m,g}}class ja extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new jr(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=zs(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new di(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ba=void 0;var Ha=["en",[["a","p"],["AM","PM"],Ba],[["AM","PM"],Ba,Ba],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ba,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ba,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ba,"{1} 'at' {0}",Ba],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Va={};function $a(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=za(e);if(n)return n;const i=e.split("-")[0];if(n=za(i),n)return n;if("en"===i)return Ha;throw new Error(`Missing locale data for the locale "${t}".`)}function za(t){return t in Va||(Va[t]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[t]),Va[t]}var Wa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ya="en-US";let Ua=Ya;function qa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ua=t.toLowerCase().replace(/_/g,"-"))}const Qa=new Map;class Za extends ee{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ra(this);const n=Se(t),i=t[Ft]||null;i&&qa(i),this._bootstrapComponents=Kn(n.bootstrap),this._r3Injector=to(t,e,[{provide:ee,useValue:this},{provide:sa,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ao.THROW_IF_NOT_FOUND,n=at.Default){return t===ao||t===ee||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ka extends class{}{constructor(t){super(),this.moduleType=t,null!==Se(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,Qa.get(t),e),Qa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Za(this.moduleType,t)}}function Ga(t,e,n){const i=pn()+t,s=rn();return s[i]===ys?mo(s,i,n?e.call(n):e()):go(s,i)}function Xa(t,e,n,i){return nl(rn(),pn(),t,e,n,i)}function Ja(t,e,n,i,s){return il(rn(),pn(),t,e,n,i,s)}function tl(t,e,n,i,s,r){return sl(rn(),pn(),t,e,n,i,s,r)}function el(t,e){const n=t[e];return n===ys?void 0:n}function nl(t,e,n,i,s,r){const o=e+n;return yo(t,o,s)?mo(t,o+1,r?i.call(r,s):i(s)):el(t,o+1)}function il(t,e,n,i,s,r,o){const a=e+n;return _o(t,a,s,r)?mo(t,a+2,o?i.call(o,s,r):i(s,r)):el(t,a+2)}function sl(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=_o(t,e,n,i);return yo(t,e+2,s)||r}(t,l,s,r,o)?mo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):el(t,l+3)}function rl(t,e){const n=on();let i;const s=t+ke;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Ee(i.type)),o=Qt(xo),a=Xn(!1),l=r();return Xn(a),Qt(o),function(t,e,n,i){const s=n+ke;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,rn(),t,l),l}function ol(t,e,n,i){const s=rn(),r=Qe(s,t);return cl(s,ll(s,t)?il(s,pn(),e,r.transform,n,i,r):r.transform(n,i))}function al(t,e,n,i,s){const r=rn(),o=Qe(r,t);return cl(r,ll(r,t)?sl(r,pn(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function ll(t,e){return t[1].data[e+ke].pure}function cl(t,e){return ho.isWrapped(e)&&(e=ho.unwrap(e),t[nn.lFrame.bindingIndex]=ys),e}const ul=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof h&&t.add(o),o}};function hl(){return this._results[uo()]()}class dl{constructor(){this.dirty=!0,this._results=[],this.changes=new ul,this.length=0;const t=uo(),e=dl.prototype;e[t]||(e[t]=hl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(n===e&&(n=e.slice(0,i)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fl{constructor(t){this.queryList=t,this.matches=null}clone(){return new fl(this.queryList)}setDirty(){this.queryList.setDirty()}}class pl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new pl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==wl(t,e).matches&&this.queries[e].setDirty()}}class ml{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class gl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new gl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class yl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new yl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,_l(e,s)),this.matchTNodeWithReadOption(t,e,li(e,t,s,!1,!1))}else n===Aa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,li(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ra||i===Ia||i===Aa&&0===e.type)this.addMatch(e.index,-2);else{const n=li(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function _l(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function vl(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?$r(ra,t,e):0===t.type?zr(Aa,ra,t,e):null}(e,t):-2===n?function(t,e,n){return n===ra?$r(ra,e,t):n===Aa?zr(Aa,ra,e,t):n===Ia?Wr(Ia,ra,e,t):void 0}(t,e,i):ci(t,t[1],n,e)}function bl(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:vl(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function wl(t,e){return t.queries.getByIndex(e)}function xl(t,e){return zr(Aa,ra,t,e)}const El=new Bt("Application Initializer");let Sl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ao(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Kt(El,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kl=new Bt("AppId"),Cl={provide:kl,useFactory:function(){return`${Tl()}${Tl()}${Tl()}`},deps:[]};function Tl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dl=new Bt("Platform Initializer"),Al=new Bt("Platform ID"),Ol=new Bt("appBootstrapListener");let Il=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ml=new Bt("LocaleId"),Pl=new Bt("DefaultCurrencyCode");class Rl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ll=function(t){return new Ka(t)},Fl=Ll,Nl=function(t){return Promise.resolve(Ll(t))},jl=function(t){const e=Ll(t),n=Kn(Se(t).declarations).reduce((t,e)=>{const n=xe(e);return n&&t.push(new Na(n)),t},[]);return new Rl(e,n)},Bl=jl,Hl=function(t){return Promise.resolve(jl(t))};let Vl=(()=>{class t{constructor(){this.compileModuleSync=Fl,this.compileModuleAsync=Nl,this.compileModuleAndAllComponentsSync=Bl,this.compileModuleAndAllComponentsAsync=Hl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const $l=(()=>Promise.resolve(0))();function zl(t){"undefined"==typeof Zone?$l.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ul(!1),this.onMicrotaskEmpty=new ul(!1),this.onStable=new ul(!1),this.onError=new ul(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=It.requestAnimationFrame,e=It.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(It,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ql(t),ql(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ql(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return Zl(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Kl(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return Zl(t),e.invoke(i,s,r,o,a)}finally{Kl(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Ql(t),ql(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Wl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Ul,Yl,Yl);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Yl(){}const Ul={};function ql(t){if(0==t._nesting&&!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 Ql(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Zl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Kl(t){t._nesting--,ql(t)}class Gl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ul,this.onMicrotaskEmpty=new ul,this.onStable=new ul,this.onError=new ul}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Xl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Wl.assertNotInAngularZone(),zl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,nc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return nc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class tc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ec,nc=new tc;const ic=new Bt("AllowMultipleToken");function sc(t,e,n=[]){const i="Platform: "+e,s=new Bt(i);return(e=[])=>{let r=rc();if(!r||r.injector.get(ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Qr,useValue:"platform"});!function(t){if(ec&&!ec.destroyed&&!ec.injector.get(ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ec=t.get(oc);const e=t.get(Dl,null);e&&e.forEach(t=>t())}(ao.create({providers:t,name:i}))}return function(t){const e=rc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function rc(){return ec&&!ec.destroyed?ec:null}let oc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Gl:("zone.js"===t?void 0:t)||new Wl({enableLongStackTrace:Oi(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Wl,useValue:n}];return n.run(()=>{const e=ao.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(_i,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>cc(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Sl);return t.runInitializers(),t.donePromise.then(()=>(qa(s.injector.get(Ml,Ya)||Ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const i=new Ka(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Kt(ao))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Oi(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Wl.assertNotInAngularZone(),zl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Wl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Y(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof na?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ee),s=n.create(ao.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Xl,null);return r&&s.injector.get(Jl).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Oi()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),cc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(Il),Kt(ao),Kt(_i),Kt(sa),Kt(Sl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const uc=sc(null,"core",[{provide:Al,useValue:"unknown"},{provide:oc,deps:[ao]},{provide:Jl,deps:[]},{provide:Il,deps:[]}]),hc=[{provide:lc,useClass:lc,deps:[Wl,Il,ao,_i,sa,Sl]},{provide:Fa,deps:[Wl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Sl,useClass:Sl,deps:[[new st,El]]},{provide:Vl,useClass:Vl,deps:[]},Cl,{provide:Sa,useFactory:function(){return Ta},deps:[]},{provide:ka,useFactory:function(){return Da},deps:[]},{provide:Ml,useFactory:function(t){return qa(t=t||"undefined"!=typeof $localize&&$localize.locale||Ya),t},deps:[[new it(Ml),new st,new ot]]},{provide:Pl,useValue:"USD"}];let dc=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(lc))},providers:hc}),t})();class fc extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class pc extends fc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class mc extends pc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let gc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class yc extends gc{constructor(t,e=gc.now){super(t,()=>yc.delegate&&yc.delegate!==this?yc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return yc.delegate&&yc.delegate!==this?yc.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class _c extends yc{}const vc=new _c(mc),bc=new _(t=>t.complete());function wc(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):bc}function xc(...t){let e=t[t.length-1];return k(e)?(t.pop(),L(t,e)):W(t)}function Ec(t,e){return new _(e?n=>e.schedule(Sc,0,{error:t,subscriber:n}):e=>e.error(t))}function Sc({error:t,subscriber:e}){e.error(t)}let kc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return xc(this.value);case"E":return Ec(this.error);case"C":return wc()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Cc extends p{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Cc.dispatch,this.delay,new Tc(t,this.destination)))}_next(t){this.scheduleMessage(kc.createNext(t))}_error(t){this.scheduleMessage(kc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(kc.createComplete()),this.unsubscribe()}}class Tc{constructor(t,e){this.notification=t,this.destination=e}}class Dc extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Ac(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new b;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(t),r=new w(this,t)),i&&t.add(t=new Cc(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||vc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class Ac{constructor(t,e){this.time=t,this.value=e}}class Oc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ic(t,this.project))}}class Ic extends j{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new N(this),i=this.destination;i.add(n),this.innerSubscription=B(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Mc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Pc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Rc(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Mc.call(t,e)}(t,e)||(i=n,0))),i}class Lc{constructor(t,e){this.componentFactory=e.get(sa).resolveComponentFactory(t)}create(t){return new Fc(this.componentFactory,t)}}class Fc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Dc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?i=>i.pipe(t((t,i)=>F(e(t,i)).pipe(C((e,s)=>n(t,e,i,s))))):t=>t.lift(new Oc(e))}(t=>Y(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Wl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Pc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=ao.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Rc(t,e,s);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(lc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(C(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Re(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Nc extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function jc(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let Bc=null;function Hc(){return Bc}const Vc=new Bt("DocumentToken");let $c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:zc,token:t,providedIn:"platform"}),t})();function zc(){return Kt(Wc)}let Wc=(()=>{class t extends $c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Hc().getLocation(),this._history=Hc().getHistory()}getBaseHrefFromDOM(){return Hc().getBaseHref(this._doc)}onPopState(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Hc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){Yc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Yc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:Uc,token:t,providedIn:"platform"}),t})();function Yc(){return!!window.history.pushState}function Uc(){return new Wc(Kt(Vc))}function qc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Qc(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Zc(t){return t&&"?"!==t[0]?"?"+t:t}let Kc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Gc,token:t,providedIn:"root"}),t})();function Gc(t){const e=Kt(Vc).location;return new Jc(Kt($c),e&&e.origin||"")}const Xc=new Bt("appBaseHref");let Jc=(()=>{class t extends Kc{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return qc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Zc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+Zc(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+Zc(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt($c),Kt(Xc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),tu=(()=>{class t{constructor(t,e){this._subject=new ul,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Qc(nu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Zc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,nu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zc(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zc(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Kt(Kc),Kt($c))},t.normalizeQueryParams=Zc,t.joinWithSlash=qc,t.stripTrailingSlash=Qc,t.\u0275prov=ut({factory:eu,token:t,providedIn:"root"}),t})();function eu(){return new tu(Kt(Kc),Kt($c))}function nu(t){return t.replace(/\/index.html$/,"")}var iu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),su=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),ru=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),ou=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),au=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function lu(t,e){return fu($a(t)[Wa.DateFormat],e)}function cu(t,e){return fu($a(t)[Wa.TimeFormat],e)}function uu(t,e){return fu($a(t)[Wa.DateTimeFormat],e)}function hu(t,e){const n=$a(t),i=n[Wa.NumberSymbols][e];if(void 0===i){if(e===au.CurrencyDecimal)return n[Wa.NumberSymbols][au.Decimal];if(e===au.CurrencyGroup)return n[Wa.NumberSymbols][au.Group]}return i}function du(t){if(!t[Wa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Wa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function fu(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function pu(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const mu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,gu={},yu=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var _u=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),vu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),bu=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function wu(t,e,n,i){let s=function(t){if(Ou(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(mu))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Ou(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const i=function(t){return $a(t)[Wa.LocaleId]}(e);if(gu[i]=gu[i]||{},gu[i][n])return gu[i][n];let s="";switch(n){case"shortDate":s=lu(e,ou.Short);break;case"mediumDate":s=lu(e,ou.Medium);break;case"longDate":s=lu(e,ou.Long);break;case"fullDate":s=lu(e,ou.Full);break;case"shortTime":s=cu(e,ou.Short);break;case"mediumTime":s=cu(e,ou.Medium);break;case"longTime":s=cu(e,ou.Long);break;case"fullTime":s=cu(e,ou.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");s=xu(uu(e,ou.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=xu(uu(e,ou.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");s=xu(uu(e,ou.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),u=t(e,"fullDate");s=xu(uu(e,ou.Full),[c,u])}return s&&(gu[i][n]=s),s}(n,e)||e;let r,o=[];for(;e;){if(r=yu.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=Au(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Au(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(Du[t])return Du[t];let e;switch(t){case"G":case"GG":case"GGG":e=ku(bu.Eras,ru.Abbreviated);break;case"GGGG":e=ku(bu.Eras,ru.Wide);break;case"GGGGG":e=ku(bu.Eras,ru.Narrow);break;case"y":e=Su(vu.FullYear,1,0,!1,!0);break;case"yy":e=Su(vu.FullYear,2,0,!0,!0);break;case"yyy":e=Su(vu.FullYear,3,0,!1,!0);break;case"yyyy":e=Su(vu.FullYear,4,0,!1,!0);break;case"M":case"L":e=Su(vu.Month,1,1);break;case"MM":case"LL":e=Su(vu.Month,2,1);break;case"MMM":e=ku(bu.Months,ru.Abbreviated);break;case"MMMM":e=ku(bu.Months,ru.Wide);break;case"MMMMM":e=ku(bu.Months,ru.Narrow);break;case"LLL":e=ku(bu.Months,ru.Abbreviated,su.Standalone);break;case"LLLL":e=ku(bu.Months,ru.Wide,su.Standalone);break;case"LLLLL":e=ku(bu.Months,ru.Narrow,su.Standalone);break;case"w":e=Tu(1);break;case"ww":e=Tu(2);break;case"W":e=Tu(1,!0);break;case"d":e=Su(vu.Date,1);break;case"dd":e=Su(vu.Date,2);break;case"E":case"EE":case"EEE":e=ku(bu.Days,ru.Abbreviated);break;case"EEEE":e=ku(bu.Days,ru.Wide);break;case"EEEEE":e=ku(bu.Days,ru.Narrow);break;case"EEEEEE":e=ku(bu.Days,ru.Short);break;case"a":case"aa":case"aaa":e=ku(bu.DayPeriods,ru.Abbreviated);break;case"aaaa":e=ku(bu.DayPeriods,ru.Wide);break;case"aaaaa":e=ku(bu.DayPeriods,ru.Narrow);break;case"b":case"bb":case"bbb":e=ku(bu.DayPeriods,ru.Abbreviated,su.Standalone,!0);break;case"bbbb":e=ku(bu.DayPeriods,ru.Wide,su.Standalone,!0);break;case"bbbbb":e=ku(bu.DayPeriods,ru.Narrow,su.Standalone,!0);break;case"B":case"BB":case"BBB":e=ku(bu.DayPeriods,ru.Abbreviated,su.Format,!0);break;case"BBBB":e=ku(bu.DayPeriods,ru.Wide,su.Format,!0);break;case"BBBBB":e=ku(bu.DayPeriods,ru.Narrow,su.Format,!0);break;case"h":e=Su(vu.Hours,1,-12);break;case"hh":e=Su(vu.Hours,2,-12);break;case"H":e=Su(vu.Hours,1);break;case"HH":e=Su(vu.Hours,2);break;case"m":e=Su(vu.Minutes,1);break;case"mm":e=Su(vu.Minutes,2);break;case"s":e=Su(vu.Seconds,1);break;case"ss":e=Su(vu.Seconds,2);break;case"S":e=Su(vu.FractionalSeconds,1);break;case"SS":e=Su(vu.FractionalSeconds,2);break;case"SSS":e=Su(vu.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Cu(_u.Short);break;case"ZZZZZ":e=Cu(_u.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Cu(_u.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Cu(_u.Long);break;default:return null}return Du[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function xu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Eu(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),r+o}function Su(t,e,n=0,i=!1,s=!1){return function(r,o){let a=function(t,e){switch(t){case vu.FullYear:return e.getFullYear();case vu.Month:return e.getMonth();case vu.Date:return e.getDate();case vu.Hours:return e.getHours();case vu.Minutes:return e.getMinutes();case vu.Seconds:return e.getSeconds();case vu.FractionalSeconds:return e.getMilliseconds();case vu.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===vu.Hours)0===a&&-12===n&&(a=12);else if(t===vu.FractionalSeconds)return l=e,Eu(a,3).substr(0,l);var l;const c=hu(o,au.MinusSign);return Eu(a,e,c,i,s)}}function ku(t,e,n=su.Format,i=!1){return function(s,r){return function(t,e,n,i,s,r){switch(n){case bu.Months:return function(t,e,n){const i=$a(t),s=fu([i[Wa.MonthsFormat],i[Wa.MonthsStandalone]],e);return fu(s,n)}(e,s,i)[t.getMonth()];case bu.Days:return function(t,e,n){const i=$a(t),s=fu([i[Wa.DaysFormat],i[Wa.DaysStandalone]],e);return fu(s,n)}(e,s,i)[t.getDay()];case bu.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=$a(t);return du(e),(e[Wa.ExtraData][2]||[]).map(t=>"string"==typeof t?pu(t):[pu(t[0]),pu(t[1])])}(e),n=function(t,e,n){const i=$a(t);du(i);const s=fu([i[Wa.ExtraData][0],i[Wa.ExtraData][1]],e)||[];return fu(s,n)||[]}(e,s,i),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=o>=e.hours&&a>=e.minutes,s=o<n.hours||o===n.hours&&a<n.minutes;if(e.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(t.hours===o&&t.minutes===a)return!0;return!1});if(-1!==r)return n[r]}return function(t,e,n){const i=$a(t),s=fu([i[Wa.DayPeriodsFormat],i[Wa.DayPeriodsStandalone]],e);return fu(s,n)}(e,s,i)[o<12?0:1];case bu.Eras:return function(t,e){return fu($a(t)[Wa.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,r,t,e,n,i)}}function Cu(t){return function(e,n,i){const s=-1*i,r=hu(n,au.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case _u.Short:return(s>=0?"+":"")+Eu(o,2,r)+Eu(Math.abs(s%60),2,r);case _u.ShortGMT:return"GMT"+(s>=0?"+":"")+Eu(o,1,r);case _u.Long:return"GMT"+(s>=0?"+":"")+Eu(o,2,r)+":"+Eu(Math.abs(s%60),2,r);case _u.Extended:return 0===i?"Z":(s>=0?"+":"")+Eu(o,2,r)+":"+Eu(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Tu(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}var r;return Eu(s,t,hu(i,au.MinusSign))}}const Du={};function Au(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ou(t){return t instanceof Date&&!isNaN(t.valueOf())}class Iu{}let Mu=(()=>{class t extends Iu{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return $a(t)[Wa.PluralCase]}(e||this.locale)(t)){case iu.Zero:return"zero";case iu.One:return"one";case iu.Two:return"two";case iu.Few:return"few";case iu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ml))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Pu=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(fo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+wt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(xo(Sa),xo(ka),xo(ra),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Ru{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Lu=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Oi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ru(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Fu(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Fu(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia),xo(Aa),xo(Sa))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Fu{constructor(t,e){this.record=t,this.view=e}}let Nu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ju,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Bu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Bu("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia),xo(Aa))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ju{constructor(){this.$implicit=null,this.ngIf=null}}function Bu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}let Hu=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ka),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Vu=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(xo(Ia))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Le]}),t})();function $u(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${wt(t)}'`)}class zu{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Wu{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Yu=new Wu,Uu=new zu;let qu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Ao(e))return Yu;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Uu;throw $u(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=Yr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=we({name:"async",type:t,pure:!1}),t})();const Qu=/#/g;let Zu=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw $u(t,n);return n[function(t,e,n,i){let s="="+t;if(e.indexOf(s)>-1)return s;if(s=n.getPluralCategory(t,i),e.indexOf(s)>-1)return s;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}(e,Object.keys(n),this._localization,i)].replace(Qu,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(xo(Iu))},t.\u0275pipe=we({name:"i18nPlural",type:t,pure:!0}),t})(),Ku=(()=>{class t{transform(e,n,i){if(null==e)return e;if(!this.supports(e))throw $u(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=we({name:"slice",type:t,pure:!1}),t})(),Gu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:Iu,useClass:Mu}]}),t})();function Xu(t){return"browser"===t}function Ju(t){return"server"===t}class th extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}function eh(t,e,n,s){return i(n)&&(s=n,n=void 0),s?eh(t,e,n).pipe(C(t=>l(t)?s(...t):s(t))):new _(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,s,r)}s.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}function nh(t,e){return function(n){return n.lift(new ih(t,e))}}class ih{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new sh(t,this.predicate,this.thisArg))}}class sh extends p{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const rh=new yc(pc);class oh{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ah(t,this.dueTime,this.scheduler))}}class ah extends p{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(lh,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function lh(t){t.debouncedNext()}function ch(t){return e=>e.lift(new uh(t))}class uh{constructor(t){this.notifier=t}call(t,e){const n=new hh(t),i=B(this.notifier,new N(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class hh extends j{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const dh=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function fh(t){return e=>0===t?wc():e.lift(new ph(t))}class ph{constructor(t){if(this.total=t,this.total<0)throw new dh}call(t,e){return e.subscribe(new mh(t,this.total))}}class mh extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function gh(){}function yh(t,e,n){return function(i){return i.lift(new _h(t,e,n))}}class _h{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new vh(t,this.nextOrObserver,this.error,this.complete))}}class vh extends p{constructor(t,e,n,s){super(t),this._tapNext=gh,this._tapError=gh,this._tapComplete=gh,this._tapError=n||gh,this._tapComplete=s||gh,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||gh,this._tapError=e.error||gh,this._tapComplete=e.complete||gh)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const bh={provide:Ol,useFactory:function(t,e){return()=>{if(Xu(e)){const e=Array.from(t.querySelectorAll(`[class*=${wh}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(wh+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[Vc,Al],multi:!0},wh="flex-layout-";let xh=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[bh]}),t})();class Eh{constructor(t=!1,e="all",n="",i="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=s,this.property=""}clone(){return new Eh(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Sh=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const kh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Ch=new Bt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>kh}),Th=new Bt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Dh=new Bt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Ah(t,e){return t=t?t.clone():new Eh,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Oh="inline",Ih=["row","column","row-reverse","column-reverse"];function Mh(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Ph=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let s=this.styleCache.get(t);s&&i||(s=n.buildStyles(t,e),i&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),n.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Ih.find(t=>t===e)||(e=Ih[0]),n===Oh&&(n=i!==Oh?i:"",i=Oh),[e,Mh(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=be({type:t,features:[Le]}),t})();const Rh=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Lh="(orientation: portrait) and (max-width: 599.9px)",Fh="(orientation: landscape) and (max-width: 959.9px)",Nh="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",jh="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",Bh="(orientation: portrait) and (min-width: 840px)",Hh="(orientation: landscape) and (min-width: 1280px)",Vh={HANDSET:`${Lh}, ${Fh}`,TABLET:`${Nh} , ${jh}`,WEB:`${Bh}, ${Hh} `,HANDSET_PORTRAIT:""+Lh,TABLET_PORTRAIT:Nh+" ",WEB_PORTRAIT:""+Bh,HANDSET_LANDSCAPE:""+Fh,TABLET_LANDSCAPE:""+jh,WEB_LANDSCAPE:""+Hh},$h=[{alias:"handset",priority:2e3,mediaQuery:Vh.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Vh.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Vh.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Vh.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Vh.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Vh.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Vh.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Vh.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Vh.WEB_PORTRAIT,overlapping:!0}],zh=/(\.|-|_)/g;function Wh(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const Yh=new Bt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Gt(Dh),e=Gt(Ch),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(zh,"|").split("|").map(Wh).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:Rh).concat(e.addOrientationBps?$h:[]),n)}});function Uh(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function qh(t,e){return(t.priority||0)-(e.priority||0)}let Qh=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(qh)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(Kt(Yh))},t.\u0275prov=ut({factory:function(){return new t(Kt(Yh))},token:t,providedIn:"root"}),t})(),Zh=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new th(new Eh(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(nh(n=>!e||t.indexOf(n.mediaQuery)>-1));return Y(new _(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!Kh[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>Kh[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Eh(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new Eh(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Xu(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(Al),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(Al),Kt(Vc))},token:t,providedIn:"root"}),t})();const Kh={},Gh="print",Xh={alias:Gh,mediaQuery:Gh,priority:1e3};let Jh=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new td,this.deactivations=[]}withPrintQuery(t){return[...t,Gh]}isPrintEvent(t){return t.mediaQuery.startsWith(Gh)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Uh)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Ah(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Eh(!0,Gh))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Uh))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Qh),Kt(Ch),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Qh),Kt(Ch),Kt(Vc))},token:t,providedIn:"root"}),t})();class td{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(Xh),t.sort(Uh),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Gh)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function ed(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let nd=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:ed(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:ed(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Ju(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Xu(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||(Xu(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],s=Array.isArray(i)?i:[i];s.sort();for(let t of s)t=t?t+"":"",Xu(this._platformId)||!this._serverModuleLoaded?Xu(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.length>0){const t=i.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+i);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Sh),Kt(Th),Kt(Al),Kt(Ch))},t.\u0275prov=ut({factory:function(){return new t(Kt(Sh),Kt(Th),Kt(Al),Kt(Ch))},token:t,providedIn:"root"}),t})();class id{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function sd(t,e="1",n="1"){let i=[e,n,t],s=t.indexOf("calc");if(s>0){i[2]=rd(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(i[0]=e[0],i[1]=e[1])}else if(0==s)i[2]=rd(t.trim());else{let s=t.split(" ");i=3===s.length?s:[e,n,t]}return i}function rd(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let od=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Ah(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Uh),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Uh),this.updateStyles()))}init(t,e,n,i,s=[]){ad(this.updateMap,t,e,n),ad(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let s=this.elementMap.get(t);if(s){const r=(s.get(i)||new Map).set(e,n);s.set(i,r),this.elementMap.set(t,s)}else s=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(nh(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const s=i.get(e);s&&(s(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const s=Y(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;i<this.activatedBreakpoints.length;i++){const n=t.get(this.activatedBreakpoints[i].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(yh(this.hook.interceptEvents(this)),nh(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Zh),Kt(Qh),Kt(Jh))},t.\u0275prov=ut({factory:function(){return new t(Kt(Zh),Kt(Qh),Kt(Jh))},token:t,providedIn:"root"}),t})();function ad(t,e,n,i){if(void 0!==i){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(n,i)}}function ld(t){return null!=t&&""+t!="false"}function cd(t){return Array.isArray(t)?t:[t]}function ud(t){return null==t?"":"string"==typeof t?t:t+"px"}function hd(t){return t instanceof ra?t.nativeElement:t}class dd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new dd,Bc||(Bc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=pd||(pd=document.querySelector("base"),pd)?pd.getAttribute("href"):null;return null==e?null:(n=e,fd||(fd=document.createElement("a")),fd.setAttribute("href",n),"/"===fd.pathname.charAt(0)?fd.pathname:"/"+fd.pathname);var n}resetBaseElement(){pd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,t)}}let fd,pd=null;const md=new Bt("TRANSITION_ID"),gd=[{provide:El,useFactory:function(t,e,n){return()=>{n.get(Sl).donePromise.then(()=>{const n=Hc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[md,Vc,ao],multi:!0}];class yd{static init(){var t;t=new yd,nc=t}addToWindow(t){It.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},It.getAllAngularTestabilities=()=>t.getAllTestabilities(),It.getAllAngularRootElements=()=>t.getAllRootElements(),It.frameworkStabilizers||(It.frameworkStabilizers=[]),It.frameworkStabilizers.push(t=>{const e=It.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Hc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const _d=new Bt("EventManagerPlugins");let vd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(_d),Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class bd{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Hc().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let wd=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),xd=(()=>{class t extends wd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Hc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ed={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/"},Sd=/%COMP%/g;function kd(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?kd(t,s,n):(s=s.replace(Sd,t),n.push(s))}return n}function Cd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Td=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Dd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ue.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Ad(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ue.Native:case ue.ShadowDom:return new Od(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=kd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Kt(vd),Kt(xd),Kt(kl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Dd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ed[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=Ed[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Ed[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&la.DashCase?t.style.setProperty(e,n,i&la.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&la.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Cd(n)):this.eventManager.addEventListener(t,e,Cd(n))}}class Ad extends Dd{constructor(t,e,n,i){super(t),this.component=n;const s=kd(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Sd,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Sd,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Od extends Dd{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=kd(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Id=(()=>{class t extends bd{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Md=["alt","control","meta","shift"],Pd={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ld={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Fd=(()=>{class t extends bd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hc().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Md.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Rd.hasOwnProperty(e)&&(e=Rd[e]))}return Pd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Md.forEach(i=>{i!=n&&(0,Ld[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return Kt(jd)},token:t,providedIn:"root"}),t})(),jd=(()=>{class t extends Nd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case ts.NONE:return e;case ts.HTML:return Ci(e,"HTML")?ki(e):Xi(this._doc,String(e));case ts.STYLE:return Ci(e,"Style")?ki(e):e;case ts.SCRIPT:if(Ci(e,"Script"))return ki(e);throw new Error("unsafe value used in a script context");case ts.URL:return Ti(e),Ci(e,"URL")?ki(e):Li(String(e));case ts.RESOURCE_URL:if(Ci(e,"ResourceURL"))return ki(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new bi(t)}bypassSecurityTrustStyle(t){return new wi(t)}bypassSecurityTrustScript(t){return new xi(t)}bypassSecurityTrustUrl(t){return new Ei(t)}bypassSecurityTrustResourceUrl(t){return new Si(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return t=Kt(Ht),new jd(t.get(Vc));var t},token:t,providedIn:"root"}),t})();const Bd=sc(uc,"browser",[{provide:Al,useValue:"browser"},{provide:Dl,useValue:function(){dd.makeCurrent(),yd.init()},multi:!0},{provide:Vc,useFactory:function(){return function(t){He=t}(document),document},deps:[]}]),Hd=[[],{provide:Qr,useValue:"root"},{provide:_i,useFactory:function(){return new _i},deps:[]},{provide:_d,useClass:Id,multi:!0,deps:[Vc,Wl,Al]},{provide:_d,useClass:Fd,multi:!0,deps:[Vc]},[],{provide:Td,useClass:Td,deps:[vd,xd,kl]},{provide:aa,useExisting:Td},{provide:wd,useExisting:xd},{provide:xd,useClass:xd,deps:[Vc]},{provide:Xl,useClass:Xl,deps:[Wl]},{provide:vd,useClass:vd,deps:[_d,Wl]},[]];let Vd=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:kl,useValue:e.appId},{provide:md,useExisting:kl},gd]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(t,12))},providers:Hd,imports:[Gu,dc]}),t})();"undefined"!=typeof window&&window;let $d=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh]]}),t})();const zd=new Bt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(Vc)}});let Wd=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new ul,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Kt(zd,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(zd,8))},token:t,providedIn:"root"}),t})(),Yd=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Ud="inline",qd=["row","column","row-reverse","column-reverse"];function Qd(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return qd.find(t=>t===e)||(e=qd[0]),n===Ud&&(n=i!==Ud?i:"",i=Ud),[e,Kd(n),!!i]}function Zd(t){let[e]=Qd(t);return e.indexOf("row")>-1}function Kd(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Gd=(()=>{class t extends id{buildStyles(t){return function(t){let[e,n,i]=Qd(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"});const e=pi(t);return t})();const Xd=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let Jd=(()=>{class t extends Ph{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=ef,this.init()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(Gd),xo(od))},t.\u0275dir=be({type:t,features:[Go]}),t})(),tf=(()=>{class t extends Jd{constructor(){super(...arguments),this.inputs=Xd}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Go]});const e=pi(t);return t})();const ef=new Map;function nf(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let sf=(()=>{class t extends id{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=Zd(o)?"max-width":"max-height",l=Zd(o)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,h=String(r).indexOf("%")>-1&&!c,d=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let f=c||d;n="0"==n?0:n,i="0"==i?0:i;const p=!n&&!i;let m={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,r="auto";break;case"grow":r="100%";break;case"noshrink":i=0,r="auto";break;case"auto":break;case"none":n=0,i=0,r="auto";break;default:f||h||isNaN(r)||(r+="%"),"0%"===r&&(f=!0),"0px"===r&&(r="0%"),m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":f?r:"100%"}:{flex:`${n} ${i} ${f?r:"100%"}`})}return m.flex||m["flex-grow"]||(m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(m[l]=p||f&&n?r:null,m[a]=p||!u&&i?r:null),m[l]||m[a]?e.hasWrap&&(m[c?"flex-basis":"flex"]=m[a]?c?m[a]:`${n} ${i} ${m[a]}`:c?m[l]:`${n} ${i} ${m[l]}`):m=nf(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":r}:{flex:`${n} ${i} ${r}`}),nf(m,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ch))},t.\u0275prov=ut({factory:function(){return new t(Kt(Ch))},token:t,providedIn:"root"}),t})();const rf=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let of=(()=>{class t extends Ph{constructor(t,e,n,i,s){super(t,i,e,s),this.layoutConfig=n,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ch(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ch(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=uf:n&&!i?this.styleCache=lf:!n&&i?this.styleCache=hf:n||i||(this.styleCache=cf);const s=sd(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(s.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=sd(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(Ch),xo(sf),xo(od))},t.\u0275dir=be({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Go]}),t})(),af=(()=>{class t extends of{constructor(){super(...arguments),this.inputs=rf}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Go]});const e=pi(t);return t})();const lf=new Map,cf=new Map,uf=new Map,hf=new Map;let df=(()=>{class t extends id{buildStyles(t,e){const n={},[i,s]=t.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return nf(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?Zd(e.layout)?null:"100%":null,"max-height":"stretch"===s&&Zd(e.layout)?"100%":null})}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"});const e=pi(t);return t})();const ff=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let pf=(()=>{class t extends Ph{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(ch(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=bf:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=xf:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=wf:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=Ef:"column-reverse"!==e||n||(this.styleCache=vf):this.styleCache=yf:this.styleCache=_f:this.styleCache=gf,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),qd.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(nd),xo(df),xo(od))},t.\u0275dir=be({type:t,features:[Go]}),t})(),mf=(()=>{class t extends pf{constructor(){super(...arguments),this.inputs=ff}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Go]});const e=pi(t);return t})();const gf=new Map,yf=new Map,_f=new Map,vf=new Map,bf=new Map,wf=new Map,xf=new Map,Ef=new Map;let Sf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh,Yd]]}),t})(),kf=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[xh]]}),t})(),Cf=(()=>{class t{constructor(t,e){Ju(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Ch,useValue:Object.assign(Object.assign({},kh),e)},{provide:Dh,useValue:n,multi:!0},{provide:Th,useValue:!0}]:[{provide:Ch,useValue:Object.assign(Object.assign({},kh),e)},{provide:Dh,useValue:n,multi:!0}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(Th),Kt(Al))},imports:[[Sf,$d,kf],Sf,$d,kf]}),t})();function Tf(t,e){return new _(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=F(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let Df=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Af=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Of=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Df],imports:[Af]}),t})();class If{}const Mf="*";function Pf(t,e){return{type:7,name:t,definitions:e,options:{}}}function Rf(t,e=null){return{type:4,styles:e,timings:t}}function Lf(t,e=null){return{type:2,steps:t,options:e}}function Ff(t){return{type:6,styles:t,offset:null}}function Nf(t,e,n){return{type:0,name:t,styles:e,options:n}}function jf(t){return{type:5,steps:t}}function Bf(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Hf(t){Promise.resolve(null).then(t)}class Vf{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Hf(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class $f{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Hf(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function zf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Wf(t){switch(t.length){case 0:return new Vf;case 1:return t[0];default:return new $f(t)}}function Yf(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case Mf:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Uf(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&qf(n,"start",t)));break;case"done":t.onDone(()=>i(n&&qf(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&qf(n,"destroy",t)))}}function qf(t,e,n){const i=n.totalTime,s=Qf(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function Qf(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Zf(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function Kf(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Gf=(t,e)=>!1,Xf=(t,e)=>!1,Jf=(t,e,n)=>[];const tp=zf();(tp||"undefined"!=typeof Element)&&(Gf=(t,e)=>t.contains(e),Xf=(()=>{if(tp||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Xf}})(),Jf=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ep=null,np=!1;function ip(t){ep||(ep=("undefined"!=typeof document?document.body:null)||{},np=!!ep.style&&"WebkitAppearance"in ep.style);let e=!0;return ep.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ep.style,!e&&np)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ep.style),e}const sp=Xf,rp=Gf,op=Jf;function ap(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let lp=(()=>{class t{validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Vf(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),cp=(()=>{class t{}return t.NOOP=new lp,t})();const up="ng-enter",hp="ng-leave",dp="ng-trigger",fp=".ng-trigger",pp="ng-animating",mp=".ng-animating";function gp(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yp(parseFloat(e[1]),e[2])}function yp(t,e){switch(e){case"s":return 1e3*t;default:return t}}function _p(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=yp(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=yp(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function vp(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function bp(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else vp(t,n);return n}function wp(t,e,n){return n?e+":"+n+";":""}function xp(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=wp(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=wp(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ep(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Ip(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),zf()&&xp(t))}function Sp(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Ip(e);t.style[n]=""}),zf()&&xp(t))}function kp(t){return Array.isArray(t)?1==t.length?t[0]:Lf(t):t}const Cp=new RegExp("{{\\s*(.+?)\\s*}}","g");function Tp(t){let e=[];if("string"==typeof t){let n;for(;n=Cp.exec(t);)e.push(n[1]);Cp.lastIndex=0}return e}function Dp(t,e,n){const i=t.toString(),s=i.replace(Cp,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Ap(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Op=/-+([a-z0-9])/g;function Ip(t){return t.replace(Op,(...t)=>t[1].toUpperCase())}function Mp(t,e){return 0===t||0===e}function Pp(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=Lp(t,e)}))}}return e}function Rp(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Lp(t,e){return window.getComputedStyle(t)[e]}const Fp="*";function Np(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Hp(s,o)),"<"!=r[0]||s==Fp&&o==Fp||e.push(Hp(o,s))}(t,n,e)):n.push(t),n}const jp=new Set(["true","1"]),Bp=new Set(["false","0"]);function Hp(t,e){const n=jp.has(t)||Bp.has(t),i=jp.has(e)||Bp.has(e);return(s,r)=>{let o=t==Fp||t==s,a=e==Fp||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?jp.has(t):Bp.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?jp.has(e):Bp.has(e)),o&&a}}const Vp=new RegExp("s*:selfs*,?","g");function $p(t,e,n){return new zp(t).build(e,n)}class zp{constructor(t){this._driver=t}build(t,e){const n=new Wp(e);return this._resetContextStyleTimingState(n),Rp(this,kp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(Yp(t)){const e=t;Object.keys(e).forEach(t=>{Tp(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Ap(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Rp(this,kp(t.animation),e);return{type:1,matchers:Np(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Up(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Rp(this,t,e)),options:Up(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Rp(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:Up(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return qp(_p(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=qp(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||_p(i,e),qp(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Ff({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Ff(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Mf?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(Yp(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Tp(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Yp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Yp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,i)=>{const r=u>0?i==h?1:u*i:s[i],o=r*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Rp(this,kp(t.animation),e),options:Up(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Up(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Up(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Vp,"")),[t=t.replace(/@\*/g,fp).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,mp),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,Zf(e.collectedStyles,e.currentQuerySelector,{});const o=Rp(this,kp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Up(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:_p(t.timings,e.errors,!0);return{type:12,animation:Rp(this,kp(t.animation),e),timings:n,options:null}}}class Wp{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Yp(t){return!Array.isArray(t)&&"object"==typeof t}function Up(t){var e;return t?(t=vp(t)).params&&(t.params=(e=t.params)?vp(e):null):t={},t}function qp(t,e,n){return{duration:t,delay:e,easing:n}}function Qp(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Zp{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Kp=new RegExp(":enter","g"),Gp=new RegExp(":leave","g");function Xp(t,e,n,i,s,r={},o={},a,l,c=[]){return(new Jp).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class Jp{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new Zp;const u=new em(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),Rp(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Qp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?gp(n.duration):null,r=null!=n.delay?gp(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Rp(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tm);const t=gp(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Rp(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?gp(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Rp(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return _p(e.params?Dp(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?gp(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tm);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Rp(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Rp(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const tm={};class em{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new nm(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=gp(n.duration)),null!=n.delay&&(i.delay=gp(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Dp(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new em(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=tm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new im(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Kp,"."+this._enterClassName)).replace(Gp,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class nm{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new nm(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Mf,this._currentKeyframe[t]=Mf}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Mf})):bp(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Dp(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Mf),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=bp(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Mf&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Ap(t.values()):[],r=e.size?Ap(e.values()):[];if(n){const t=i[0],e=vp(t);t.offset=0,e.offset=1,i=[t,e]}return Qp(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class im extends nm{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=bp(t[0],!1);a.offset=0,s.push(a);const l=bp(t[0],!1);l.offset=sm(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=bp(t[i],!1);o.offset=sm((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Qp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function sm(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class rm{}class om extends rm{normalizePropertyName(t,e){return Ip(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(am[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const am=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function lm(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const cm={};class um{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||cm,d=this.buildStyles(n,o&&o.params||cm,u),f=a&&a.params||cm,p=this.buildStyles(i,f,u),m=new Set,g=new Map,y=new Map,_="void"===i,v={params:Object.assign(Object.assign({},h),f)},b=c?[]:Xp(t,e,this.ast.animation,s,r,d,p,v,l,u);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return lm(e,this._triggerName,n,i,_,d,p,[],[],g,y,w,u);b.forEach(t=>{const n=t.element,i=Zf(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=Zf(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const x=Ap(m.values());return lm(e,this._triggerName,n,i,_,d,p,b,x,g,y,w)}}class hm{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=vp(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Dp(r,i,e)),n[t]=r})}}),n}}class dm{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new hm(t.style,t.options&&t.options.params||{})}),fm(this.states,"true","1"),fm(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new um(t,e,this.states))}),this.fallbackTransition=new um(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function fm(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const pm=new Zp;class mm{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=$p(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Yf(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Xp(this._driver,e,s,up,hp,{},{},n,pm,i),r.forEach(t=>{const e=Zf(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Mf)})});const a=Wf(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=Qf(e,"","","");return Uf(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const gm="ng-animate-queued",ym="ng-animate-disabled",_m=".ng-animate-disabled",vm=[],bm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class xm{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=vp(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Em="void",Sm=new xm(Em);class km{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mm(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=Zf(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=Zf(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Mm(t,dp),Mm(t,"ng-trigger-"+e),a[e]=Sm),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Tm(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Mm(t,dp),Mm(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new xm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Sm),l.value!==Em&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Sp(t,n),Ep(t,i)})}return}const c=Zf(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Mm(t,gm),r.onStart(()=>{Pm(t,gm)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,fp,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Em,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Wf(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Sm,o=new xm(Em),a=new Tm(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==bm||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Mm(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=Qf(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Uf(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cm{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new km(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Dm(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Dm(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mm(t,ym)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pm(t,ym))}removeNode(t,e,n,i){if(Dm(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Dm(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,fp,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,mp,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Wf(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=bm,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,_m)&&this.markElementAsDisabled(t,!1),this.driver.query(t,_m,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Mm(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Wf(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Zp,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Im(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n=up+p++;f.set(e,n),t.forEach(t=>Mm(t,n))});const m=[],g=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const t=this.collectedLeaveElements[O],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):y.add(t))}const _=new Map,v=Im(h,Array.from(g));v.forEach((t,e)=>{const n=hp+p++;_.set(e,n),t.forEach(t=>Mm(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Pm(t,n))}),v.forEach((t,e)=>{const n=_.get(e);t.forEach(t=>Pm(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),h=_.get(s),d=f.get(s),p=this._buildInstruction(t,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>Sp(s,p.fromStyles)),e.onDestroy(()=>Ep(s,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Sp(s,p.fromStyles)),e.onDestroy(()=>Ep(s,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,p.timelines),r.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>Zf(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Zf(x,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Lm(t,a,l)),k=new Map;Om(k,this.driver,y,l,Mf).forEach(t=>{Lm(t,a,l)&&S.push(t)});const C=new Map;d.forEach((t,e)=>{Om(C,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=C.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],D=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Ep(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=A;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,x,s,C,k);if(r.setRealPlayer(n),t===A)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Wf(e)),i.push(r)}}else Sp(e,o.fromStyles),r.onDestroy(()=>Ep(e,o.toStyles)),D.push(r),c.has(e)&&i.push(r)}),D.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Wf(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O<m.length;O++){const t=m[O],e=t.__ng_removed;if(Pm(t,hp),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,mp,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Rm(this,t,i):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Em;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=Zf(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Sp(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Vf(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const s=e[i];s instanceof $f?t(s.players,n):n.push(s)}}(t,e),e}((n.get(h)||vm).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=r.get(h),y=Yf(0,this._normalizer,0,e.keyframes,m,g),_=this._buildPlayer(e,y,p);if(e.subTimeline&&i&&u.add(h),f){const e=new Tm(t,o,h);e.setRealPlayer(_),l.push(e)}return _});l.forEach(t=>{Zf(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Mm(t,pp));const d=Wf(h);return d.onDestroy(()=>{c.forEach(t=>Pm(t,pp)),Ep(a,e.toStyles)}),u.forEach(t=>{Zf(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Vf(t.duration,t.delay)}}class Tm{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Vf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Uf(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Zf(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Dm(t){return t&&1===t.nodeType}function Am(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Om(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Am(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=wm,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Am(t,r[a++])),o}function Im(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Mm(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Pm(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Rm(t,e,n){Wf(n).onDone(()=>t.processLeaveNode(e))}function Lm(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Fm{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cm(t,e,n),this._timelineEngine=new mm(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=$p(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new dm(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=Kf(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=Kf(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Nm(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Bm(e[0]),e.length>1&&(i=Bm(e[e.length-1]))):e&&(n=Bm(e)),n||i?new jm(t,n,i):null}let jm=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ep(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ep(this._element,this._initialStyles),this._endStyles&&(Ep(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Sp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sp(this._element,this._endStyles),this._endStyles=null),Ep(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Bm(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];Hm(s)&&(e=e||{},e[s]=t[s])}return e}function Hm(t){return"display"===t||"position"===t}const Vm="animation",$m="animationend";class zm{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Zm(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Qm(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),qm(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Wm(this._element,this._name,"paused")}resume(){Wm(this._element,this._name,"running")}setPosition(t){const e=Ym(this._element,this._name);this._position=t*this._duration,Qm(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),qm(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Zm(t,"").split(","),i=Um(n,e);i>=0&&(n.splice(i,1),Qm(t,"",n.join(",")))}(this._element,this._name))}}function Wm(t,e,n){Qm(t,"PlayState",n,Ym(t,e))}function Ym(t,e){const n=Zm(t,"");return n.indexOf(",")>0?Um(n.split(","),e):Um([n],e)}function Um(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function qm(t,e,n){n?t.removeEventListener($m,e):t.addEventListener($m,e)}function Qm(t,e,n,i){const s=Vm+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Zm(t,e){return t.style[Vm+e]}class Km{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new zm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Lp(this.element,n))})}this.currentSnapshot=t}}class Gm extends Vf{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ap(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Xm{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>ap(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Km),l={};Mp(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Pp(t,e,l));if(0==n)return new Gm(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Nm(t,e),f=new Km(t,e,u,n,i,s,c,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Jm{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Lp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class tg{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(eg().toString()),this._cssKeyframesDriver=new Xm}validateStyleProperty(t){return ip(t)}matchesElement(t,e){return sp(t,e)}containsElement(t,e){return rp(t,e)}query(t,e,n){return op(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Jm);Mp(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=Nm(t,e=Pp(t,e=e.map(t=>bp(t,!1)),l));return new Jm(t,e,a,u)}}function eg(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let ng=(()=>{class t extends If{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ue.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Lf(t):t;return rg(this._renderer,null,e,"register",[n]),new ig(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(aa),Kt(Vc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class ig extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new sg(this._id,t,e||{},this._renderer)}}class sg{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return rg(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function rg(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const og="@",ag="@.disabled";let lg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new cg("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new ug(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Kt(aa),Kt(Fm),Kt(Wl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class cg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==og&&e==ag?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ug extends cg{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==og?"."==e.charAt(1)&&e==ag?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==og){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=og&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let hg=(()=>{class t extends Fm{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(cp),Kt(rm))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const dg=new Bt("AnimationModuleType"),fg=[{provide:cp,useFactory:function(){return"function"==typeof eg()?new tg:new Xm}},{provide:dg,useValue:"BrowserAnimations"},{provide:If,useClass:ng},{provide:rm,useFactory:function(){return new om}},{provide:Fm,useClass:hg},{provide:aa,useFactory:function(t,e,n){return new lg(t,e,n)},deps:[Td,Fm,Wl]}];let pg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:fg,imports:[Vd]}),t})();var mg=function(){return(mg=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},gg=/\s+/,yg=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n={top:(n=t.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var s=this.offsetParent(t);n=this.offset(t,!1),s!==document.documentElement&&(i=this.offset(s,!1)),i.top+=s.clientTop,i.left+=s.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+s,right:n.right+s};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var s=n.split("-"),r=s[0],o=void 0===r?"top":r,a=s[1],l=void 0===a?"center":a,c=i?this.offset(t,!1):this.position(t,!1),u=this.getAllStyles(e),h=parseFloat(u.marginTop),d=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),p=parseFloat(u.marginRight),m=0,g=0;switch(o){case"top":m=c.top-(e.offsetHeight+h+d);break;case"bottom":m=c.top+c.height;break;case"left":g=c.left-(e.offsetWidth+f+p);break;case"right":g=c.left+c.width}switch(l){case"top":m=c.top;break;case"bottom":m=c.top+c.height-e.offsetHeight;break;case"left":g=c.left;break;case"right":g=c.left+c.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?g=c.left+c.width/2-e.offsetWidth/2:m=c.top+c.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(g)+"px, "+Math.round(m)+"px)";var y=e.getBoundingClientRect(),_=document.documentElement,v=window.innerHeight||_.clientHeight,b=window.innerWidth||_.clientWidth;return y.left>=0&&y.top>=0&&y.right<=b&&y.bottom<=v},t}());function _g(t){return!l(t)&&t-parseFloat(t)+1>=0}function vg(t=0,e,n){let i=-1;return _g(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=rh),new _(e=>{const s=_g(t)?t:+t-n.now();return n.schedule(bg,s,{index:0,period:i,subscriber:e})})}function bg(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function wg(...t){return z(1)(xc(...t))}function xg(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>wg(t,n,e)):e=>wg(t,e)}var Eg=function(){return(Eg=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},Sg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),s=0;for(e=0;e<n;e++)for(var r=arguments[e],o=0,a=r.length;o<a;o++,s++)i[s]=r[o];return i},kg=function(t){return t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY",t}({}),Cg=[kg.SUNDAY,kg.SATURDAY],Tg=86400;function Dg(t,e){var n=e.startDate,i=e.excluded,s=e.precision;if(i.length<1)return 0;for(var r=t.getDay,o=t.addDays,a=(0,t.addSeconds)(n,e.seconds-1),l=r(n),c=r(a),u=0,h=n,d=function(){var e=r(h);i.some((function(t){return t===e}))&&(u+=function(t,e){var n=e.day,i=e.dayEnd,s=e.startDate,r=e.endDate,o=t.differenceInSeconds,a=t.startOfDay;if("minutes"===e.precision){if(n===e.dayStart)return o((0,t.endOfDay)(s),s)+1;if(n===i)return o(r,a(r))+1}return Tg}(t,{dayStart:l,dayEnd:c,day:e,precision:s,startDate:n,endDate:a})),h=o(h,1)};h<a;)d();return u}function Ag(t,e){var n=e.periodStart,i=e.periodEnd;return e.events.filter((function(e){return function(t,e){var n=e.event,i=e.periodStart,s=e.periodEnd,r=t.isSameSecond,o=n.start,a=n.end||n.start;return o>i&&o<s||a>i&&a<s||o<i&&a>s||!(!r(o,i)&&!r(o,s))||!(!r(a,i)&&!r(a,s))}(t,{event:e,periodStart:n,periodEnd:i})}))}function Og(t,e){var n=e.date,i=e.weekendDays,s=void 0===i?Cg:i,r=t.isSameDay,o=t.getDay,a=(0,t.startOfDay)(new Date),l=o(n);return{date:n,day:l,isPast:n<a,isToday:r(n,a),isFuture:n>a,isWeekend:s.indexOf(l)>-1}}function Ig(t,e){for(var n=e.excluded,i=void 0===n?[]:n,s=e.weekendDays,r=e.viewStart,o=void 0===r?t.startOfWeek(e.viewDate,{weekStartsOn:e.weekStartsOn}):r,a=e.viewEnd,l=void 0===a?t.addDays(o,7):a,c=t.addDays,u=t.getDay,h=[],d=o;d<l;)i.some((function(t){return u(d)===t}))||h.push(Og(t,{date:d,weekendDays:s})),d=c(d,1);return h}function Mg(t,e){var n=e.events,i=void 0===n?[]:n,s=e.excluded,r=void 0===s?[]:s,o=e.precision,a=void 0===o?"days":o,l=e.absolutePositionedEvents,c=void 0!==l&&l,u=e.viewStart,h=e.viewEnd;u=t.startOfDay(u),h=t.endOfDay(h);var d=t.differenceInSeconds,f=t.differenceInDays,p=function(t,e){for(var n=e.date2,i=e.excluded,s=e.date1,r=0;s<n;)-1===i.indexOf(t.getDay(s))&&r++,s=t.addDays(s,1);return r}(t,{date1:u,date2:h,excluded:r}),m=f(h,u)+1,g=i.filter((function(t){return t.allDay})).map((function(e){var n=function(t,e){var n=e.event,i=e.startOfWeek,s=e.excluded,r=e.precision,o=t.differenceInDays,a=t.startOfDay,l=t.differenceInSeconds;if(n.start<i)return 0;var c=0;switch(r){case"days":c=o(a(n.start),i)*Tg;break;case"minutes":c=l(n.start,i)}return c-=Dg(t,{startDate:i,seconds:c,excluded:s,precision:r}),Math.abs(c/Tg)}(t,{event:e,startOfWeek:u,excluded:r,precision:a});return{event:e,offset:n,span:function(t,e){var n=e.event,i=e.offset,s=e.excluded,r=e.precision,o=e.totalDaysInView,a=t.differenceInSeconds,l=t.addDays,c=t.endOfDay,u=t.differenceInDays,h=Tg,d=(0,t.max)([n.start,e.startOfWeekDate]);if(n.end)switch(r){case"minutes":h=a(n.end,d);break;default:h=u(l(c(n.end),1),d)*Tg}var f=i*Tg,p=o*Tg;return f+h>p&&(h=p-f),(h-=Dg(t,{startDate:d,seconds:h,excluded:s,precision:r}))/Tg}(t,{event:e,offset:n,startOfWeekDate:u,excluded:r,precision:a,totalDaysInView:m})}})).filter((function(t){return t.offset<p})).filter((function(t){return t.span>0})).map((function(t){return{event:t.event,offset:t.offset,span:t.span,startsBeforeWeek:t.event.start<u,endsAfterWeek:(t.event.end||t.event.start)>h}})).sort((function(t,e){var n=d(t.event.start,e.event.start);return 0===n?d(e.event.end||e.event.start,t.event.end||t.event.start):n})),y=[],_=[];return g.forEach((function(t,e){if(-1===_.indexOf(t)){_.push(t);var n=t.span+t.offset,i=g.slice(e+1).filter((function(t){if(t.offset>=n&&n+t.span<=m&&-1===_.indexOf(t)){var e=t.offset-n;return c||(t.offset=e),n+=t.span+e,_.push(t),!0}})),s=Sg([t],i),r=s.filter((function(t){return t.event.id})).map((function(t){return t.event.id})).join("-");y.push(Eg({row:s},r?{id:r}:{}))}})),y}function Pg(t,e){var n=e.events,i=e.viewDate,s=e.hourSegments,r=e.hourDuration,o=e.dayStart,a=e.dayEnd,l=e.weekStartsOn,c=e.excluded,u=e.weekendDays,h=e.segmentHeight,d=e.viewStart,f=e.viewEnd,p=e.minimumEventHeight,m=function(t,e){var n=e.viewDate,i=e.hourSegments,s=e.hourDuration,r=e.dayStart,o=e.dayEnd,a=t.setMinutes,l=t.setHours,c=t.startOfDay,u=t.startOfMinute,h=t.endOfDay,d=t.addMinutes,f=t.addDays,p=[],m=a(l(c(n),Lg(r.hour)),Fg(r.minute)),g=a(l(u(h(n)),Lg(o.hour)),Fg(o.minute)),y=(s||60)/i,_=c(n),v=h(n),b=function(t){return t};_.getTimezoneOffset()!==v.getTimezoneOffset()&&(_=f(_,1),m=f(m,1),g=f(g,1),b=function(t){return f(t,-1)});for(var w=s?1440/s:60,x=0;x<w;x++){for(var E=[],S=0;S<i;S++){var k=d(d(m,x*(s||60)),S*y);k>=m&&k<g&&E.push({date:b(k),displayDate:k,isStart:0===S})}E.length>0&&p.push({segments:E})}return p}(t,{viewDate:i,hourSegments:s,hourDuration:r,dayStart:o,dayEnd:a}),g=Ig(t,{viewDate:i,weekStartsOn:l,excluded:c,weekendDays:u,viewStart:d,viewEnd:f}),y=t.setHours,_=t.setMinutes,v=t.getHours,b=t.getMinutes;return g.map((function(e){var i=function(t,e){var n=e.events,i=e.viewDate,s=e.hourSegments,r=e.dayStart,o=e.dayEnd,a=e.eventWidth,l=e.segmentHeight,c=e.hourDuration,u=e.minimumEventHeight,h=t.setMinutes,d=t.setHours,f=t.startOfDay,p=t.startOfMinute,m=t.endOfDay,g=t.differenceInMinutes,y=h(d(f(i),Lg(r.hour)),Fg(r.minute)),_=h(d(p(m(i)),Lg(o.hour)),Fg(o.minute));_.setSeconds(59,999);var v=[],b=Ag(t,{events:n.filter((function(t){return!t.allDay})),periodStart:y,periodEnd:_}),w=b.sort((function(t,e){return t.start.valueOf()-e.start.valueOf()})).map((function(t){var e=t.start,n=t.end||e,i=e<y,r=n>_,o=s*l/(c||60),h=0;if(e>y){var d=e.getTimezoneOffset(),f=y.getTimezoneOffset()-d;h+=g(e,y)+f}h*=o,h=Math.floor(h);var p=i?y:e,m=r?_:n,b=p.getTimezoneOffset()-m.getTimezoneOffset(),w=g(m,p)+b;t.end?w*=o:w=l,u&&w<u&&(w=u),w=Math.floor(w);for(var x=Rg(v,h,h+w),E=0;x.some((function(t){return t.left===E}));)E+=a;var S={event:t,height:w,width:a,top:h,left:E,startsBeforeDay:i,endsAfterDay:r};return v.push(S),S})),x=Math.max.apply(Math,w.map((function(t){return t.left+t.width})));return{events:w,width:x,allDayEvents:Ag(t,{events:n.filter((function(t){return t.allDay})),periodStart:f(y),periodEnd:m(_)}),period:{events:b,start:y,end:_}}}(t,{events:n,viewDate:e.date,hourSegments:s,dayStart:o,dayEnd:a,segmentHeight:h,eventWidth:1,hourDuration:r,minimumEventHeight:p}),l=m.map((function(t){var n=t.segments.map((function(t){var n=_(y(e.date,v(t.date)),b(t.date));return Eg(Eg({},t),{date:n})}));return Eg(Eg({},t),{segments:n})})),c=i.events.map((function(t){var e=100/function t(e,n){var i=Math.max.apply(Math,n.map((function(t){return t.left+1}))),s=e.filter((function(t){return t.left>=i})).filter((function(t){return Rg(n,t.top,t.top+t.height).length>0}));return s.length>0?t(e,s):i}(i.events,Rg(i.events,t.top,t.top+t.height));return Eg(Eg({},t),{left:t.left*e,width:e})}));return{hours:l,date:e.date,events:c.map((function(t){var e=Rg(c.filter((function(e){return e.left>t.left})),t.top,t.top+t.height);return e.length>0?Eg(Eg({},t),{width:Math.min.apply(Math,e.map((function(t){return t.left})))-t.left}):t}))}}))}function Rg(t,e,n){return t.filter((function(t){var i=t.top,s=t.top+t.height;return e<s&&s<n||e<i&&i<n||i<=e&&n<=s}))}function Lg(t){return Math.max(Math.min(23,t),0)}function Fg(t){return Math.max(Math.min(59,t),0)}var Ng=function(t){return t.NotArray="Events must be an array",t.StartPropertyMissing="Event is missing the `start` property",t.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",t.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",t.EndsBeforeStart="Event `start` property occurs after the `end`",t}({});class jg extends p{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Bg extends p{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Hg(t,e,n,i,s=new Bg(t,n,i)){if(!s.closed)return e instanceof _?e.subscribe(s):R(e)(s)}const Vg={};function $g(...t){let e=void 0,n=void 0;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new zg(e))}class zg{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Wg(t,this.resultSelector))}}class Wg extends jg{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Vg),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(Hg(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=this.toRespond?i[n]===Vg?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function Yg(t,e){var n,i;return i=e,"function"==typeof(t=void 0===(n=t)?void 0===i?n:i:n)?function(){for(var e=arguments,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=e[s];return!!t.apply(this,i)}:t?function(){return!0}:function(){return!1}}var Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},qg=function(t){return null!=t&&"object"===(void 0===t?"undefined":Ug(t))&&1===t.nodeType&&"object"===Ug(t.style)&&"object"===Ug(t.ownerDocument)};function Qg(t,e){if(e=Jg(e,!0),!qg(e))return-1;for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function Zg(t,e){return-1!==Qg(t,e)}function Kg(t,e){for(var n=0;n<e.length;n++)Zg(t,e[n])||t.push(e[n]);return e}function Gg(t){for(var e=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=e[i+1];return Kg(t,n=n.map(Jg))}function Xg(t){for(var e=arguments,n=[],i=arguments.length-1;i-- >0;)n[i]=e[i+1];return n.map(Jg).reduce((function(e,n){var i=Qg(t,n);return-1!==i?e.concat(t.splice(i,1)):e}),[])}function Jg(t,e){if("string"==typeof t)try{return document.querySelector(t)}catch(n){throw n}if(!qg(t)&&!e)throw new TypeError(t+" is not a DOM element.");return t}function ty(t){if(t===window)return function(){var t={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},t);var e={};return Object.defineProperties(e,t),e}();try{var e=t.getBoundingClientRect();return void 0===e.x&&(e.x=e.left,e.y=e.top),e}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+t)}}var ey,ny=void 0;"function"!=typeof Object.create?(ey=function(){},ny=function(t,e){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");ey.prototype=t||{};var n=new ey;return ey.prototype=null,void 0!==e&&Object.defineProperties(n,e),null===t&&(n.__proto__=null),n}):ny=Object.create;var iy=ny,sy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function ry(t,e){e=e||{};for(var n=iy(t),i=0;i<sy.length;i++)void 0!==e[sy[i]]&&(n[sy[i]]=e[sy[i]]);return n}function oy(t,e){console.log("data ",e),t.data=e||{},t.dispatched="mousemove"}var ay=["webkit","moz","ms","o"],ly=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=ay.length;t<e&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[ay[t]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=(new Date).getTime(),i=Math.max(0,16-e-n),s=window.setTimeout((function(){return t(e+i)}),i);return n=e+i,s}}return window.requestAnimationFrame.bind(window)}(),cy=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=ay.length;t<e&&!window.cancelAnimationFrame;++t)window.cancelAnimationFrame=window[ay[t]+"CancelAnimationFrame"]||window[ay[t]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function uy(t,e){void 0===e&&(e={});var n=this,i=4,s=!1;if("object"!=typeof e.margin){var r=e.margin||-1;this.margin={left:r,right:r,top:r,bottom:r}}else this.margin=e.margin;this.scrollWhenOutside=e.scrollWhenOutside||!1;var o,a={},l=function(t,e){var n=Yg((e=e||{}).allowUpdate,!0);return function(e){if(e=e||window.event,t.target=e.target||e.srcElement||e.originalTarget,t.element=this,t.type=e.type,n(e)){if(e.targetTouches)t.x=e.targetTouches[0].clientX,t.y=e.targetTouches[0].clientY,t.pageX=e.targetTouches[0].pageX,t.pageY=e.targetTouches[0].pageY,t.screenX=e.targetTouches[0].screenX,t.screenY=e.targetTouches[0].screenY;else{if(null===e.pageX&&null!==e.clientX){var i=e.target&&e.target.ownerDocument||document,s=i.documentElement,r=i.body;t.pageX=e.clientX+(s&&s.scrollLeft||r&&r.scrollLeft||0)-(s&&s.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||r&&r.scrollTop||0)-(s&&s.clientTop||r&&r.clientTop||0)}else t.pageX=e.pageX,t.pageY=e.pageY;t.x=e.clientX,t.y=e.clientY,t.screenX=e.screenX,t.screenY=e.screenY}t.clientX=t.x,t.clientY=t.y}}}(a),c=(o={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null},{destroy:function(){o=null},dispatch:MouseEvent?function(t,e,n){var i=new MouseEvent("mousemove",ry(o,e));return oy(i,n),t.dispatchEvent(i)}:"function"==typeof document.createEvent?function(t,e,n){var i=ry(o,e),s=document.createEvent("MouseEvents");return s.initMouseEvent("mousemove",!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget),oy(s,n),t.dispatchEvent(s)}:"function"==typeof document.createEventObject?function(t,e,n){var i=document.createEventObject(),s=ry(o,e);for(var r in s)i[r]=s[r];return oy(i,n),t.dispatchEvent(i)}:void 0}),u=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(e.maxSpeed)||(i=e.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=Yg(e.autoScroll),this.syncMove=Yg(e.syncMove,!1),this.destroy=function(e){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",y,!1),window.removeEventListener("touchstart",y,!1),window.removeEventListener("mouseup",_,!1),window.removeEventListener("touchend",_,!1),window.removeEventListener("pointerup",_,!1),window.removeEventListener("mouseleave",b,!1),window.removeEventListener("mousemove",x,!1),window.removeEventListener("touchmove",x,!1),window.removeEventListener("scroll",g,!0),t=[],e&&v()},this.add=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Gg.apply(void 0,[t].concat(e)),this},this.remove=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return Xg.apply(void 0,[t].concat(e))};var h,d,f=null;"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),d=t,t=[],d.forEach((function(t){t===window?f=window:n.add(t)})),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return i}},point:{get:function(){return a}},scrolling:{get:function(){return s}}});var p,m=null;function g(e){for(var n=0;n<t.length;n++)if(t[n]===e.target){s=!0;break}s&&ly((function(){return s=!1}))}function y(){u=!0}function _(){u=!1,v()}function v(){cy(p),cy(h)}function b(){u=!1}function w(){for(var e=null,n=0;n<t.length;n++)hy(a,t[n])&&(e=t[n]);return e}function x(e){if(n.autoScroll()&&!e.dispatched){var i=e.target,s=document.body;m&&!hy(a,m)&&(n.scrollWhenOutside||(m=null)),i&&i.parentNode===s?i=w():(i=function(e){if(!e)return null;if(m===e)return e;if(Zg(t,e))return e;for(;e=e.parentNode;)if(Zg(t,e))return e;return null}(i))||(i=w()),i&&i!==m&&(m=i),f&&(cy(h),h=ly(E)),m&&(cy(p),p=ly(S))}}function E(){k(f),cy(h),h=ly(E)}function S(){m&&(k(m),cy(p),p=ly(S))}function k(t){var e,i,s=ty(t);e=a.x<s.left+n.margin.left?Math.floor(Math.max(-1,(a.x-s.left)/n.margin.left-1)*n.maxSpeed.left):a.x>s.right-n.margin.right?Math.ceil(Math.min(1,(a.x-s.right)/n.margin.right+1)*n.maxSpeed.right):0,i=a.y<s.top+n.margin.top?Math.floor(Math.max(-1,(a.y-s.top)/n.margin.top-1)*n.maxSpeed.top):a.y>s.bottom-n.margin.bottom?Math.ceil(Math.min(1,(a.y-s.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&c.dispatch(t,{pageX:a.pageX+e,pageY:a.pageY+i,clientX:a.x+e,clientY:a.y+i}),setTimeout((function(){i&&function(t,e){t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop+=e}(t,i),e&&function(t,e){t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft+=e}(t,e)}))}window.addEventListener("mousedown",y,!1),window.addEventListener("touchstart",y,!1),window.addEventListener("mouseup",_,!1),window.addEventListener("touchend",_,!1),window.addEventListener("pointerup",_,!1),window.addEventListener("mousemove",x,!1),window.addEventListener("touchmove",x,!1),window.addEventListener("mouseleave",b,!1),window.addEventListener("scroll",g,!0)}function hy(t,e,n){return n?t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right:function(t,e){var n=ty(e);return t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right}(t,e)}class dy{constructor(t){if(this.total=t,this.total<0)throw new dh}call(t,e){return e.subscribe(new fy(t,this.total))}}class fy extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}class py{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new my(t,this.predicate,this.source))}}class my extends p{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function gy(){return t=>t.lift(new yy)}class yy{call(t,e){return e.subscribe(new _y(t))}}class _y extends p{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}class vy{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new by(t,this.compare,this.keySelector))}}class by extends p{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}let wy=(()=>{class t{constructor(){this.currentDrag=new E}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xy=(()=>{class t{constructor(t){this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return t.\u0275fac=function(e){return new(e||t)(xo(ra))},t.\u0275dir=be({type:t,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),t})();function Ey(t,e,n){n&&n.split(" ").forEach(n=>t.addClass(e.nativeElement,n))}function Sy(t,e,n){n&&n.split(" ").forEach(n=>t.removeClass(e.nativeElement,n))}let ky=(()=>{class t{constructor(t,e,n,i,s,r,o){this.element=t,this.renderer=e,this.draggableHelper=n,this.zone=i,this.vcr=s,this.scrollContainer=r,this.document=o,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ul,this.dragStart=new ul,this.ghostElementCreated=new ul,this.dragging=new ul,this.dragEnd=new ul,this.pointerDown$=new E,this.pointerMove$=new E,this.pointerUp$=new E,this.eventListenerSubscriptions={},this.destroy$=new E,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const t=this.pointerDown$.pipe(nh(()=>this.canDrag()),H(t=>{t.event.stopPropagation&&!this.scrollContainer&&t.event.stopPropagation();const e=this.renderer.createElement("style");this.renderer.setAttribute(e,"type","text/css"),this.renderer.appendChild(e,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(e)});const n=this.getScrollPosition(),i=new _(t=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",e=>t.next(e))).pipe(xg(n),C(()=>this.getScrollPosition())),s=new E,r=new Dc;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const o=Y(this.pointerUp$,this.pointerDown$,r,this.destroy$).pipe(J()),a=$g([this.pointerMove$,i]).pipe(C(([e,n])=>({currentDrag$:s,transformX:e.clientX-t.clientX,transformY:e.clientY-t.clientY,clientX:e.clientX,clientY:e.clientY,scrollLeft:n.left,scrollTop:n.top,target:e.event.target})),C(t=>(this.dragSnapGrid.x&&(t.transformX=Math.round(t.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(t.transformY=Math.round(t.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),t)),C(t=>(this.dragAxis.x||(t.transformX=0),this.dragAxis.y||(t.transformY=0),t)),C(t=>Object.assign({},t,{x:t.transformX+(t.scrollLeft-n.left),y:t.transformY+(t.scrollTop-n.top)})),nh(({x:t,y:e,transformX:n,transformY:i})=>!this.validateDrag||this.validateDrag({x:t,y:e,transform:{x:n,y:i}})),ch(o),J()),l=a.pipe(fh(1),J()),c=a.pipe((function(t){return t.lift(new dy(1))}),J());return l.subscribe(({clientX:t,clientY:e,x:n,y:i})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:r})}),this.scroller=new uy([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),Ey(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const s=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(r):this.element.nativeElement.parentNode.insertBefore(r,this.element.nativeElement.nextSibling),this.ghostElement=r,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(r,{position:"fixed",top:s.top+"px",left:s.left+"px",width:s.width+"px",height:s.height+"px",cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const t=this.vcr.createEmbeddedView(this.ghostElementTemplate);r.innerHTML="",t.rootNodes.filter(t=>t instanceof Node).forEach(t=>{r.appendChild(t)}),c.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(t))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:t-n,clientY:e-i,element:r})}),c.subscribe(()=>{r.parentElement.removeChild(r),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(s)}),c.pipe(H(t=>{const e=r.pipe(t=>t.lift(new py(void 0,t)),fh(1),C(e=>Object.assign({},t,{dragCancelled:e>0})));return r.complete(),e})).subscribe(({x:t,y:e,dragCancelled:n})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:t,y:e,dragCancelled:n})}),Sy(this.renderer,this.element,this.dragActiveClass),s.complete()}),Y(o,c).pipe(fh(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(e)})}),a}),J());Y(t.pipe(fh(1),C(t=>[,t])),t.pipe(gy())).pipe(nh(([t,e])=>!t||t.x!==e.x||t.y!==e.y),C(([t,e])=>e)).subscribe(({x:t,y:e,currentDrag$:n,clientX:i,clientY:s,transformX:r,transformY:o,target:a})=>{this.zone.run(()=>{this.dragging.next({x:t,y:e})}),requestAnimationFrame(()=>{if(this.ghostElement){const t=`translate3d(${r}px, ${o}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:t,"-webkit-transform":t,"-ms-transform":t,"-moz-transform":t,"-o-transform":t})}}),n.next({clientX:i,clientY:s,dropData:this.dropData,target:a})})}ngOnChanges(t){t.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const t=this.canDrag(),e=Object.keys(this.eventListenerSubscriptions).length>0;t&&!e?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",t=>{this.onMouseDown(t)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",t=>{this.onMouseUp(t)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",t=>{this.onTouchStart(t)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!t&&e&&this.unsubscribeEventListeners()}onMouseDown(t){0===t.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",t=>{this.pointerMove$.next({event:t,clientX:t.clientX,clientY:t.clientY})})),this.pointerDown$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onMouseUp(t){0===t.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onTouchStart(t){let e,n,i;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,i=this.hasScrollbar(),e=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const s=eh(this.document,"contextmenu").subscribe(t=>{t.preventDefault()}),r=eh(this.document,"touchmove",{passive:!1}).subscribe(s=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!n&&i&&(n=this.shouldBeginDrag(t,s,e)),(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&i&&!n||(s.preventDefault(),this.pointerMove$.next({event:s,clientX:s.targetTouches[0].clientX,clientY:s.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{s.unsubscribe(),r.unsubscribe()}}this.pointerDown$.next({event:t,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY})}onTouchEnd(t){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:t,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(t){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",t)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(t=>{this.eventListenerSubscriptions[t](),delete this.eventListenerSubscriptions[t]})}setElementStyles(t,e){Object.keys(e).forEach(n=>{this.renderer.setStyle(t,n,e[n])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(t,e,n){const i=this.getScrollPosition(),s=Math.abs(i.top-n.top),r=Math.abs(i.left-n.left),o=Math.abs(e.targetTouches[0].clientX-t.touches[0].clientX)-r,a=Math.abs(e.targetTouches[0].clientY-t.touches[0].clientY)-s,l=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(o+a>l.delta||s>0||r>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=l.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const t=this.getScrollElement();return t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ca),xo(wy),xo(Wl),xo(Ia),xo(xy,8),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[Le]}),t})();function Cy(t,e,n){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}let Ty=(()=>{class t{constructor(t,e,n,i,s){this.element=t,this.draggableHelper=e,this.zone=n,this.renderer=i,this.scrollContainer=s,this.dragEnter=new ul,this.dragLeave=new ul,this.dragOver=new ul,this.drop=new ul}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(t=>{Ey(this.renderer,this.element,this.dragActiveClass);const e={updateCache:!0},n=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{e.updateCache=!0});let i;const s=t.pipe(C(({clientX:t,clientY:n,dropData:s,target:r})=>{i=s,e.updateCache&&(e.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(e.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),e.updateCache=!1);const o=Cy(t,n,e.rect),a=!this.validateDrop||this.validateDrop({clientX:t,clientY:n,target:r});return e.scrollContainerRect?o&&a&&Cy(t,n,e.scrollContainerRect):o&&a})),r=s.pipe(t=>t.lift(new vy(undefined,undefined)));let o;r.pipe(nh(t=>t)).subscribe(()=>{o=!0,Ey(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:i})})}),s.pipe(nh(t=>t)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:i})})}),r.pipe(gy(),nh(([t,e])=>t&&!e)).subscribe(()=>{o=!1,Sy(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:i})})}),t.subscribe({complete:()=>{n(),Sy(this.renderer,this.element,this.dragActiveClass),o&&(Sy(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:i})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(wy),xo(Wl),xo(ca),xo(xy,8))},t.\u0275dir=be({type:t,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),t})(),Dy=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class Ay{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Oy(t,this.durationSelector))}}class Oy extends j{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=B(n,new N(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Iy(t,e=rh){return n=()=>vg(t,e),function(t){return t.lift(new Ay(n))};var n}let My=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const Py=function(t){return{action:t}};function Ry(t,e){if(1&t){const t=Do();ko(0,"a",5),Oo("mwlClick",(function(n){an(t);const i=e.$implicit,s=Po(2).event;return i.onClick({event:s,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit,s=Po(2).event;return i.onClick({event:s,sourceEvent:n})})),rl(1,"calendarA11y"),Co()}if(2&t){const t=e.$implicit;Eo("ngClass",t.cssClass)("innerHtml",t.label,es),vo("aria-label",ol(1,3,Xa(6,Py,t),"actionButtonLabel"))}}function Ly(t,e){if(1&t&&(ko(0,"span",3),bo(1,Ry,2,8,"a",4),Co()),2&t){const t=Po(),e=t.event,n=t.trackByActionId;xs(1),Eo("ngForOf",e.actions)("ngForTrackBy",n)}}function Fy(t,e){1&t&&bo(0,Ly,2,2,"span",2),2&t&&Eo("ngIf",e.event.actions)}function Ny(t,e){}const jy=function(t,e){return{event:t,trackByActionId:e}},By=function(){return{}};function Hy(t,e){if(1&t&&(To(0,"span",2),rl(1,"calendarEventTitle"),rl(2,"calendarA11y")),2&t){const t=e.event;Eo("innerHTML",al(1,2,t.title,e.view,t),es),vo("aria-hidden",ol(2,6,Ga(9,By),"hideEventTitle"))}}function Vy(t,e){}const $y=function(t,e){return{event:t,view:e}};function zy(t,e){if(1&t&&(ko(0,"div",2),To(1,"div",3),To(2,"div",4),Co()),2&t){const t=e.contents;Eo("ngClass","cal-tooltip-"+e.placement),xs(2),Eo("innerHtml",t,es)}}function Wy(t,e){}const Yy=function(t,e,n){return{contents:t,placement:e,event:n}},Uy=function(t){return{backgroundColor:t}};function qy(t,e){if(1&t){const t=Do();ko(0,"mwl-calendar-month-cell",7),Oo("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).dayClicked.emit({day:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit;return Po(2).dayClicked.emit({day:i,sourceEvent:n})}))("highlightDay",(function(e){return an(t),Po(2).toggleDayHighlight(e.event,!0)}))("unhighlightDay",(function(e){return an(t),Po(2).toggleDayHighlight(e.event,!1)}))("drop",(function(n){an(t);const i=e.$implicit;return Po(2).eventDropped(i,n.dropData.event,n.dropData.draggedFrom)}))("eventClicked",(function(e){return an(t),Po(2).eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})})),rl(1,"calendarA11y"),Co()}if(2&t){const t=e.$implicit,n=Po(2);Eo("ngClass",null==t?null:t.cssClass)("day",t)("openDay",n.openDay)("locale",n.locale)("tooltipPlacement",n.tooltipPlacement)("tooltipAppendToBody",n.tooltipAppendToBody)("tooltipTemplate",n.tooltipTemplate)("tooltipDelay",n.tooltipDelay)("customTemplate",n.cellTemplate)("ngStyle",Xa(15,Uy,t.backgroundColor))("clickListenerDisabled",0===n.dayClicked.observers.length),vo("tabindex",ol(1,12,Ga(17,By),"monthCellTabIndex"))}}function Qy(t,e){if(1&t){const t=Do();ko(0,"div"),ko(1,"div",4),bo(2,qy,2,18,"mwl-calendar-month-cell",5),rl(3,"slice"),Co(),ko(4,"mwl-calendar-open-day-events",6),Oo("eventClicked",(function(e){return an(t),Po().eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})}))("drop",(function(e){an(t);const n=Po();return n.eventDropped(n.openDay,e.dropData.event,e.dropData.draggedFrom)})),Co(),Co()}if(2&t){const t=e.$implicit,n=Po();xs(2),Eo("ngForOf",al(3,9,n.view.days,t,t+n.view.totalDaysVisibleInWeek))("ngForTrackBy",n.trackByDate),xs(2),Eo("locale",n.locale)("isOpen",n.openRowIndex===t)("events",null==n.openDay?null:n.openDay.events)("date",null==n.openDay?null:n.openDay.date)("customTemplate",n.openDayEventsTemplate)("eventTitleTemplate",n.eventTitleTemplate)("eventActionsTemplate",n.eventActionsTemplate)}}function Zy(t,e){if(1&t){const t=Do();ko(0,"div",4),Oo("click",(function(n){an(t);const i=e.$implicit;return Po(2).columnHeaderClicked.emit({isoDayNumber:i.day,sourceEvent:n})})),qo(1),rl(2,"calendarDate"),Co()}if(2&t){const t=e.$implicit,n=Po().locale;Vo("cal-past",t.isPast)("cal-today",t.isToday)("cal-future",t.isFuture)("cal-weekend",t.isWeekend),Eo("ngClass",t.cssClass),xs(1),Zo(" ",al(2,10,t.date,"monthViewColumnHeader",n)," ")}}function Ky(t,e){if(1&t&&(ko(0,"div",2),bo(1,Zy,3,14,"div",3),Co()),2&t){const t=e.days,n=e.trackByWeekDayHeaderDate;xs(1),Eo("ngForOf",t)("ngForTrackBy",n)}}function Gy(t,e){}const Xy=function(t,e,n){return{days:t,locale:e,trackByWeekDayHeaderDate:n}};function Jy(t,e){if(1&t&&(ko(0,"span",7),qo(1),Co()),2&t){const t=Po().day;xs(1),Qo(t.badgeTotal)}}const t_=function(t,e){return{event:t,draggedFrom:e}},e_=function(t,e){return{x:t,y:e}},n_=function(){return{delay:300,delta:30}};function i_(t,e){if(1&t){const t=Do();ko(0,"div",10),Oo("mouseenter",(function(){an(t);const n=e.$implicit;return Po(2).highlightDay.emit({event:n})}))("mouseleave",(function(){an(t);const n=e.$implicit;return Po(2).unhighlightDay.emit({event:n})}))("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})})),rl(1,"calendarEventTitle"),rl(2,"calendarA11y"),Co()}if(2&t){const t=e.$implicit,n=Po(2),i=n.tooltipPlacement,s=n.tooltipTemplate,r=n.tooltipAppendToBody,o=n.tooltipDelay,a=n.day,l=n.validateDrag;Vo("cal-draggable",t.draggable),Eo("ngStyle",Xa(22,Uy,null==t.color?null:t.color.primary))("ngClass",null==t?null:t.cssClass)("mwlCalendarTooltip",al(1,15,t.title,"monthTooltip",t))("tooltipPlacement",i)("tooltipEvent",t)("tooltipTemplate",s)("tooltipAppendToBody",r)("tooltipDelay",o)("dropData",Ja(24,t_,t,a))("dragAxis",Ja(27,e_,t.draggable,t.draggable))("validateDrag",l)("touchStartLongPress",Ga(30,n_)),vo("aria-hidden",ol(2,19,Ga(31,By),"hideMonthCellEvents"))}}function s_(t,e){if(1&t&&(ko(0,"div",8),bo(1,i_,3,32,"div",9),Co()),2&t){const t=Po(),e=t.day,n=t.trackByEventId;xs(1),Eo("ngForOf",e.events)("ngForTrackBy",n)}}const r_=function(t,e){return{day:t,locale:e}};function o_(t,e){if(1&t&&(ko(0,"div",2),rl(1,"calendarA11y"),ko(2,"span",3),bo(3,Jy,2,1,"span",4),ko(4,"span",5),qo(5),rl(6,"calendarDate"),Co(),Co(),Co(),bo(7,s_,2,2,"div",6)),2&t){const t=e.day,n=e.locale;vo("aria-label",ol(1,4,Ja(11,r_,t,n),"monthCell")),xs(3),Eo("ngIf",t.badgeTotal>0),xs(2),Qo(al(6,7,t.date,"monthViewDayNumber",n)),xs(2),Eo("ngIf",t.events.length>0)}}function a_(t,e){}const l_=function(t,e,n,i,s,r,o,a,l,c,u,h){return{day:t,openDay:e,locale:n,tooltipPlacement:i,highlightDay:s,unhighlightDay:r,eventClicked:o,tooltipTemplate:a,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:h}},c_=function(t){return{event:t}},u_=function(t,e){return{event:t,locale:e}};function h_(t,e){if(1&t){const t=Do();ko(0,"div",7),To(1,"span",8),qo(2," "),ko(3,"mwl-calendar-event-title",9),Oo("mwlClick",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){an(t);const i=e.$implicit;return Po(2).eventClicked.emit({event:i,sourceEvent:n})})),rl(4,"calendarA11y"),Co(),qo(5," "),To(6,"mwl-calendar-event-actions",10),Co()}if(2&t){const t=e.$implicit,n=Po(2).validateDrag,i=Po();Vo("cal-draggable",t.draggable),Eo("ngClass",null==t?null:t.cssClass)("dropData",Xa(16,c_,t))("dragAxis",Ja(18,e_,t.draggable,t.draggable))("validateDrag",n)("touchStartLongPress",Ga(21,n_)),xs(1),Eo("ngStyle",Xa(22,Uy,null==t.color?null:t.color.primary)),xs(2),Eo("event",t)("customTemplate",i.eventTitleTemplate),vo("aria-label",ol(4,13,Ja(24,u_,t,i.locale),"eventDescription")),xs(3),Eo("event",t)("customTemplate",i.eventActionsTemplate)}}const d_=function(t,e){return{date:t,locale:e}};function f_(t,e){if(1&t&&(ko(0,"div",3),To(1,"span",4),rl(2,"calendarA11y"),To(3,"span",5),rl(4,"calendarA11y"),bo(5,h_,7,27,"div",6),Co()),2&t){const t=Po(),e=t.events,n=t.trackByEventId,i=Po();Eo("@collapse",void 0),xs(1),vo("aria-label",ol(2,5,Ja(11,d_,i.date,i.locale),"openDayEventsAlert")),xs(2),vo("aria-label",ol(4,8,Ja(14,d_,i.date,i.locale),"openDayEventsLandmark")),xs(2),Eo("ngForOf",e)("ngForTrackBy",n)}}function p_(t,e){1&t&&bo(0,f_,6,17,"div",2),2&t&&Eo("ngIf",e.isOpen)}function m_(t,e){}const g_=function(t,e,n,i,s){return{events:t,eventClicked:e,isOpen:n,trackByEventId:i,validateDrag:s}};let y_=(()=>{let t=class{constructor(){this.trackByActionId=(t,e)=>e.id?e.id:e}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(t,e){if(1&t&&(bo(0,Fy,1,1,"ng-template",null,0,xl),bo(2,Ny,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",Ja(2,jy,e.event,e.trackByActionId))}},directives:function(){return[Vu,Nu,Lu,Pu,L_,F_]},pipes:function(){return[B_]},encapsulation:2}),t})(),__=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(t,e){if(1&t&&(bo(0,Hy,3,10,"ng-template",null,0,xl),bo(2,Vy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",Ja(2,$y,e.event,e.view))}},directives:function(){return[Vu]},pipes:function(){return[R_,B_]},encapsulation:2}),t})(),v_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(t,e){if(1&t&&(bo(0,zy,3,2,"ng-template",null,0,xl),bo(2,Wy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",tl(2,Yy,e.contents,e.placement,e.event))}},directives:[Vu,Pu],encapsulation:2}),t})(),b_=(()=>{let t=class{constructor(t,e,n,i,s,r){this.elementRef=t,this.injector=e,this.renderer=n,this.viewContainerRef=s,this.document=r,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new E,this.tooltipFactory=i.resolveComponentFactory(v_)}ngOnChanges(t){this.tooltipRef&&(t.contents||t.customTemplate||t.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?xc("now"):vg(this.delay)).pipe(ch(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(t=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function(t,e,n,i,s){var r=Array.isArray(n)?n:n.split(gg),o=function(t){t.split("-");return[]},a=r.findIndex((function(t){return"auto"===t}));a>=0&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach((function(t){null==r.find((function(e){return-1!==e.search("^"+t)}))&&r.splice(a++,1,t)}));var l,c=e.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";for(var u=!1,h=0,d=r;h<d.length;h++)if(o(l=d[h]),yg.positionElements(t,e,l,i)){u=!0;break}return u||(o(l=r[0]),yg.positionElements(t,e,l,i)),l}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===t.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...t,this.tooltipRef.instance.placement]))}};return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(ao),xo(ca),xo(sa),xo(Ia),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(t,e){1&t&&Oo("mouseenter",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.onMouseOut()}))},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[Le]}),t})();class w_{}var x_=function(t){return t.Month="month",t.Week="week",t.Day="day",t}({});const E_=(t,e)=>e.id?e.id:e,S_=(t,e)=>e.date.toISOString();function k_(t,e,n,i){let s=0,r=0;const o=n<0?t.subDays:t.addDays;let a=e;for(;r<=Math.abs(n);){a=o(e,s);const n=t.getDay(a);-1===i.indexOf(n)&&r++,s++}return a}function C_({x:t,y:e}){return Math.abs(t)>1||Math.abs(e)>1}let T_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new ul}onClick(){const t={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===x_.Day?k_(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===x_.Week&&this.daysInWeek?k_(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),D_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new ul}onClick(){const t={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===x_.Day?k_(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===x_.Week&&this.daysInWeek?k_(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),A_=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.viewDateChange=new ul}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return t.\u0275fac=function(e){return new(e||t)(xo(w_))},t.\u0275dir=be({type:t,selectors:[["","mwlCalendarToday",""]],hostBindings:function(t,e){1&t&&Oo("click",(function(){return e.onClick()}))},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),t})(),O_=(()=>{let t=class{constructor(t){this.dateAdapter=t}monthViewColumnHeader({date:t,locale:e}){return wu(t,"EEEE",e)}monthViewDayNumber({date:t,locale:e}){return wu(t,"d",e)}monthViewTitle({date:t,locale:e}){return wu(t,"LLLL y",e)}weekViewColumnHeader({date:t,locale:e}){return wu(t,"EEEE",e)}weekViewColumnSubHeader({date:t,locale:e}){return wu(t,"MMM d",e)}weekViewTitle({date:t,locale:e,weekStartsOn:n,excludeDays:i,daysInWeek:s}){const{viewStart:r,viewEnd:o}=function(t,e,n,i=[],s){let r=s?t.startOfDay(e):t.startOfWeek(e,{weekStartsOn:n});const o=t.endOfWeek(e,{weekStartsOn:n});for(;i.indexOf(t.getDay(r))>-1&&r<o;)r=t.addDays(r,1);if(s)return{viewStart:r,viewEnd:t.endOfDay(k_(t,r,s-1,i))};{let e=o;for(;i.indexOf(t.getDay(e))>-1&&e>r;)e=t.subDays(e,1);return{viewStart:r,viewEnd:e}}}(this.dateAdapter,t,n,i,s),a=(t,n)=>wu(t,"MMM d"+(n?", yyyy":""),e);return`${a(r,r.getUTCFullYear()!==o.getUTCFullYear())} - ${a(o,!0)}`}weekViewHour({date:t,locale:e}){return wu(t,"h a",e)}dayViewHour({date:t,locale:e}){return wu(t,"h a",e)}dayViewTitle({date:t,locale:e}){return wu(t,"EEEE, MMMM d, y",e)}};return t.\u0275fac=function(e){return new(e||t)(Kt(w_))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),I_=(()=>{let t=class extends O_{};return t.\u0275fac=function(e){return J_(e||t)},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),M_=(()=>{let t=class{constructor(t,e){this.dateFormatter=t,this.locale=e}transform(t,e,n=this.locale,i=0,s=[],r){if(void 0===this.dateFormatter[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(I_.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid date formatter. Can only be one of ${t.join(", ")}`)}return this.dateFormatter[e]({date:t,locale:n,weekStartsOn:i,excludeDays:s,daysInWeek:r})}};return t.\u0275fac=function(e){return new(e||t)(xo(I_),xo(Ml))},t.\u0275pipe=we({name:"calendarDate",type:t,pure:!0}),t})();class P_{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let R_=(()=>{let t=class{constructor(t){this.calendarEventTitle=t}transform(t,e,n){return this.calendarEventTitle[e](n,t)}};return t.\u0275fac=function(e){return new(e||t)(xo(P_))},t.\u0275pipe=we({name:"calendarEventTitle",type:t,pure:!0}),t})(),L_=(()=>{let t=class{constructor(t,e,n){this.renderer=t,this.elm=e,this.document=n,this.clickListenerDisabled=!1,this.click=new ul,this.destroy$=new E}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(ch(this.destroy$)).subscribe(t=>{t.stopPropagation(),this.click.emit(t)})}ngOnDestroy(){this.destroy$.next()}listen(){return new _(t=>this.renderer.listen(this.elm.nativeElement,"click",e=>{t.next(e)}))}};return t.\u0275fac=function(e){return new(e||t)(xo(ca),xo(ra),xo(Vc))},t.\u0275dir=be({type:t,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),t})(),F_=(()=>{let t=class{constructor(t,e,n){this.host=t,this.ngZone=e,this.renderer=n,this.keydown=new ul,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",t=>{13!==t.keyCode&&13!==t.which&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(t)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Wl),xo(ca))},t.\u0275dir=be({type:t,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),t})(),N_=(()=>{let t=class{constructor(t){this.dateAdapter=t}getMonthView(t){return function(t,e){var n=e.events,i=void 0===n?[]:n,s=e.viewDate,r=e.weekStartsOn,o=e.excluded,a=void 0===o?[]:o,l=e.viewStart,c=void 0===l?t.startOfMonth(s):l,u=e.viewEnd,h=void 0===u?t.endOfMonth(s):u,d=e.weekendDays;i||(i=[]);for(var f,p=t.endOfWeek,m=t.differenceInDays,g=t.startOfDay,y=t.addHours,_=t.endOfDay,v=t.isSameMonth,b=t.getDay,w=(0,t.startOfWeek)(c,{weekStartsOn:r}),x=p(h,{weekStartsOn:r}),E=Ag(t,{events:i,periodStart:w,periodEnd:x}),S=[],k=function(e){var n;if(f?(n=g(y(f,24)),f.getTime()===n.getTime()&&(n=g(y(f,25))),f=n):n=f=w,!a.some((function(t){return b(n)===t}))){var i=Og(t,{date:n,weekendDays:d}),r=Ag(t,{events:E,periodStart:g(n),periodEnd:_(n)});i.inMonth=v(n,s),i.events=r,i.badgeTotal=r.length,S.push(i)}},C=0;C<m(x,w)+1;C++)k();var T=[],D=7-a.length;if(D<7)for(C=0;C<S.length;C+=D){var A=S.slice(C,C+D);A.some((function(t){return c<=t.date&&t.date<h}))&&(T=Sg(T,A))}else T=S;var O=Math.floor(T.length/D),I=[];for(C=0;C<O;C++)I.push(C*D);return{rowOffsets:I,totalDaysVisibleInWeek:D,days:T,period:{start:T[0].date,end:_(T[T.length-1].date),events:E}}}(this.dateAdapter,t)}getWeekViewHeader(t){return Ig(this.dateAdapter,t)}getWeekView(t){return function(t,e){var n=e.events,i=void 0===n?[]:n,s=e.viewDate,r=e.weekStartsOn,o=e.excluded,a=void 0===o?[]:o,l=e.precision,c=void 0===l?"days":l,u=e.absolutePositionedEvents,h=void 0!==u&&u,d=e.hourSegments,f=e.hourDuration,p=e.dayStart,m=e.dayEnd,g=e.weekendDays,y=e.segmentHeight,_=e.minimumEventHeight,v=e.viewStart,b=void 0===v?t.startOfWeek(s,{weekStartsOn:r}):v,w=e.viewEnd,x=void 0===w?t.endOfWeek(s,{weekStartsOn:r}):w;i||(i=[]);var E=t.endOfDay,S=Ag(t,{events:i,periodStart:b=(0,t.startOfDay)(b),periodEnd:x=E(x)}),k=Ig(t,{viewDate:s,weekStartsOn:r,excluded:a,weekendDays:g,viewStart:b,viewEnd:x});return{allDayEventRows:Mg(t,{events:S,excluded:a,precision:c,absolutePositionedEvents:h,viewStart:b,viewEnd:x}),period:{events:S,start:k[0].date,end:E(k[k.length-1].date)},hourColumns:Pg(t,{events:i,viewDate:s,hourSegments:d,hourDuration:f,dayStart:p,dayEnd:m,weekStartsOn:r,excluded:a,weekendDays:g,segmentHeight:y,viewStart:b,viewEnd:x,minimumEventHeight:_})}}(this.dateAdapter,t)}};return t.\u0275fac=function(e){return new(e||t)(Kt(w_))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),j_=(()=>{let t=class{constructor(t){this.i18nPlural=t}monthCell({day:t,locale:e}){return t.badgeTotal>0?`\n ${wu(t.date,"EEEE MMMM d",e)},\n ${this.i18nPlural.transform(t.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:""+wu(t.date,"EEEE MMMM d",e)}openDayEventsLandmark({date:t,locale:e}){return`\n Beginning of expanded view for ${wu(t,"EEEE MMMM dd",e)}\n `}openDayEventsAlert({date:t,locale:e}){return wu(t,"EEEE MMMM dd",e)+" expanded"}eventDescription({event:t,locale:e}){if(!0===t.allDay)return this.allDayEventDescription({event:t,locale:e});const n=`\n ${wu(t.start,"EEEE MMMM dd",e)},\n ${t.title}, from ${wu(t.start,"hh:mm a",e)}\n `;return t.end?n+" to "+wu(t.end,"hh:mm a",e):n}allDayEventDescription({event:t,locale:e}){const n=`\n ${t.title}, event spans multiple days:\n start time ${wu(t.start,"MMMM dd hh:mm a",e)}\n `;return t.end?n+", stop time "+wu(t.end,"MMMM d hh:mm a",e):n+", no stop time"}actionButtonLabel({action:t}){return t.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return t.\u0275fac=function(e){return new(e||t)(Kt(Zu))},t.\u0275prov=ut({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),B_=(()=>{let t=class{constructor(t,e){this.calendarA11y=t,this.locale=e}transform(t,e){if(t.locale=t.locale||this.locale,void 0===this.calendarA11y[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(j_.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid a11y method. Can only be one of ${t.join(", ")}`)}return this.calendarA11y[e](t)}};return t.\u0275fac=function(e){return new(e||t)(xo(j_),xo(Ml))},t.\u0275pipe=we({name:"calendarA11y",type:t,pure:!0}),t})();var H_,V_=function(t){return t.Drag="drag",t.Drop="drop",t.Resize="resize",t}({});let $_=(()=>{let t=H_=class{static forRoot(t,e={}){return{ngModule:H_,providers:[t,e.eventTitleFormatter||P_,e.dateFormatter||I_,e.utils||N_,e.a11y||j_]}}};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Zu],imports:[[Gu]]}),t})(),z_=(()=>{let t=class{constructor(t,e,n,i){this.cdr=t,this.utils=e,this.dateAdapter=i,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new ul,this.dayClicked=new ul,this.eventClicked=new ul,this.columnHeaderClicked=new ul,this.eventTimesChanged=new ul,this.trackByRowOffset=(t,e)=>this.view.days.slice(e,this.view.totalDaysVisibleInWeek).map(t=>t.date.toISOString()).join("-"),this.trackByDate=(t,e)=>e.date.toISOString(),this.locale=n}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(t){const e=t.viewDate||t.excludeDays||t.weekendDays,n=t.viewDate||t.events||t.excludeDays||t.weekendDays;e&&this.refreshHeader(),t.events&&function(t,e){function n(t,n){e(t,n),!1}Array.isArray(t)?t.forEach((function(t){t.start?t.start instanceof Date||n(Ng.StartPropertyNotDate,t):n(Ng.StartPropertyMissing,t),t.end&&(t.end instanceof Date||n(Ng.EndPropertyNotDate,t),t.start>t.end&&n(Ng.EndsBeforeStart,t))})):e(Ng.NotArray,t)}(this.events,(...t)=>console.warn("angular-calendar",...t)),n&&this.refreshBody(),(e||n)&&this.emitBeforeViewRender(),(t.activeDayIsOpen||t.viewDate||t.events||t.excludeDays||t.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(t,e){this.view.days.forEach(n=>{e&&n.events.indexOf(t)>-1?n.backgroundColor=t.color&&t.color.secondary||"#D1E8FF":delete n.backgroundColor})}eventDropped(t,e,n){if(t!==n){const n=this.dateAdapter.getYear(t.date),i=this.dateAdapter.getMonth(t.date),s=this.dateAdapter.getDate(t.date),r=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(e.start,n),i),s);let o;if(e.end){const t=this.dateAdapter.differenceInSeconds(r,e.start);o=this.dateAdapter.addSeconds(e.end,t)}this.eventTimesChanged.emit({event:e,newStart:r,newEnd:o,day:t,type:V_.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const t=this.activeDay||this.viewDate;this.openDay=this.view.days.find(e=>this.dateAdapter.isSameDay(e.date,t));const e=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(e/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return t.\u0275fac=function(e){return new(e||t)(xo(Ur),xo(N_),xo(Ml),xo(w_))},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[Le],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(t,e){1&t&&(ko(0,"div",0),ko(1,"mwl-calendar-month-view-header",1),Oo("columnHeaderClicked",(function(t){return e.columnHeaderClicked.emit(t)})),Co(),ko(2,"div",2),bo(3,Qy,5,13,"div",3),Co(),Co()),2&t&&(xs(1),Eo("days",e.columnHeaders)("locale",e.locale)("customTemplate",e.headerTemplate),xs(2),Eo("ngForOf",e.view.rowOffsets)("ngForTrackBy",e.trackByRowOffset))},directives:function(){return[W_,Lu,q_,Ty,Y_,Pu,Hu,L_,F_]},pipes:function(){return[Ku,B_]},encapsulation:2}),t})(),W_=(()=>{let t=class{constructor(){this.columnHeaderClicked=new ul,this.trackByWeekDayHeaderDate=S_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(t,e){if(1&t&&(bo(0,Ky,2,2,"ng-template",null,0,xl),bo(2,Gy,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",tl(2,Xy,e.days,e.locale,e.trackByWeekDayHeaderDate))}},directives:[Vu,Lu,Pu],pipes:[M_],encapsulation:2}),t})(),Y_=(()=>{let t=class{constructor(){this.highlightDay=new ul,this.unhighlightDay=new ul,this.eventClicked=new ul,this.trackByEventId=E_,this.validateDrag=C_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(t,e){2&t&&Vo("cal-past",e.day.isPast)("cal-today",e.day.isToday)("cal-future",e.day.isFuture)("cal-weekend",e.day.isWeekend)("cal-in-month",e.day.inMonth)("cal-out-month",!e.day.inMonth)("cal-has-events",e.day.events.length>0)("cal-open",e.day===e.openDay)("cal-event-highlight",!!e.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(t,e){if(1&t&&(bo(0,o_,8,14,"ng-template",null,0,xl),bo(2,a_,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",(n=2,i=l_,s=[e.day,e.openDay,e.locale,e.tooltipPlacement,e.highlightDay,e.unhighlightDay,e.eventClicked,e.tooltipTemplate,e.tooltipAppendToBody,e.tooltipDelay,e.trackByEventId,e.validateDrag],function(t,e,n,i,s,r){let o=e+n,a=!1;for(let l=0;l<s.length;l++)yo(t,o++,s[l])&&(a=!0);return a?mo(t,o,i.apply(r,s)):el(t,o)}(rn(),pn(),n,i,s,r)))}var n,i,s,r},directives:[Vu,Nu,Lu,ky,Hu,Pu,b_,L_],pipes:[B_,M_,R_],encapsulation:2}),t})();const U_=Pf("collapse",[Nf("void",Ff({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),Nf("*",Ff({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),Bf("* => void",Rf("150ms ease-out")),Bf("void => *",Rf("150ms ease-in"))]);let q_=(()=>{let t=class{constructor(){this.isOpen=!1,this.eventClicked=new ul,this.trackByEventId=E_,this.validateDrag=C_}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(t,e){if(1&t&&(bo(0,p_,1,1,"ng-template",null,0,xl),bo(2,m_,0,0,"ng-template",1)),2&t){const t=wo(1);xs(2),Eo("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",function(t,e,n,i,s,r,o,a){const l=pn()+t,c=rn(),u=function(t,e,n,i,s,r){const o=_o(t,e,n,i);return _o(t,e+2,s,r)||o}(c,l,n,i,s,r);return yo(c,l+4,o)||u?mo(c,l+5,a?e.call(a,n,i,s,r,o):e(n,i,s,r,o)):go(c,l+5)}(2,g_,e.events,e.eventClicked,e.isOpen,e.trackByEventId,e.validateDrag))}},directives:[Vu,Nu,Lu,ky,Pu,Hu,__,L_,F_,y_],pipes:[B_],encapsulation:2,data:{animation:[U_]}}),t})(),Q_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,Dy,$_],Dy]}),t})(),Z_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,My,Dy,$_],My,Dy]}),t})(),K_=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Gu,$_,Z_]]}),t})();var G_;let X_=(()=>{let t=G_=class{static forRoot(t,e={}){return{ngModule:G_,providers:[t,e.eventTitleFormatter||P_,e.dateFormatter||I_,e.utils||N_,e.a11y||j_]}}};return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[$_,Q_,Z_,K_],$_,Q_,Z_,K_]}),t})();const J_=pi(I_);function tv(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ev(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function nv(t){ev(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function iv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}function sv(t,e){ev(2,arguments);var n=nv(t).getTime(),i=tv(e);return new Date(n+i)}var rv=36e5;function ov(t,e){ev(2,arguments);var n=tv(e);return sv(t,n*rv)}function av(t,e){ev(2,arguments);var n=tv(e);return sv(t,6e4*n)}function lv(t,e){ev(2,arguments);var n=tv(e);return sv(t,1e3*n)}function cv(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function uv(t){ev(1,arguments);var e=nv(t);return e.setHours(0,0,0,0),e}var hv=864e5;function dv(t,e){ev(2,arguments);var n=uv(t),i=uv(e),s=n.getTime()-cv(n),r=i.getTime()-cv(i);return Math.round((s-r)/hv)}function fv(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function pv(t,e){ev(2,arguments);var n=nv(t),i=nv(e),s=fv(n,i),r=Math.abs(dv(n,i));n.setDate(n.getDate()-s*r);var o=Number(fv(n,i)===-s),a=s*(r-o);return 0===a?0:a}function mv(t,e){return ev(2,arguments),nv(t).getTime()-nv(e).getTime()}var gv={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function yv(t){return t?gv[t]:gv.trunc}function _v(t,e,n){ev(2,arguments);var i=mv(t,e)/6e4;return yv(null==n?void 0:n.roundingMethod)(i)}function vv(t,e,n){ev(2,arguments);var i=mv(t,e)/1e3;return yv(null==n?void 0:n.roundingMethod)(i)}function bv(t){ev(1,arguments);var e=nv(t);return e.setHours(23,59,59,999),e}function wv(t){ev(1,arguments);var e=nv(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}var xv={};function Ev(){return xv}function Sv(t,e){var n,i,s,r,o,a,l,c;ev(1,arguments);var u=Ev(),h=tv(null!==(n=null!==(i=null!==(s=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=nv(t),f=d.getDay(),p=6+(f<h?-7:0)-(f-h);return d.setDate(d.getDate()+p),d.setHours(23,59,59,999),d}function kv(t){ev(1,arguments);var e=nv(t),n=e.getDay();return n}function Cv(t){ev(1,arguments);var e=nv(t),n=e.getMonth();return n}function Tv(t,e){ev(2,arguments);var n=uv(t),i=uv(e);return n.getTime()===i.getTime()}function Dv(t,e){ev(2,arguments);var n=nv(t),i=nv(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function Av(t){ev(1,arguments);var e=nv(t);return e.setMilliseconds(0),e}function Ov(t,e){ev(2,arguments);var n=Av(t),i=Av(e);return n.getTime()===i.getTime()}function Iv(t){var e,n;if(ev(1,arguments),t&&"function"==typeof t.forEach)e=t;else{if("object"!=typeof t||null===t)return new Date(NaN);e=Array.prototype.slice.call(t)}return e.forEach((function(t){var e=nv(t);(void 0===n||n<e||isNaN(Number(e)))&&(n=e)})),n||new Date(NaN)}function Mv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setHours(i),n}function Pv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setMinutes(i),n}function Rv(t){ev(1,arguments);var e=nv(t);return e.setSeconds(0,0),e}function Lv(t){ev(1,arguments);var e=nv(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Fv(t,e){var n,i,s,r,o,a,l,c;ev(1,arguments);var u=Ev(),h=tv(null!==(n=null!==(i=null!==(s=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(o=e.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=nv(t),f=d.getDay(),p=(f<h?7:0)+f-h;return d.setDate(d.getDate()-p),d.setHours(0,0,0,0),d}function Nv(t){ev(1,arguments);var e=nv(t),n=e.getHours();return n}function jv(t){ev(1,arguments);var e=nv(t),n=e.getMinutes();return n}function Bv(t,e){ev(2,arguments);var n=tv(e),i=7*n;return iv(t,i)}function Hv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return s>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),s),n)}function Vv(t,e){ev(2,arguments);var n=tv(e);return iv(t,-n)}function $v(t,e){ev(2,arguments);var n=tv(e);return Bv(t,-n)}function zv(t,e){ev(2,arguments);var n=tv(e);return Hv(t,-n)}function Wv(t){return ev(1,arguments),Fv(t,{weekStartsOn:1})}function Yv(t){ev(1,arguments);var e=nv(t),n=e.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=Wv(i),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var o=Wv(r);return e.getTime()>=s.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function Uv(t){ev(1,arguments);var e=Yv(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var i=Wv(n);return i}var qv=6048e5;function Qv(t){ev(1,arguments);var e=nv(t),n=Wv(e).getTime()-Uv(e).getTime();return Math.round(n/qv)+1}function Zv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return n.setDate(i),n}function Kv(t){ev(1,arguments);var e=nv(t),n=e.getFullYear(),i=e.getMonth(),s=new Date(0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function Gv(t,e){ev(2,arguments);var n=nv(t),i=tv(e),s=n.getFullYear(),r=n.getDate(),o=new Date(0);o.setFullYear(s,i,15),o.setHours(0,0,0,0);var a=Kv(o);return n.setMonth(i,Math.min(r,a)),n}function Xv(t,e){ev(2,arguments);var n=nv(t),i=tv(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}function Jv(t){ev(1,arguments);var e=nv(t),n=e.getDate();return n}function tb(t){return ev(1,arguments),nv(t).getFullYear()}function eb(){return mg(mg({},{addDays:iv,addHours:ov,addMinutes:av,addSeconds:lv,differenceInDays:pv,differenceInMinutes:_v,differenceInSeconds:vv,endOfDay:bv,endOfMonth:wv,endOfWeek:Sv,getDay:kv,getMonth:Cv,isSameDay:Tv,isSameMonth:Dv,isSameSecond:Ov,max:Iv,setHours:Mv,setMinutes:Pv,startOfDay:uv,startOfMinute:Rv,startOfMonth:Lv,startOfWeek:Fv,getHours:Nv,getMinutes:jv}),{addWeeks:Bv,addMonths:Hv,subDays:Vv,subWeeks:$v,subMonths:zv,getISOWeek:Qv,setDate:Zv,setMonth:Gv,setYear:Xv,getDate:Jv,getYear:tb})}let nb;try{nb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Nx){nb=!1}let ib,sb,rb=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Xu(this._platformId):"object"==typeof document&&!!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&&!nb)&&"undefined"!=typeof CSS&&!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}}return t.\u0275fac=function(e){return new(e||t)(Kt(Al))},t.\u0275prov=ut({factory:function(){return new t(Kt(Al))},token:t,providedIn:"root"}),t})(),ob=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function ab(t){return function(){if(null==ib&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ib=!0}))}finally{ib=ib||!1}return ib}()?t:!!t.capture}let lb=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),cb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[lb]}),t})();function ub(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const hb="cdk-describedby-message-container",db="cdk-describedby-host";let fb=0;const pb=new Map;let mb=null,gb=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),pb.set(e,{messageElement:e,referenceCount:0})):pb.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=pb.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}mb&&0===mb.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(db);mb&&this._deleteMessagesContainer(),pb.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),mb.appendChild(e),pb.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+fb++)}_deleteMessageElement(t){const e=pb.get(t),n=e&&e.messageElement;mb&&n&&mb.removeChild(n),pb.delete(t)}_createMessagesContainer(){if(!mb){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(hb);e&&e.parentNode&&e.parentNode.removeChild(e),mb=this._document.createElement("div"),mb.id=hb,mb.classList.add("cdk-visually-hidden"),mb.setAttribute("aria-hidden",t+""),this._document.body.appendChild(mb)}}_deleteMessagesContainer(){mb&&mb.parentNode&&(mb.parentNode.removeChild(mb),mb=null)}_removeCdkDescribedByReferenceIds(t){const e=ub(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=pb.get(e);!function(t,e,n){const i=ub(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(db,""),n.referenceCount++}_removeMessageReference(t,e){const n=pb.get(e);n.referenceCount--,function(t,e,n){const i=ub(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(db)}_isElementDescribedByMessage(t,e){const n=ub(t,"aria-describedby"),i=pb.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();function yb(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const _b=new Bt("cdk-focus-monitor-default-options"),vb=ab({passive:!0,capture:!0});let bb=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=yb(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=wb(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=wb(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return xc(null);const n=hd(t),i=function(t){if(function(){if(null==sb){const t="undefined"!=typeof document?document.head:null;sb=!(!t||!t.createShadowRoot&&!t.attachShadow)}return sb}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new E,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=hd(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=hd(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=wb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==wb(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,vb),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,vb)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,vb),t.addEventListener("mousedown",this._documentMousedownListener,vb),t.addEventListener("touchstart",this._documentTouchstartListener,vb),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,vb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,vb),t.removeEventListener("mousedown",this._documentMousedownListener,vb),t.removeEventListener("touchstart",this._documentTouchstartListener,vb),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(rb),Kt(Vc,8),Kt(_b,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(rb),Kt(Vc,8),Kt(_b,8))},token:t,providedIn:"root"}),t})();function wb(t){return t.composedPath?t.composedPath()[0]:t.target}const xb="cdk-high-contrast-black-on-white",Eb="cdk-high-contrast-white-on-black",Sb="cdk-high-contrast-active";let kb=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Sb),t.remove(xb),t.remove(Eb);const e=this.getHighContrastMode();1===e?(t.add(Sb),t.add(xb)):2===e&&(t.add(Sb),t.add(Eb))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb),Kt(Vc))},token:t,providedIn:"root"}),t})(),Cb=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(kb))},imports:[[ob,cb]]}),t})();const Tb=new da("10.2.0"),Db=new da("10.2.0"),Ab=new Bt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ob,Ib=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Oi()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Db.full!==Tb.full&&console.warn("The Angular Material version ("+Db.full+") does not match the Angular CDK version ("+Tb.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(kb),Kt(Ab,8),Kt(Vc,8))},imports:[[Yd],Yd]}),t})();function Mb(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ld(t)}}}function Pb(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function Rb(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ld(t)}}}try{Ob="undefined"!=typeof Intl}catch(Nx){Ob=!1}class Lb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fb={enterDuration:450,exitDuration:400},Nb=ab({passive:!0}),jb=["mousedown","touchstart"],Bb=["mouseup","mouseleave","touchend","touchcancel"];class Hb{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=hd(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Fb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new Lb(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Fb),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=hd(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jb))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Bb),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=yb(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Nb)})})}_removeTriggerEvents(){this._triggerElement&&(jb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Nb)}),this._pointerUpEventsRegistered&&Bb.forEach(t=>{this._triggerElement.removeEventListener(t,this,Nb)}))}}const Vb=new Bt("mat-ripple-global-options");let $b=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Hb(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{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(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Wl),xo(rb),xo(Vb,8),xo(dg,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Vo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),zb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Ib,ob],Ib]}),t})();const Wb=["mat-button",""],Yb=["*"],Ub=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class qb{constructor(t){this._elementRef=t}}const Qb=Pb(Mb(Rb(qb)));let Zb=(()=>{class t extends Qb{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Ub)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(bb),xo(dg,8))},t.\u0275cmp=pe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n,i,s,r,o,a;1&t&&(r=$b,o=!0,function(t,e,n,i,s,r){t.firstCreatePass&&function(t,e,n){null===t.queries&&(t.queries=new gl),t.queries.track(new yl(e,-1))}(t,new ml(n,i,!1,s)),function(t,e){const n=new dl;$s(t,e,n,n.destroy),null===e[19]&&(e[19]=new pl),e[19].queries.push(new fl(n))}(t,e)}(on(),rn(),r,o,a)),2&t&&function(t){const e=rn(),n=on(),i=_n();vn(i+1);const s=wl(n,i);if(t.dirty&&Ge(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,n,i,s){const r=e.queries.getByIndex(i),o=r.matches;if(null!==o){const a=bl(e,n,r,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=Ce;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,s)}}}}}return s}(n,e,i,[]):bl(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}((i=rn(),s=_n(),n=i[19].queries[s].queryList))&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),Vo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Go],attrs:Wb,ngContentSelectors:Yb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Lo(),ko(0,"span",0),Fo(1),Co(),To(2,"span",1),To(3,"span",2)),2&t&&(xs(2),Vo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Eo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[$b],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),Kb=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[zb,Ib],Ib]}),t})();var Gb=n("BQ33"),Xb=n("dvnC"),Jb=n("aPkM"),tw=n("QbNu");let ew=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Iy(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):xc()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(nh(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>eh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wl),Kt(rb),Kt(Vc,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(Wl),Kt(rb),Kt(Vc,8))},token:t,providedIn:"root"}),t})(),nw=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Iy(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb),Kt(Wl),Kt(Vc,8))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb),Kt(Wl),Kt(Vc,8))},token:t,providedIn:"root"}),t})(),iw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),sw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Yd,ob,iw],Yd,iw]}),t})();class rw{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class ow extends rw{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class aw extends rw{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class lw extends rw{constructor(t){super(),this.element=t instanceof ra?t.nativeElement:t}}class cw extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ow?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof aw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof lw?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let uw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class hw{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ud(-this._previousScrollPosition.left),t.style.top=ud(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class dw{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class fw{enable(){}disable(){}attach(){}}function pw(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function mw(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class gw{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();pw(t,[{width:e,height:n,bottom:n,right:e,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}}let yw=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new fw,this.close=t=>new dw(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new hw(this._viewportRuler,this._document),this.reposition=t=>new gw(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(Kt(ew),Kt(nw),Kt(Wl),Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(ew),Kt(nw),Kt(Wl),Kt(Vc))},token:t,providedIn:"root"}),t})();class _w{constructor(t){if(this.scrollStrategy=new fw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class vw{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class bw{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let ww=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc))},token:t,providedIn:"root"}),t})(),xw=(()=>{class t extends ww{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc))},token:t,providedIn:"root"}),t})(),Ew=(()=>{class t extends ww{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();const Sw=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let kw=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||Sw){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),Sw?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vc),Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(Vc),Kt(rb))},token:t,providedIn:"root"}),t})();class Cw{constructor(t,e,n,i,s,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=h.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(fh(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ud(this._config.width),t.height=ud(this._config.height),t.minWidth=ud(this._config.minWidth),t.minHeight=ud(this._config.minHeight),t.maxWidth=ud(this._config.maxWidth),t.maxHeight=ud(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;cd(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ch(Y(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Tw="cdk-overlay-connected-position-bounding-box",Dw=/([A-Za-z%]+)$/;class Aw{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 E,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Tw),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ow(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Tw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,u=this._subtractOverflows(e.width,0-s,s+e.width-n.width),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=Iw(this._overlayRef.getConfig().minHeight),o=Iw(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-s:t.x<this._viewportMargin?i.left-n.left-t.x:0,c=e.height<=i.height?o||-r:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new bw(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=ud(n.height),i.top=ud(n.top),i.bottom=ud(n.bottom),i.width=ud(n.width),i.left=ud(n.left),i.right=ud(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=ud(t)),s&&(i.maxWidth=ud(s))}this._lastBoundingBoxSize=n,Ow(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Ow(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ow(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Ow(n,this._getExactOverlayY(e,t,i)),Ow(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=ud(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=ud(r.maxWidth):s&&(n.maxWidth="")),Ow(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=ud(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=ud(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mw(t,n),isOriginOutsideView:pw(t,n),isOverlayClipped:mw(e,n),isOverlayOutsideView:pw(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=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+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&cd(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ra)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Ow(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Iw(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Dw);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Mw{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new Aw(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new vw(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Pw="cdk-global-overlay-wrapper";class Rw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Pw),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Pw),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Lw=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new Rw}connectedTo(t,e,n){return new Mw(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Aw(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(nw),Kt(Vc),Kt(rb),Kt(kw))},t.\u0275prov=ut({factory:function(){return new t(Kt(nw),Kt(Vc),Kt(rb),Kt(kw))},token:t,providedIn:"root"}),t})(),Fw=0,Nw=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new _w(t);return s.direction=s.direction||this._directionality.value,new Cw(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Fw++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(lc)),new cw(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(yw),Kt(kw),Kt(sa),Kt(Lw),Kt(xw),Kt(ao),Kt(Wl),Kt(Vc),Kt(Wd),Kt(tu),Kt(Ew))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const jw={provide:new Bt("cdk-connected-overlay-scroll-strategy"),deps:[Nw],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Bw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Nw,jw],imports:[[Yd,uw,sw],sw]}),t})();class Hw{constructor(t){this.total=t}call(t,e){return e.subscribe(new Vw(t,this.total))}}class Vw extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const $w=new Set;let zw,Ww=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Yw}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!$w.has(t))try{zw||(zw=document.createElement("style"),zw.setAttribute("type","text/css"),document.head.appendChild(zw)),zw.sheet&&(zw.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),$w.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(rb))},t.\u0275prov=ut({factory:function(){return new t(Kt(rb))},token:t,providedIn:"root"}),t})();function Yw(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Uw=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return qw(cd(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=$g(qw(cd(t)).map(t=>this._registerQuery(t).observable));return e=wg(e.pipe(fh(1)),e.pipe(t=>t.lift(new Hw(1)),function(t,e=rh){return n=>n.lift(new oh(t,e))}(0))),e.pipe(C(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new _(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(xg(e),C(({matches:e})=>({query:t,matches:e})),ch(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Ww),Kt(Wl))},t.\u0275prov=ut({factory:function(){return new t(Kt(Ww),Kt(Wl))},token:t,providedIn:"root"}),t})();function qw(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Qw={tooltipState:Pf("state",[Nf("initial, void, hidden",Ff({opacity:0,transform:"scale(0)"})),Nf("visible",Ff({transform:"scale(1)"})),Bf("* => visible",Rf("200ms cubic-bezier(0, 0, 0.2, 1)",jf([Ff({opacity:0,transform:"scale(0)",offset:0}),Ff({opacity:.5,transform:"scale(0.99)",offset:.5}),Ff({opacity:1,transform:"scale(1)",offset:1})]))),Bf("* => hidden",Rf("100ms cubic-bezier(0, 0, 0.2, 1)",Ff({opacity:0})))])},Zw=ab({passive:!0}),Kw=new Bt("mat-tooltip-scroll-strategy"),Gw={provide:Kw,deps:[Nw],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Xw=new Bt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Jw=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ld(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).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)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ch(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,Zw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new ow(tx,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ch(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(ch(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ch(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(fh(1),ch(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Zw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(xo(Nw),xo(ra),xo(ew),xo(Ia),xo(Wl),xo(rb),xo(gb),xo(bb),xo(Kw),xo(Wd,8),xo(Xw,8))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),tx=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(xo(Ur),xo(Uw))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Oo("click",(function(){return e._handleBodyInteraction()}),!1,Zn),2&t&&Ho("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(ko(0,"div",0),Oo("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),rl(1,"async"),qo(2),Co()),2&t&&(Vo("mat-tooltip-handset",null==(n=function(t,e,n){const i=rn(),s=Qe(i,1);return cl(i,ll(i,1)?nl(i,pn(),5,s.transform,n,s):s.transform(n))}(0,0,e._isHandset))?null:n.matches),Eo("ngClass",e.tooltipClass)("@state",e._visibility),xs(2),Qo(e.message))},directives:[Pu],pipes:[qu],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Qw.tooltipState]},changeDetection:0}),t})(),ex=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Gw],imports:[[Cb,Gu,Bw,Ib],Ib,iw]}),t})();class nx{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ix(t,this.selector,this.caught))}}class ix extends j{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new N(this);this.add(i);const s=B(n,i);s!==i&&this.add(s)}}}class sx{constructor(t){this.callback=t}call(t,e){return e.subscribe(new rx(t,this.callback))}}class rx extends p{constructor(t,e){super(t),this.add(new h(e))}}class ox{}class ax{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ax?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ax;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ax?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class lx{encodeKey(t){return cx(t)}encodeValue(t){return cx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function cx(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class ux{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new lx,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ux({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function hx(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function dx(t){return"undefined"!=typeof Blob&&t instanceof Blob}function fx(t){return"undefined"!=typeof FormData&&t instanceof FormData}class px{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new ax),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new ux,this.urlWithParams=e}serializeBody(){return null===this.body?null:hx(this.body)||dx(this.body)||fx(this.body)||"string"==typeof this.body?this.body:this.body instanceof ux?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||fx(this.body)?null:dx(this.body)?this.body.type||null:hx(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ux?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new px(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var mx=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}({});class gx extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new ax,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=mx.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new gx({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function yx(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let _x=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof px)i=t;else{let s=void 0;s=n.headers instanceof ax?n.headers:new ax(n.headers);let r=void 0;n.params&&(r=n.params instanceof ux?n.params:new ux({fromObject:n.params})),i=new px(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=xc(i).pipe(H(t=>this.handler.handle(t),void 0,1));if(t instanceof px||"events"===n.observe)return s;const r=s.pipe(nh(t=>t instanceof gx));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(C(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(C(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(C(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(C(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new ux).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,yx(n,e))}post(t,e,n={}){return this.request("POST",t,yx(n,e))}put(t,e,n={}){return this.request("PUT",t,yx(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ox))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const vx=["*"];function bx(t){return Error(`Unable to find icon with the name "${t}"`)}function wx(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function xx(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ex{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Sx=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new Ex(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(ts.HTML,n);if(!s)throw xx(n);return this._addSvgIconConfig(t,e,new Ex("",s,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new Ex(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(ts.HTML,e);if(!i)throw xx(e);return this._addSvgIconSetConfig(t,new Ex("",i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(ts.RESOURCE_URL,t);if(!e)throw wx(t);const n=this._cachedIconsByUrl.get(e);return n?xc(kx(n)):this._loadSvgIconFromConfig(new Ex(t,null)).pipe(yh(t=>this._cachedIconsByUrl.set(e,t)),C(t=>kx(t)))}getNamedSvgIcon(t,e=""){const n=Cx(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Ec(bx(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?xc(kx(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(C(t=>kx(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?xc(n):function(...t){if(1===t.length){const e=t[0];if(l(e))return Tf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Tf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Tf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(C(t=>e(...t)))}return Tf(t,null)}(e.filter(t=>!t.svgText).map(t=>{return this._loadSvgIconSetFromConfig(t).pipe((e=e=>{const n=this._sanitizer.sanitize(ts.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),xc(null)},function(t){const n=new nx(e),i=t.lift(n);return n.caught=i}));var e})).pipe(C(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw bx(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(yh(e=>t.svgText=e),C(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?xc(null):this._fetchIcon(t).pipe(yh(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:s}=n[i];"id"!==t&&e.setAttribute(t,s)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:i}=t,s=null!==(e=null==i?void 0:i.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(ts.RESOURCE_URL,n);if(!r)throw wx(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:s}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new sx(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Cx(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(Kt(_x,8),Kt(Nd),Kt(Vc,8),Kt(_i))},t.\u0275prov=ut({factory:function(){return new t(Kt(_x,8),Kt(Nd),Kt(Vc,8),Kt(_i))},token:t,providedIn:"root"}),t})();function kx(t){return t.cloneNode(!0)}function Cx(t,e){return t+":"+e}class Tx{constructor(t){this._elementRef=t}}const Dx=Pb(Tx),Ax=new Bt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(Vc),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Ox=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ix=Ox.map(t=>`[${t}]`).join(", "),Mx=/^url\(['"]?#(.*?)['"]?\)$/;let Px=(()=>{class t extends Dx{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ld(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(fh(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Ix),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)Ox.forEach(t=>{const s=e[i],r=s.getAttribute(t),o=r?r.match(Mx):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(xo(ra),xo(Sx),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const s=n[i];if(jn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(ln(),"aria-hidden")),xo(Ax),xo(_i))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(vo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Vo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Go,Le],ngContentSelectors:vx,decls:1,vars:0,template:function(t,e){1&t&&(Lo(),Fo(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),t})(),Rx=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Ib],Ib]}),t})();Gb.extend(Jb),Gb.extend(Xb);let Lx=(()=>{class t{constructor(){this.events=[],this.view=x_.Month,this.viewDate=new Date,this.activeDayIsOpen=!1,this.calendarEvents=[]}eventClicked({event:t}){var e;null===(e=this.onEventClick)||void 0===e||e.call(this,{id:t.id})}dayClicked({day:t}){var e;null===(e=this.onDayClick)||void 0===e||e.call(this,{date:this.getISOString(t.date)})}viewDateChange(t){}getISOString(t){return t?Gb(t).utc(!0).startOf("day").toISOString():null}ngAfterViewInit(){}ngOnChanges(t){var e;this.calendarEvents=null===(e=this.events)||void 0===e?void 0:e.map(t=>({title:t.title,color:{primary:tw(t.color).toRgbString(),secondary:tw(t.color).setAlpha(.3).toRgbString()},start:Gb(t.start).toDate(),end:Gb(t.end).toDate(),id:t.id}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-calendar-internal"]],inputs:{events:"events",onEventClick:"onEventClick",onDayClick:"onDayClick"},features:[Le],decls:16,vars:14,consts:[["fxLayout","column",2,"height","100%","background-color","#fff"],["fxLayout","","fxLayoutAlign","start center",2,"height","40px"],["type","button","mat-icon-button","","mwlCalendarPreviousView","","matTooltip","Previous month",3,"view","viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarToday","","matTooltip","Today's month",3,"viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarNextView","","matTooltip","Next month",3,"view","viewDate","viewDateChange"],["fxFlex","",2,"font-weight","bolder","text-align","center"],[2,"height","calc(100% - 32px - 40px)"],[2,"height","100%",3,"weekStartsOn","activeDayIsOpen","viewDate","events","eventClicked","dayClicked"]],template:function(t,e){1&t&&(ko(0,"div",0),ko(1,"div",1),ko(2,"button",2),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(3,"mat-icon"),qo(4,"chevron_left"),Co(),Co(),ko(5,"button",3),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(6,"mat-icon"),qo(7,"today"),Co(),Co(),ko(8,"button",4),Oo("viewDateChange",(function(t){return e.viewDate=t}))("viewDateChange",(function(t){return e.viewDateChange(t)})),ko(9,"mat-icon"),qo(10,"chevron_right"),Co(),Co(),ko(11,"div",5),qo(12),rl(13,"calendarDate"),Co(),Co(),ko(14,"div",6),ko(15,"mwl-calendar-month-view",7),Oo("eventClicked",(function(t){return e.eventClicked(t)}))("dayClicked",(function(t){return e.dayClicked(t)})),Co(),Co(),Co()),2&t&&(xs(2),Eo("view",e.view)("viewDate",e.viewDate),xs(3),Eo("viewDate",e.viewDate),xs(3),Eo("view",e.view)("viewDate",e.viewDate),xs(4),Zo(" ",al(13,10,e.viewDate,e.view+"ViewTitle","en")," "),xs(3),Eo("weekStartsOn",1)("activeDayIsOpen",!1)("viewDate",e.viewDate)("events",e.calendarEvents))},directives:[tf,mf,Zb,T_,Jw,Px,A_,D_,af,z_],pipes:[M_],styles:['@charset "UTF-8"; .cal-days>div{flex:1} .cal-month-view .cal-header{text-align:center;font-weight:bolder} .cal-month-view .cal-header .cal-cell{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap} .cal-month-view .cal-days{display:flex;flex-direction:column;height:100%;border:1px solid;border-bottom:0} .cal-month-view .cal-cell-top{min-height:78px;flex:1} .cal-month-view .cal-cell-row{-js-display:flex;display:flex} .cal-month-view .cal-cell{float:left;flex:1;-js-display:flex;display:flex;flex-direction:column;align-items:stretch} .cal-month-view .cal-cell .cal-event{pointer-events:all!important} .cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){ .cal-month-view .cal-day-cell{display:block}} .cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid} .cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid} .cal-month-view .cal-day-badge{margin-top:18px;margin-left:10px;display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:10px} .cal-month-view .cal-day-number{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px} .cal-month-view .cal-events{flex:1;align-items:flex-end;margin:3px;line-height:10px;-js-display:flex;display:flex;flex-wrap:wrap} .cal-month-view .cal-event{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px} .cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer} .cal-month-view .cal-day-cell.cal-out-month .cal-day-number{opacity:.1;cursor:default} .cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em} .cal-month-view .cal-open-day-events{padding:15px} .cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px} .cal-month-view .cal-out-month .cal-day-badge, .cal-month-view .cal-out-month .cal-event{opacity:.3} .cal-month-view .cal-draggable{cursor:move} .cal-month-view .cal-drag-active *{pointer-events:none} .cal-month-view .cal-event-title{cursor:pointer} .cal-month-view .cal-event-title:hover{text-decoration:underline} .cal-month-view{background-color:#fff;height:100%} .cal-month-view .cal-cell-row:hover{background-color:#fafafa} .cal-month-view .cal-cell-row .cal-cell:hover, .cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed} .cal-month-view .cal-days{border-color:#e1e1e1} .cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1} .cal-month-view .cal-days .cal-cell-row{height:100%;border-bottom-color:#e1e1e1} .cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff} .cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff} .cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000} .cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7} .cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important} .cal-month-view .cal-open-day-events{color:#fff;background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5)} .cal-week-view *{box-sizing:border-box} .cal-week-view .cal-day-headers{-js-display:flex;display:flex;padding-left:70px;border:1px solid} .cal-week-view .cal-day-headers .cal-header{flex:1;text-align:center;padding:5px} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid} .cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid} .cal-week-view .cal-day-headers span{font-weight:400;opacity:.5} .cal-week-view .cal-day-column{flex-grow:1;border-left:1px solid} .cal-week-view .cal-event{font-size:12px;border:1px solid} .cal-week-view .cal-time-label-column{width:70px;height:100%} .cal-week-view .cal-current-time-marker{position:absolute;width:100%;height:2px;z-index:2} .cal-week-view .cal-all-day-events{border-left:1px solid;border-right:1px solid;border-top:0;border-bottom:3px solid;padding-top:3px;position:relative} .cal-week-view .cal-all-day-events .cal-day-columns{height:100%;width:100%;-js-display:flex;display:flex;position:absolute;top:0;z-index:0} .cal-week-view .cal-all-day-events .cal-events-row{position:relative;height:31px;margin-left:70px} .cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute} .cal-week-view .cal-all-day-events .cal-event-container.resize-active{z-index:1;pointer-events:none} .cal-week-view .cal-all-day-events .cal-event{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px} .cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-top-left-radius:5px;border-bottom-left-radius:5px} .cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-top-right-radius:5px;border-bottom-right-radius:5px} .cal-week-view .cal-all-day-events .cal-time-label-column{-js-display:flex;display:flex;align-items:center;justify-content:center;font-size:14px} .cal-week-view .cal-all-day-events .cal-resize-handle{width:6px;height:100%;cursor:col-resize;position:absolute;top:0} .cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0} .cal-week-view .cal-event, .cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cal-week-view .cal-drag-active{pointer-events:none;z-index:1} .cal-week-view .cal-drag-active *{pointer-events:none} .cal-week-view .cal-time-events{position:relative;border:1px solid;border-top:0;-js-display:flex;display:flex} .cal-week-view .cal-time-events .cal-day-columns{-js-display:flex;display:flex;flex-grow:1} .cal-week-view .cal-time-events .cal-day-column, .cal-week-view .cal-time-events .cal-events-container{position:relative} .cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1} .cal-week-view .cal-time-events .cal-event{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px} .cal-week-view .cal-time-events .cal-resize-handle{width:100%;height:4px;cursor:row-resize;position:absolute} .cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0} .cal-week-view .cal-hour-segment{position:relative} .cal-week-view .cal-hour-segment:after{content:"\xa0"} .cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer} .cal-week-view .cal-draggable{cursor:move} .cal-week-view .cal-hour-segment, .cal-week-view mwl-calendar-week-view-hour-segment{display:block} .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed} .cal-week-view .cal-time{font-weight:700;padding-top:5px;width:70px;text-align:center} .cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none} .cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px} .cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px} .cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1} .cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-drag-over, .cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed} .cal-week-view .cal-day-column{border-left-color:#e1e1e1} .cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff} .cal-week-view .cal-all-day-events{border-color:#e1e1e1} .cal-week-view .cal-header.cal-today{background-color:#e8fde7} .cal-week-view .cal-header.cal-weekend span{color:#8b0000} .cal-week-view .cal-time-events{border-color:#e1e1e1} .cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed} .cal-week-view .cal-hour-odd{background-color:#fafafa} .cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed} .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1} .cal-week-view .cal-current-time-marker{background-color:#ea4334} .cal-day-view mwl-calendar-week-view-header{display:none} .cal-day-view .cal-events-container{margin-left:70px} .cal-day-view .cal-day-column{border-left:0} .cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)} .cal-tooltip{position:absolute;z-index:1070;display:block;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;font-size:11px;word-wrap:break-word;opacity:.9} .cal-tooltip.cal-tooltip-top{padding:5px 0;margin-top:-3px} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0} .cal-tooltip.cal-tooltip-right{padding:0 5px;margin-left:3px} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0} .cal-tooltip.cal-tooltip-bottom{padding:5px 0;margin-top:3px} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px} .cal-tooltip.cal-tooltip-left{padding:0 5px;margin-left:-3px} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px} .cal-tooltip-inner{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem} .cal-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000} .cal-tooltip-inner{color:#fff;background-color:#000}']}),t})(),Fx=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(sa).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Lc(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Nc{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),s=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?s.forEach(([t])=>delete this[t]):jc(n,this),s.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(s),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),jc(n,r.prototype),r}(Lx,{injector:this.injector});customElements.define("drayman-calendar",t)}}return t.\u0275mod=_e({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Kt(ao))},providers:[],imports:[[Vd,pg,Of,Cf,Rx,ex,Kb,X_.forRoot({provide:w_,useFactory:eb})]]}),t})();(function(){if(Ai)throw new Error("Cannot enable prod mode after platform setup.");Di=!1})(),Bd().bootstrapModule(Fx).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});
1
+ (()=>{var Zx={764:function(Wt){Wt.exports=function(){"use strict";var _t="millisecond",We="second",wt="minute",Ee="hour",Dt="day",Ft="week",Lt="month",ee="quarter",he="year",dt="date",_e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,V=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Be={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},me=function(re,J,B){var O=String(re);return!O||O.length>=J?re:""+Array(J+1-O.length).join(B)+re},we={s:me,z:function(re){var J=-re.utcOffset(),B=Math.abs(J),O=Math.floor(B/60),X=B%60;return(J<=0?"+":"-")+me(O,2,"0")+":"+me(X,2,"0")},m:function re(J,B){if(J.date()<B.date())return-re(B,J);var O=12*(B.year()-J.year())+(B.month()-J.month()),X=J.clone().add(O,Lt),ce=B-X<0,P=J.clone().add(O+(ce?-1:1),Lt);return+(-(O+(B-X)/(ce?X-P:P-X))||0)},a:function(re){return re<0?Math.ceil(re)||0:Math.floor(re)},p:function(re){return{M:Lt,y:he,w:Ft,d:Dt,D:dt,h:Ee,m:wt,s:We,ms:_t,Q:ee}[re]||String(re||"").toLowerCase().replace(/s$/,"")},u:function(re){return void 0===re}},Qe="en",Ne={};Ne[Qe]=Be;var Ct=function(re){return re instanceof $t},Yt=function(re,J,B){var O;if(!re)return Qe;if("string"==typeof re)Ne[re]&&(O=re),J&&(Ne[re]=J,O=re);else{var X=re.name;Ne[X]=re,O=X}return!B&&O&&(Qe=O),O||!B&&Qe},rt=function(re,J){if(Ct(re))return re.clone();var B="object"==typeof J?J:{};return B.date=re,B.args=arguments,new $t(B)},Y=we;Y.l=Yt,Y.i=Ct,Y.w=function(re,J){return rt(re,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var $t=function(){function re(B){this.$L=Yt(B.locale,null,!0),this.parse(B)}var J=re.prototype;return J.parse=function(B){this.$d=function(O){var X=O.date,ce=O.utc;if(null===X)return new Date(NaN);if(Y.u(X))return new Date;if(X instanceof Date)return new Date(X);if("string"==typeof X&&!/Z$/i.test(X)){var P=X.match(_e);if(P){var Ze=P[2]-1||0,at=(P[7]||"0").substring(0,3);return ce?new Date(Date.UTC(P[1],Ze,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)):new Date(P[1],Ze,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)}}return new Date(X)}(B),this.$x=B.x||{},this.init()},J.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},J.$utils=function(){return Y},J.isValid=function(){return"Invalid Date"!==this.$d.toString()},J.isSame=function(B,O){var X=rt(B);return this.startOf(O)<=X&&X<=this.endOf(O)},J.isAfter=function(B,O){return rt(B)<this.startOf(O)},J.isBefore=function(B,O){return this.endOf(O)<rt(B)},J.$g=function(B,O,X){return Y.u(B)?this[O]:this.set(X,B)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(B,O){var X=this,ce=!!Y.u(O)||O,P=Y.p(B),Ze=function(He,xt){var lt=Y.w(X.$u?Date.UTC(X.$y,xt,He):new Date(X.$y,xt,He),X);return ce?lt:lt.endOf(Dt)},at=function(He,xt){return Y.w(X.toDate()[He].apply(X.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(xt)),X)},it=this.$W,Et=this.$M,tn=this.$D,nn="set"+(this.$u?"UTC":"");switch(P){case he:return ce?Ze(1,0):Ze(31,11);case Lt:return ce?Ze(1,Et):Ze(0,Et+1);case Ft:var Yn=this.$locale().weekStart||0,qn=(it<Yn?it+7:it)-Yn;return Ze(ce?tn-qn:tn+(6-qn),Et);case Dt:case dt:return at(nn+"Hours",0);case Ee:return at(nn+"Minutes",1);case wt:return at(nn+"Seconds",2);case We:return at(nn+"Milliseconds",3);default:return this.clone()}},J.endOf=function(B){return this.startOf(B,!1)},J.$set=function(B,O){var X,ce=Y.p(B),P="set"+(this.$u?"UTC":""),Ze=(X={},X[Dt]=P+"Date",X[dt]=P+"Date",X[Lt]=P+"Month",X[he]=P+"FullYear",X[Ee]=P+"Hours",X[wt]=P+"Minutes",X[We]=P+"Seconds",X[_t]=P+"Milliseconds",X)[ce],at=ce===Dt?this.$D+(O-this.$W):O;if(ce===Lt||ce===he){var it=this.clone().set(dt,1);it.$d[Ze](at),it.init(),this.$d=it.set(dt,Math.min(this.$D,it.daysInMonth())).$d}else Ze&&this.$d[Ze](at);return this.init(),this},J.set=function(B,O){return this.clone().$set(B,O)},J.get=function(B){return this[Y.p(B)]()},J.add=function(B,O){var X,ce=this;B=Number(B);var P=Y.p(O),Ze=function(Et){var tn=rt(ce);return Y.w(tn.date(tn.date()+Math.round(Et*B)),ce)};if(P===Lt)return this.set(Lt,this.$M+B);if(P===he)return this.set(he,this.$y+B);if(P===Dt)return Ze(1);if(P===Ft)return Ze(7);var at=(X={},X[wt]=6e4,X[Ee]=36e5,X[We]=1e3,X)[P]||1,it=this.$d.getTime()+B*at;return Y.w(it,this)},J.subtract=function(B,O){return this.add(-1*B,O)},J.format=function(B){var O=this;if(!this.isValid())return"Invalid Date";var X=B||"YYYY-MM-DDTHH:mm:ssZ",ce=Y.z(this),P=this.$locale(),Ze=this.$H,at=this.$m,it=this.$M,Et=P.weekdays,tn=P.months,nn=function(xt,lt,Kn,ui){return xt&&(xt[lt]||xt(O,X))||Kn[lt].substr(0,ui)},Yn=function(xt){return Y.s(Ze%12||12,xt,"0")},qn=P.meridiem||function(xt,lt,Kn){var ui=xt<12?"AM":"PM";return Kn?ui.toLowerCase():ui},He={YY:String(this.$y).slice(-2),YYYY:this.$y,M:it+1,MM:Y.s(it+1,2,"0"),MMM:nn(P.monthsShort,it,tn,3),MMMM:nn(tn,it),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:nn(P.weekdaysMin,this.$W,Et,2),ddd:nn(P.weekdaysShort,this.$W,Et,3),dddd:Et[this.$W],H:String(Ze),HH:Y.s(Ze,2,"0"),h:Yn(1),hh:Yn(2),a:qn(Ze,at,!0),A:qn(Ze,at,!1),m:String(at),mm:Y.s(at,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:ce};return X.replace(V,function(xt,lt){return lt||He[xt]||ce.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(B,O,X){var ce,P=Y.p(O),Ze=rt(B),at=6e4*(Ze.utcOffset()-this.utcOffset()),it=this-Ze,Et=Y.m(this,Ze);return Et=(ce={},ce[he]=Et/12,ce[Lt]=Et,ce[ee]=Et/3,ce[Ft]=(it-at)/6048e5,ce[Dt]=(it-at)/864e5,ce[Ee]=it/36e5,ce[wt]=it/6e4,ce[We]=it/1e3,ce)[P]||it,X?Et:Y.a(Et)},J.daysInMonth=function(){return this.endOf(Lt).$D},J.$locale=function(){return Ne[this.$L]},J.locale=function(B,O){if(!B)return this.$L;var X=this.clone(),ce=Yt(B,O,!0);return ce&&(X.$L=ce),X},J.clone=function(){return Y.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},re}(),zn=$t.prototype;return rt.prototype=zn,[["$ms",_t],["$s",We],["$m",wt],["$H",Ee],["$W",Dt],["$M",Lt],["$y",he],["$D",dt]].forEach(function(re){zn[re[1]]=function(J){return this.$g(J,re[0],re[1])}}),rt.extend=function(re,J){return re(J,$t,rt),rt},rt.locale=Yt,rt.isDayjs=Ct,rt.unix=function(re){return rt(1e3*re)},rt.en=Ne[Qe],rt.Ls=Ne,rt.p={},rt}()},274:function(Wt){Wt.exports=function(){"use strict";var _t,We={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ee=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Dt=/\d\d/,Ft=/\d\d?/,Lt=/\d*[^\s\d-:/()]+/,ee=function(me){return function(we){this[me]=+we}},he=[/[+-]\d\d:?\d\d/,function(me){var we,Qe;(this.zone||(this.zone={})).offset=0==(Qe=60*(we=me.match(/([+-]|\d\d)/g))[1]+ +we[2])?0:"+"===we[0]?-Qe:Qe}],dt=function(me){var we=_t[me];return we&&(we.indexOf?we:we.s.concat(we.f))},_e=function(me,we){var Qe,Ne=_t.meridiem;if(Ne){for(var Ct=1;Ct<=24;Ct+=1)if(me.indexOf(Ne(Ct,0,we))>-1){Qe=Ct>12;break}}else Qe=me===(we?"pm":"PM");return Qe},V={A:[Lt,function(me){this.afternoon=_e(me,!1)}],a:[Lt,function(me){this.afternoon=_e(me,!0)}],S:[/\d/,function(me){this.milliseconds=100*+me}],SS:[Dt,function(me){this.milliseconds=10*+me}],SSS:[/\d{3}/,function(me){this.milliseconds=+me}],s:[Ft,ee("seconds")],ss:[Ft,ee("seconds")],m:[Ft,ee("minutes")],mm:[Ft,ee("minutes")],H:[Ft,ee("hours")],h:[Ft,ee("hours")],HH:[Ft,ee("hours")],hh:[Ft,ee("hours")],D:[Ft,ee("day")],DD:[Dt,ee("day")],Do:[Lt,function(me){var we=_t.ordinal,Qe=me.match(/\d+/);if(this.day=Qe[0],we)for(var Ne=1;Ne<=31;Ne+=1)we(Ne).replace(/\[|\]/g,"")===me&&(this.day=Ne)}],M:[Ft,ee("month")],MM:[Dt,ee("month")],MMM:[Lt,function(me){var we=dt("months"),Qe=(dt("monthsShort")||we.map(function(Ne){return Ne.substr(0,3)})).indexOf(me)+1;if(Qe<1)throw new Error;this.month=Qe%12||Qe}],MMMM:[Lt,function(me){var we=dt("months").indexOf(me)+1;if(we<1)throw new Error;this.month=we%12||we}],Y:[/[+-]?\d+/,ee("year")],YY:[Dt,function(me){this.year=(me=+me)+(me>68?1900:2e3)}],YYYY:[/\d{4}/,ee("year")],Z:he,ZZ:he},Be=function(me,we,Qe){try{var Ne=function(Et){for(var tn=(Et=function(me,we){return me.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Qe,Ne,Ct){var Yt=Ct&&Ct.toUpperCase();return Ne||we[Ct]||We[Ct]||we[Yt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(rt,Y,$t){return Y||$t.slice(1)})})}(Et,_t&&_t.formats)).match(Ee),nn=tn.length,Yn=0;Yn<nn;Yn+=1){var qn=tn[Yn],He=V[qn],lt=He&&He[1];tn[Yn]=lt?{regex:He&&He[0],parser:lt}:qn.replace(/^\[|\]$/g,"")}return function(Kn){for(var ui={},yn=0,di=0;yn<nn;yn+=1){var dr=tn[yn];if("string"==typeof dr)di+=dr.length;else{var Ls=dr.regex,In=dr.parser,Xn=Kn.substr(di),hr=Ls.exec(Xn)[0];In.call(ui,hr),Kn=Kn.replace(hr,"")}}return function(Qn){var m=Qn.afternoon;if(void 0!==m){var C=Qn.hours;m?C<12&&(Qn.hours+=12):12===C&&(Qn.hours=0),delete Qn.afternoon}}(ui),ui}}(we)(me),Ct=Ne.year,Yt=Ne.month,rt=Ne.day,Y=Ne.hours,$t=Ne.minutes,zn=Ne.seconds,re=Ne.milliseconds,J=Ne.zone,B=new Date,O=rt||(Ct||Yt?1:B.getDate()),X=Ct||B.getFullYear(),ce=0;Ct&&!Yt||(ce=Yt>0?Yt-1:B.getMonth());var P=Y||0,Ze=$t||0,at=zn||0,it=re||0;return J?new Date(Date.UTC(X,ce,O,P,Ze,at,it+60*J.offset*1e3)):Qe?new Date(Date.UTC(X,ce,O,P,Ze,at,it)):new Date(X,ce,O,P,Ze,at,it)}catch(Et){return new Date("")}};return function(me,we,Qe){Qe.p.customParseFormat=!0;var Ne=we.prototype,Ct=Ne.parse;Ne.parse=function(Yt){var rt=Yt.date,Y=Yt.utc,$t=Yt.args;this.$u=Y;var zn=$t[1];if("string"==typeof zn){var re=!0===$t[2],J=!0===$t[3],B=re||J,O=$t[2];J&&(O=$t[2]),re||(_t=O?Qe.Ls[O]:this.$locale()),this.$d=Be(rt,zn,Y),this.init(),O&&!0!==O&&(this.$L=this.locale(O).$L),B&&rt!==this.format(zn)&&(this.$d=new Date("")),_t=void 0}else if(zn instanceof Array)for(var X=zn.length,ce=1;ce<=X;ce+=1){$t[1]=zn[ce-1];var P=Qe.apply(this,$t);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}ce===X&&(this.$d=new Date(""))}else Ct.call(this,Yt)}}}()},268:function(Wt){Wt.exports=function(){"use strict";return function(_t,We,wt){var Ee=We.prototype;wt.utc=function(_e){return new We({date:_e,utc:!0,args:arguments})},Ee.utc=function(_e){var V=wt(this.toDate(),{locale:this.$L,utc:!0});return _e?V.add(this.utcOffset(),"minute"):V},Ee.local=function(){return wt(this.toDate(),{locale:this.$L,utc:!1})};var Dt=Ee.parse;Ee.parse=function(_e){_e.utc&&(this.$u=!0),this.$utils().u(_e.$offset)||(this.$offset=_e.$offset),Dt.call(this,_e)};var Ft=Ee.init;Ee.init=function(){if(this.$u){var _e=this.$d;this.$y=_e.getUTCFullYear(),this.$M=_e.getUTCMonth(),this.$D=_e.getUTCDate(),this.$W=_e.getUTCDay(),this.$H=_e.getUTCHours(),this.$m=_e.getUTCMinutes(),this.$s=_e.getUTCSeconds(),this.$ms=_e.getUTCMilliseconds()}else Ft.call(this)};var Lt=Ee.utcOffset;Ee.utcOffset=function(_e,V){var Be=this.$utils().u;if(Be(_e))return this.$u?0:Be(this.$offset)?Lt.call(this):this.$offset;var me=Math.abs(_e)<=16?60*_e:_e,we=this;if(V)return we.$offset=me,we.$u=0===_e,we;if(0!==_e){var Qe=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(we=this.local().add(me+Qe,"minute")).$offset=me,we.$x.$localOffset=Qe}else we=this.utc();return we};var ee=Ee.format;Ee.format=function(_e){return ee.call(this,_e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},Ee.valueOf=function(){var _e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*_e},Ee.isUTC=function(){return!!this.$u},Ee.toISOString=function(){return this.toDate().toISOString()},Ee.toString=function(){return this.toDate().toUTCString()};var he=Ee.toDate;Ee.toDate=function(_e){return"s"===_e&&this.$offset?wt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():he.call(this)};var dt=Ee.diff;Ee.diff=function(_e,V,Be){if(this.$u===_e.$u)return dt.call(this,_e,V,Be);var me=this.local(),we=wt(_e).local();return dt.call(me,we,V,Be)}}}()},23:(Wt,_t,We)=>{var wt;!function(Ee){var Dt=/^\s+/,Ft=/\s+$/,Lt=0,ee=Ee.round,he=Ee.min,dt=Ee.max,_e=Ee.random;function V(m,C){if(C=C||{},(m=m||"")instanceof V)return m;if(!(this instanceof V))return new V(m,C);var y=function Be(m){var C={r:0,g:0,b:0},y=1,F=null,$=null,q=null,Je=!1,St=!1;return"string"==typeof m&&(m=function hr(m){m=m.replace(Dt,"").replace(Ft,"").toLowerCase();var y,C=!1;if(tn[m])m=tn[m],C=!0;else if("transparent"==m)return{r:0,g:0,b:0,a:0,format:"name"};return(y=In.rgb.exec(m))?{r:y[1],g:y[2],b:y[3]}:(y=In.rgba.exec(m))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=In.hsl.exec(m))?{h:y[1],s:y[2],l:y[3]}:(y=In.hsla.exec(m))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=In.hsv.exec(m))?{h:y[1],s:y[2],v:y[3]}:(y=In.hsva.exec(m))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=In.hex8.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),a:Ls(y[4]),format:C?"name":"hex8"}:(y=In.hex6.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),format:C?"name":"hex"}:(y=In.hex4.exec(m))?{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),a:Ls(y[4]+""+y[4]),format:C?"name":"hex8"}:!!(y=In.hex3.exec(m))&&{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),format:C?"name":"hex"}}(m)),"object"==typeof m&&(Xn(m.r)&&Xn(m.g)&&Xn(m.b)?(C=function me(m,C,y){return{r:255*He(m,255),g:255*He(C,255),b:255*He(y,255)}}(m.r,m.g,m.b),Je=!0,St="%"===String(m.r).substr(-1)?"prgb":"rgb"):Xn(m.h)&&Xn(m.s)&&Xn(m.v)?(F=di(m.s),$=di(m.v),C=function Ct(m,C,y){m=6*He(m,360),C=He(C,100),y=He(y,100);var F=Ee.floor(m),$=m-F,q=y*(1-C),Je=y*(1-$*C),St=y*(1-(1-$)*C),Mt=F%6;return{r:255*[y,Je,q,q,St,y][Mt],g:255*[St,y,y,Je,q,q][Mt],b:255*[q,q,St,y,y,Je][Mt]}}(m.h,F,$),Je=!0,St="hsv"):Xn(m.h)&&Xn(m.s)&&Xn(m.l)&&(F=di(m.s),q=di(m.l),C=function Qe(m,C,y){var F,$,q;function Je(xn,qt,Gn){return Gn<0&&(Gn+=1),Gn>1&&(Gn-=1),Gn<.16666666666666666?xn+6*(qt-xn)*Gn:Gn<.5?qt:Gn<.6666666666666666?xn+(qt-xn)*(.6666666666666666-Gn)*6:xn}if(m=He(m,360),C=He(C,100),y=He(y,100),0===C)F=$=q=y;else{var St=y<.5?y*(1+C):y+C-y*C,Mt=2*y-St;F=Je(Mt,St,m+.3333333333333333),$=Je(Mt,St,m),q=Je(Mt,St,m-.3333333333333333)}return{r:255*F,g:255*$,b:255*q}}(m.h,F,q),Je=!0,St="hsl"),m.hasOwnProperty("a")&&(y=m.a)),y=qn(y),{ok:Je,format:m.format||St,r:he(255,dt(C.r,0)),g:he(255,dt(C.g,0)),b:he(255,dt(C.b,0)),a:y}}(m);this._originalInput=m,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=ee(100*this._a)/100,this._format=C.format||y.format,this._gradientType=C.gradientType,this._r<1&&(this._r=ee(this._r)),this._g<1&&(this._g=ee(this._g)),this._b<1&&(this._b=ee(this._b)),this._ok=y.ok,this._tc_id=Lt++}function we(m,C,y){m=He(m,255),C=He(C,255),y=He(y,255);var q,Je,F=dt(m,C,y),$=he(m,C,y),St=(F+$)/2;if(F==$)q=Je=0;else{var Mt=F-$;switch(Je=St>.5?Mt/(2-F-$):Mt/(F+$),F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:Je,l:St}}function Ne(m,C,y){m=He(m,255),C=He(C,255),y=He(y,255);var q,Je,F=dt(m,C,y),$=he(m,C,y),St=F,Mt=F-$;if(Je=0===F?0:Mt/F,F==$)q=0;else{switch(F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:Je,v:St}}function Yt(m,C,y,F){var $=[yn(ee(m).toString(16)),yn(ee(C).toString(16)),yn(ee(y).toString(16))];return F&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function Y(m,C,y,F){return[yn(dr(F)),yn(ee(m).toString(16)),yn(ee(C).toString(16)),yn(ee(y).toString(16))].join("")}function $t(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s-=C/100,y.s=xt(y.s),V(y)}function zn(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s+=C/100,y.s=xt(y.s),V(y)}function re(m){return V(m).desaturate(100)}function J(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l+=C/100,y.l=xt(y.l),V(y)}function B(m,C){C=0===C?0:C||10;var y=V(m).toRgb();return y.r=dt(0,he(255,y.r-ee(-C/100*255))),y.g=dt(0,he(255,y.g-ee(-C/100*255))),y.b=dt(0,he(255,y.b-ee(-C/100*255))),V(y)}function O(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l-=C/100,y.l=xt(y.l),V(y)}function X(m,C){var y=V(m).toHsl(),F=(y.h+C)%360;return y.h=F<0?360+F:F,V(y)}function ce(m){var C=V(m).toHsl();return C.h=(C.h+180)%360,V(C)}function P(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+120)%360,s:C.s,l:C.l}),V({h:(y+240)%360,s:C.s,l:C.l})]}function Ze(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+90)%360,s:C.s,l:C.l}),V({h:(y+180)%360,s:C.s,l:C.l}),V({h:(y+270)%360,s:C.s,l:C.l})]}function at(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+72)%360,s:C.s,l:C.l}),V({h:(y+216)%360,s:C.s,l:C.l})]}function it(m,C,y){C=C||6,y=y||30;var F=V(m).toHsl(),$=360/y,q=[V(m)];for(F.h=(F.h-($*C>>1)+720)%360;--C;)F.h=(F.h+$)%360,q.push(V(F));return q}function Et(m,C){C=C||6;for(var y=V(m).toHsv(),F=y.h,$=y.s,q=y.v,Je=[],St=1/C;C--;)Je.push(V({h:F,s:$,v:q})),q=(q+St)%1;return Je}V.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var m=this.toRgb();return(299*m.r+587*m.g+114*m.b)/1e3},getLuminance:function(){var C,y,F,m=this.toRgb();return y=m.g/255,F=m.b/255,.2126*((C=m.r/255)<=.03928?C/12.92:Ee.pow((C+.055)/1.055,2.4))+.7152*(y<=.03928?y/12.92:Ee.pow((y+.055)/1.055,2.4))+.0722*(F<=.03928?F/12.92:Ee.pow((F+.055)/1.055,2.4))},setAlpha:function(m){return this._a=qn(m),this._roundA=ee(100*this._a)/100,this},toHsv:function(){var m=Ne(this._r,this._g,this._b);return{h:360*m.h,s:m.s,v:m.v,a:this._a}},toHsvString:function(){var m=Ne(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.v);return 1==this._a?"hsv("+C+", "+y+"%, "+F+"%)":"hsva("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var m=we(this._r,this._g,this._b);return{h:360*m.h,s:m.s,l:m.l,a:this._a}},toHslString:function(){var m=we(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.l);return 1==this._a?"hsl("+C+", "+y+"%, "+F+"%)":"hsla("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHex:function(m){return Yt(this._r,this._g,this._b,m)},toHexString:function(m){return"#"+this.toHex(m)},toHex8:function(m){return function rt(m,C,y,F,$){var q=[yn(ee(m).toString(16)),yn(ee(C).toString(16)),yn(ee(y).toString(16)),yn(dr(F))];return $&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)&&q[3].charAt(0)==q[3].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0)+q[3].charAt(0):q.join("")}(this._r,this._g,this._b,this._a,m)},toHex8String:function(m){return"#"+this.toHex8(m)},toRgb:function(){return{r:ee(this._r),g:ee(this._g),b:ee(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+")":"rgba("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ee(100*He(this._r,255))+"%",g:ee(100*He(this._g,255))+"%",b:ee(100*He(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+ee(100*He(this._r,255))+"%, "+ee(100*He(this._g,255))+"%, "+ee(100*He(this._b,255))+"%)":"rgba("+ee(100*He(this._r,255))+"%, "+ee(100*He(this._g,255))+"%, "+ee(100*He(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(nn[Yt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(m){var C="#"+Y(this._r,this._g,this._b,this._a),y=C,F=this._gradientType?"GradientType = 1, ":"";if(m){var $=V(m);y="#"+Y($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+C+",endColorstr="+y+")"},toString:function(m){var C=!!m;m=m||this._format;var y=!1;return!C&&this._a<1&&this._a>=0&&("hex"===m||"hex6"===m||"hex3"===m||"hex4"===m||"hex8"===m||"name"===m)?"name"===m&&0===this._a?this.toName():this.toRgbString():("rgb"===m&&(y=this.toRgbString()),"prgb"===m&&(y=this.toPercentageRgbString()),("hex"===m||"hex6"===m)&&(y=this.toHexString()),"hex3"===m&&(y=this.toHexString(!0)),"hex4"===m&&(y=this.toHex8String(!0)),"hex8"===m&&(y=this.toHex8String()),"name"===m&&(y=this.toName()),"hsl"===m&&(y=this.toHslString()),"hsv"===m&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return V(this.toString())},_applyModification:function(m,C){var y=m.apply(null,[this].concat([].slice.call(C)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(J,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification($t,arguments)},saturate:function(){return this._applyModification(zn,arguments)},greyscale:function(){return this._applyModification(re,arguments)},spin:function(){return this._applyModification(X,arguments)},_applyCombination:function(m,C){return m.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(it,arguments)},complement:function(){return this._applyCombination(ce,arguments)},monochromatic:function(){return this._applyCombination(Et,arguments)},splitcomplement:function(){return this._applyCombination(at,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(Ze,arguments)}},V.fromRatio=function(m,C){if("object"==typeof m){var y={};for(var F in m)m.hasOwnProperty(F)&&(y[F]="a"===F?m[F]:di(m[F]));m=y}return V(m,C)},V.equals=function(m,C){return!(!m||!C)&&V(m).toRgbString()==V(C).toRgbString()},V.random=function(){return V.fromRatio({r:_e(),g:_e(),b:_e()})},V.mix=function(m,C,y){y=0===y?0:y||50;var F=V(m).toRgb(),$=V(C).toRgb(),q=y/100;return V({r:($.r-F.r)*q+F.r,g:($.g-F.g)*q+F.g,b:($.b-F.b)*q+F.b,a:($.a-F.a)*q+F.a})},V.readability=function(m,C){var y=V(m),F=V(C);return(Ee.max(y.getLuminance(),F.getLuminance())+.05)/(Ee.min(y.getLuminance(),F.getLuminance())+.05)},V.isReadable=function(m,C,y){var $,q,F=V.readability(m,C);switch(q=!1,$=function Qn(m){var C,y;return"AA"!==(C=((m=m||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==C&&(C="AA"),"small"!==(y=(m.size||"small").toLowerCase())&&"large"!==y&&(y="small"),{level:C,size:y}}(y),$.level+$.size){case"AAsmall":case"AAAlarge":q=F>=4.5;break;case"AAlarge":q=F>=3;break;case"AAAsmall":q=F>=7}return q},V.mostReadable=function(m,C,y){var q,Je,St,Mt,F=null,$=0;Je=(y=y||{}).includeFallbackColors,St=y.level,Mt=y.size;for(var xn=0;xn<C.length;xn++)(q=V.readability(m,C[xn]))>$&&($=q,F=V(C[xn]));return V.isReadable(m,F,{level:St,size:Mt})||!Je?F:(y.includeFallbackColors=!1,V.mostReadable(m,["#fff","#000"],y))};var tn=V.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nn=V.hexNames=function Yn(m){var C={};for(var y in m)m.hasOwnProperty(y)&&(C[m[y]]=y);return C}(tn);function qn(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}function He(m,C){(function Kn(m){return"string"==typeof m&&-1!=m.indexOf(".")&&1===parseFloat(m)})(m)&&(m="100%");var y=function ui(m){return"string"==typeof m&&-1!=m.indexOf("%")}(m);return m=he(C,dt(0,parseFloat(m))),y&&(m=parseInt(m*C,10)/100),Ee.abs(m-C)<1e-6?1:m%C/parseFloat(C)}function xt(m){return he(1,dt(0,m))}function lt(m){return parseInt(m,16)}function yn(m){return 1==m.length?"0"+m:""+m}function di(m){return m<=1&&(m=100*m+"%"),m}function dr(m){return Ee.round(255*parseFloat(m)).toString(16)}function Ls(m){return lt(m)/255}var y,F,$,In=(F="[\\s|\\(]+("+(y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",$="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Xn(m){return!!In.CSS_UNIT.exec(m)}Wt.exports?Wt.exports=V:void 0!==(wt=function(){return V}.call(_t,We,_t,Wt))&&(Wt.exports=wt)}(Math)}},qg={};function qo(Wt){var _t=qg[Wt];if(void 0!==_t)return _t.exports;var We=qg[Wt]={exports:{}};return Zx[Wt].call(We.exports,We,We.exports,qo),We.exports}(()=>{"use strict";function Wt(n){return"function"==typeof n}let _t=!1;const We={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else _t&&console.log("RxJS: Back to a better error behavior. Thank you. <3");_t=n},get useDeprecatedSynchronousErrorHandling(){return _t}};function wt(n){setTimeout(()=>{throw n},0)}const Ee={closed:!0,next(n){},error(n){if(We.useDeprecatedSynchronousErrorHandling)throw n;wt(n)},complete(){}},Dt=Array.isArray||(n=>n&&"number"==typeof n.length);function Ft(n){return null!==n&&"object"==typeof n}const ee=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class he{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof he)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Wt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof ee?dt(o.errors):[o]}}if(Dt(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ft(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof ee?t=t.concat(dt(c.errors)):t.push(c)}}}if(t)throw new ee(t)}add(t){let e=t;if(!t)return he.EMPTY;switch(typeof t){case"function":e=new he(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof he)){const s=e;e=new he,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof he){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function dt(n){return n.reduce((t,e)=>t.concat(e instanceof ee?e.errors:e),[])}he.EMPTY=((n=new he).closed=!0,n);const _e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Be extends he{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ee;break;case 1:if(!t){this.destination=Ee;break}if("object"==typeof t){t instanceof Be?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new me(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new me(this,t,e,i)}}[_e](){return this}static create(t,e,i){const r=new Be(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class me extends Be{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;Wt(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Ee&&(o=Object.create(e),Wt(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;We.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=We;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):wt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;wt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);We.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),We.useDeprecatedSynchronousErrorHandling)throw i;wt(i)}}__tryOrSetError(t,e,i){if(!We.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return We.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(wt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ct(n){return n}let Y=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function Qe(n,t,e){if(n){if(n instanceof Be)return n;if(n[_e])return n[_e]()}return n||t||e?new Be(n,t,e):new Be(Ee)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||We.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),We.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){We.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function we(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Be?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=$t(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ne](){return this}pipe(...e){return 0===e.length?this:function rt(n){return 0===n.length?Ct:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=$t(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function $t(n){if(n||(n=We.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const re=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class J extends he{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class B extends Be{constructor(t){super(t),this.destination=t}}let O=(()=>{class n extends Y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_e](){return new B(this)}lift(e){const i=new X(this,this);return i.operator=e,i}next(e){if(this.closed)throw new re;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new re;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new re;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new re;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new re;return this.hasError?(e.error(this.thrownError),he.EMPTY):this.isStopped?(e.complete(),he.EMPTY):(this.observers.push(e),new J(this,e))}asObservable(){const e=new Y;return e.source=this,e}}return n.create=(t,e)=>new X(t,e),n})();class X extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):he.EMPTY}}function ce(n){return n&&"function"==typeof n.schedule}function P(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Ze(n,t))}}class Ze{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new at(t,this.project,this.thisArg))}}class at extends Be{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const it=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},nn=function tn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),xt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function lt(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Kn=n=>{if(n&&"function"==typeof n[Ne])return(n=>t=>{const e=n[Ne]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(xt(n))return it(n);if(lt(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,wt),t))(n);if(n&&"function"==typeof n[nn])return(n=>t=>{const e=n[nn]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ft(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function di(n,t){return new Y(e=>{const i=new he;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function hr(n,t){return t?function Xn(n,t){if(null!=n){if(function Ls(n){return n&&"function"==typeof n[Ne]}(n))return function ui(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>{const r=n[Ne]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(lt(n))return function yn(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(xt(n))return di(n,t);if(function In(n){return n&&"function"==typeof n[nn]}(n)||"string"==typeof n)return function dr(n,t){if(!n)throw new Error("Iterable cannot be null");return new Y(e=>{const i=new he;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[nn](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Y?n:new Y(Kn(n))}class Qn extends Be{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends Be{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function F(n,t){if(!t.closed)return n instanceof Y?n.subscribe(t):Kn(n)(t)}function $(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe($((r,s)=>hr(n(r,s)).pipe(P((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new q(n,e)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Je(t,this.project,this.concurrent))}}class Je extends C{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new Qn(this),i=this.destination;i.add(e);const r=F(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Mt(n=Number.POSITIVE_INFINITY){return $(Ct,n)}function xn(n,t){return t?di(n,t):new Y(it(n))}function qt(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ce(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Y?n[0]:Mt(t)(xn(n,e))}function Gn(){return function(t){return t.lift(new Jx(t))}}class Jx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new eS(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class eS extends Be{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class tS extends Y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new he,t.add(this.source.subscribe(new iS(this.getSubject(),this))),t.closed&&(this._connection=null,t=he.EMPTY)),t}refCount(){return Gn()(this)}}const nS=(()=>{const n=tS.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class iS extends B{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class oS{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function aS(){return new O}function Ai(){return n=>Gn()(function sS(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new oS(r,t));const s=Object.create(i,nS);return s.source=i,s.subjectFactory=r,s}}(aS)(n))}function ht(n){for(let t in n)if(n[t]===ht)return t;throw Error("Could not find renamed property on target object.")}function Xu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function st(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(st).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Qu(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const lS=ht({__forward_ref__:ht});function gt(n){return n.__forward_ref__=gt,n.toString=function(){return st(this())},n}function Re(n){return Kg(n)?n():n}function Kg(n){return"function"==typeof n&&n.hasOwnProperty(lS)&&n.__forward_ref__===gt}class K extends Error{constructor(t,e){super(function Zu(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function xe(n){return"string"==typeof n?n:null==n?"":String(n)}function vn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():xe(n)}function gl(n,t){const e=t?` in ${t}`:"";throw new K(-201,`No provider for ${vn(n)} found${e}`)}function Jn(n,t){null==n&&function ot(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function R(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const fS=R;function qe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ju(n){return Xg(n,ml)||Xg(n,Zg)}function Xg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Qg(n){return n&&(n.hasOwnProperty(ed)||n.hasOwnProperty(mS))?n[ed]:null}const ml=ht({\u0275prov:ht}),ed=ht({\u0275inj:ht}),Zg=ht({ngInjectableDef:ht}),mS=ht({ngInjectorDef:ht});var Te=(()=>((Te=Te||{})[Te.Default=0]="Default",Te[Te.Host=1]="Host",Te[Te.Self=2]="Self",Te[Te.SkipSelf=4]="SkipSelf",Te[Te.Optional=8]="Optional",Te))();let td;function Ar(n){const t=td;return td=n,t}function Jg(n,t,e){const i=Ju(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Te.Optional?null:void 0!==t?t:void gl(st(n),"Injector")}function Tr(n){return{toString:n}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),ki=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ki||(ki={})),ki))();const vS="undefined"!=typeof globalThis&&globalThis,_S="undefined"!=typeof window&&window,wS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ct=vS||"undefined"!=typeof global&&global||_S||wS,Vs={},ft=[],yl=ht({\u0275cmp:ht}),nd=ht({\u0275dir:ht}),id=ht({\u0275pipe:ht}),em=ht({\u0275mod:ht}),pr=ht({\u0275fac:ht}),Ko=ht({__NG_ELEMENT_ID__:ht});let bS=0;function rn(n){return Tr(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ft,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ki.Emulated,id:"c",styles:n.styles||ft,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=bS++,i.inputs=rm(n.inputs,e),i.outputs=rm(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(tm):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(nm):null,i})}function tm(n){return wn(n)||function kr(n){return n[nd]||null}(n)}function nm(n){return function ts(n){return n[id]||null}(n)}const im={};function et(n){return Tr(()=>{const t={type:n.type,bootstrap:n.bootstrap||ft,declarations:n.declarations||ft,imports:n.imports||ft,exports:n.exports||ft,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(im[n.id]=n.type),t})}function rm(n,t){if(null==n)return Vs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const T=rn;function _n(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function wn(n){return n[yl]||null}function hi(n,t){const e=n[em]||null;if(!e&&!0===t)throw new Error(`Type ${st(n)} does not have '\u0275mod' property.`);return e}function Ki(n){return Array.isArray(n)&&"object"==typeof n[1]}function Oi(n){return Array.isArray(n)&&!0===n[1]}function od(n){return 0!=(8&n.flags)}function bl(n){return 2==(2&n.flags)}function Dl(n){return 1==(1&n.flags)}function Fi(n){return null!==n.template}function MS(n){return 0!=(512&n[2])}function ss(n,t){return n.hasOwnProperty(pr)?n[pr]:null}class om{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function hn(){return am}function am(n){return n.type.prototype.ngOnChanges&&(n.setInput=IS),kS}function kS(){const n=cm(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Vs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function IS(n,t,e,i){const r=cm(n)||function OS(n,t){return n[lm]=t}(n,{previous:Vs,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new om(l&&l.currentValue,t,o===Vs),n[i]=t}hn.ngInherit=!0;const lm="__ngSimpleChanges__";function cm(n){return n[lm]||null}let dd;function hd(){return void 0!==dd?dd:"undefined"!=typeof document?document:void 0}function Bt(n){return!!n.listen}const um={createRenderer:(n,t)=>hd()};function Kt(n){for(;Array.isArray(n);)n=n[0];return n}function Cl(n,t){return Kt(t[n])}function ti(n,t){return Kt(t[n.index])}function fd(n,t){return n.data[t]}function zs(n,t){return n[t]}function ni(n,t){const e=t[n];return Ki(e)?e:e[0]}function dm(n){return 4==(4&n[2])}function pd(n){return 128==(128&n[2])}function Ir(n,t){return null==t?null:n[t]}function hm(n){n[18]=0}function gd(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Se={lFrame:bm(null),bindingsEnabled:!0};function pm(){return Se.bindingsEnabled}function k(){return Se.lFrame.lView}function Ke(){return Se.lFrame.tView}function ke(n){return Se.lFrame.contextLView=n,n[8]}function sn(){let n=gm();for(;null!==n&&64===n.type;)n=n.parent;return n}function gm(){return Se.lFrame.currentTNode}function Xi(n,t){const e=Se.lFrame;e.currentTNode=n,e.isParent=t}function md(){return Se.lFrame.isParent}function yd(){Se.lFrame.isParent=!1}function Fn(){const n=Se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Gs(){return Se.lFrame.bindingIndex++}function KS(n,t){const e=Se.lFrame;e.bindingIndex=e.bindingRootIndex=n,vd(t)}function vd(n){Se.lFrame.currentDirectiveIndex=n}function vm(){return Se.lFrame.currentQueryIndex}function wd(n){Se.lFrame.currentQueryIndex=n}function QS(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function _m(n,t,e){if(e&Te.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&Te.Host||(r=QS(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=Se.lFrame=wm();return i.currentTNode=t,i.lView=n,!0}function xl(n){const t=wm(),e=n[1];Se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function wm(){const n=Se.lFrame,t=null===n?null:n.child;return null===t?bm(n):t}function bm(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Dm(){const n=Se.lFrame;return Se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Cm=Dm;function Sl(){const n=Dm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Rn(){return Se.lFrame.selectedIndex}function Or(n){Se.lFrame.selectedIndex=n}function Rt(){const n=Se.lFrame;return fd(n.tView,n.selectedIndex)}function Ml(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Al(n,t,e){Em(n,t,3,e)}function Tl(n,t,e,i){(3&n[2])===e&&Em(n,t,e,i)}function bd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Em(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(oM(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function oM(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ea{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function kl(n,t,e){const i=Bt(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Cd(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function xm(n){return 3===n||4===n||6===n}function Cd(n){return 64===n.charCodeAt(0)}function Il(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Sm(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Sm(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Mm(n){return-1!==n}function Us(n){return 32767&n}function Ws(n,t){let e=function dM(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ed=!0;function Ol(n){const t=Ed;return Ed=n,t}let hM=0;function na(n,t){const e=Sd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,xd(i.data,n),xd(t,null),xd(i.blueprint,null));const r=Fl(n,t),s=n.injectorIndex;if(Mm(r)){const o=Us(r),a=Ws(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function xd(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Sd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Fl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Rl(n,t,e){!function fM(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ko)&&(i=e[Ko]),null==i&&(i=e[Ko]=hM++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function km(n,t,e){if(e&Te.Optional)return n;gl(t,"NodeInjector")}function Im(n,t,e,i){if(e&Te.Optional&&void 0===i&&(i=null),0==(e&(Te.Self|Te.Host))){const r=n[9],s=Ar(void 0);try{return r?r.get(t,i,e&Te.Optional):Jg(t,i,e&Te.Optional)}finally{Ar(s)}}return km(i,t,e)}function Om(n,t,e,i=Te.Default,r){if(null!==n){const s=function yM(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Ko)?n[Ko]:void 0;return"number"==typeof t?t>=0?255&t:gM:t}(e);if("function"==typeof s){if(!_m(t,n,i))return i&Te.Host?km(r,e,i):Im(t,e,i,r);try{const o=s(i);if(null!=o||i&Te.Optional)return o;gl(e)}finally{Cm()}}else if("number"==typeof s){let o=null,a=Sd(n,t),l=-1,c=i&Te.Host?t[16][6]:null;for((-1===a||i&Te.SkipSelf)&&(l=-1===a?Fl(n,t):t[a+8],-1!==l&&Pm(i,!1)?(o=t[1],a=Us(l),t=Ws(l,t)):a=-1);-1!==a;){const u=t[1];if(Rm(s,a,u.data)){const d=mM(a,t,e,o,i,c);if(d!==Fm)return d}l=t[a+8],-1!==l&&Pm(i,t[1].data[a+8]===c)&&Rm(s,a,t)?(o=u,a=Us(l),t=Ws(l,t)):a=-1}}}return Im(t,e,i,r)}const Fm={};function gM(){return new Ys(sn(),k())}function mM(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Pl(a,o,e,null==i?bl(a)&&Ed:i!=o&&0!=(3&a.type),r&Te.Host&&s===a);return null!==u?ia(t,o,u,a):Fm}function Pl(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&Fi(f)&&f.type===e)return l}return null}function ia(n,t,e,i){let r=n[e];const s=t.data;if(function aM(n){return n instanceof ea}(r)){const o=r;o.resolving&&function cS(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new K(-200,`Circular dependency in DI detected for ${n}${e}`)}(vn(s[e]));const a=Ol(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ar(o.injectImpl):null;_m(n,i,Te.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function sM(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=am(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Ar(l),Ol(a),o.resolving=!1,Cm()}}return r}function Rm(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Pm(n,t){return!(n&Te.Self||n&Te.Host&&t)}class Ys{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Om(this._tNode,this._lView,t,i,e)}}function se(n){return Tr(()=>{const t=n.prototype.constructor,e=t[pr]||Md(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[pr]||Md(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Md(n){return Kg(n)?()=>{const t=Md(Re(n));return t&&t()}:ss(n)}const Ks="__parameters__",Xs="__prop__metadata__";function Ad(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}function Qs(n,t,e){return Tr(()=>{const i=Ad(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Ks)?l[Ks]:Object.defineProperty(l,Ks,{value:[]})[Ks];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}function Td(n,t,e,i){return Tr(()=>{const r=Ad(t);function s(...o){if(this instanceof s)return r.apply(this,o),this;const a=new s(...o);return function l(c,u){const d=c.constructor,h=d.hasOwnProperty(Xs)?d[Xs]:Object.defineProperty(d,Xs,{value:{}})[Xs];h[u]=h.hasOwnProperty(u)&&h[u]||[],h[u].unshift(a),i&&i(c,u,...o)}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class ne{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function gi(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),gi(i,t)):t!==n&&t.push(i)}return t}function Qi(n,t){n.forEach(e=>Array.isArray(e)?Qi(e,t):t(e))}function Lm(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ll(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function oa(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function ii(n,t,e){let i=Zs(n,t);return i>=0?n[1|i]=e:(i=~i,function bM(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Id(n,t){const e=Zs(n,t);if(e>=0)return n[1|e]}function Zs(n,t){return function Hm(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const aa={},Fd="__NG_DI_FLAG__",Bl="ngTempTokenPath",AM=/\n/gm,$m="__source",kM=ht({provide:String,useValue:ht});let la;function zm(n){const t=la;return la=n,t}function IM(n,t=Te.Default){if(void 0===la)throw new K(203,"");return null===la?Jg(n,void 0,t):la.get(n,t&Te.Optional?null:void 0,t)}function S(n,t=Te.Default){return(function yS(){return td}()||IM)(Re(n),t)}const Js=S;function Rd(n){const t=[];for(let e=0;e<n.length;e++){const i=Re(n[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let r,s=Te.Default;for(let o=0;o<i.length;o++){const a=i[o],l=OM(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(S(r,s))}else t.push(S(i))}return t}function ca(n,t){return n[Fd]=t,n.prototype[Fd]=t,n}function OM(n){return n[Fd]}const yr=ca(Qs("Inject",n=>({token:n})),-1),os=ca(Qs("Optional"),8),ua=ca(Qs("SkipSelf"),4);var ri=(()=>((ri=ri||{})[ri.Important=1]="Important",ri[ri.DashCase=2]="DashCase",ri))();const Qm="__ngContext__";function Mn(n,t){n[Qm]=t}function Ld(n){const t=function ha(n){return n[Qm]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Bd(n,t){return undefined(n,t)}function fa(n){const t=n[3];return Oi(t)?t[3]:t}function Hd(n){return ry(n[13])}function jd(n){return ry(n[4])}function ry(n){for(;null!==n&&!Oi(n);)n=n[4];return n}function to(n,t,e,i,r){if(null!=i){let s,o=!1;Oi(i)?s=i:Ki(i)&&(o=!0,i=i[0]);const a=Kt(i);0===n&&null!==e?null==r?uy(t,e,a):as(t,e,a,r||null,!0):1===n&&null!==e?as(t,e,a,r||null,!0):2===n?function qd(n,t,e){const i=jl(n,t);i&&function cA(n,t,e,i){Bt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function hA(n,t,e,i,r){const s=e[7];s!==Kt(e)&&to(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];pa(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function zd(n,t,e){if(Bt(n))return n.createElement(t,e);{const i=null!==e?function NS(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function oy(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,gd(r,-1)),e.splice(i,1)}function Gd(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&oy(r,i),t>0&&(n[e-1][4]=i[4]);const s=Ll(n,10+t);!function tA(n,t){pa(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ay(n,t){if(!(256&t[2])){const e=t[11];Bt(e)&&e.destroyNode&&pa(n,t,e,3,null,null),function rA(n){let t=n[13];if(!t)return Ud(n[1],n);for(;t;){let e=null;if(Ki(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Ki(t)&&Ud(t[1],t),t=t[3];null===t&&(t=n),Ki(t)&&Ud(t[1],t),e=t&&t[4]}t=e}}(t)}}function Ud(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function lA(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof ea)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function aA(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Kt(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Bt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Oi(t[3])){e!==t[3]&&oy(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function ly(n,t,e){return function cy(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===ki.None||r===ki.Emulated)return null}return ti(i,e)}(n,t.parent,e)}function as(n,t,e,i,r){Bt(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function uy(n,t,e){Bt(n)?n.appendChild(t,e):t.appendChild(e)}function dy(n,t,e,i,r){null!==i?as(n,t,e,i,r):uy(n,t,e)}function jl(n,t){return Bt(n)?n.parentNode(t):t.parentNode}function hy(n,t,e){return py(n,t,e)}let Gl,Ul,py=function fy(n,t,e){return 40&n.type?ti(n,e):null};function $l(n,t,e,i){const r=ly(n,i,t),s=t[11],a=hy(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)dy(s,r,e[l],a,!1);else dy(s,r,e,a,!1)}function zl(n,t){if(null!==t){const e=t.type;if(3&e)return ti(t,n);if(4&e)return Yd(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return zl(n,i);{const r=n[t.index];return Oi(r)?Yd(-1,r):Kt(r)}}if(32&e)return Bd(t,n)()||Kt(n[t.index]);{const i=my(n,t);return null!==i?Array.isArray(i)?i[0]:zl(fa(n[16]),i):zl(n,t.next)}}return null}function my(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Yd(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return zl(i,r)}return t[7]}function Kd(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&Mn(Kt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Kd(n,t,e.child,i,r,s,!1),to(t,n,r,a,s);else if(32&l){const c=Bd(e,i);let u;for(;u=c();)to(t,n,r,u,s);to(t,n,r,a,s)}else 16&l?yy(n,t,i,e,r,s):to(t,n,r,a,s);e=o?e.projectionNext:e.next}}function pa(n,t,e,i,r,s){Kd(e,i,n.firstChild,t,r,s,!1)}function yy(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)to(t,n,r,l[c],s);else Kd(n,t,l,o[3],r,s,!0)}function vy(n,t,e){Bt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function Xd(n,t,e){Bt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function ls(n){var t;return(null===(t=function Qd(){if(void 0===Gl&&(Gl=null,ct.trustedTypes))try{Gl=ct.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Gl}())||void 0===t?void 0:t.createHTML(n))||n}function _y(n){var t;return(null===(t=function Zd(){if(void 0===Ul&&(Ul=null,ct.trustedTypes))try{Ul=ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ul}())||void 0===t?void 0:t.createHTML(n))||n}class cs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yA extends cs{getTypeName(){return"HTML"}}class vA extends cs{getTypeName(){return"Style"}}class _A extends cs{getTypeName(){return"Script"}}class wA extends cs{getTypeName(){return"URL"}}class bA extends cs{getTypeName(){return"ResourceURL"}}function si(n){return n instanceof cs?n.changingThisBreaksApplicationSecurity:n}function Zi(n,t){const e=Dy(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Dy(n){return n instanceof cs&&n.getTypeName()||null}class MA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(ls(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class AA{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ls(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ls(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const kA=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,IA=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ga(n){return(n=String(n)).match(kA)||n.match(IA)?n:"unsafe:"+n}function Ey(n){return(n=String(n)).split(",").map(t=>ga(t.trim())).join(", ")}function Ji(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function ma(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const xy=Ji("area,br,col,hr,img,wbr"),Sy=Ji("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),My=Ji("rp,rt"),Jd=ma(xy,ma(Sy,Ji("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")),ma(My,Ji("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")),ma(My,Sy)),eh=Ji("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),th=Ji("srcset"),Ay=ma(eh,th,Ji("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ji("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")),OA=Ji("script,style,template");class FA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Jd.hasOwnProperty(e))return this.sanitizedSomething=!0,!OA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Ay.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;eh[a]&&(l=ga(l)),th[a]&&(l=Ey(l)),this.buf.push(" ",o,'="',Ty(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jd.hasOwnProperty(e)&&!xy.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ty(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const RA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,PA=/([^\#-~ |!])/g;function Ty(n){return n.replace(/&/g,"&amp;").replace(RA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(PA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wl;function ky(n,t){let e=null;try{Wl=Wl||function Cy(n){const t=new AA(n);return function TA(){try{return!!(new window.DOMParser).parseFromString(ls(""),"text/html")}catch(n){return!1}}()?new MA(t):t}(n);let i=t?String(t):"";e=Wl.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=Wl.getInertBodyElement(i)}while(i!==s);return ls((new FA).sanitizeChildren(nh(e)||e))}finally{if(e){const i=nh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function nh(n){return"content"in n&&function NA(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var tt=(()=>((tt=tt||{})[tt.NONE=0]="NONE",tt[tt.HTML=1]="HTML",tt[tt.STYLE=2]="STYLE",tt[tt.SCRIPT=3]="SCRIPT",tt[tt.URL=4]="URL",tt[tt.RESOURCE_URL=5]="RESOURCE_URL",tt))();function Yl(n){const t=function ya(){const n=k();return n&&n[12]}();return t?_y(t.sanitize(tt.HTML,n)||""):Zi(n,"HTML")?_y(si(n)):ky(hd(),xe(n))}function rh(n){return n.ngOriginalError}function WA(n,...t){n.error(...t)}class Rr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function UA(n){return n&&n.ngErrorLogger||WA}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&rh(t);for(;e&&rh(e);)e=rh(e);return e||null}}const JA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ct))();function er(n){return n instanceof Function?n():n}function Ry(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Py="ng-template";function iT(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Ry(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Ny(n){return 4===n.type&&n.value!==Py}function rT(n,t,e){return t===(4!==n.type||e?n.value:Py)}function sT(n,t,e){let i=4;const r=n.attrs||[],s=function lT(n){for(let t=0;t<n.length;t++)if(xm(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!rT(n,l,e)||""===l&&1===t.length){if(Ri(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!iT(n.attrs,c,e)){if(Ri(i))return!1;o=!0}continue}const d=oT(8&i?"class":l,r,Ny(n),e);if(-1===d){if(Ri(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ry(f,c,0)||2&i&&c!==h){if(Ri(i))return!1;o=!0}}}}else{if(!o&&!Ri(i)&&!Ri(l))return!1;if(o&&Ri(l))continue;o=!1,i=l|1&i}}return Ri(i)||o}function Ri(n){return 0==(1&n)}function oT(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function cT(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Ly(n,t,e=!1){for(let i=0;i<t.length;i++)if(sT(n,t[i],e))return!0;return!1}function uT(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Vy(n,t){return n?":not("+t.trim()+")":t}function dT(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ri(o)&&(t+=Vy(s,r),r=""),i=o,s=s||!Ri(i);e++}return""!==r&&(t+=Vy(s,r)),t}const Me={};function te(n){By(Ke(),k(),Rn()+n,!1)}function By(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Al(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Tl(t,s,0,e)}Or(e)}function ql(n,t){return n<<17|t<<2}function Pi(n){return n>>17&32767}function sh(n){return 2|n}function vr(n){return(131068&n)>>2}function oh(n,t){return-131069&n|t<<2}function ah(n){return 1|n}function Xy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];wd(r),o.contentQueries(2,t[s],s)}}}function va(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,hm(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function io(n,t,e,i,r){let s=n.data[t];if(null===s)s=function mh(n,t,e,i,r){const s=gm(),o=md(),l=n.data[t]=function TT(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function qS(){return Se.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Jo(){const n=Se.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Xi(s,!0),s}function ro(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function _a(n,t,e){xl(t);try{const i=n.viewQuery;null!==i&&xh(1,i,e);const r=n.template;null!==r&&Qy(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Xy(n,t),n.staticViewQueries&&xh(2,n.viewQuery,e);const s=n.components;null!==s&&function ST(n,t){for(let e=0;e<t.length;e++)YT(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Sl()}}function so(n,t,e,i){const r=t[2];if(256!=(256&r)){xl(t);try{hm(t),function mm(n){return Se.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Qy(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Al(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Tl(t,c,0,null),bd(t,0)}if(function UT(n){for(let t=Hd(n);null!==t;t=jd(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&gd(s,1),r[2]|=1024}}}(t),function GT(n){for(let t=Hd(n);null!==t;t=jd(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];pd(i)&&so(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Xy(n,t),o){const c=n.contentCheckHooks;null!==c&&Al(t,c)}else{const c=n.contentHooks;null!==c&&Tl(t,c,1),bd(t,1)}!function ET(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Or(~r);else{const s=r,o=e[++i],a=e[++i];KS(o,s),a(2,t[s])}}}finally{Or(-1)}}(n,t);const a=n.components;null!==a&&function xT(n,t){for(let e=0;e<t.length;e++)WT(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&xh(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Al(t,c)}else{const c=n.viewHooks;null!==c&&Tl(t,c,2),bd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,gd(t[3],-1))}finally{Sl()}}}function MT(n,t,e,i){const r=t[10],o=dm(t);try{!o&&r.begin&&r.begin(),o&&_a(n,t,i),so(n,t,e,i)}finally{!o&&r.end&&r.end()}}function Qy(n,t,e,i,r){const s=Rn(),o=2&i;try{Or(-1),o&&t.length>20&&By(n,t,20,!1),e(i,r)}finally{Or(s)}}function yh(n,t,e){!pm()||(function NT(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||na(e,t),Mn(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Fi(l);c&&jT(t,e,l);const u=ia(t,n,a,e);Mn(u,t),null!==o&&$T(0,a-r,u,l,0,o),c&&(ni(e.index,t)[8]=u)}}(n,t,e,ti(e,t)),128==(128&e.flags)&&function LT(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function XS(){return Se.lFrame.currentDirectiveIndex}();try{Or(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];vd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&ov(c,u)}}finally{Or(-1),vd(a)}}(n,t,e))}function vh(n,t,e=ti){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function Jy(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Ql(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Ql(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function AT(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Me);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function nv(n,t,e,i){const r=hv(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&fv(n).push(i,r.length-1))}function iv(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function _h(n,t,e,i){let r=!1;if(pm()){const s=function VT(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Ly(e,o.selectors,!1)&&(r||(r=[]),Rl(na(e,t),n,o.type),Fi(o)?(av(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,lv(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ro(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=Il(e.mergedAttrs,d.hostAttrs),cv(n,e,t,c,d),HT(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function kT(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Ny(t)?null:zT(d,s);o.push(h),a=iv(d,c,a),l=iv(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function BT(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new K(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=Il(e.mergedAttrs,e.attrs),r}function sv(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function PT(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function ov(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function av(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function HT(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Fi(t)&&(e[""]=n)}}function lv(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function cv(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=ss(r.type)),o=new ea(s,Fi(r),null);n.blueprint[i]=o,e[i]=o,sv(n,t,0,i,ro(n,e,r.hostVars,Me),r)}function jT(n,t,e){const i=ti(t,n),r=Jy(e),s=n[10],o=Zl(n,va(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function tr(n,t,e,i,r,s){const o=ti(n,t);!function wh(n,t,e,i,r,s,o){if(null==s)Bt(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?xe(s):o(s,i||"",r);Bt(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],o,s,n.value,e,i,r)}function $T(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function zT(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function uv(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function WT(n,t){const e=ni(t,n);if(pd(e)){const i=e[1];80&e[2]?so(i,e,i.template,e[8]):e[5]>0&&bh(e)}}function bh(n){for(let i=Hd(n);null!==i;i=jd(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];so(o,s,o.template,s[8])}else s[5]>0&&bh(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=ni(e[i],n);pd(r)&&r[5]>0&&bh(r)}}function YT(n,t){const e=ni(t,n),i=e[1];(function qT(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),_a(i,e,e[8])}function Zl(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Dh(n){for(;n;){n[2]|=64;const t=fa(n);if(MS(n)&&!t)return n;n=t}return null}function dv(n){!function Ch(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Ld(e),r=i[1];MT(r,i,r.template,e)}}(n[8])}function xh(n,t,e){wd(0),t(n,e)}const XT=(()=>Promise.resolve(null))();function hv(n){return n[7]||(n[7]=[])}function fv(n){return n.cleanup||(n.cleanup=[])}function gv(n,t){const e=n[9],i=e?e.get(Rr,null):null;i&&i.handleError(t)}function mv(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function _r(n,t,e){const i=Cl(t,n);!function sy(n,t,e){Bt(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function Jl(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=Qu(r,a):2==s&&(i=Qu(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Sh=new ne("INJECTOR",-1);class yv{get(t,e=aa){if(e===aa){const i=new Error(`NullInjectorError: No provider for ${st(t)}!`);throw i.name="NullInjectorError",i}return e}}const Mh=new ne("Set Injector scope."),wa={},JT={};let Ah;function vv(){return void 0===Ah&&(Ah=new yv),Ah}function _v(n,t=null,e=null,i){const r=wv(n,t,e,i);return r._resolveInjectorDefTypes(),r}function wv(n,t=null,e=null,i){return new ek(n,e,t||vv(),i)}class ek{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Qi(e,a=>this.processProvider(a,t,e)),Qi([t],a=>this.processInjectorType(a,[],s)),this.records.set(Sh,oo(void 0,this));const o=this.records.get(Mh);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:st(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=aa,i=Te.Default){this.assertNotDestroyed();const r=zm(this),s=Ar(void 0);try{if(!(i&Te.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function lk(n){return"function"==typeof n||"object"==typeof n&&n instanceof ne}(t)&&Ju(t);a=l&&this.injectableDefInScope(l)?oo(Th(t),wa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Te.Self?vv():this.parent).get(t,e=i&Te.Optional&&e===aa?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Bl]=o[Bl]||[]).unshift(st(t)),r)throw o;return function FM(n,t,e,i){const r=n[Bl];throw t[$m]&&r.unshift(t[$m]),n.message=function RM(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=st(t);if(Array.isArray(t))r=t.map(st).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):st(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(AM,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Bl]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Ar(s),zm(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(st(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(t,e,i){if(!(t=Re(t)))return!1;let r=Qg(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Qg(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Qi(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];Qi(f,p=>this.processProvider(p,h,f||ft))}}this.injectorDefTypes.add(o);const l=ss(o)||(()=>new o);this.records.set(o,oo(l,wa));const c=r.providers;if(null!=c&&!a){const u=t;Qi(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=ao(t=Re(t))?t:Re(t&&t.provide);const s=function nk(n,t,e){return Dv(n)?oo(void 0,n.useValue):oo(function bv(n,t,e){let i;if(ao(n)){const r=Re(n);return ss(r)||Th(r)}if(Dv(n))i=()=>Re(n.useValue);else if(function rk(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Rd(n.deps||[]));else if(function ik(n){return!(!n||!n.useExisting)}(n))i=()=>S(Re(n.useExisting));else{const r=Re(n&&(n.useClass||n.provide));if(!function ok(n){return!!n.deps}(n))return ss(r)||Th(r);i=()=>new r(...Rd(n.deps))}return i}(n),wa)}(t);if(ao(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=oo(void 0,wa,!0),o.factory=()=>Rd(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===wa&&(e.value=JT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ak(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Re(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Th(n){const t=Ju(n),e=null!==t?t.factory:ss(n);if(null!==e)return e;if(n instanceof ne)throw new K(204,!1);if(n instanceof Function)return function tk(n){const t=n.length;if(t>0)throw oa(t,"?"),new K(204,!1);const e=function pS(n){const t=n&&(n[ml]||n[Zg]);if(t){const e=function gS(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new K(204,!1)}function oo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Dv(n){return null!==n&&"object"==typeof n&&kM in n}function ao(n){return"function"==typeof n}let fn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return _v({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return _v({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=aa,n.NULL=new yv,n.\u0275prov=R({token:n,providedIn:"any",factory:()=>S(Sh)}),n.__NG_ELEMENT_ID__=-1,n})();function mk(n,t){Ml(Ld(n)[1],sn())}function H(n){let t=function Rv(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Fi(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new K(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Oh(n.inputs),o.declaredInputs=Oh(n.declaredInputs),o.outputs=Oh(n.outputs);const a=r.hostBindings;a&&wk(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&vk(n,l),c&&_k(n,c),Xu(n.inputs,r.inputs),Xu(n.declaredInputs,r.declaredInputs),Xu(n.outputs,r.outputs),Fi(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===H&&(e=!1)}}t=Object.getPrototypeOf(t)}!function yk(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Il(r.hostAttrs,e=Il(e,r.hostAttrs))}}(i)}function Oh(n){return n===Vs?{}:n===ft?[]:n}function vk(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function _k(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function wk(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ec=null;function lo(){if(!ec){const n=ct.Symbol;if(n&&n.iterator)ec=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ec=i)}}}return ec}function ba(n){return!!Fh(n)&&(Array.isArray(n)||!(n instanceof Map)&&lo()in n)}function Fh(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function nr(n,t,e){return n[t]=e}function Da(n,t){return n[t]}function An(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function us(n,t,e,i){const r=An(n,t,e);return An(n,t+1,i)||r}function zt(n,t,e,i){const r=k();return An(r,Gs(),t)&&(Ke(),tr(Rt(),r,n,t,e,i)),zt}function pe(n,t,e,i,r,s,o,a){const l=k(),c=Ke(),u=n+20,d=c.firstCreatePass?function Mk(n,t,e,i,r,s,o,a,l){const c=t.consts,u=io(t,n,4,o||null,Ir(c,a));_h(t,e,u,Ir(c,l)),Ml(t,u);const d=u.tViews=Ql(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];Xi(d,!1);const h=l[11].createComment("");$l(c,l,h,d),Mn(h,l),Zl(l,l[u]=uv(h,l,h,d)),Dl(d)&&yh(c,l,d),null!=o&&vh(l,d,a)}function pn(n){return zs(function YS(){return Se.lFrame.contextLView}(),20+n)}function g(n,t=Te.Default){const e=k();return null===e?S(n,t):Om(sn(),e,Re(n),t)}function L(n,t,e){const i=k();return An(i,Gs(),t)&&function oi(n,t,e,i,r,s,o,a){const l=ti(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(mv(n,e,u,i,r),bl(t)&&function OT(n,t){const e=ni(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function IT(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Bt(s)?s.setProperty(l,i,r):Cd(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Ke(),Rt(),i,n,t,i[11],e,!1),L}function Vh(n,t,e,i,r){const o=r?"class":"style";mv(n,e,t.inputs[o],o,i)}function oe(n,t,e,i){const r=k(),s=Ke(),o=20+n,a=r[11],l=r[o]=zd(a,t,function rM(){return Se.lFrame.currentNamespace}()),c=s.firstCreatePass?function qk(n,t,e,i,r,s,o){const a=t.consts,c=io(t,n,2,r,Ir(a,s));return _h(t,e,c,Ir(a,o)),null!==c.attrs&&Jl(c,c.attrs,!1),null!==c.mergedAttrs&&Jl(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];Xi(c,!0);const u=c.mergedAttrs;null!==u&&kl(a,l,u);const d=c.classes;null!==d&&Xd(a,l,d);const h=c.styles;return null!==h&&vy(a,l,h),64!=(64&c.flags)&&$l(s,r,l,c),0===function $S(){return Se.lFrame.elementDepthCount}()&&Mn(l,r),function zS(){Se.lFrame.elementDepthCount++}(),Dl(c)&&(yh(s,r,c),function Zy(n,t,e){if(od(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}(s,c,r)),null!==i&&vh(r,c),oe}function ye(){let n=sn();md()?yd():(n=n.parent,Xi(n,!1));const t=n;!function GS(){Se.lFrame.elementDepthCount--}();const e=Ke();return e.firstCreatePass&&(Ml(e,n),od(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function cM(n){return 0!=(16&n.flags)}(t)&&Vh(e,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function uM(n){return 0!=(32&n.flags)}(t)&&Vh(e,t,k(),t.stylesWithoutHost,!1),ye}function Xt(n,t,e,i){return oe(n,t,e,i),ye(),Xt}function Nn(){return k()}function ic(n){return!!n&&"function"==typeof n.then}function n_(n){return!!n&&"function"==typeof n.subscribe}const i_=n_;function Le(n,t,e,i){const r=k(),s=Ke(),o=sn();return function s_(n,t,e,i,r,s,o,a){const l=Dl(i),u=n.firstCreatePass&&fv(n),d=t[8],h=hv(t);let f=!0;if(3&i.type||a){const D=ti(i,t),E=a?a(D):D,w=h.length,M=a?I=>a(Kt(I[i.index])):i.index;if(Bt(e)){let I=null;if(!a&&l&&(I=function Xk(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=s,I.__ngLastListenerFn__=s,f=!1;else{s=jh(i,t,d,s,!1);const j=e.listen(E,r,s);h.push(s,j),u&&u.push(r,M,w,w+1)}}else s=jh(i,t,d,s,!0),E.addEventListener(r,s,o),h.push(s),u&&u.push(r,M,w,o)}else s=jh(i,t,d,s,!1);const p=i.outputs;let v;if(f&&null!==p&&(v=p[r])){const D=v.length;if(D)for(let E=0;E<D;E+=2){const be=t[v[E]][v[E+1]].subscribe(s),Fe=h.length;h.push(s,be),u&&u.push(r,i.index,Fe,-(Fe+1))}}}(s,r,r[11],o,n,t,!!e,i),Le}function o_(n,t,e,i){try{return!1!==e(i)}catch(r){return gv(n,r),!1}}function jh(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?ni(n.index,t):t;0==(32&t[2])&&Dh(a);let l=o_(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=o_(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function G(n=1){return function ZS(n){return(Se.lFrame.contextLView=function JS(n,t){for(;n>0;)t=t[15],n--;return t}(n,Se.lFrame.contextLView))[8]}(n)}function Qk(n,t){let e=null;const i=function aT(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Ly(n,s,!0):uT(i,s))return r}else e=r}return e}function $h(n){const t=k()[16][6];if(!t.projection){const i=t.projection=oa(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?Qk(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function zh(n,t=0,e){const i=k(),r=Ke(),s=io(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),yd(),64!=(64&s.flags)&&function dA(n,t,e){yy(t[11],0,t,e,ly(n,e,t),hy(e.parent||t[6],e,t))}(r,i,s)}function m_(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Pi(s):vr(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];eI(n[a],t)&&(l=!0,n[a+1]=i?ah(u):sh(u)),a=i?Pi(u):vr(u)}l&&(n[e+1]=i?sh(s):ah(s))}function eI(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Zs(n,t)>=0}function wr(n,t,e){return Li(n,t,e,!1),wr}function Qt(n,t){return Li(n,t,null,!0),Qt}function Li(n,t,e,i){const r=k(),s=Ke(),o=function mr(n){const t=Se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function E_(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Rn()],o=function C_(n,t){return t>=n.expandoStartIndex}(n,e);(function A_(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function cI(n,t,e,i){const r=function _d(n){const t=Se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ca(e=Uh(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Uh(r,n,t,e,i),null===s){let l=function uI(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==vr(i))return n[Pi(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Uh(null,n,t,l[1],i),l=Ca(l,t.attrs,i),function dI(n,t,e,i){n[Pi(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function hI(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Ca(i,n[s].hostAttrs,e);return Ca(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function Zk(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Pi(o),l=vr(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Zs(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Pi(n[a+1]);n[i+1]=ql(h,a),0!==h&&(n[h+1]=oh(n[h+1],i)),n[a+1]=function pT(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=ql(a,0),0!==a&&(n[a+1]=oh(n[a+1],i)),a=i;else n[i+1]=ql(l,0),0===a?a=i:n[l+1]=oh(n[l+1],i),l=i;c&&(n[i+1]=sh(n[i+1])),m_(n,u,i,!0),m_(n,u,i,!1),function Jk(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Zs(s,t)>=0&&(e[i+1]=ah(e[i+1]))}(t,u,n,i,s),o=ql(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==Me&&An(r,o,t)&&function S_(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];rc(function $y(n){return 1==(1&n)}(c)?M_(l,t,e,r,vr(c),o):void 0)||(rc(s)||function jy(n){return 2==(2&n)}(c)&&(s=M_(l,null,e,r,a,o)),function fA(n,t,e,i,r){const s=Bt(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ri.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ri.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,Cl(Rn(),e),r,s))}(s,s.data[Rn()],r,r[11],n,r[o+1]=function gI(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=st(si(n)))),n}(t,e),i,o)}function Uh(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Ca(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Ca(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),ii(n,o,!!e||t[++s]))}return void 0===n?null:n}function M_(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Me&&(h=d?ft:void 0);let f=d?Id(h,i):u===i?h:void 0;if(c&&!rc(f)&&(f=Id(l,i)),rc(f)&&(a=f,o))return a;const p=n[r+1];r=o?Pi(p):vr(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Id(l,i))}return a}function rc(n){return void 0!==n}function Ln(n,t=""){const e=k(),i=Ke(),r=n+20,s=i.firstCreatePass?io(i,r,1,t,null):i.data[r],o=e[r]=function $d(n,t){return Bt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);$l(i,e,o,s),Xi(s,!1)}function ds(n){return bo("",n,""),ds}function bo(n,t,e){const i=k(),r=function uo(n,t,e,i){return An(n,Gs(),e)?t+xe(e)+i:Me}(i,n,t,e);return r!==Me&&_r(i,Rn(),r),bo}const hs=void 0;var PI=["en",[["a","p"],["AM","PM"],hs],[["AM","PM"],hs,hs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hs,"{1} 'at' {0}",hs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function RI(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Do={};function Vn(n){const t=function NI(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=K_(t);if(e)return e;const i=t.split("-")[0];if(e=K_(i),e)return e;if("en"===i)return PI;throw new Error(`Missing locale data for the locale "${n}".`)}function K_(n){return n in Do||(Do[n]=ct.ng&&ct.ng.common&&ct.ng.common.locales&&ct.ng.common.locales[n]),Do[n]}var U=(()=>((U=U||{})[U.LocaleId=0]="LocaleId",U[U.DayPeriodsFormat=1]="DayPeriodsFormat",U[U.DayPeriodsStandalone=2]="DayPeriodsStandalone",U[U.DaysFormat=3]="DaysFormat",U[U.DaysStandalone=4]="DaysStandalone",U[U.MonthsFormat=5]="MonthsFormat",U[U.MonthsStandalone=6]="MonthsStandalone",U[U.Eras=7]="Eras",U[U.FirstDayOfWeek=8]="FirstDayOfWeek",U[U.WeekendRange=9]="WeekendRange",U[U.DateFormat=10]="DateFormat",U[U.TimeFormat=11]="TimeFormat",U[U.DateTimeFormat=12]="DateTimeFormat",U[U.NumberSymbols=13]="NumberSymbols",U[U.NumberFormats=14]="NumberFormats",U[U.CurrencyCode=15]="CurrencyCode",U[U.CurrencySymbol=16]="CurrencySymbol",U[U.CurrencyName=17]="CurrencyName",U[U.Currencies=18]="Currencies",U[U.Directionality=19]="Directionality",U[U.PluralCase=20]="PluralCase",U[U.ExtraData=21]="ExtraData",U))();const sc="en-US";let X_=sc;class bw{}class LO{resolveComponentFactory(t){throw function NO(n){const t=Error(`No component factory found for ${st(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let br=(()=>{class n{}return n.NULL=new LO,n})();function VO(){return Eo(sn(),k())}function Eo(n,t){return new de(ti(n,t))}let de=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=VO,n})();function BO(n){return n instanceof de?n.nativeElement:n}class Aa{}let ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function jO(){const n=k(),e=ni(sn().index,n);return function HO(n){return n[11]}(Ki(e)?e:n)}(),n})(),$O=(()=>{class n{}return n.\u0275prov=R({token:n,providedIn:"root",factory:()=>null}),n})();class Lr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const zO=new Lr("13.4.0"),Zh={};function uc(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Kt(s)),Oi(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&uc(l[1],l,c,i)}const o=e.type;if(8&o)uc(n,t,e.child,i);else if(32&o){const a=Bd(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=my(t,e);if(Array.isArray(a))i.push(...a);else{const l=fa(t[16]);uc(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Ta{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return uc(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Oi(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Gd(t,i),Ll(e,i))}this._attachedToViewContainer=!1}ay(this._lView[1],this._lView)}onDestroy(t){nv(this._lView[1],this._lView,null,t)}markForCheck(){Dh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Eh(n,t,e){const i=t[10];i.begin&&i.begin();try{so(n,t,n.template,e)}catch(r){throw gv(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function iA(n,t){pa(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=t}}class GO extends Ta{constructor(t){super(t),this._view=t}detectChanges(){dv(this._view)}checkNoChanges(){}get context(){return null}}class Cw extends br{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=wn(t);return new Jh(e,this.ngModule)}}function Ew(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Jh extends bw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function hT(n){return n.map(dT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ew(this.componentDef.inputs)}get outputs(){return Ew(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function WO(n,t){return{get:(e,i,r)=>{const s=n.get(e,Zh,r);return s!==Zh||i===Zh?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Aa,um),a=s.get($O,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function tv(n,t,e){if(Bt(n))return n.selectRootElement(t,e===ki.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):zd(o.createRenderer(null,this.componentDef),c,function UO(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Fv(n,t){return{components:[],scheduler:n||JA,clean:XT,playerHandler:t||null,flags:0}}(),f=Ql(0,null,null,1,0,null,null,null,null,null),p=va(null,f,h,d,null,null,o,l,a,s);let v,D;xl(p);try{const E=function Iv(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=io(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Jl(l,c,!0),null!==n&&(kl(r,n,c),null!==l.classes&&Xd(r,n,l.classes),null!==l.styles&&vy(r,n,l.styles)));const u=i.createRenderer(n,t),d=va(e,Jy(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Rl(na(l,e),o,t.type),av(o,l),lv(l,e.length,1)),Zl(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)kl(l,u,["ng-version",zO.full]);else{const{attrs:w,classes:M}=function fT(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Ri(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);w&&kl(l,u,w),M&&M.length>0&&Xd(l,u,M.join(" "))}if(D=fd(f,20),void 0!==e){const w=D.projection=[];for(let M=0;M<this.ngContentSelectors.length;M++){const I=e[M];w.push(null!=I?Array.from(I):null)}}v=function Ov(n,t,e,i,r){const s=e[1],o=function RT(n,t,e){const i=sn();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),cv(n,i,t,ro(n,t,1,null),e));const r=ia(t,n,i.directiveStart,i);Mn(r,t);const s=ti(i,t);return s&&Mn(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=sn();t.contentQueries(1,o,l.directiveStart)}const a=sn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Or(a.index),sv(e[1],a,0,a.directiveStart,a.directiveEnd,t),ov(t,o)),o}(E,this.componentDef,p,h,[mk]),_a(f,p,null)}finally{Sl()}return new qO(this.componentType,v,Eo(D,p),p,D)}}class qO extends class PO{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new GO(r),this.componentType=t}get injector(){return new Ys(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class xo{}const So=new Map;class Mw extends xo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Cw(this);const i=hi(t);this._bootstrapComponents=er(i.bootstrap),this._r3Injector=wv(t,e,[{provide:xo,useValue:this},{provide:br,useValue:this.componentFactoryResolver}],st(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=fn.THROW_IF_NOT_FOUND,i=Te.Default){return t===fn||t===xo||t===Sh?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ef extends class XO{}{constructor(t){super(),this.moduleType=t,null!==hi(t)&&function QO(n){const t=new Set;!function e(i){const r=hi(i,!0),s=r.id;null!==s&&(function xw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${st(t)} vs ${st(t.name)}`)}(s,So.get(s),i),So.set(s,i));const o=er(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Mw(this.moduleType,t)}}function Bn(n,t,e){const i=Fn()+n,r=k();return r[i]===Me?nr(r,i,e?t.call(e):t()):Da(r,i)}function fs(n,t,e,i){return Iw(k(),Fn(),n,t,e,i)}function gn(n,t,e,i,r){return Ow(k(),Fn(),n,t,e,i,r)}function tf(n,t,e,i,r,s){return Fw(k(),Fn(),n,t,e,i,r,s)}function nf(n,t,e,i,r,s,o,a){const l=Fn()+n,c=k(),u=function mi(n,t,e,i,r,s){const o=us(n,t,e,i);return us(n,t+2,r,s)||o}(c,l,e,i,r,s);return An(c,l+4,o)||u?nr(c,l+5,a?t.call(a,e,i,r,s,o):t(e,i,r,s,o)):Da(c,l+5)}function rf(n,t,e,i){return function Pw(n,t,e,i,r,s){let o=t+e,a=!1;for(let l=0;l<r.length;l++)An(n,o++,r[l])&&(a=!0);return a?nr(n,o,i.apply(s,r)):ka(n,o)}(k(),Fn(),n,t,e,i)}function ka(n,t){const e=n[t];return e===Me?void 0:e}function Iw(n,t,e,i,r,s){const o=t+e;return An(n,o,r)?nr(n,o+1,s?i.call(s,r):i(r)):ka(n,o+1)}function Ow(n,t,e,i,r,s,o){const a=t+e;return us(n,a,r,s)?nr(n,a+2,o?i.call(o,r,s):i(r,s)):ka(n,a+2)}function Fw(n,t,e,i,r,s,o,a){const l=t+e;return function tc(n,t,e,i,r){const s=us(n,t,e,i);return An(n,t+2,r)||s}(n,l,r,s,o)?nr(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):ka(n,l+3)}function kt(n,t){const e=Ke();let i;const r=n+20;e.firstCreatePass?(i=function JO(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=ss(i.type)),o=Ar(g);try{const a=Ol(!1),l=s();return Ol(a),function Ak(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,k(),r,l),l}finally{Ar(o)}}function Bi(n,t,e,i){const r=n+20,s=k(),o=zs(s,r);return Ia(s,r)?Ow(s,Fn(),t,o.transform,e,i,o):o.transform(e,i)}function Hi(n,t,e,i,r){const s=n+20,o=k(),a=zs(o,s);return Ia(o,s)?Fw(o,Fn(),t,a.transform,e,i,r,a):a.transform(e,i,r)}function Ia(n,t){return n[1].data[t].pure}function sf(n){return t=>{setTimeout(n,void 0,t)}}const ie=class nF extends O{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=sf(l),a&&(a=sf(a)),c&&(c=sf(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof he&&t.add(u),u}};function iF(){return this._results[lo()]()}class af{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=lo(),i=af.prototype;i[e]||(i[e]=iF)}get changes(){return this._changes||(this._changes=new ie)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=gi(t);(this._changesDetected=!function _M(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let De=(()=>{class n{}return n.__NG_ELEMENT_ID__=oF,n})();const rF=De,sF=class extends rF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=va(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),_a(e,i,t),new Ta(i)}};function oF(){return hc(sn(),k())}function hc(n,t){return 4&n.type?new sF(t,n,Eo(n,t)):null}let Un=(()=>{class n{}return n.__NG_ELEMENT_ID__=aF,n})();function aF(){return Vw(sn(),k())}const lF=Un,Nw=class extends lF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Eo(this._hostTNode,this._hostLView)}get injector(){return new Ys(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fl(this._hostTNode,this._hostLView);if(Mm(t)){const e=Ws(t,this._hostLView),i=Us(t);return new Ys(e[1].data[i+8],e)}return new Ys(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Lw(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function sa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new Jh(wn(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(xo,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function jS(n){return Oi(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Nw(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function sA(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],Lm(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function oA(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=Yd(s,o),l=i[11],c=jl(l,o[7]);return null!==c&&function nA(n,t,e,i,r,s){i[0]=r,i[6]=t,pa(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),Lm(lf(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Lw(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Gd(this._lContainer,e);i&&(Ll(lf(this._lContainer),e),ay(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Gd(this._lContainer,e);return i&&null!=Ll(lf(this._lContainer),e)?new Ta(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Lw(n){return n[8]}function lf(n){return n[8]||(n[8]=[])}function Vw(n,t){let e;const i=t[n.index];if(Oi(i))e=i;else{let r;if(8&n.type)r=Kt(i);else{const s=t[11];r=s.createComment("");const o=ti(n,t);as(s,jl(s,o),r,function uA(n,t){return Bt(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=uv(i,t,r,n),Zl(t,e)}return new Nw(e,n,t)}class cf{constructor(t){this.queryList=t,this.matches=null}clone(){return new cf(this.queryList)}setDirty(){this.queryList.setDirty()}}class uf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new uf(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==zw(t,e).matches&&this.queries[e].setDirty()}}class Bw{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class df{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new df(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class hf{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new hf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,dF(e,s)),this.matchTNodeWithReadOption(t,e,Pl(e,t,s,!1,!1))}else i===De?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Pl(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===de||r===Un||r===De&&4&e.type)this.addMatch(e.index,-2);else{const s=Pl(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function dF(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function fF(n,t,e,i){return-1===e?function hF(n,t){return 11&n.type?Eo(n,t):4&n.type?hc(n,t):null}(t,n):-2===e?function pF(n,t,e){return e===de?Eo(t,n):e===De?hc(t,n):e===Un?Vw(t,n):void 0}(n,t,i):ia(n,n[1],e,t)}function Hw(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:fF(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function ff(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=Hw(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&ff(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];ff(f[1],f,c,i)}}}}}return i}function pf(n){const t=k(),e=Ke(),i=vm();wd(i+1);const r=zw(e,i);if(n.dirty&&dm(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?ff(e,t,i,[]):Hw(e,t,r,i);n.reset(s,BO),n.notifyOnChanges()}return!0}return!1}function gf(n,t,e){const i=Ke();i.firstCreatePass&&(function $w(n,t,e){null===n.queries&&(n.queries=new df),n.queries.track(new hf(t,e))}(i,new Bw(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),function jw(n,t,e){const i=new af(4==(4&e));nv(n,t,i,i.destroy),null===t[19]&&(t[19]=new uf),t[19].queries.push(new cf(i))}(i,k(),t)}function mf(){return function mF(n,t){return n[19].queries[t].queryList}(k(),vm())}function zw(n,t){return n.queries.getByIndex(t)}function yi(n,t){return hc(n,t)}const x=Td("Input",n=>({bindingPropertyName:n})),ut=Td("Output",n=>({bindingPropertyName:n})),Fa=Td("HostListener",(n,t)=>({eventName:n,args:t}));function gc(...n){}const ob=new ne("Application Initializer");let Df=(()=>{class n{constructor(e){this.appInits=e,this.resolve=gc,this.reject=gc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(ic(s))e.push(s);else if(i_(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(S(ob,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ra=new ne("AppId",{providedIn:"root",factory:function ab(){return`${Cf()}${Cf()}${Cf()}`}});function Cf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lb=new ne("Platform Initializer"),vi=new ne("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),cb=new ne("appBootstrapListener"),bn=new ne("LocaleId",{providedIn:"root",factory:()=>Js(bn,Te.Optional|Te.SkipSelf)||function RF(){return"undefined"!=typeof $localize&&$localize.locale||sc}()}),VF=(()=>Promise.resolve(0))();function Ef(n){"undefined"==typeof Zone?VF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function BF(){let n=ct.requestAnimationFrame,t=ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function $F(n){const t=()=>{!function jF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ct,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Sf(n),n.isCheckStableRunning=!0,xf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Sf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return ub(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),db(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return ub(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),db(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Sf(n),xf(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ve.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ve.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,HF,gc,gc);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const HF={};function xf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Sf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function ub(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function db(n){n._nesting--,xf(n)}class zF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Mf=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ve.assertNotInAngularZone(),Ef(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ef(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(S(Ve))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),GF=(()=>{class n{constructor(){this._applications=new Map,Af.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Af.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class UF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Af=new UF,ps=null;const hb=new ne("AllowMultipleToken"),fb=new ne("PlatformOnDestroy");function pb(n,t,e=[]){const i=`Platform: ${t}`,r=new ne(i);return(s=[])=>{let o=Tf();if(!o||o.injector.get(hb,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function KF(n){if(ps&&!ps.get(hb,!1))throw new K(400,"");ps=n;const t=n.get(gb),e=n.get(lb,null);e&&e.forEach(i=>i())}(function QF(n=[],t){return fn.create({name:t,providers:[{provide:Mh,useValue:"platform"},{provide:fb,useValue:()=>ps=null},...n]})}(a,i))}return function XF(n){const t=Tf();if(!t)throw new K(401,"");return t}()}}function Tf(){var n;return null!==(n=null==ps?void 0:ps.get(gb))&&void 0!==n?n:null}let gb=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function ZF(n,t){let e;return e="noop"===n?new zF:("zone.js"===n?void 0:n)||new Ve({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Ve,useValue:a}];return a.run(()=>{const c=fn.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Rr,null);if(!d)throw new K(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{kf(this._modules,u),h.unsubscribe()})}),function JF(n,t,e){try{const i=e();return ic(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Df);return h.runInitializers(),h.donePromise.then(()=>(function HI(n){Jn(n,"Expected localeId to be defined"),"string"==typeof n&&(X_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(bn,sc)||sc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=mb({},i);return function YF(n,t,e){const i=new ef(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(mc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(fb,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(S(fn))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function mb(n,t){return Array.isArray(t)?t.reduce(mb,n):Object.assign(Object.assign({},n),t)}let mc=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Y(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Y(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ve.assertNotInAngularZone(),Ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ve.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=qt(o,a.pipe(Ai()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let r;r=e instanceof bw?e:this._injector.get(br).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function qF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(xo),a=r.create(fn.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Mf,null),u=c&&a.injector.get(GF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),kf(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;kf(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(cb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(S(Ve),S(fn),S(Rr),S(Df))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kf(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let vb=!0,Dr=(()=>{class n{}return n.__NG_ELEMENT_ID__=nR,n})();function nR(n){return function iR(n,t,e){if(bl(n)&&!e){const i=ni(n.index,t);return new Ta(i,i)}return 47&n.type?new Ta(t[16],t):null}(sn(),k(),16==(16&n))}class Cb{constructor(){}supports(t){return ba(t)}create(t){return new cR(t)}}const lR=(n,t)=>t;class cR{constructor(t){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=t||lR}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<xb(i,r,s)?e:i,a=xb(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ba(t))throw new K(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function Sk(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[lo()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new uR(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Eb),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Eb),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uR{constructor(t,e){this.item=t,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}}class dR{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Eb{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new dR,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xb(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Sb{constructor(){}supports(t){return t instanceof Map||Fh(t)}create(){return new hR}}class hR{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Fh(t)))throw new K(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new fR(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class fR{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Mb(){return new Pa([new Cb])}let Pa=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Mb()),deps:[[n,new ua,new os]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:Mb}),n})();function Ab(){return new ms([new Sb])}let ms=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Ab()),deps:[[n,new ua,new os]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:Ab}),n})();const mR=pb(null,"core",[]);let yR=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(S(mc))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})(),_c=null;function sr(){return _c}const Ie=new ne("DocumentToken");let Na=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function bR(){return S(Tb)}()},providedIn:"platform"}),n})(),Tb=(()=>{class n extends Na{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sr().getBaseHref(this._doc)}onPopState(e){const i=sr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=sr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){kb()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){kb()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:function(){return function DR(){return new Tb(S(Ie))}()},providedIn:"platform"}),n})();function kb(){return!!window.history.pushState}function Ib(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Ob(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ys(n){return n&&"?"!==n[0]?"?"+n:n}let Pf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function CR(n){const t=S(Ie).location;return new xR(S(Na),t&&t.origin||"")}()},providedIn:"root"}),n})();const ER=new ne("appBaseHref");let xR=(()=>{class n extends Pf{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}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 Ib(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ys(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+ys(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+ys(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(S(Na),S(ER,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Fb=(()=>{class n{constructor(e,i){this._subject=new ie,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Ob(Rb(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ys(i))}normalize(e){return n.stripTrailingSlash(function MR(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Rb(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ys(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ys(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ys,n.joinWithSlash=Ib,n.stripTrailingSlash=Ob,n.\u0275fac=function(e){return new(e||n)(S(Pf),S(Na))},n.\u0275prov=R({token:n,factory:function(){return function SR(){return new Fb(S(Pf),S(Na))}()},providedIn:"root"}),n})();function Rb(n){return n.replace(/\/index.html$/,"")}var Zt=(()=>((Zt=Zt||{})[Zt.Zero=0]="Zero",Zt[Zt.One=1]="One",Zt[Zt.Two=2]="Two",Zt[Zt.Few=3]="Few",Zt[Zt.Many=4]="Many",Zt[Zt.Other=5]="Other",Zt))(),Gt=(()=>((Gt=Gt||{})[Gt.Format=0]="Format",Gt[Gt.Standalone=1]="Standalone",Gt))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),Pt=(()=>((Pt=Pt||{})[Pt.Short=0]="Short",Pt[Pt.Medium=1]="Medium",Pt[Pt.Long=2]="Long",Pt[Pt.Full=3]="Full",Pt))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function wc(n,t){return wi(Vn(n)[U.DateFormat],t)}function bc(n,t){return wi(Vn(n)[U.TimeFormat],t)}function Dc(n,t){return wi(Vn(n)[U.DateTimeFormat],t)}function _i(n,t){const e=Vn(n),i=e[U.NumberSymbols][t];if(void 0===i){if(t===ge.CurrencyDecimal)return e[U.NumberSymbols][ge.Decimal];if(t===ge.CurrencyGroup)return e[U.NumberSymbols][ge.Group]}return i}const RR=function q_(n){return Vn(n)[U.PluralCase]};function Nb(n){if(!n[U.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[U.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function wi(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function Lf(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const HR=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,La={},jR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var cn=(()=>((cn=cn||{})[cn.Short=0]="Short",cn[cn.ShortGMT=1]="ShortGMT",cn[cn.Long=2]="Long",cn[cn.Extended=3]="Extended",cn))(),ve=(()=>((ve=ve||{})[ve.FullYear=0]="FullYear",ve[ve.Month=1]="Month",ve[ve.Date=2]="Date",ve[ve.Hours=3]="Hours",ve[ve.Minutes=4]="Minutes",ve[ve.Seconds=5]="Seconds",ve[ve.FractionalSeconds=6]="FractionalSeconds",ve[ve.Day=7]="Day",ve))(),Pe=(()=>((Pe=Pe||{})[Pe.DayPeriods=0]="DayPeriods",Pe[Pe.Days=1]="Days",Pe[Pe.Months=2]="Months",Pe[Pe.Eras=3]="Eras",Pe))();function un(n,t,e,i){let r=function XR(n){if(Bb(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return Cc(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(HR))return function QR(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,l,c),t}(i)}const t=new Date(n);if(!Bb(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Cr(e,t)||t;let a,o=[];for(;t;){if(a=jR.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=Vb(i,l),r=function KR(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function qR(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(Vb(t,r)-r))}(r,i,!0));let c="";return o.forEach(u=>{const d=function YR(n){if(Bf[n])return Bf[n];let t;switch(n){case"G":case"GG":case"GGG":t=yt(Pe.Eras,ze.Abbreviated);break;case"GGGG":t=yt(Pe.Eras,ze.Wide);break;case"GGGGG":t=yt(Pe.Eras,ze.Narrow);break;case"y":t=Jt(ve.FullYear,1,0,!1,!0);break;case"yy":t=Jt(ve.FullYear,2,0,!0,!0);break;case"yyy":t=Jt(ve.FullYear,3,0,!1,!0);break;case"yyyy":t=Jt(ve.FullYear,4,0,!1,!0);break;case"Y":t=Mc(1);break;case"YY":t=Mc(2,!0);break;case"YYY":t=Mc(3);break;case"YYYY":t=Mc(4);break;case"M":case"L":t=Jt(ve.Month,1,1);break;case"MM":case"LL":t=Jt(ve.Month,2,1);break;case"MMM":t=yt(Pe.Months,ze.Abbreviated);break;case"MMMM":t=yt(Pe.Months,ze.Wide);break;case"MMMMM":t=yt(Pe.Months,ze.Narrow);break;case"LLL":t=yt(Pe.Months,ze.Abbreviated,Gt.Standalone);break;case"LLLL":t=yt(Pe.Months,ze.Wide,Gt.Standalone);break;case"LLLLL":t=yt(Pe.Months,ze.Narrow,Gt.Standalone);break;case"w":t=Vf(1);break;case"ww":t=Vf(2);break;case"W":t=Vf(1,!0);break;case"d":t=Jt(ve.Date,1);break;case"dd":t=Jt(ve.Date,2);break;case"c":case"cc":t=Jt(ve.Day,1);break;case"ccc":t=yt(Pe.Days,ze.Abbreviated,Gt.Standalone);break;case"cccc":t=yt(Pe.Days,ze.Wide,Gt.Standalone);break;case"ccccc":t=yt(Pe.Days,ze.Narrow,Gt.Standalone);break;case"cccccc":t=yt(Pe.Days,ze.Short,Gt.Standalone);break;case"E":case"EE":case"EEE":t=yt(Pe.Days,ze.Abbreviated);break;case"EEEE":t=yt(Pe.Days,ze.Wide);break;case"EEEEE":t=yt(Pe.Days,ze.Narrow);break;case"EEEEEE":t=yt(Pe.Days,ze.Short);break;case"a":case"aa":case"aaa":t=yt(Pe.DayPeriods,ze.Abbreviated);break;case"aaaa":t=yt(Pe.DayPeriods,ze.Wide);break;case"aaaaa":t=yt(Pe.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Standalone,!0);break;case"bbbb":t=yt(Pe.DayPeriods,ze.Wide,Gt.Standalone,!0);break;case"bbbbb":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Standalone,!0);break;case"B":case"BB":case"BBB":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Format,!0);break;case"BBBB":t=yt(Pe.DayPeriods,ze.Wide,Gt.Format,!0);break;case"BBBBB":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Format,!0);break;case"h":t=Jt(ve.Hours,1,-12);break;case"hh":t=Jt(ve.Hours,2,-12);break;case"H":t=Jt(ve.Hours,1);break;case"HH":t=Jt(ve.Hours,2);break;case"m":t=Jt(ve.Minutes,1);break;case"mm":t=Jt(ve.Minutes,2);break;case"s":t=Jt(ve.Seconds,1);break;case"ss":t=Jt(ve.Seconds,2);break;case"S":t=Jt(ve.FractionalSeconds,1);break;case"SS":t=Jt(ve.FractionalSeconds,2);break;case"SSS":t=Jt(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=xc(cn.Short);break;case"ZZZZZ":t=xc(cn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=xc(cn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=xc(cn.Long);break;default:return null}return Bf[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Cc(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Cr(n,t){const e=function AR(n){return Vn(n)[U.LocaleId]}(n);if(La[e]=La[e]||{},La[e][t])return La[e][t];let i="";switch(t){case"shortDate":i=wc(n,Pt.Short);break;case"mediumDate":i=wc(n,Pt.Medium);break;case"longDate":i=wc(n,Pt.Long);break;case"fullDate":i=wc(n,Pt.Full);break;case"shortTime":i=bc(n,Pt.Short);break;case"mediumTime":i=bc(n,Pt.Medium);break;case"longTime":i=bc(n,Pt.Long);break;case"fullTime":i=bc(n,Pt.Full);break;case"short":const r=Cr(n,"shortTime"),s=Cr(n,"shortDate");i=Ec(Dc(n,Pt.Short),[r,s]);break;case"medium":const o=Cr(n,"mediumTime"),a=Cr(n,"mediumDate");i=Ec(Dc(n,Pt.Medium),[o,a]);break;case"long":const l=Cr(n,"longTime"),c=Cr(n,"longDate");i=Ec(Dc(n,Pt.Long),[l,c]);break;case"full":const u=Cr(n,"fullTime"),d=Cr(n,"fullDate");i=Ec(Dc(n,Pt.Full),[u,d])}return i&&(La[e][t]=i),i}function Ec(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ji(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function Jt(n,t,e=0,i=!1,r=!1){return function(s,o){let a=function zR(n,t){switch(n){case ve.FullYear:return t.getFullYear();case ve.Month:return t.getMonth();case ve.Date:return t.getDate();case ve.Hours:return t.getHours();case ve.Minutes:return t.getMinutes();case ve.Seconds:return t.getSeconds();case ve.FractionalSeconds:return t.getMilliseconds();case ve.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,s);if((e>0||a>-e)&&(a+=e),n===ve.Hours)0===a&&-12===e&&(a=12);else if(n===ve.FractionalSeconds)return function $R(n,t){return ji(n,3).substr(0,t)}(a,t);const l=_i(o,ge.MinusSign);return ji(a,t,l,i,r)}}function yt(n,t,e=Gt.Format,i=!1){return function(r,s){return function GR(n,t,e,i,r,s){switch(e){case Pe.Months:return function IR(n,t,e){const i=Vn(n),s=wi([i[U.MonthsFormat],i[U.MonthsStandalone]],t);return wi(s,e)}(t,r,i)[n.getMonth()];case Pe.Days:return function kR(n,t,e){const i=Vn(n),s=wi([i[U.DaysFormat],i[U.DaysStandalone]],t);return wi(s,e)}(t,r,i)[n.getDay()];case Pe.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function PR(n){const t=Vn(n);return Nb(t),(t[U.ExtraData][2]||[]).map(i=>"string"==typeof i?Lf(i):[Lf(i[0]),Lf(i[1])])}(t),u=function NR(n,t,e){const i=Vn(n);Nb(i);const s=wi([i[U.ExtraData][0],i[U.ExtraData][1]],t)||[];return wi(s,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,v=o>=f.hours&&a>=f.minutes,D=o<p.hours||o===p.hours&&a<p.minutes;if(f.hours<p.hours){if(v&&D)return!0}else if(v||D)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function TR(n,t,e){const i=Vn(n),s=wi([i[U.DayPeriodsFormat],i[U.DayPeriodsStandalone]],t);return wi(s,e)}(t,r,i)[o<12?0:1];case Pe.Eras:return function OR(n,t){return wi(Vn(n)[U.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,n,t,e,i)}}function xc(n){return function(t,e,i){const r=-1*i,s=_i(e,ge.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case cn.Short:return(r>=0?"+":"")+ji(o,2,s)+ji(Math.abs(r%60),2,s);case cn.ShortGMT:return"GMT"+(r>=0?"+":"")+ji(o,1,s);case cn.Long:return"GMT"+(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);case cn.Extended:return 0===i?"Z":(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function Lb(n){return Cc(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Vf(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=Lb(e),o=function WR(n){const t=Cc(n,0,1).getDay();return Cc(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ji(r,n,_i(i,ge.MinusSign))}}function Mc(n,t=!1){return function(e,i){return ji(Lb(e).getFullYear(),n,_i(i,ge.MinusSign),t)}}const Bf={};function Vb(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function Bb(n){return n instanceof Date&&!isNaN(n.valueOf())}let Gf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return e?i=new e:(r=S(bn),i=new c1(r)),i;var r},providedIn:"root"}),n})();let c1=(()=>{class n extends Gf{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(RR(i||this.locale)(e)){case Zt.Zero:return"zero";case Zt.One:return"one";case Zt.Two:return"two";case Zt.Few:return"few";case Zt.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(S(bn))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ai=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ba(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${st(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(Pa),g(ms),g(de),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class h1{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vr=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new h1(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),zb(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{zb(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De),g(Pa))},n.\u0275dir=T({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function zb(n,t){n.context.$implicit=t.item}let vs=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new f1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Gb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Gb("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,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De))},n.\u0275dir=T({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class f1{constructor(){this.$implicit=null,this.ngIf=null}}function Gb(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${st(t)}'.`)}const Ub="browser";function Br(n){return n===Ub}function Ao(n){return"server"===n}let _s=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ms),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),bi=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(g(Un))},n.\u0275dir=T({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[hn]}),n})();function $i(n,t){return new K(2100,"")}class U1{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class W1{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const Y1=new W1,q1=new U1;let Kf=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(ic(e))return Y1;if(n_(e))return q1;throw $i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(Dr,16))},n.\u0275pipe=_n({name:"async",type:n,pure:!1}),n})();const tP=/#/g;let Ic=(()=>{class n{constructor(e){this._localization=e}transform(e,i,r){if(null==e)return"";if("object"!=typeof i||null===i)throw $i();return i[function $b(n,t,e,i){let r=`=${n}`;if(t.indexOf(r)>-1||(r=e.getPluralCategory(n,i),t.indexOf(r)>-1))return r;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${n}"`)}(e,Object.keys(i),this._localization,r)].replace(tP,e.toString())}}return n.\u0275fac=function(e){return new(e||n)(g(Gf,16))},n.\u0275pipe=_n({name:"i18nPlural",type:n,pure:!0}),n})(),Zb=(()=>{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw $i();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=_n({name:"slice",type:n,pure:!1}),n})(),To=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})();class Zf extends class hP extends class wR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function _R(n){_c||(_c=n)}(new Zf)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function fP(){return Ha=Ha||document.querySelector("base"),Ha?Ha.getAttribute("href"):null}();return null==e?null:function pP(n){Oc=Oc||document.createElement("a"),Oc.setAttribute("href",n);const t=Oc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ha=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function u1(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Oc,Ha=null;const eD=new ne("TRANSITION_ID"),mP=[{provide:ob,useFactory:function gP(n,t,e){return()=>{e.get(Df).donePromise.then(()=>{const i=sr(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[eD,Ie,fn],multi:!0}];class Jf{static init(){!function WF(n){Af=n}(new Jf)}addToWindow(t){ct.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ct.getAllAngularTestabilities=()=>t.getAllTestabilities(),ct.getAllAngularRootElements=()=>t.getAllRootElements(),ct.frameworkStabilizers||(ct.frameworkStabilizers=[]),ct.frameworkStabilizers.push(i=>{const r=ct.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?sr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let yP=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Fc=new ne("EventManagerPlugins");let Rc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(S(Fc),S(Ve))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class tD{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=sr().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let nD=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ja=(()=>{class n extends nD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(iD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(iD))}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function iD(n){sr().remove(n)}const ep={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/"},tp=/%COMP%/g;function Pc(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Pc(n,r,e):(r=r.replace(tp,n),e.push(r))}return e}function oD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Nc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new np(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case ki.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new CP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ki.ShadowDom:return new EP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(S(Rc),S(ja),S(Ra))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class np{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(ep[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=ep[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=ep[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(ri.DashCase|ri.Important)?t.style.setProperty(e,i,r&ri.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ri.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,oD(i)):this.eventManager.addEventListener(t,e,oD(i))}}class CP extends np{constructor(t,e,i,r){super(t),this.component=i;const s=Pc(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function wP(n){return"_ngcontent-%COMP%".replace(tp,n)}(r+"-"+i.id),this.hostAttr=function bP(n){return"_nghost-%COMP%".replace(tp,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class EP extends np{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Pc(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let xP=(()=>{class n extends tD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const lD=["alt","control","meta","shift"],MP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cD={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},AP={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TP=(()=>{class n extends tD{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sr().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(lD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function kP(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&cD.hasOwnProperty(t)&&(t=cD[t]))}return MP[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),lD.forEach(s=>{s!=r&&AP[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const RP=pb(mR,"browser",[{provide:vi,useValue:Ub},{provide:lb,useValue:function IP(){Zf.makeCurrent(),Jf.init()},multi:!0},{provide:Ie,useFactory:function FP(){return function LS(n){dd=n}(document),document},deps:[]}]),PP=[{provide:Mh,useValue:"root"},{provide:Rr,useFactory:function OP(){return new Rr},deps:[]},{provide:Fc,useClass:xP,multi:!0,deps:[Ie,Ve,vi]},{provide:Fc,useClass:TP,multi:!0,deps:[Ie]},{provide:Nc,useClass:Nc,deps:[Rc,ja,Ra]},{provide:Aa,useExisting:Nc},{provide:nD,useExisting:ja},{provide:ja,useClass:ja,deps:[Ie]},{provide:Mf,useClass:Mf,deps:[Ve]},{provide:Rc,useClass:Rc,deps:[Fc,Ve]},{provide:class uP{},useClass:yP,deps:[]}];let uD=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:Ra,useValue:e.appId},{provide:eD,useExisting:Ra},mP]}}}return n.\u0275fac=function(e){return new(e||n)(S(n,12))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:PP,imports:[To,yR]}),n})();"undefined"!=typeof window&&window;let Lc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new(e||n):S(fD),i},providedIn:"root"}),n})(),fD=(()=>{class n extends Lc{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case tt.NONE:return i;case tt.HTML:return Zi(i,"HTML")?si(i):ky(this._doc,String(i)).toString();case tt.STYLE:return Zi(i,"Style")?si(i):i;case tt.SCRIPT:if(Zi(i,"Script"))return si(i);throw new Error("unsafe value used in a script context");case tt.URL:return Dy(i),Zi(i,"URL")?si(i):ga(String(i));case tt.RESOURCE_URL:if(Zi(i,"ResourceURL"))return si(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function DA(n){return new yA(n)}(e)}bypassSecurityTrustStyle(e){return function CA(n){return new vA(n)}(e)}bypassSecurityTrustScript(e){return function EA(n){return new _A(n)}(e)}bypassSecurityTrustUrl(e){return function xA(n){return new wA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function SA(n){return new bA(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new e:function UP(n){return new fD(n.get(Ie))}(S(fn)),i},providedIn:"root"}),n})();class WP extends he{constructor(t,e){super()}schedule(t,e=0){return this}}class Vc extends WP{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let pD=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class zi extends pD{constructor(t,e=pD.now){super(t,()=>zi.delegate&&zi.delegate!==this?zi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return zi.delegate&&zi.delegate!==this?zi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const KP=new class qP extends zi{}(class YP extends Vc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),gD=new Y(n=>n.complete());function rp(n){return n?function XP(n){return new Y(t=>n.schedule(()=>t.complete()))}(n):gD}function Gi(...n){let t=n[n.length-1];return ce(t)?(n.pop(),di(n,t)):xn(n)}function mD(n,t){return new Y(t?e=>t.schedule(QP,0,{error:n,subscriber:e}):e=>e.error(n))}function QP({error:n,subscriber:t}){t.error(n)}class Di{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Gi(this.value);case"E":return mD(this.error);case"C":return rp()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Di("N",t):Di.undefinedValueNotification}static createError(t){return new Di("E",void 0,t)}static createComplete(){return Di.completeNotification}}Di.completeNotification=new Di("C"),Di.undefinedValueNotification=new Di("N",void 0);class Bc extends Be{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Bc.dispatch,this.delay,new JP(t,this.destination)))}_next(t){this.scheduleMessage(Di.createNext(t))}_error(t){this.scheduleMessage(Di.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Di.createComplete()),this.unsubscribe()}}class JP{constructor(t,e){this.notification=t,this.destination=e}}class yD extends O{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new eN(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new re;if(this.isStopped||this.hasError?o=he.EMPTY:(this.observers.push(t),o=new J(this,t)),r&&t.add(t=new Bc(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||KP).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class eN{constructor(t,e){this.time=t,this.value=e}}function ko(n,t){return"function"==typeof t?e=>e.pipe(ko((i,r)=>hr(n(i,r)).pipe(P((s,o)=>t(i,s,r,o))))):e=>e.lift(new tN(n))}class tN{constructor(t){this.project=t}call(t,e){return e.subscribe(new nN(t,this.project))}}class nN extends C{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Qn(this),r=this.destination;r.add(i),this.innerSubscription=F(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Hc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return Hc.schedule(n,0);if(void 0===window.requestAnimationFrame)return Hc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let sp;function dN(n,t,e){let i=e;return function rN(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function oN(n,t){if(!sp){const e=Element.prototype;sp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&sp.call(n,t)}(n,r)||(i=s,0))),i}class fN{constructor(t,e){this.componentFactory=e.get(br).resolveComponentFactory(t)}create(t){return new pN(this.componentFactory,t)}}class pN{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new yD(1),this.events=this.eventEmitters.pipe(ko(i=>qt(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Ve),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Hc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function aN(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=fn.create({providers:[],parent:this.injector}),i=function uN(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=dN(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Dr),this.implementsOnChanges=function sN(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(mc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(P(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Hc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new om(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class gN extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class op extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new re;return this._value}next(t){super.next(this._value=t)}}function vD(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const ap="inline",jc=["row","column","row-reverse","column-reverse"];function _D(n){let[t,e,i]=wD(n);return function vN(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function wD(n){var t;n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:"";let[e,i,r]=n.split(" ");return jc.find(s=>s===e)||(e=jc[0]),i===ap&&(i=r!==ap?r:"",r=ap),[e,yN(i),!!r]}function $a(n){let[t]=wD(n);return t.indexOf("row")>-1}function yN(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Er(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function Tn(n,t){return function(i){return i.lift(new _N(n,t))}}class _N{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new wN(t,this.predicate,this.thisArg))}}class wN extends Be{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function jr(){}function za(n,t,e){return function(r){return r.lift(new bN(n,t,e))}}class bN{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new DN(t,this.nextOrObserver,this.error,this.complete))}}class DN extends Be{constructor(t,e,i,r){super(t),this._tapNext=jr,this._tapError=jr,this._tapComplete=jr,this._tapError=i||jr,this._tapComplete=r||jr,Wt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||jr,this._tapError=e.error||jr,this._tapComplete=e.complete||jr)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const EN={provide:cb,useFactory:function CN(n,t){return()=>{if(Br(t)){const e=Array.from(n.querySelectorAll(`[class*=${bD}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${bD}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[Ie,vi],multi:!0},bD="flex-layout-";let lp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:[EN]}),n})();class ws{constructor(t=!1,e="all",i="",r="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new ws(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let xN=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const s=this.stylesheet.get(e);s?s.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ui=new ne("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>cp}),Io=new ne("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),up=new ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function DD(n,t){return n=n?n.clone():new ws,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class jt{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let bt=(()=>{class n{constructor(e,i,r,s){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(e,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:vD(i),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:vD(e);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||Ao(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return Br(this._platformId)?e.style.getPropertyValue(i):function SN(n,t){var e;return null!==(e=CD(n)[t])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let s="";return e&&((s=this.lookupInlineStyle(e,i))||(Br(this._platformId)?r||(s=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,i)))),s?s.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const s=e[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",Br(this._platformId)||!this._serverModuleLoaded?Br(this._platformId)?i.style.setProperty(r,a):MN(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(e){return new(e||n)(S(xN),S(Io),S(vi),S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function MN(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=CD(n);i[t]=null!=e?e:"",function AN(n,t){let e="";for(const i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}(n,i)}function CD(n){const t={},e=n.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);t[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return t}function Ga(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function TN(n,t){return(n.priority||0)-(t.priority||0)}let dp=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new op(new ws(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(Tn(o=>!i||e.indexOf(o.mediaQuery)>-1));return qt(new Y(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function kN(n,t){const e=n.filter(i=>!ED[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(r),e.forEach(s=>ED[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new ws(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new ws(!0,s))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function IN(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Br(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(S(Ve),S(vi),S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ED={},ON=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],xD="(orientation: portrait) and (max-width: 599.98px)",SD="(orientation: landscape) and (max-width: 959.98px)",MD="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",AD="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",TD="(orientation: portrait) and (min-width: 840px)",kD="(orientation: landscape) and (min-width: 1280px)",xr={HANDSET:`${xD}, ${SD}`,TABLET:`${MD} , ${AD}`,WEB:`${TD}, ${kD} `,HANDSET_PORTRAIT:`${xD}`,TABLET_PORTRAIT:`${MD} `,WEB_PORTRAIT:`${TD}`,HANDSET_LANDSCAPE:`${SD}`,TABLET_LANDSCAPE:`${AD}`,WEB_LANDSCAPE:`${kD}`},FN=[{alias:"handset",priority:2e3,mediaQuery:xr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:xr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:xr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:xr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:xr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:xr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:xr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:xr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:xr.WEB_PORTRAIT,overlapping:!0}],RN=/(\.|-|_)/g;function PN(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const BN=new ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Js(up),t=Js(Ui),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function VN(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?Er(e[i.alias],i):e[i.alias]=i}),function LN(n){return n.forEach(t=>{t.suffix||(t.suffix=function NN(n){return n.replace(RN,"|").split("|").map(PN).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:ON).concat(t.addOrientationBps?FN:[]),e)}});let hp=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(TN)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let s=this.findByMap.get(e);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(S(BN))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Oo="print",HN={alias:Oo,mediaQuery:Oo,priority:1e3};let jN=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new $N,this.deactivations=[]}withPrintQuery(e){return[...e,Oo]}isPrintEvent(e){return e.mediaQuery.startsWith(Oo)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Ga)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),DD(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new ws(!0,Oo))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&e.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(Ga))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(S(hp),S(Ui),S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class $N{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(HN),t.sort(Ga),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function zN(n){var t;return null!==(t=null==n?void 0:n.mediaQuery.startsWith(Oo))&&void 0!==t&&t}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let It=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new O,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=DD(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Ga),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Ga),this.updateStyles())}}init(e,i,r,s,o=[]){ID(this.updateMap,e,i,r),ID(this.clearMap,e,i,s),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,r){const s=this.elementMap.get(e);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(e,i,r,s){var o;let a=this.elementMap.get(e);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(e,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(Tn(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(e);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(e,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const s=this.updateMap.get(e);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(e,i,s.get(i)):s.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(i)){const a=qt(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});s.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=e.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(za(this.hook.interceptEvents(this)),Tn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(S(dp),S(hp),S(jN))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ID(n,t,e,i){var r;if(void 0!==i){const s=null!==(r=n.get(t))&&void 0!==r?r:new Map;s.set(e,i),n.set(t,s)}}let Nt=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new O,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(e);(!o||!s)&&(o=r.buildStyles(e,i),s&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,s]=this.styler.getFlowDirection(e);if(!s&&i){const o=_D(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(jt),g(bt),g(It))},n.\u0275dir=T({type:n,features:[hn]}),n})();function OD(n,t="1",e="1"){let i=[t,e,n],r=n.indexOf("calc");if(r>0){i[2]=FD(n.substring(r).trim());let s=n.substr(0,r).trim().split(" ");2==s.length&&(i[0]=s[0],i[1]=s[1])}else if(0==r)i[2]=FD(n.trim());else{let s=n.split(" ");i=3===s.length?s:[t,e,n]}return i}function FD(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ci(n){return null!=n&&"false"!=`${n}`}function PD(n,t=0){return function WN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function zc(n){return Array.isArray(n)?n:[n]}function en(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fo(n){return n instanceof de?n.nativeElement:n}function vt(n){return t=>t.lift(new YN(n))}class YN{constructor(t){this.notifier=t}call(t,e){const i=new qN(t),r=F(this.notifier,new Qn(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class qN extends C{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let jD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[lp]]}),n})();const fL=new ne("cdk-dir-doc",{providedIn:"root",factory:function pL(){return Js(Ie)}}),gL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Gc=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ie,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function mL(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?gL.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(S(fL,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})(),yL=(()=>{class n extends jt{buildStyles(e,{display:i}){const r=_D(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vL=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let _L=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=zD.get(s))&&void 0!==i?i:new Map,zD.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(yL),g(It),g(Ui))},n.\u0275dir=T({type:n,features:[H]}),n})(),$D=(()=>{class n extends _L{constructor(){super(...arguments),this.inputs=vL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[H]}),n})();const zD=new Map;let IL=(()=>{class n extends jt{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,s,...o]=e.split(" "),a=o.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=$a(l)?"max-width":"max-height",u=$a(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,h=d||"auto"===a,f=String(a).indexOf("%")>-1&&!d,p=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let v=d||p;r="0"==r?0:r,s="0"==s?0:s;const D=!r&&!s;let E={};const w={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const M=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":M?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":s=0,a="auto";break;case"auto":break;case"none":r=0,s=0,a="auto";break;default:!v&&!f&&!isNaN(a)&&(a+="%"),"0%"===a&&(v=!0),"0px"===a&&(a="0%"),E=Er(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":v?a:"100%"}:{flex:`${r} ${s} ${v?a:"100%"}`})}return E.flex||E["flex-grow"]||(E=Er(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(E[u]=D||v&&r?a:null,E[c]=D||!h&&s?a:null),E[u]||E[c]?i.hasWrap&&(E[d?"flex-basis":"flex"]=E[c]?d?E[c]:`${r} ${s} ${E[c]}`:d?E[u]:`${r} ${s} ${E[u]}`):E=Er(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`}),Er(E,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const OL=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let FL=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,s,i,o),this.layoutConfig=r,this.marshal=o,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(vt(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const r=this.direction,s=r.startsWith("row"),o=this.wrap;s&&o?this.styleCache=NL:s&&!o?this.styleCache=RL:!s&&o?this.styleCache=LL:!s&&!o&&(this.styleCache=PL);const l=OD(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:o})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=OD(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(Ui),g(IL),g(It))},n.\u0275dir=T({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[H]}),n})(),WD=(()=>{class n extends FL{constructor(){super(...arguments),this.inputs=OL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[H]}),n})();const RL=new Map,PL=new Map,NL=new Map,LL=new Map;let oV=(()=>{class n extends jt{buildStyles(e,i){const r={},[s,o]=e.split(" ");switch(s){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return Er(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===o?$a(i.layout)?null:"100%":null,"max-height":"stretch"===o&&$a(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const aV=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let lV=(()=>{class n extends Nt{constructor(e,i,r,s){super(e,r,i,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=fV:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=gV:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=pV:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=mV:"column-reverse"===i&&!r&&(this.styleCache=hV):this.styleCache=uV:this.styleCache=dV:this.styleCache=cV,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),jc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(oV),g(It))},n.\u0275dir=T({type:n,features:[H]}),n})(),YD=(()=>{class n extends lV{constructor(){super(...arguments),this.inputs=aV}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[H]}),n})();const cV=new Map,uV=new Map,dV=new Map,hV=new Map,fV=new Map,pV=new Map,gV=new Map,mV=new Map;let qD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[lp,Ro]]}),n})(),nC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[lp]]}),n})(),VB=(()=>{class n{constructor(e,i){Ao(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ui,useValue:Object.assign(Object.assign({},cp),e)},{provide:up,useValue:i,multi:!0},{provide:Io,useValue:!0}]:[{provide:Ui,useValue:Object.assign(Object.assign({},cp),e)},{provide:up,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(S(Io),S(vi))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[qD,jD,nC],qD,jD,nC]}),n})();function Wc(n,t){return new Y(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=hr(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let WC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})(),LH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[WC]]}),n})(),VH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[LH]}),n})();class uE{}const Sr="*";function nu(n,t=null){return{type:4,styles:t,timings:n}}function hE(n,t=null){return{type:2,steps:n,options:t}}function ar(n){return{type:6,styles:n,offset:null}}function iu(n,t,e){return{type:0,name:n,styles:t,options:e}}function ru(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function fE(n){Promise.resolve(null).then(n)}class Ka{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){fE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pE{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?fE(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ye=!1;function gE(n){return new K(3e3,Ye)}function b2(){return"undefined"!=typeof window&&void 0!==window.document}function Vp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ur(n){switch(n.length){case 0:return new Ka;case 1:return n[0];default:return new pE(n)}}function mE(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let v=p,D=u[p];if("offset"!==p)switch(v=t.normalizePropertyName(v,o),D){case"!":D=r[p];break;case Sr:D=s[p];break;default:D=t.normalizeStyleValue(p,v,D,o)}f[v]=D}),h||a.push(f),c=f,l=d}),o.length)throw function u2(n){return new K(3502,Ye)}();return a}function Bp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Hp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Hp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Hp(e,"destroy",n)))}}function Hp(n,t,e){const i=e.totalTime,s=jp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function jp(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function li(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function yE(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let $p=(n,t)=>!1,vE=(n,t,e)=>[],_E=null;function zp(n){const t=n.parentNode||n.host;return t===_E?null:t}(Vp()||"undefined"!=typeof Element)&&(b2()?(_E=(()=>document.documentElement)(),$p=(n,t)=>{for(;t;){if(t===n)return!0;t=zp(t)}return!1}):$p=(n,t)=>n.contains(t),vE=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Cs=null,wE=!1;function bE(n){Cs||(Cs=function C2(){return"undefined"!=typeof document?document.body:null}()||{},wE=!!Cs.style&&"WebkitAppearance"in Cs.style);let t=!0;return Cs.style&&!function D2(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Cs.style,!t&&wE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Cs.style)),t}const DE=$p,CE=vE;let EE=(()=>{class n{validateStyleProperty(e){return bE(e)}matchesElement(e,i){return!1}containsElement(e,i){return DE(e,i)}getParentElement(e){return zp(e)}query(e,i,r){return CE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Ka(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Gp=(()=>{class n{}return n.NOOP=new EE,n})();const Up="ng-enter",ou="ng-leave",au="ng-trigger",lu=".ng-trigger",SE="ng-animating",Wp=".ng-animating";function Es(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Yp(parseFloat(t[1]),t[2])}function Yp(n,t){return"s"===t?1e3*n:n}function cu(n,t,e){return n.hasOwnProperty("duration")?n:function S2(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(gE()),{duration:0,delay:0,easing:""};r=Yp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Yp(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function jH(){return new K(3100,Ye)}()),a=!0),s<0&&(t.push(function $H(){return new K(3101,Ye)}()),a=!0),a&&t.splice(l,0,gE())}return{duration:r,delay:s,easing:o}}(n,t,e)}function No(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Wr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else No(n,e);return e}function AE(n,t,e){return e?t+":"+e+";":""}function TE(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=AE(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=AE(0,T2(e),n.style[e]));n.setAttribute("style",t)}function lr(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=Kp(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Vp()&&TE(n))}function xs(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=Kp(e);n.style[i]=""}),Vp()&&TE(n))}function Xa(n){return Array.isArray(n)?1==n.length?n[0]:hE(n):n}const qp=new RegExp("{{\\s*(.+?)\\s*}}","g");function kE(n){let t=[];if("string"==typeof n){let e;for(;e=qp.exec(n);)t.push(e[1]);qp.lastIndex=0}return t}function uu(n,t,e){const i=n.toString(),r=i.replace(qp,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function GH(n){return new K(3003,Ye)}()),a=""),a.toString()});return r==i?n:r}function du(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const A2=/-+([a-z0-9])/g;function Kp(n){return n.replace(A2,(...t)=>t[1].toUpperCase())}function T2(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ci(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function UH(n){return new K(3004,Ye)}()}}function IE(n,t){return window.getComputedStyle(n)[t]}function P2(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function N2(n,t,e){if(":"==n[0]){const l=function L2(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function o2(n){return new K(3016,Ye)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function s2(n){return new K(3015,Ye)}()),t;const r=i[1],s=i[2],o=i[3];t.push(OE(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(OE(o,r))}(i,e,t)):e.push(n),e}const gu=new Set(["true","1"]),mu=new Set(["false","0"]);function OE(n,t){const e=gu.has(n)||mu.has(n),i=gu.has(t)||mu.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?gu.has(n):mu.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?gu.has(t):mu.has(t)),o&&a}}const V2=new RegExp("s*:selfs*,?","g");function Xp(n,t,e,i){return new B2(n).build(t,e,i)}class B2{constructor(t){this._driver=t}build(t,e,i){const r=new $2(e);this._resetContextStyleTimingState(r);const s=ci(this,Xa(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function YH(){return new K(3006,Ye)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function qH(){return new K(3007,Ye)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(yu(a)){const l=a;Object.keys(l).forEach(c=>{kE(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(du(s.values()),e.errors.push(function KH(n,t){return new K(3008,Ye)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ci(this,Xa(t.animation),e);return{type:1,matchers:P2(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ss(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ci(this,i,e)),options:Ss(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=ci(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ss(t.options)}}visitAnimate(t,e){const i=function G2(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Qp(cu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Qp(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=cu(e,t);return Qp(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:ar({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=ar(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==Sr?i.push(o):e.errors.push(function XH(n){return new K(3002,Ye)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(yu(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function QH(n,t,e,i,r){return new K(3010,Ye)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function M2(n,t,e){const i=t.params||{},r=kE(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function zH(n){return new K(3001,Ye)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function ZH(){return new K(3011,Ye)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(E=>{const w=this._makeStyleAst(E,e);let M=null!=w.offset?w.offset:function z2(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(yu(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(yu(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),I=0;return null!=M&&(s++,I=w.offset=M),l=l||I<0||I>1,a=a||I<c,c=I,o.push(I),w});l&&e.errors.push(function JH(){return new K(3012,Ye)}()),a&&e.errors.push(function e2(){return new K(3200,Ye)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function t2(){return new K(3202,Ye)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,v=e.currentAnimateTimings,D=v.duration;return u.forEach((E,w)=>{const M=h>0?w==f?1:h*w:o[w],I=M*D;e.currentTime=p+v.delay+I,v.duration=I,this._validateStyleAst(E,e),E.offset=M,i.styles.push(E)}),i}visitReference(t,e){return{type:8,animation:ci(this,Xa(t.animation),e),options:Ss(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ss(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ss(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function H2(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(V2,"")),n=n.replace(/@\*/g,lu).replace(/@\w+/g,e=>lu+"-"+e.substr(1)).replace(/:animating/g,Wp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,li(e.collectedStyles,e.currentQuerySelector,{});const a=ci(this,Xa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ss(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function n2(){return new K(3013,Ye)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:cu(t.timings,e.errors,!0);return{type:12,animation:ci(this,Xa(t.animation),e),timings:i,options:null}}}class $2{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yu(n){return!Array.isArray(n)&&"object"==typeof n}function Ss(n){return n?(n=No(n)).params&&(n.params=function j2(n){return n?No(n):null}(n.params)):n={},n}function Qp(n,t,e){return{duration:n,delay:t,easing:e}}function Zp(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class vu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Y2=new RegExp(":enter","g"),K2=new RegExp(":leave","g");function Jp(n,t,e,i,r,s={},o={},a,l,c=[]){return(new X2).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class X2{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new vu;const d=new eg(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),ci(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const v=h[p];if(v.element===e){f=v;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Zp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Es(i.duration):null,a=null!=i.delay?Es(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ci(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=_u);const o=Es(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ci(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Es(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),ci(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return cu(e.params?uu(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Es(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_u);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ci(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ci(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const _u={};class eg{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_u,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new wu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Es(i.duration)),null!=i.delay&&(r.delay=Es(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=uu(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new eg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=_u,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Q2(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Y2,"."+this._enterClassName)).replace(K2,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function r2(n){return new K(3014,Ye)}()),a}}class wu{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wu(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Sr,this._currentKeyframe[e]=Sr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function Z2(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=Sr})):Wr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=uu(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Sr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Wr(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Sr&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?du(t.values()):[],o=e.size?du(e.values()):[];if(i){const a=r[0],l=No(a);a.offset=0,l.offset=1,r=[a,l]}return Zp(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Q2 extends wu{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=Wr(t[0],!1);l.offset=0,s.push(l);const c=Wr(t[0],!1);c.offset=PE(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Wr(t[d],!1);h.offset=PE((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return Zp(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function PE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class tg{}class J2 extends tg{normalizePropertyName(t,e){return Kp(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(ej[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function WH(n,t){return new K(3005,Ye)}())}return o+s}}const ej=(()=>function tj(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function NE(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ng={};class LE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function nj(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ng,p=this.buildStyles(i,a&&a.params||ng,d),v=l&&l.params||ng,D=this.buildStyles(r,v,d),E=new Set,w=new Map,M=new Map,I="void"===r,j={params:Object.assign(Object.assign({},h),v)},be=u?[]:Jp(t,e,this.ast.animation,s,o,p,D,j,c,d);let Fe=0;if(be.forEach(fe=>{Fe=Math.max(fe.duration+fe.delay,Fe)}),d.length)return NE(e,this._triggerName,i,r,I,p,D,[],[],w,M,Fe,d);be.forEach(fe=>{const ae=fe.element,Q=li(w,ae,{});fe.preStyleProps.forEach($e=>Q[$e]=!0);const N=li(M,ae,{});fe.postStyleProps.forEach($e=>N[$e]=!0),ae!==e&&E.add(ae)});const Ce=du(E.values());return NE(e,this._triggerName,i,r,I,p,D,be,Ce,w,M,Fe)}}class ij{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=No(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=uu(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class sj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new ij(r.style,r.options&&r.options.params||{},i)}),VE(this.states,"true","1"),VE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new LE(t,r,this.states))}),this.fallbackTransition=function oj(n,t,e){return new LE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function VE(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const aj=new vu;class lj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Xp(this._driver,e,i,[]);if(i.length)throw function d2(n){return new K(3503,Ye)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=mE(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Jp(this._driver,e,s,Up,ou,{},{},i,aj,r),o.forEach(u=>{const d=li(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function h2(){return new K(3300,Ye)}()),o=[]),r.length)throw function f2(n){return new K(3504,Ye)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Sr)})});const c=Ur(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function p2(n){return new K(3301,Ye)}();return e}listen(t,e,i,r){const s=jp(e,"","","");return Bp(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const BE="ng-animate-queued",ig="ng-animate-disabled",fj=[],HE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ei="__ng_removed";class rg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function vj(n){return null!=n?n:null}(i?t.value:t),i){const s=No(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Qa="void",sg=new rg(Qa);class gj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,xi(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function g2(n,t){return new K(3302,Ye)}();if(null==i||0==i.length)throw function m2(n){return new K(3303,Ye)}();if(!function _j(n){return"start"==n||"done"==n}(i))throw function y2(n,t){return new K(3400,Ye)}();const s=li(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=li(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(xi(t,au),xi(t,au+"-"+e),a[e]=sg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function v2(n){return new K(3401,Ye)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new og(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(xi(t,au),xi(t,au+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new rg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=sg),c.value!==Qa&&l.value===c.value){if(!function Dj(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const v=[],D=s.matchStyles(l.value,l.params,v),E=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{xs(t,D),lr(t,E)})}return}const h=li(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(xi(t,BE),o.onStart(()=>{Lo(t,BE)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const D=this._engine.playersByElement.get(t);if(D){let E=D.indexOf(o);E>=0&&D.splice(E,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,lu,!0);i.forEach(r=>{if(r[Ei])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Qa,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Ur(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sg,u=new rg(Qa),d=new og(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Ei];(!s||s===HE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){xi(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=jp(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Bp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class mj{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new gj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(bu(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!bu(e))return;const s=e[Ei];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),xi(t,ig)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Lo(t,ig))}removeNode(t,e,i,r){if(bu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[Ei]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return bu(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,lu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Wp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ur(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[Ei];if(i&&i.setForRemoval){if(t[Ei]=HE,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(ig))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)xi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ur(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function _2(n){return new K(3402,Ye)}()}_flushAnimations(t,e){const i=new vu,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(W=>{u.add(W);const le=this.driver.query(W,".ng-animate-queued",!0);for(let ue=0;ue<le.length;ue++)u.add(le[ue])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=zE(h,this.collectedEnterElements),p=new Map;let v=0;f.forEach((W,le)=>{const ue=Up+v++;p.set(le,ue),W.forEach(Ue=>xi(Ue,ue))});const D=[],E=new Set,w=new Set;for(let W=0;W<this.collectedLeaveElements.length;W++){const le=this.collectedLeaveElements[W],ue=le[Ei];ue&&ue.setForRemoval&&(D.push(le),E.add(le),ue.hasAnimation?this.driver.query(le,".ng-star-inserted",!0).forEach(Ue=>E.add(Ue)):w.add(le))}const M=new Map,I=zE(h,Array.from(E));I.forEach((W,le)=>{const ue=ou+v++;M.set(le,ue),W.forEach(Ue=>xi(Ue,ue))}),t.push(()=>{f.forEach((W,le)=>{const ue=p.get(le);W.forEach(Ue=>Lo(Ue,ue))}),I.forEach((W,le)=>{const ue=M.get(le);W.forEach(Ue=>Lo(Ue,ue))}),D.forEach(W=>{this.processLeaveNode(W)})});const j=[],be=[];for(let W=this._namespaceList.length-1;W>=0;W--)this._namespaceList[W].drainQueuedTransitions(e).forEach(ue=>{const Ue=ue.player,Xe=ue.element;if(j.push(Ue),this.collectedEnterElements.length){const $n=Xe[Ei];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(ue.triggerName)){const Ps=$n.previousTriggersValues.get(ue.triggerName),es=this.statesByElement.get(ue.element);es&&es[ue.triggerName]&&(es[ue.triggerName].value=Ps)}return void Ue.destroy()}}const Ot=!d||!this.driver.containsElement(d,Xe),mn=M.get(Xe),Mi=p.get(Xe),pt=this._buildInstruction(ue,i,Mi,mn,Ot);if(pt.errors&&pt.errors.length)return void be.push(pt);if(Ot)return Ue.onStart(()=>xs(Xe,pt.fromStyles)),Ue.onDestroy(()=>lr(Xe,pt.toStyles)),void r.push(Ue);if(ue.isFallbackTransition)return Ue.onStart(()=>xs(Xe,pt.fromStyles)),Ue.onDestroy(()=>lr(Xe,pt.toStyles)),void r.push(Ue);const pl=[];pt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||pl.push($n)}),pt.timelines=pl,i.append(Xe,pt.timelines),o.push({instruction:pt,player:Ue,element:Xe}),pt.queriedElements.forEach($n=>li(a,$n,[]).push(Ue)),pt.preStyleProps.forEach(($n,Ps)=>{const es=Object.keys($n);if(es.length){let Ns=l.get(Ps);Ns||l.set(Ps,Ns=new Set),es.forEach(Yg=>Ns.add(Yg))}}),pt.postStyleProps.forEach(($n,Ps)=>{const es=Object.keys($n);let Ns=c.get(Ps);Ns||c.set(Ps,Ns=new Set),es.forEach(Yg=>Ns.add(Yg))})});if(be.length){const W=[];be.forEach(le=>{W.push(function w2(n,t){return new K(3505,Ye)}())}),j.forEach(le=>le.destroy()),this.reportError(W)}const Fe=new Map,Ce=new Map;o.forEach(W=>{const le=W.element;i.has(le)&&(Ce.set(le,le),this._beforeAnimationBuild(W.player.namespaceId,W.instruction,Fe))}),r.forEach(W=>{const le=W.element;this._getPreviousPlayers(le,!1,W.namespaceId,W.triggerName,null).forEach(Ue=>{li(Fe,le,[]).push(Ue),Ue.destroy()})});const fe=D.filter(W=>UE(W,l,c)),ae=new Map;$E(ae,this.driver,w,c,Sr).forEach(W=>{UE(W,l,c)&&fe.push(W)});const N=new Map;f.forEach((W,le)=>{$E(N,this.driver,new Set(W),l,"!")}),fe.forEach(W=>{const le=ae.get(W),ue=N.get(W);ae.set(W,Object.assign(Object.assign({},le),ue))});const $e=[],Ge=[],qi={};o.forEach(W=>{const{element:le,player:ue,instruction:Ue}=W;if(i.has(le)){if(u.has(le))return ue.onDestroy(()=>lr(le,Ue.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Ue.totalTime),void r.push(ue);let Xe=qi;if(Ce.size>1){let mn=le;const Mi=[];for(;mn=mn.parentNode;){const pt=Ce.get(mn);if(pt){Xe=pt;break}Mi.push(mn)}Mi.forEach(pt=>Ce.set(pt,Xe))}const Ot=this._buildAnimation(ue.namespaceId,Ue,Fe,s,N,ae);if(ue.setRealPlayer(Ot),Xe===qi)$e.push(ue);else{const mn=this.playersByElement.get(Xe);mn&&mn.length&&(ue.parentPlayer=Ur(mn)),r.push(ue)}}else xs(le,Ue.fromStyles),ue.onDestroy(()=>lr(le,Ue.toStyles)),Ge.push(ue),u.has(le)&&r.push(ue)}),Ge.forEach(W=>{const le=s.get(W.element);if(le&&le.length){const ue=Ur(le);W.setRealPlayer(ue)}}),r.forEach(W=>{W.parentPlayer?W.syncPlayerEvents(W.parentPlayer):W.destroy()});for(let W=0;W<D.length;W++){const le=D[W],ue=le[Ei];if(Lo(le,ou),ue&&ue.hasAnimation)continue;let Ue=[];if(a.size){let Ot=a.get(le);Ot&&Ot.length&&Ue.push(...Ot);let mn=this.driver.query(le,Wp,!0);for(let Mi=0;Mi<mn.length;Mi++){let pt=a.get(mn[Mi]);pt&&pt.length&&Ue.push(...pt)}}const Xe=Ue.filter(Ot=>!Ot.destroyed);Xe.length?wj(this,le,Xe):this.processLeaveNode(le)}return D.length=0,$e.forEach(W=>{this.players.push(W),W.onDone(()=>{W.destroy();const le=this.players.indexOf(W);this.players.splice(le,1)}),W.play()}),$e}elementContainsData(t,e){let i=!1;const r=e[Ei];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Qa;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=li(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}xs(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const v=p.element;u.add(v);const D=v[Ei];if(D&&D.removedBeforeQueried)return new Ka(p.duration,p.delay);const E=v!==l,w=function bj(n){const t=[];return GE(n,t),t}((i.get(v)||fj).map(Fe=>Fe.getRealPlayer())).filter(Fe=>!!Fe.element&&Fe.element===v),M=s.get(v),I=o.get(v),j=mE(0,this._normalizer,0,p.keyframes,M,I),be=this._buildPlayer(p,j,w);if(p.subTimeline&&r&&d.add(v),E){const Fe=new og(t,a,v);Fe.setRealPlayer(be),c.push(Fe)}return be});c.forEach(p=>{li(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function yj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>xi(p,SE));const f=Ur(h);return f.onDestroy(()=>{u.forEach(p=>Lo(p,SE)),lr(l,e.toStyles)}),d.forEach(p=>{li(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ka(t.duration,t.delay)}}class og{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ka,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Bp(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){li(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function bu(n){return n&&1===n.nodeType}function jE(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function $E(n,t,e,i,r){const s=[];e.forEach(l=>s.push(jE(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[Ei]=pj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>jE(l,s[a++])),o}function zE(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function xi(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Lo(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function wj(n,t,e){Ur(e).onDone(()=>n.processLeaveNode(t))}function GE(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof pE?GE(i.players,t):t.push(i)}}function UE(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Du{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new mj(t,e,i),this._timelineEngine=new lj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Xp(this._driver,s,l,[]);if(l.length)throw function c2(n,t){return new K(3404,Ye)}();a=function rj(n,t,e){return new sj(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=yE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=yE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ej=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&lr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(lr(this._element,this._initialStyles),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(xs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xs(this._element,this._endStyles),this._endStyles=null),lr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ag(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];xj(r)&&(t=t||{},t[r]=n[r])}return t}function xj(n){return"display"===n||"position"===n}class WE{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:IE(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Sj{validateStyleProperty(t){return bE(t)}matchesElement(t,e){return!1}containsElement(t,e){return DE(t,e)}getParentElement(t){return zp(t)}query(t,e,i){return CE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof WE);(function k2(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function I2(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=IE(n,l)})}}return t}(t,e=e.map(h=>Wr(h,!1)),c);const d=function Cj(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=ag(t[0]),t.length>1&&(i=ag(t[t.length-1]))):t&&(e=ag(t)),e||i?new Ej(n,e,i):null}(t,e);return new WE(t,e,l,d)}}let Mj=(()=>{class n extends uE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ki.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?hE(e):e;return YE(this._renderer,null,i,"register",[r]),new Aj(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(S(Aa),S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class Aj extends class BH{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Tj(this._id,t,e||{},this._renderer)}}class Tj{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return YE(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function YE(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const qE="@.disabled";let kj=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new KE("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Ij(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(S(Aa),S(Du),S(Ve))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class KE{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==qE?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ij extends KE{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qE?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Oj(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Fj(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let Rj=(()=>{class n extends Du{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(S(Ie),S(Gp),S(tg))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Vo=new ne("AnimationModuleType"),XE=[{provide:uE,useClass:Mj},{provide:tg,useFactory:function Pj(){return new J2}},{provide:Du,useClass:Rj},{provide:Aa,useFactory:function Nj(n,t,e){return new kj(n,t,e)},deps:[Nc,Du,Ve]}],QE=[{provide:Gp,useFactory:()=>new Sj},{provide:Vo,useValue:"BrowserAnimations"},...XE],Lj=[{provide:Gp,useClass:EE},{provide:Vo,useValue:"NoopAnimations"},...XE];let Vj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Lj:QE}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:QE,imports:[uD]}),n})();var Eu=function(){return Eu=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},Eu.apply(this,arguments)};function b(n,t,e,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}function Bo(n,t){return function(e,i){t(e,i,n)}}function _(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}var jj=function(){function n(){}return n.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},n.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},n.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},n.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},n.prototype.position=function(t,e){void 0===e&&(e=!0);var i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))i={top:(i=t.getBoundingClientRect()).top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{var s=this.offsetParent(t);i=this.offset(t,!1),s!==document.documentElement&&(r=this.offset(s,!1)),r.top+=s.clientTop,r.left+=s.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i},n.prototype.offset=function(t,e){void 0===e&&(e=!0);var i=t.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft,s={height:i.height||t.offsetHeight,width:i.width||t.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s},n.prototype.positionElements=function(t,e,i,r){var s=i.split("-"),o=s[0],a=void 0===o?"top":o,l=s[1],c=void 0===l?"center":l,u=r?this.offset(t,!1):this.position(t,!1),d=this.getAllStyles(e),h=parseFloat(d.marginTop),f=parseFloat(d.marginBottom),p=parseFloat(d.marginLeft),v=parseFloat(d.marginRight),D=0,E=0;switch(a){case"top":D=u.top-(e.offsetHeight+h+f);break;case"bottom":D=u.top+u.height;break;case"left":E=u.left-(e.offsetWidth+p+v);break;case"right":E=u.left+u.width}switch(c){case"top":D=u.top;break;case"bottom":D=u.top+u.height-e.offsetHeight;break;case"left":E=u.left;break;case"right":E=u.left+u.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?E=u.left+u.width/2-e.offsetWidth/2:D=u.top+u.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(E)+"px, "+Math.round(D)+"px)";var w=e.getBoundingClientRect(),M=document.documentElement,I=window.innerHeight||M.clientHeight,j=window.innerWidth||M.clientWidth;return w.left>=0&&w.top>=0&&w.right<=j&&w.bottom<=I},n}(),$j=/\s+/,JE=new jj;const Za=new zi(Vc);function cg(n){return!Dt(n)&&n-parseFloat(n)+1>=0}function e0(n=0,t,e){let i=-1;return cg(t)?i=Number(t)<1?1:Number(t):ce(t)&&(e=t),ce(e)||(e=Za),new Y(r=>{const s=cg(n)?n:+n-e.now();return e.schedule(Gj,s,{index:0,period:i,subscriber:r})})}function Gj(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function ug(...n){return function Yj(){return Mt(1)}()(Gi(...n))}function Su(...n){const t=n[n.length-1];return ce(t)?(n.pop(),e=>ug(n,e,t)):e=>ug(n,e)}var Wi=function(){return Wi=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Wi.apply(this,arguments)},t0=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},Ja=(()=>(function(n){n[n.SUNDAY=0]="SUNDAY",n[n.MONDAY=1]="MONDAY",n[n.TUESDAY=2]="TUESDAY",n[n.WEDNESDAY=3]="WEDNESDAY",n[n.THURSDAY=4]="THURSDAY",n[n.FRIDAY=5]="FRIDAY",n[n.SATURDAY=6]="SATURDAY"}(Ja||(Ja={})),Ja))(),Kj=[Ja.SUNDAY,Ja.SATURDAY],Yr=86400;function n0(n,t){var e=t.startDate,r=t.excluded,s=t.precision;if(r.length<1)return 0;for(var a=n.getDay,l=n.addDays,c=(0,n.addSeconds)(e,t.seconds-1),u=a(e),d=a(c),h=0,f=e,p=function(){var v=a(f);r.some(function(D){return D===v})&&(h+=function Xj(n,t){var i=t.day,s=t.dayEnd,o=t.startDate,a=t.endDate,l=n.differenceInSeconds,u=n.startOfDay;if("minutes"===t.precision){if(i===t.dayStart)return l((0,n.endOfDay)(o),o)+1;if(i===s)return l(a,u(a))+1}return Yr}(n,{dayStart:u,dayEnd:d,day:v,precision:s,startDate:e,endDate:c})),f=l(f,1)};f<c;)p();return h}function el(n,t){var i=t.periodStart,r=t.periodEnd;return t.events.filter(function(s){return function Jj(n,t){var e=t.event,i=t.periodStart,r=t.periodEnd,s=n.isSameSecond,o=e.start,a=e.end||e.start;return!!(o>i&&o<r||a>i&&a<r||o<i&&a>r||s(o,i)||s(o,r)||s(a,i)||s(a,r))}(n,{event:s,periodStart:i,periodEnd:r})})}function r0(n,t){var e=t.date,i=t.weekendDays,r=void 0===i?Kj:i,o=n.isSameDay,a=n.getDay,l=(0,n.startOfDay)(new Date),c=a(e);return{date:e,day:c,isPast:e<l,isToday:o(e,l),isFuture:e>l,isWeekend:r.indexOf(c)>-1}}function fg(n,t){for(var r=t.excluded,s=void 0===r?[]:r,o=t.weekendDays,a=t.viewStart,l=void 0===a?n.startOfWeek(t.viewDate,{weekStartsOn:t.weekStartsOn}):a,c=t.viewEnd,u=void 0===c?n.addDays(l,7):c,d=n.addDays,h=n.getDay,f=[],p=l;p<u;)s.some(function(v){return h(p)===v})||f.push(r0(n,{date:p,weekendDays:o})),p=d(p,1);return f}function t$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.excluded,s=void 0===r?[]:r,o=t.precision,a=void 0===o?"days":o,l=t.absolutePositionedEvents,c=void 0!==l&&l,u=t.viewStart,d=t.viewEnd;u=n.startOfDay(u),d=n.endOfDay(d);var h=n.differenceInSeconds,f=n.differenceInDays,p=function e$(n,t){for(var i=t.date2,r=t.excluded,s=t.date1,o=0;s<i;)-1===r.indexOf(n.getDay(s))&&o++,s=n.addDays(s,1);return o}(n,{date1:u,date2:d,excluded:s}),v=f(d,u)+1,D=i.filter(function(M){return M.allDay}).map(function(M){var I=function Zj(n,t){var e=t.event,i=t.startOfWeek,r=t.excluded,s=t.precision,o=n.differenceInDays,a=n.startOfDay,l=n.differenceInSeconds;if(e.start<i)return 0;var c=0;switch(s){case"days":c=o(a(e.start),i)*Yr;break;case"minutes":c=l(e.start,i)}return c-=n0(n,{startDate:i,seconds:c,excluded:r,precision:s}),Math.abs(c/Yr)}(n,{event:M,startOfWeek:u,excluded:s,precision:a}),j=function Qj(n,t){var e=t.event,i=t.offset,s=t.excluded,o=t.precision,a=t.totalDaysInView,c=n.differenceInSeconds,u=n.addDays,d=n.endOfDay,h=n.differenceInDays,f=Yr,p=(0,n.max)([e.start,t.startOfWeekDate]);e.end&&(f="minutes"===o?c(e.end,p):h(u(d(e.end),1),p)*Yr);var v=i*Yr,E=a*Yr;return v+f>E&&(f=E-v),(f-=n0(n,{startDate:p,seconds:f,excluded:s,precision:o}))/Yr}(n,{event:M,offset:I,startOfWeekDate:u,excluded:s,precision:a,totalDaysInView:v});return{event:M,offset:I,span:j}}).filter(function(M){return M.offset<p}).filter(function(M){return M.span>0}).map(function(M){return{event:M.event,offset:M.offset,span:M.span,startsBeforeWeek:M.event.start<u,endsAfterWeek:(M.event.end||M.event.start)>d}}).sort(function(M,I){var j=h(M.event.start,I.event.start);return 0===j?h(I.event.end||I.event.start,M.event.end||M.event.start):j}),E=[],w=[];return D.forEach(function(M,I){if(-1===w.indexOf(M)){w.push(M);var j=M.span+M.offset,be=D.slice(I+1).filter(function(fe){if(fe.offset>=j&&j+fe.span<=v&&-1===w.indexOf(fe)){var ae=fe.offset-j;return c||(fe.offset=ae),j+=fe.span+ae,w.push(fe),!0}}),Fe=t0([M],be),Ce=Fe.filter(function(fe){return fe.event.id}).map(function(fe){return fe.event.id}).join("-");E.push(Wi({row:Fe},Ce?{id:Ce}:{}))}}),E}function n$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.hourDuration,o=t.dayStart,a=t.dayEnd,l=t.weekStartsOn,c=t.excluded,u=t.weekendDays,d=t.segmentHeight,h=t.viewStart,f=t.viewEnd,p=t.minimumEventHeight,v=function o$(n,t){var e=t.viewDate,i=t.hourSegments,r=t.hourDuration,s=t.dayStart,o=t.dayEnd,a=n.setMinutes,l=n.setHours,c=n.startOfDay,u=n.startOfMinute,d=n.endOfDay,h=n.addMinutes,p=n.addDays,v=[],D=a(l(c(e),Tu(s.hour)),ku(s.minute)),E=a(l(u(d(e)),Tu(o.hour)),ku(o.minute)),w=(r||60)/i,M=c(e),I=d(e),j=function(Q){return Q};M.getTimezoneOffset()!==I.getTimezoneOffset()&&(M=p(M,1),D=p(D,1),E=p(E,1),j=function(Q){return p(Q,-1)});for(var be=r?1440/r:60,Fe=0;Fe<be;Fe++){for(var Ce=[],fe=0;fe<i;fe++){var ae=h(h(D,Fe*(r||60)),fe*w);ae>=D&&ae<E&&Ce.push({date:j(ae),displayDate:ae,isStart:0===fe})}Ce.length>0&&v.push({segments:Ce})}return v}(n,{viewDate:i,hourSegments:r,hourDuration:s,dayStart:o,dayEnd:a}),D=fg(n,{viewDate:i,weekStartsOn:l,excluded:c,weekendDays:u,viewStart:h,viewEnd:f}),E=n.setHours,w=n.setMinutes,M=n.getHours,I=n.getMinutes;return D.map(function(j){var be=function s$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.dayStart,o=t.dayEnd,a=t.eventWidth,l=t.segmentHeight,c=t.hourDuration,u=t.minimumEventHeight,d=n.setMinutes,h=n.setHours,f=n.startOfDay,p=n.startOfMinute,v=n.endOfDay,D=n.differenceInMinutes,E=d(h(f(i),Tu(s.hour)),ku(s.minute)),w=d(h(p(v(i)),Tu(o.hour)),ku(o.minute));w.setSeconds(59,999);var M=[],I=el(n,{events:e.filter(function(Ce){return!Ce.allDay}),periodStart:E,periodEnd:w}),j=I.sort(function(Ce,fe){return Ce.start.valueOf()-fe.start.valueOf()}).map(function(Ce){var fe=Ce.start,ae=Ce.end||fe,Q=fe<E,N=ae>w,$e=r*l/(c||60),Ge=0;if(fe>E){var qi=fe.getTimezoneOffset(),le=E.getTimezoneOffset()-qi;Ge+=D(fe,E)+le}Ge*=$e,Ge=Math.floor(Ge);var ue=Q?E:fe,Ue=N?w:ae,Xe=ue.getTimezoneOffset()-Ue.getTimezoneOffset(),Ot=D(Ue,ue)+Xe;Ce.end?Ot*=$e:Ot=l,u&&Ot<u&&(Ot=u),Ot=Math.floor(Ot);for(var Mi=Au(M,Ge,Ge+Ot),pt=0;Mi.some(function(Wg){return Wg.left===pt});)pt+=a;var pl={event:Ce,height:Ot,width:a,top:Ge,left:pt,startsBeforeDay:Q,endsAfterDay:N};return M.push(pl),pl}),be=Math.max.apply(Math,j.map(function(Ce){return Ce.left+Ce.width})),Fe=el(n,{events:e.filter(function(Ce){return Ce.allDay}),periodStart:f(E),periodEnd:v(w)});return{events:j,width:be,allDayEvents:Fe,period:{events:I,start:E,end:w}}}(n,{events:e,viewDate:j.date,hourSegments:r,dayStart:o,dayEnd:a,segmentHeight:d,eventWidth:1,hourDuration:s,minimumEventHeight:p}),Fe=v.map(function(ae){var Q=ae.segments.map(function(N){var $e=w(E(j.date,M(N.date)),I(N.date));return Wi(Wi({},N),{date:$e})});return Wi(Wi({},ae),{segments:Q})});function Ce(ae,Q){var N=Math.max.apply(Math,Q.map(function(Ge){return Ge.left+1})),$e=ae.filter(function(Ge){return Ge.left>=N}).filter(function(Ge){return Au(Q,Ge.top,Ge.top+Ge.height).length>0});return $e.length>0?Ce(ae,$e):N}var fe=be.events.map(function(ae){var N=100/Ce(be.events,Au(be.events,ae.top,ae.top+ae.height));return Wi(Wi({},ae),{left:ae.left*N,width:N})});return{hours:Fe,date:j.date,events:fe.map(function(ae){var Q=Au(fe.filter(function(N){return N.left>ae.left}),ae.top,ae.top+ae.height);return Q.length>0?Wi(Wi({},ae),{width:Math.min.apply(Math,Q.map(function(N){return N.left}))-ae.left}):ae})}})}function Au(n,t,e){return n.filter(function(i){var r=i.top,s=i.top+i.height;return t<s&&s<e||t<r&&r<e||r<=t&&e<=s})}function Tu(n){return Math.max(Math.min(23,n),0)}function ku(n){return Math.max(Math.min(59,n),0)}var qr=(()=>(function(n){n.NotArray="Events must be an array",n.StartPropertyMissing="Event is missing the `start` property",n.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",n.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",n.EndsBeforeStart="Event `start` property occurs after the `end`"}(qr||(qr={})),qr))();class l$ extends Be{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class c$ extends Be{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function u$(n,t,e,i,r=new c$(n,e,i)){if(!r.closed)return t instanceof Y?t.subscribe(r):Kn(t)(r)}const s0={};function o0(...n){let t,e;return ce(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Dt(n[0])&&(n=n[0]),xn(n,e).lift(new d$(t))}class d${constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h$(t,this.resultSelector))}}class h$ extends l${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(s0),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(u$(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===s0?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function tl(n,t,e,i){return Wt(e)&&(i=e,e=void 0),i?tl(n,t,e).pipe(P(r=>Dt(r)?i(...r):i(r))):new Y(r=>{a0(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function a0(n,t,e,i,r){let s;if(function g$(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function p$(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function f$(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)a0(n[o],t,e,i,r)}i.add(s)}function pg(n,t){return n=function m$(n,t){return void 0===n?void 0===t?n:t:n}(n,t),"function"==typeof n?function(){for(var i=arguments,r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=i[o];return!!n.apply(this,s)}:n?function(){return!0}:function(){return!1}}var gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},l0=function(n){return null!=n&&"object"===(void 0===n?"undefined":gg(n))&&1===n.nodeType&&"object"===gg(n.style)&&"object"===gg(n.ownerDocument)};function c0(n,t){if(t=yg(t,!0),!l0(t))return-1;for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1}function mg(n,t){return-1!==c0(n,t)}function y$(n,t){for(var e=0;e<t.length;e++)mg(n,t[e])||n.push(t[e]);return t}function v$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return y$(n,e=e.map(yg))}function _$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return e.map(yg).reduce(function(r,s){var o=c0(n,s);return-1!==o?r.concat(n.splice(o,1)):r},[])}function yg(n,t){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!l0(n)&&!t)throw new TypeError(n+" is not a DOM element.");return n}function u0(n){if(n===window)return function b$(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var t={};return Object.defineProperties(t,n),t}();try{var t=n.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var t,vg=void 0;"function"!=typeof Object.create?(t=function(){},vg=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==i&&Object.defineProperties(r,i),null===e&&(r.__proto__=null),r}):vg=Object.create;var C$=vg,Ms=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function _g(n,t){t=t||{};for(var e=C$(n),i=0;i<Ms.length;i++)void 0!==t[Ms[i]]&&(e[Ms[i]]=t[Ms[i]]);return e}function wg(n,t){console.log("data ",t),n.data=t||{},n.dispatched="mousemove"}var nl=["webkit","moz","ms","o"],il=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=nl.length;n<t&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[nl[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var r=(new Date).getTime(),s=Math.max(0,16-r-e),o=window.setTimeout(function(){return i(r+s)},s);return e=r+s,o}}return window.requestAnimationFrame.bind(window)}(),Ho=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=nl.length;n<t&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[nl[n]+"CancelAnimationFrame"]||window[nl[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function x$(n,t){void 0===t&&(t={});var e=this,i=4,r=!1;if("object"!=typeof t.margin){var s=t.margin||-1;this.margin={left:s,right:s,top:s,bottom:s}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var o={},a=function w$(n,t){var e=pg((t=t||{}).allowUpdate,!0);return function(r){if(r=r||window.event,n.target=r.target||r.srcElement||r.originalTarget,n.element=this,n.type=r.type,e(r)){if(r.targetTouches)n.x=r.targetTouches[0].clientX,n.y=r.targetTouches[0].clientY,n.pageX=r.targetTouches[0].pageX,n.pageY=r.targetTouches[0].pageY,n.screenX=r.targetTouches[0].screenX,n.screenY=r.targetTouches[0].screenY;else{if(null===r.pageX&&null!==r.clientX){var s=r.target&&r.target.ownerDocument||document,o=s.documentElement,a=s.body;n.pageX=r.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),n.pageY=r.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}else n.pageX=r.pageX,n.pageY=r.pageY;n.x=r.clientX,n.y=r.clientY,n.screenX=r.screenX,n.screenY=r.screenY}n.clientX=n.x,n.clientY=n.y}}}(o),l=function E$(n){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(s){for(var o=0;o<Ms.length;o++)t[Ms[o]]=s[Ms[o]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function r(){n&&n.removeEventListener("mousemove",e,!1),t=null},dispatch:MouseEvent?function(o,a,l){var c=new MouseEvent("mousemove",_g(t,a));return wg(c,l),o.dispatchEvent(c)}:"function"==typeof document.createEvent?function(o,a,l){var c=_g(t,a),u=document.createEvent("MouseEvents");return u.initMouseEvent("mousemove",!0,!0,window,0,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget),wg(u,l),o.dispatchEvent(u)}:"function"==typeof document.createEventObject?function(o,a,l){var c=document.createEventObject(),u=_g(t,a);for(var d in u)c[d]=u[d];return wg(c,l),o.dispatchEvent(c)}:void 0}}(),c=!1;window.addEventListener("mousemove",a,!1),window.addEventListener("touchmove",a,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=pg(t.autoScroll),this.syncMove=pg(t.syncMove,!1),this.destroy=function(Q){window.removeEventListener("mousemove",a,!1),window.removeEventListener("touchmove",a,!1),window.removeEventListener("mousedown",v,!1),window.removeEventListener("touchstart",v,!1),window.removeEventListener("mouseup",D,!1),window.removeEventListener("touchend",D,!1),window.removeEventListener("pointerup",D,!1),window.removeEventListener("mouseleave",w,!1),window.removeEventListener("mousemove",j,!1),window.removeEventListener("touchmove",j,!1),window.removeEventListener("scroll",p,!0),n=[],Q&&E()},this.add=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return v$.apply(void 0,[n].concat(Q)),this},this.remove=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return _$.apply(void 0,[n].concat(Q))};var d,Q,u=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Q=n,n=[],Q.forEach(function(N){N===window?u=window:e.add(N)}),Object.defineProperties(this,{down:{get:function(){return c}},maxSpeed:{get:function(){return i}},point:{get:function(){return o}},scrolling:{get:function(){return r}}});var f,h=null;function p(Q){for(var N=0;N<n.length;N++)if(n[N]===Q.target){r=!0;break}r&&il(function(){return r=!1})}function v(){c=!0}function D(){c=!1,E()}function E(){Ho(f),Ho(d)}function w(){c=!1}function I(){for(var Q=null,N=0;N<n.length;N++)d0(o,n[N])&&(Q=n[N]);return Q}function j(Q){if(e.autoScroll()&&!Q.dispatched){var N=Q.target,$e=document.body;h&&!d0(o,h)&&(e.scrollWhenOutside||(h=null)),N&&N.parentNode===$e?N=I():(N=function M(Q){if(!Q)return null;if(h===Q||mg(n,Q))return Q;for(;Q=Q.parentNode;)if(mg(n,Q))return Q;return null}(N),N||(N=I())),N&&N!==h&&(h=N),u&&(Ho(d),d=il(be)),h&&(Ho(f),f=il(Fe))}}function be(){Ce(u),Ho(d),d=il(be)}function Fe(){!h||(Ce(h),Ho(f),f=il(Fe))}function Ce(Q){var $e,Ge,N=u0(Q);$e=o.x<N.left+e.margin.left?Math.floor(Math.max(-1,(o.x-N.left)/e.margin.left-1)*e.maxSpeed.left):o.x>N.right-e.margin.right?Math.ceil(Math.min(1,(o.x-N.right)/e.margin.right+1)*e.maxSpeed.right):0,Ge=o.y<N.top+e.margin.top?Math.floor(Math.max(-1,(o.y-N.top)/e.margin.top-1)*e.maxSpeed.top):o.y>N.bottom-e.margin.bottom?Math.ceil(Math.min(1,(o.y-N.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&l.dispatch(Q,{pageX:o.pageX+$e,pageY:o.pageY+Ge,clientX:o.x+$e,clientY:o.y+Ge}),setTimeout(function(){Ge&&function fe(Q,N){Q===window?window.scrollTo(Q.pageXOffset,Q.pageYOffset+N):Q.scrollTop+=N}(Q,Ge),$e&&function ae(Q,N){Q===window?window.scrollTo(Q.pageXOffset+N,Q.pageYOffset):Q.scrollLeft+=N}(Q,$e)})}window.addEventListener("mousedown",v,!1),window.addEventListener("touchstart",v,!1),window.addEventListener("mouseup",D,!1),window.addEventListener("touchend",D,!1),window.addEventListener("pointerup",D,!1),window.addEventListener("mousemove",j,!1),window.addEventListener("touchmove",j,!1),window.addEventListener("mouseleave",w,!1),window.addEventListener("scroll",p,!0)}function d0(n,t,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function D$(n,t){var e=u0(t);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,t)}const h0=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Mr(n){return t=>0===n?rp():t.lift(new A$(n))}class A${constructor(t){if(this.total=t,this.total<0)throw new h0}call(t,e){return e.subscribe(new T$(t,this.total))}}class T$ extends Be{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class I${constructor(t){if(this.total=t,this.total<0)throw new h0}call(t,e){return e.subscribe(new O$(t,this.total))}}class O$ extends Be{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(t):e[r%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;t.next(r[o])}}t.complete()}}class R${constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new P$(t,this.predicate,this.source))}}class P$ extends Be{constructor(t,e,i){super(t),this.predicate=e,this.source=i,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function bg(){return n=>n.lift(new N$)}class N${call(t,e){return e.subscribe(new L$(t))}}class L$ extends Be{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function f0(n,t){return e=>e.lift(new V$(n,t))}class V${constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new B$(t,this.compare,this.keySelector))}}class B$ extends Be{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class cr{constructor(){this.currentDrag=new O}}cr.\u0275fac=function(t){return new(t||cr)},cr.\u0275prov=R({token:cr,factory:cr.\u0275fac,providedIn:"root"}),cr.ngInjectableDef=fS({factory:function(){return new cr},token:cr,providedIn:"root"});let p0=(()=>{class n{constructor(e){this.elementRef=e,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return n.\u0275fac=function(e){return new(e||n)(g(de))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),n})();function Dg(n,t,e){e&&e.split(" ").forEach(i=>n.addClass(t.nativeElement,i))}function Iu(n,t,e){e&&e.split(" ").forEach(i=>n.removeClass(t.nativeElement,i))}let Cg=(()=>{class n{constructor(e,i,r,s,o,a,l){this.element=e,this.renderer=i,this.draggableHelper=r,this.zone=s,this.vcr=o,this.scrollContainer=a,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ie,this.dragStart=new ie,this.ghostElementCreated=new ie,this.dragging=new ie,this.dragEnd=new ie,this.pointerDown$=new O,this.pointerMove$=new O,this.pointerUp$=new O,this.eventListenerSubscriptions={},this.destroy$=new O,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const e=this.pointerDown$.pipe(Tn(()=>this.canDrag()),$(i=>{i.event.stopPropagation&&!this.scrollContainer&&i.event.stopPropagation();const r=this.renderer.createElement("style");this.renderer.setAttribute(r,"type","text/css"),this.renderer.appendChild(r,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(r)});const s=this.getScrollPosition(),o=new Y(f=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",v=>f.next(v))).pipe(Su(s),P(()=>this.getScrollPosition())),a=new O,l=new yD;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const c=qt(this.pointerUp$,this.pointerDown$,l,this.destroy$).pipe(Ai()),u=o0([this.pointerMove$,o]).pipe(P(([f,p])=>({currentDrag$:a,transformX:f.clientX-i.clientX,transformY:f.clientY-i.clientY,clientX:f.clientX,clientY:f.clientY,scrollLeft:p.left,scrollTop:p.top,target:f.event.target})),P(f=>(this.dragSnapGrid.x&&(f.transformX=Math.round(f.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(f.transformY=Math.round(f.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),f)),P(f=>(this.dragAxis.x||(f.transformX=0),this.dragAxis.y||(f.transformY=0),f)),P(f=>Object.assign({},f,{x:f.transformX+(f.scrollLeft-s.left),y:f.transformY+(f.scrollTop-s.top)})),Tn(({x:f,y:p,transformX:v,transformY:D})=>!this.validateDrag||this.validateDrag({x:f,y:p,transform:{x:v,y:D}})),vt(c),Ai()),d=u.pipe(Mr(1),Ai()),h=u.pipe(function k$(n){return function(e){return 0===n?rp():e.lift(new I$(n))}}(1),Ai());return d.subscribe(({clientX:f,clientY:p,x:v,y:D})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:l})}),this.scroller=function S$(n,t){return new x$(n,t)}([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),Dg(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const E=this.element.nativeElement.getBoundingClientRect(),w=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(w):this.element.nativeElement.parentNode.insertBefore(w,this.element.nativeElement.nextSibling),this.ghostElement=w,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(w,{position:"fixed",top:`${E.top}px`,left:`${E.left}px`,width:`${E.width}px`,height:`${E.height}px`,cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const M=this.vcr.createEmbeddedView(this.ghostElementTemplate);w.innerHTML="",M.rootNodes.filter(I=>I instanceof Node).forEach(I=>{w.appendChild(I)}),h.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(M))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:f-v,clientY:p-D,element:w})}),h.subscribe(()=>{w.parentElement.removeChild(w),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(a)}),h.pipe($(f=>{const p=l.pipe(function F$(n){return t=>t.lift(new R$(n,t))}(),Mr(1),P(v=>Object.assign({},f,{dragCancelled:v>0})));return l.complete(),p})).subscribe(({x:f,y:p,dragCancelled:v})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:f,y:p,dragCancelled:v})}),Iu(this.renderer,this.element,this.dragActiveClass),a.complete()}),qt(c,h).pipe(Mr(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(r)})}),u}),Ai());qt(e.pipe(Mr(1),P(i=>[,i])),e.pipe(bg())).pipe(Tn(([i,r])=>!i||i.x!==r.x||i.y!==r.y),P(([i,r])=>r)).subscribe(({x:i,y:r,currentDrag$:s,clientX:o,clientY:a,transformX:l,transformY:c,target:u})=>{this.zone.run(()=>{this.dragging.next({x:i,y:r})}),requestAnimationFrame(()=>{if(this.ghostElement){const d=`translate3d(${l}px, ${c}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:d,"-webkit-transform":d,"-ms-transform":d,"-moz-transform":d,"-o-transform":d})}}),s.next({clientX:o,clientY:a,dropData:this.dropData,target:u})})}ngOnChanges(e){e.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const e=this.canDrag(),i=Object.keys(this.eventListenerSubscriptions).length>0;e&&!i?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",r=>{this.onMouseDown(r)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",r=>{this.onMouseUp(r)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",r=>{this.onTouchStart(r)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!e&&i&&this.unsubscribeEventListeners()}onMouseDown(e){0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",i=>{this.pointerMove$.next({event:i,clientX:i.clientX,clientY:i.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onMouseUp(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onTouchStart(e){let i,r,s;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),r=!1,s=this.hasScrollbar(),i=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const o=tl(this.document,"contextmenu").subscribe(l=>{l.preventDefault()}),a=tl(this.document,"touchmove",{passive:!1}).subscribe(l=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!r&&s&&(r=this.shouldBeginDrag(e,l,i)),((!this.scrollContainer||!this.scrollContainer.activeLongPressDrag)&&!this.touchStartLongPress||!s||r)&&(l.preventDefault(),this.pointerMove$.next({event:l,clientX:l.targetTouches[0].clientX,clientY:l.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{o.unsubscribe(),a.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}onTouchEnd(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(e=>{this.eventListenerSubscriptions[e](),delete this.eventListenerSubscriptions[e]})}setElementStyles(e,i){Object.keys(i).forEach(r=>{this.renderer.setStyle(e,r,i[r])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(e,i,r){const s=this.getScrollPosition(),o_top=Math.abs(s.top-r.top),o_left=Math.abs(s.left-r.left),a=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-o_left,l=Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-o_top,u=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+l>u.delta||o_top>0||o_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=u.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const e=this.getScrollElement();return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ln),g(cr),g(Ve),g(Un),g(p0,8),g(Ie))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[hn]}),n})();function g0(n,t,e){return n>=e.left&&n<=e.right&&t>=e.top&&t<=e.bottom}let Eg=(()=>{class n{constructor(e,i,r,s,o){this.element=e,this.draggableHelper=i,this.zone=r,this.renderer=s,this.scrollContainer=o,this.dragEnter=new ie,this.dragLeave=new ie,this.dragOver=new ie,this.drop=new ie}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(e=>{Dg(this.renderer,this.element,this.dragActiveClass);const i={updateCache:!0},r=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{i.updateCache=!0});let s;const o=e.pipe(P(({clientX:c,clientY:u,dropData:d,target:h})=>{s=d,i.updateCache&&(i.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(i.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),i.updateCache=!1);const f=g0(c,u,i.rect),p=!this.validateDrop||this.validateDrop({clientX:c,clientY:u,target:h});return i.scrollContainerRect?f&&p&&g0(c,u,i.scrollContainerRect):f&&p})),a=o.pipe(f0());let l;a.pipe(Tn(c=>c)).subscribe(()=>{l=!0,Dg(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:s})})}),o.pipe(Tn(c=>c)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:s})})}),a.pipe(bg(),Tn(([c,u])=>c&&!u)).subscribe(()=>{l=!1,Iu(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:s})})}),e.subscribe({complete:()=>{r(),Iu(this.renderer,this.element,this.dragActiveClass),l&&(Iu(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:s})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(cr),g(Ve),g(ln),g(p0,8))},n.\u0275dir=T({type:n,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),n})(),Ou=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})();class j${constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new $$(t,this.durationSelector))}}class $$ extends C{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=F(e,new Qn(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function xg(n,t=Za){return function H$(n){return function(e){return e.lift(new j$(n))}}(()=>e0(n,t))}"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator),Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});let C0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})();const Q$=function(n){return{action:n}};function Z$(n,t){if(1&n){const e=Nn();oe(0,"a",5),Le("mwlClick",function(r){const o=ke(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=ke(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})}),kt(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit;L("ngClass",e.cssClass)("innerHtml",e.label,Yl),zt("aria-label",Bi(1,3,fs(6,Q$,e),"actionButtonLabel"))}}function J$(n,t){if(1&n&&(oe(0,"span",3),pe(1,Z$,2,8,"a",4),ye()),2&n){const e=G(),i=e.event,r=e.trackByActionId;te(1),L("ngForOf",i.actions)("ngForTrackBy",r)}}function ez(n,t){1&n&&pe(0,J$,2,2,"span",2),2&n&&L("ngIf",t.event.actions)}function tz(n,t){}const nz=function(n,t){return{event:n,trackByActionId:t}},$o=function(){return{}};function iz(n,t){if(1&n&&(Xt(0,"span",2),kt(1,"calendarEventTitle"),kt(2,"calendarA11y")),2&n){const e=t.event;L("innerHTML",Hi(1,2,e.title,t.view,e),Yl),zt("aria-hidden",Bi(2,6,Bn(9,$o),"hideEventTitle"))}}function rz(n,t){}const sz=function(n,t){return{event:n,view:t}};function oz(n,t){if(1&n&&(oe(0,"div",2),Xt(1,"div",3)(2,"div",4),ye()),2&n){const e=t.contents;L("ngClass","cal-tooltip-"+t.placement),te(2),L("innerHtml",e,Yl)}}function az(n,t){}const lz=function(n,t,e){return{contents:n,placement:t,event:e}},Mg=function(n){return{backgroundColor:n}};function cz(n,t){if(1&n){const e=Nn();oe(0,"mwl-calendar-month-cell",7),Le("mwlClick",function(r){const o=ke(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=ke(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("highlightDay",function(r){return ke(e),G(2).toggleDayHighlight(r.event,!0)})("unhighlightDay",function(r){return ke(e),G(2).toggleDayHighlight(r.event,!1)})("drop",function(r){const o=ke(e).$implicit;return G(2).eventDropped(o,r.dropData.event,r.dropData.draggedFrom)})("eventClicked",function(r){return ke(e),G(2).eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})}),kt(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2);L("ngClass",null==e?null:e.cssClass)("day",e)("openDay",i.openDay)("locale",i.locale)("tooltipPlacement",i.tooltipPlacement)("tooltipAppendToBody",i.tooltipAppendToBody)("tooltipTemplate",i.tooltipTemplate)("tooltipDelay",i.tooltipDelay)("customTemplate",i.cellTemplate)("ngStyle",fs(15,Mg,e.backgroundColor))("clickListenerDisabled",0===i.dayClicked.observers.length),zt("tabindex",Bi(1,12,Bn(17,$o),"monthCellTabIndex"))}}function uz(n,t){if(1&n){const e=Nn();oe(0,"div")(1,"div",4),pe(2,cz,2,18,"mwl-calendar-month-cell",5),kt(3,"slice"),ye(),oe(4,"mwl-calendar-open-day-events",6),Le("eventClicked",function(r){return ke(e),G().eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})})("drop",function(r){ke(e);const s=G();return s.eventDropped(s.openDay,r.dropData.event,r.dropData.draggedFrom)}),ye()()}if(2&n){const e=t.$implicit,i=G();te(2),L("ngForOf",Hi(3,9,i.view.days,e,e+i.view.totalDaysVisibleInWeek))("ngForTrackBy",i.trackByDate),te(2),L("locale",i.locale)("isOpen",i.openRowIndex===e)("events",null==i.openDay?null:i.openDay.events)("date",null==i.openDay?null:i.openDay.date)("customTemplate",i.openDayEventsTemplate)("eventTitleTemplate",i.eventTitleTemplate)("eventActionsTemplate",i.eventActionsTemplate)}}function dz(n,t){if(1&n){const e=Nn();oe(0,"div",4),Le("click",function(r){const o=ke(e).$implicit;return G(2).columnHeaderClicked.emit({isoDayNumber:o.day,sourceEvent:r})}),Ln(1),kt(2,"calendarDate"),ye()}if(2&n){const e=t.$implicit,i=G().locale;Qt("cal-past",e.isPast)("cal-today",e.isToday)("cal-future",e.isFuture)("cal-weekend",e.isWeekend),L("ngClass",e.cssClass),te(1),bo(" ",Hi(2,10,e.date,"monthViewColumnHeader",i)," ")}}function hz(n,t){if(1&n&&(oe(0,"div",2),pe(1,dz,3,14,"div",3),ye()),2&n){const e=t.days,i=t.trackByWeekDayHeaderDate;te(1),L("ngForOf",e)("ngForTrackBy",i)}}function fz(n,t){}const pz=function(n,t,e){return{days:n,locale:t,trackByWeekDayHeaderDate:e}};function gz(n,t){if(1&n&&(oe(0,"span",7),Ln(1),ye()),2&n){const e=G().day;te(1),ds(e.badgeTotal)}}const mz=function(n,t){return{event:n,draggedFrom:t}},rl=function(n,t){return{x:n,y:t}},Pu=function(){return{delay:300,delta:30}};function yz(n,t){if(1&n){const e=Nn();oe(0,"div",10),Le("mouseenter",function(){const s=ke(e).$implicit;return G(2).highlightDay.emit({event:s})})("mouseleave",function(){const s=ke(e).$implicit;return G(2).unhighlightDay.emit({event:s})})("mwlClick",function(r){const o=ke(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),kt(1,"calendarEventTitle"),kt(2,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2),r=i.tooltipPlacement,s=i.tooltipTemplate,o=i.tooltipAppendToBody,a=i.tooltipDelay,l=i.day,c=i.validateDrag;Qt("cal-draggable",e.draggable),L("ngStyle",fs(22,Mg,null==e.color?null:e.color.primary))("ngClass",null==e?null:e.cssClass)("mwlCalendarTooltip",Hi(1,15,e.title,"monthTooltip",e))("tooltipPlacement",r)("tooltipEvent",e)("tooltipTemplate",s)("tooltipAppendToBody",o)("tooltipDelay",a)("dropData",gn(24,mz,e,l))("dragAxis",gn(27,rl,e.draggable,e.draggable))("validateDrag",c)("touchStartLongPress",Bn(30,Pu)),zt("aria-hidden",Bi(2,19,Bn(31,$o),"hideMonthCellEvents"))}}function vz(n,t){if(1&n&&(oe(0,"div",8),pe(1,yz,3,32,"div",9),ye()),2&n){const e=G(),i=e.day,r=e.trackByEventId;te(1),L("ngForOf",i.events)("ngForTrackBy",r)}}const _z=function(n,t){return{day:n,locale:t}};function wz(n,t){if(1&n&&(oe(0,"div",2),kt(1,"calendarA11y"),oe(2,"span",3),pe(3,gz,2,1,"span",4),oe(4,"span",5),Ln(5),kt(6,"calendarDate"),ye()()(),pe(7,vz,2,2,"div",6)),2&n){const e=t.day,i=t.locale;zt("aria-label",Bi(1,4,gn(11,_z,e,i),"monthCell")),te(3),L("ngIf",e.badgeTotal>0),te(2),ds(Hi(6,7,e.date,"monthViewDayNumber",i)),te(2),L("ngIf",e.events.length>0)}}function bz(n,t){}const Dz=function(n,t,e,i,r,s,o,a,l,c,u,d){return{day:n,openDay:t,locale:e,tooltipPlacement:i,highlightDay:r,unhighlightDay:s,eventClicked:o,tooltipTemplate:a,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:d}},Cz=function(n){return{event:n}},E0=function(n,t){return{event:n,locale:t}};function Ez(n,t){if(1&n){const e=Nn();oe(0,"div",7),Xt(1,"span",8),Ln(2," "),oe(3,"mwl-calendar-event-title",9),Le("mwlClick",function(r){const o=ke(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=ke(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),kt(4,"calendarA11y"),ye(),Ln(5," "),Xt(6,"mwl-calendar-event-actions",10),ye()}if(2&n){const e=t.$implicit,i=G(2).validateDrag,r=G();Qt("cal-draggable",e.draggable),L("ngClass",null==e?null:e.cssClass)("dropData",fs(16,Cz,e))("dragAxis",gn(18,rl,e.draggable,e.draggable))("validateDrag",i)("touchStartLongPress",Bn(21,Pu)),te(1),L("ngStyle",fs(22,Mg,null==e.color?null:e.color.primary)),te(2),L("event",e)("customTemplate",r.eventTitleTemplate),zt("aria-label",Bi(4,13,gn(24,E0,e,r.locale),"eventDescription")),te(3),L("event",e)("customTemplate",r.eventActionsTemplate)}}const x0=function(n,t){return{date:n,locale:t}};function xz(n,t){if(1&n&&(oe(0,"div",3),Xt(1,"span",4),kt(2,"calendarA11y"),Xt(3,"span",5),kt(4,"calendarA11y"),pe(5,Ez,7,27,"div",6),ye()),2&n){const e=G(),i=e.events,r=e.trackByEventId,s=G();L("@collapse",void 0),te(1),zt("aria-label",Bi(2,5,gn(11,x0,s.date,s.locale),"openDayEventsAlert")),te(2),zt("aria-label",Bi(4,8,gn(14,x0,s.date,s.locale),"openDayEventsLandmark")),te(2),L("ngForOf",i)("ngForTrackBy",r)}}function Sz(n,t){1&n&&pe(0,xz,6,17,"div",2),2&n&&L("ngIf",t.isOpen)}function Mz(n,t){}const Az=function(n,t,e,i,r){return{events:n,eventClicked:t,isOpen:e,trackByEventId:i,validateDrag:r}};let M0=(()=>{let n=class{constructor(){this.trackByActionId=(e,i)=>i.id?i.id:i}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(e,i){if(1&e&&(pe(0,ez,1,1,"ng-template",null,0,yi),pe(2,tz,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",gn(2,nz,i.event,i.trackByActionId))}},directives:function(){return[vs,Vr,ai,Ts,Vu,bi]},pipes:function(){return[ks]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),A0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(e,i){if(1&e&&(pe(0,iz,3,10,"ng-template",null,0,yi),pe(2,rz,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",gn(2,sz,i.event,i.view))}},directives:function(){return[bi]},pipes:function(){return[Ig,ks]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",String)],n.prototype,"view",void 0),n})(),m3=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(e,i){if(1&e&&(pe(0,oz,3,2,"ng-template",null,0,yi),pe(2,az,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",tf(2,lz,i.contents,i.placement,i.event))}},directives:[ai,bi],encapsulation:2}),b([x(),_("design:type",String)],n.prototype,"contents",void 0),b([x(),_("design:type",String)],n.prototype,"placement",void 0),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),T0=(()=>{let n=class{constructor(e,i,r,s,o,a){this.elementRef=e,this.injector=i,this.renderer=r,this.viewContainerRef=o,this.document=a,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new O,this.tooltipFactory=s.resolveComponentFactory(m3)}ngOnChanges(e){this.tooltipRef&&(e.contents||e.customTemplate||e.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?Gi("now"):e0(this.delay)).pipe(vt(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(e=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function zj(n,t,e,i,r){var s=Array.isArray(e)?e:e.split($j),o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=function(D){var E=D.split("-"),w=E[0],M=E[1],I=[];return r&&(I.push(r+"-"+w),M&&I.push(r+"-"+w+"-"+M),I.forEach(function(j){a.add(j)})),I};r&&o.forEach(function(D){a.remove(r+"-"+D)});var c=s.findIndex(function(D){return"auto"===D});c>=0&&o.forEach(function(D){null==s.find(function(E){return-1!==E.search("^"+D)})&&s.splice(c++,1,D)});var u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";for(var d,h=!1,f=0,p=s;f<p.length;f++){var v=l(d=p[f]);if(JE.positionElements(n,t,d,i)){h=!0;break}r&&v.forEach(function(D){a.remove(D)})}return h||(l(d=s[0]),JE.positionElements(n,t,d,i)),d}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===e.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...e,this.tooltipRef.instance.placement]))}};return n.\u0275fac=function(e){return new(e||n)(g(de),g(fn),g(ln),g(br),g(Un),g(Ie))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(e,i){1&e&&Le("mouseenter",function(){return i.onMouseOver()})("mouseleave",function(){return i.onMouseOut()})},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[hn]}),b([x("mwlCalendarTooltip"),_("design:type",String)],n.prototype,"contents",void 0),b([x("tooltipPlacement"),_("design:type",Object)],n.prototype,"placement",void 0),b([x("tooltipTemplate"),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x("tooltipEvent"),_("design:type",Object)],n.prototype,"event",void 0),b([x("tooltipAppendToBody"),_("design:type",Boolean)],n.prototype,"appendToBody",void 0),b([x("tooltipDelay"),_("design:type",Number)],n.prototype,"delay",void 0),b([Fa("mouseenter"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOver",null),b([Fa("mouseleave"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOut",null),n=b([Bo(5,yr(Ie)),_("design:paramtypes",[de,fn,ln,br,Un,Object])],n),n})();class Dn{}var Kr=(()=>(function(n){n.Month="month",n.Week="week",n.Day="day"}(Kr||(Kr={})),Kr))();const F0=(n,t)=>t.id?t.id:t,Ag=(n,t)=>t.date.toISOString();function Yi(n,t,e,i){let r=0,s=0;const o=e<0?n.subDays:n.addDays;let a=t;for(;s<=Math.abs(e);){a=o(t,r);const l=n.getDay(a);-1===i.indexOf(l)&&s++,r++}return a}function Nu({x:n,y:t}){return Math.abs(n)>1||Math.abs(t)>1}let x3=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===Kr.Day?Yi(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===Kr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Fa("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),S3=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===Kr.Day?Yi(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===Kr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Fa("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),M3=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.viewDateChange=new ie}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarToday",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Fa("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),A3=(()=>{let n=class{constructor(e){this.dateAdapter=e}monthViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}monthViewDayNumber({date:e,locale:i}){return un(e,"d",i)}monthViewTitle({date:e,locale:i}){return un(e,"LLLL y",i)}weekViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}weekViewColumnSubHeader({date:e,locale:i}){return un(e,"MMM d",i)}weekViewTitle({date:e,locale:i,weekStartsOn:r,excludeDays:s,daysInWeek:o}){const{viewStart:a,viewEnd:l}=function kg(n,t,e,i=[],r){let s=r?n.startOfDay(t):n.startOfWeek(t,{weekStartsOn:e});const o=n.endOfWeek(t,{weekStartsOn:e});for(;i.indexOf(n.getDay(s))>-1&&s<o;)s=n.addDays(s,1);if(r)return{viewStart:s,viewEnd:n.endOfDay(Yi(n,s,r-1,i))};{let a=o;for(;i.indexOf(n.getDay(a))>-1&&a>s;)a=n.subDays(a,1);return{viewStart:s,viewEnd:a}}}(this.dateAdapter,e,r,s,o),c=(u,d)=>un(u,"MMM d"+(d?", yyyy":""),i);return`${c(a,a.getUTCFullYear()!==l.getUTCFullYear())} - ${c(l,!0)}`}weekViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewTitle({date:e,locale:i}){return un(e,"EEEE, MMMM d, y",i)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),sl=(()=>{let n=class extends A3{};return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),ol=(()=>{let n=class{constructor(e,i){this.dateFormatter=e,this.locale=i}transform(e,i,r=this.locale,s=0,o=[],a){if(void 0===this.dateFormatter[i]){const l=Object.getOwnPropertyNames(Object.getPrototypeOf(sl.prototype)).filter(c=>"constructor"!==c);throw new Error(`${i} is not a valid date formatter. Can only be one of ${l.join(", ")}`)}return this.dateFormatter[i]({date:e,locale:r,weekStartsOn:s,excludeDays:o,daysInWeek:a})}};return n.\u0275fac=function(e){return new(e||n)(g(sl,16),g(bn,16))},n.\u0275pipe=_n({name:"calendarDate",type:n,pure:!0}),n=b([Bo(1,yr(bn)),_("design:paramtypes",[sl,String])],n),n})();class Lu{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let Ig=(()=>{let n=class{constructor(e){this.calendarEventTitle=e}transform(e,i,r){return this.calendarEventTitle[i](r,e)}};return n.\u0275fac=function(e){return new(e||n)(g(Lu,16))},n.\u0275pipe=_n({name:"calendarEventTitle",type:n,pure:!0}),n=b([_("design:paramtypes",[Lu])],n),n})(),Ts=(()=>{let n=class{constructor(e,i,r){this.renderer=e,this.elm=i,this.document=r,this.clickListenerDisabled=!1,this.click=new ie,this.destroy$=new O}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(vt(this.destroy$)).subscribe(e=>{e.stopPropagation(),this.click.emit(e)})}ngOnDestroy(){this.destroy$.next()}listen(){return new Y(e=>this.renderer.listen(this.elm.nativeElement,"click",i=>{e.next(i)}))}};return n.\u0275fac=function(e){return new(e||n)(g(ln),g(de),g(Ie))},n.\u0275dir=T({type:n,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),b([x(),_("design:type",Object)],n.prototype,"clickListenerDisabled",void 0),b([ut("mwlClick"),_("design:type",Object)],n.prototype,"click",void 0),n=b([Bo(2,yr(Ie)),_("design:paramtypes",[ln,de,Object])],n),n})(),Vu=(()=>{let n=class{constructor(e,i,r){this.host=e,this.ngZone=i,this.renderer=r,this.keydown=new ie,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",e=>{(13===e.keyCode||13===e.which||"Enter"===e.key)&&(e.preventDefault(),e.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(e)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return n.\u0275fac=function(e){return new(e||n)(g(de),g(Ve),g(ln))},n.\u0275dir=T({type:n,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),b([ut("mwlKeydownEnter"),_("design:type",Object)],n.prototype,"keydown",void 0),n=b([_("design:paramtypes",[de,Ve,ln])],n),n})(),zo=(()=>{let n=class{constructor(e){this.dateAdapter=e}getMonthView(e){return function r$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.viewStart,c=void 0===l?n.startOfMonth(r):l,u=t.viewEnd,d=void 0===u?n.endOfMonth(r):u,h=t.weekendDays;i||(i=[]);for(var ae,p=n.endOfWeek,v=n.differenceInDays,D=n.startOfDay,E=n.addHours,w=n.endOfDay,M=n.isSameMonth,I=n.getDay,be=(0,n.startOfWeek)(c,{weekStartsOn:s}),Fe=p(d,{weekStartsOn:s}),Ce=el(n,{events:i,periodStart:be,periodEnd:Fe}),fe=[],Q=function(Ue){var Xe;if(ae?(Xe=D(E(ae,24)),ae.getTime()===Xe.getTime()&&(Xe=D(E(ae,25))),ae=Xe):Xe=ae=be,!a.some(function(Mi){return I(Xe)===Mi})){var Ot=r0(n,{date:Xe,weekendDays:h}),mn=el(n,{events:Ce,periodStart:D(Xe),periodEnd:w(Xe)});Ot.inMonth=M(Xe,r),Ot.events=mn,Ot.badgeTotal=mn.length,fe.push(Ot)}},N=0;N<v(Fe,be)+1;N++)Q();var $e=[],Ge=7-a.length;if(Ge<7)for(N=0;N<fe.length;N+=Ge){var qi=fe.slice(N,N+Ge);qi.some(function(Xe){return c<=Xe.date&&Xe.date<d})&&($e=t0($e,qi))}else $e=fe;var le=Math.floor($e.length/Ge),ue=[];for(N=0;N<le;N++)ue.push(N*Ge);return{rowOffsets:ue,totalDaysVisibleInWeek:Ge,days:$e,period:{start:$e[0].date,end:w($e[$e.length-1].date),events:Ce}}}(this.dateAdapter,e)}getWeekViewHeader(e){return fg(this.dateAdapter,e)}getWeekView(e){return function i$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.precision,c=void 0===l?"days":l,u=t.absolutePositionedEvents,d=void 0!==u&&u,h=t.hourSegments,f=t.hourDuration,p=t.dayStart,v=t.dayEnd,D=t.weekendDays,E=t.segmentHeight,w=t.minimumEventHeight,M=t.viewStart,I=void 0===M?n.startOfWeek(r,{weekStartsOn:s}):M,j=t.viewEnd,be=void 0===j?n.endOfWeek(r,{weekStartsOn:s}):j;i||(i=[]);var Ce=n.endOfDay,fe=el(n,{events:i,periodStart:I=(0,n.startOfDay)(I),periodEnd:be=Ce(be)}),ae=fg(n,{viewDate:r,weekStartsOn:s,excluded:a,weekendDays:D,viewStart:I,viewEnd:be});return{allDayEventRows:t$(n,{events:fe,excluded:a,precision:c,absolutePositionedEvents:d,viewStart:I,viewEnd:be}),period:{events:fe,start:ae[0].date,end:Ce(ae[ae.length-1].date)},hourColumns:n$(n,{events:i,viewDate:r,hourSegments:h,hourDuration:f,dayStart:p,dayEnd:v,weekStartsOn:s,excluded:a,weekendDays:D,segmentHeight:E,viewStart:I,viewEnd:be,minimumEventHeight:w})}}(this.dateAdapter,e)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),al=(()=>{let n=class{constructor(e){this.i18nPlural=e}monthCell({day:e,locale:i}){return e.badgeTotal>0?`\n ${un(e.date,"EEEE MMMM d",i)},\n ${this.i18nPlural.transform(e.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:`${un(e.date,"EEEE MMMM d",i)}`}openDayEventsLandmark({date:e,locale:i}){return`\n Beginning of expanded view for ${un(e,"EEEE MMMM dd",i)}\n `}openDayEventsAlert({date:e,locale:i}){return`${un(e,"EEEE MMMM dd",i)} expanded`}eventDescription({event:e,locale:i}){if(!0===e.allDay)return this.allDayEventDescription({event:e,locale:i});const r=`\n ${un(e.start,"EEEE MMMM dd",i)},\n ${e.title}, from ${un(e.start,"hh:mm a",i)}\n `;return e.end?r+` to ${un(e.end,"hh:mm a",i)}`:r}allDayEventDescription({event:e,locale:i}){const r=`\n ${e.title}, event spans multiple days:\n start time ${un(e.start,"MMMM dd hh:mm a",i)}\n `;return e.end?r+`, stop time ${un(e.end,"MMMM d hh:mm a",i)}`:r+", no stop time"}actionButtonLabel({action:e}){return e.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return n.\u0275fac=function(e){return new(e||n)(S(Ic))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Ic])],n),n})(),ks=(()=>{let n=class{constructor(e,i){this.calendarA11y=e,this.locale=i}transform(e,i){if(e.locale=e.locale||this.locale,void 0===this.calendarA11y[i]){const r=Object.getOwnPropertyNames(Object.getPrototypeOf(al.prototype)).filter(s=>"constructor"!==s);throw new Error(`${i} is not a valid a11y method. Can only be one of ${r.join(", ")}`)}return this.calendarA11y[i](e)}};return n.\u0275fac=function(e){return new(e||n)(g(al,16),g(bn,16))},n.\u0275pipe=_n({name:"calendarA11y",type:n,pure:!0}),n=b([Bo(1,yr(bn)),_("design:paramtypes",[al,String])],n),n})();new ne("Moment");var N0,Xr=(()=>(function(n){n.Drag="drag",n.Drop="drop",n.Resize="resize"}(Xr||(Xr={})),Xr))();let ur=N0=class{static forRoot(t,e={}){return{ngModule:N0,providers:[t,e.eventTitleFormatter||Lu,e.dateFormatter||sl,e.utils||zo,e.a11y||al]}}};ur.\u0275fac=function(t){return new(t||ur)},ur.\u0275mod=et({type:ur}),ur.\u0275inj=qe({providers:[Ic],imports:[[To]]});let T3=(()=>{let n=class{constructor(e,i,r,s){this.cdr=e,this.utils=i,this.dateAdapter=s,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new ie,this.dayClicked=new ie,this.eventClicked=new ie,this.columnHeaderClicked=new ie,this.eventTimesChanged=new ie,this.trackByRowOffset=(o,a)=>this.view.days.slice(a,this.view.totalDaysVisibleInWeek).map(l=>l.date.toISOString()).join("-"),this.trackByDate=(o,a)=>a.date.toISOString(),this.locale=r}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(e){const i=e.viewDate||e.excludeDays||e.weekendDays,r=e.viewDate||e.events||e.excludeDays||e.weekendDays;i&&this.refreshHeader(),e.events&&(n=>{(function a$(n,t){var e=!0;function i(r,s){t(r,s),e=!1}Array.isArray(n)?n.forEach(function(r){r.start?r.start instanceof Date||i(qr.StartPropertyNotDate,r):i(qr.StartPropertyMissing,r),r.end&&(r.end instanceof Date||i(qr.EndPropertyNotDate,r),r.start>r.end&&i(qr.EndsBeforeStart,r))}):t(qr.NotArray,n)})(n,(...e)=>console.warn("angular-calendar",...e))})(this.events),r&&this.refreshBody(),(i||r)&&this.emitBeforeViewRender(),(e.activeDayIsOpen||e.viewDate||e.events||e.excludeDays||e.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(e,i){this.view.days.forEach(r=>{i&&r.events.indexOf(e)>-1?r.backgroundColor=e.color&&e.color.secondary||"#D1E8FF":delete r.backgroundColor})}eventDropped(e,i,r){if(e!==r){const s=this.dateAdapter.getYear(e.date),o=this.dateAdapter.getMonth(e.date),a=this.dateAdapter.getDate(e.date),l=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(i.start,s),o),a);let c;if(i.end){const u=this.dateAdapter.differenceInSeconds(l,i.start);c=this.dateAdapter.addSeconds(i.end,u)}this.eventTimesChanged.emit({event:i,newStart:l,newEnd:c,day:e,type:Xr.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const e=this.activeDay||this.viewDate;this.openDay=this.view.days.find(r=>this.dateAdapter.isSameDay(r.date,e));const i=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(i/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return n.\u0275fac=function(e){return new(e||n)(g(Dr),g(zo),g(bn),g(Dn))},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[hn],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"mwl-calendar-month-view-header",1),Le("columnHeaderClicked",function(s){return i.columnHeaderClicked.emit(s)}),ye(),oe(2,"div",2),pe(3,uz,5,13,"div",3),ye()()),2&e&&(te(1),L("days",i.columnHeaders)("locale",i.locale)("customTemplate",i.headerTemplate),te(2),L("ngForOf",i.view.rowOffsets)("ngForTrackBy",i.trackByRowOffset))},directives:function(){return[k3,Vr,I3,Eg,ai,_s,Ts,Vu,F3]},pipes:function(){return[ks,Zb]},encapsulation:2}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Boolean)],n.prototype,"activeDayIsOpen",void 0),b([x(),_("design:type",Date)],n.prototype,"activeDay",void 0),b([x(),_("design:type",O)],n.prototype,"refresh",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([x(),_("design:type",Number)],n.prototype,"weekStartsOn",void 0),b([x(),_("design:type",De)],n.prototype,"headerTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"cellTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"openDayEventsTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Array)],n.prototype,"weekendDays",void 0),b([ut(),_("design:type",Object)],n.prototype,"beforeViewRender",void 0),b([ut(),_("design:type",Object)],n.prototype,"dayClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventTimesChanged",void 0),n=b([Bo(2,yr(bn)),_("design:paramtypes",[Dr,zo,String,Dn])],n),n})(),k3=(()=>{let n=class{constructor(){this.columnHeaderClicked=new ie,this.trackByWeekDayHeaderDate=Ag}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(e,i){if(1&e&&(pe(0,hz,2,2,"ng-template",null,0,yi),pe(2,fz,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",tf(2,pz,i.days,i.locale,i.trackByWeekDayHeaderDate))}},directives:[Vr,ai,bi],pipes:[ol],encapsulation:2}),b([x(),_("design:type",Array)],n.prototype,"days",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),n})(),I3=(()=>{let n=class{constructor(){this.highlightDay=new ie,this.unhighlightDay=new ie,this.eventClicked=new ie,this.trackByEventId=F0,this.validateDrag=Nu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(e,i){2&e&&Qt("cal-past",i.day.isPast)("cal-today",i.day.isToday)("cal-future",i.day.isFuture)("cal-weekend",i.day.isWeekend)("cal-in-month",i.day.inMonth)("cal-out-month",!i.day.inMonth)("cal-has-events",i.day.events.length>0)("cal-open",i.day===i.openDay)("cal-event-highlight",!!i.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(e,i){if(1&e&&(pe(0,wz,8,14,"ng-template",null,0,yi),pe(2,bz,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",rf(2,Dz,[i.day,i.openDay,i.locale,i.tooltipPlacement,i.highlightDay,i.unhighlightDay,i.eventClicked,i.tooltipTemplate,i.tooltipAppendToBody,i.tooltipDelay,i.trackByEventId,i.validateDrag]))}},directives:[vs,Vr,Cg,_s,ai,T0,Ts,bi],pipes:[ks,ol,Ig],encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"day",void 0),b([x(),_("design:type",Object)],n.prototype,"openDay",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([ut(),_("design:type",ie)],n.prototype,"highlightDay",void 0),b([ut(),_("design:type",ie)],n.prototype,"unhighlightDay",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})();const O3=function dE(n,t){return{type:7,name:n,definitions:t,options:{}}}("collapse",[iu("void",ar({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),iu("*",ar({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),ru("* => void",nu("150ms ease-out")),ru("void => *",nu("150ms ease-in"))]);let F3=(()=>{let n=class{constructor(){this.isOpen=!1,this.eventClicked=new ie,this.trackByEventId=F0,this.validateDrag=Nu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(e,i){if(1&e&&(pe(0,Sz,1,1,"ng-template",null,0,yi),pe(2,Mz,0,0,"ng-template",1)),2&e){const r=pn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",nf(2,Az,i.events,i.eventClicked,i.isOpen,i.trackByEventId,i.validateDrag))}},directives:[vs,Vr,Cg,ai,_s,A0,Ts,Vu,M0,bi],pipes:[ks],encapsulation:2,data:{animation:[O3]}}),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Boolean)],n.prototype,"isOpen",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Date)],n.prototype,"date",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})(),L0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[To,Ou,ur],Ou]}),n})(),Og=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[To,C0,Ou,ur],C0,Ou]}),n})(),V0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[To,ur,Og]]}),n})();var B0;let Go=B0=class{static forRoot(t,e={}){return{ngModule:B0,providers:[t,e.eventTitleFormatter||Lu,e.dateFormatter||sl,e.utils||zo,e.a11y||al]}}};function Cn(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ae(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function nt(n){Ae(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"==typeof n&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Fg(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}function Rg(n,t){Ae(2,arguments);var e=nt(n).getTime(),i=Cn(t);return new Date(e+i)}function $3(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,36e5*e)}function G3(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,6e4*e)}function U3(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,1e3*e)}function H0(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function ll(n){Ae(1,arguments);var t=nt(n);return t.setHours(0,0,0,0),t}function Y3(n,t){Ae(2,arguments);var e=ll(n),i=ll(t),r=e.getTime()-H0(e),s=i.getTime()-H0(i);return Math.round((r-s)/864e5)}function j0(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function q3(n,t){Ae(2,arguments);var e=nt(n),i=nt(t),r=j0(e,i),s=Math.abs(Y3(e,i));e.setDate(e.getDate()-r*s);var o=Number(j0(e,i)===-r),a=r*(s-o);return 0===a?0:a}function z0(n,t){return Ae(2,arguments),nt(n).getTime()-nt(t).getTime()}Go.\u0275fac=function(t){return new(t||Go)},Go.\u0275mod=et({type:Go}),Go.\u0275inj=qe({imports:[[ur,L0,Og,V0],ur,L0,Og,V0]}),Math.pow(10,8);var G0={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(n){return n<0?Math.ceil(n):Math.floor(n)}};function U0(n){return n?G0[n]:G0.trunc}function nG(n,t,e){Ae(2,arguments);var i=z0(n,t)/6e4;return U0(null==e?void 0:e.roundingMethod)(i)}function iG(n,t,e){Ae(2,arguments);var i=z0(n,t)/1e3;return U0(null==e?void 0:e.roundingMethod)(i)}function rG(n){Ae(1,arguments);var t=nt(n);return t.setHours(23,59,59,999),t}function sG(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}var W0={};function Y0(){return W0}function oG(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=Y0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=6+(f<d?-7:0)-(f-d);return h.setDate(h.getDate()+p),h.setHours(23,59,59,999),h}function aG(n){Ae(1,arguments);var t=nt(n),e=t.getDay();return e}function lG(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return e}function cG(n,t){Ae(2,arguments);var e=ll(n),i=ll(t);return e.getTime()===i.getTime()}function uG(n,t){Ae(2,arguments);var e=nt(n),i=nt(t);return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()}function q0(n){Ae(1,arguments);var t=nt(n);return t.setMilliseconds(0),t}function dG(n,t){Ae(2,arguments);var e=q0(n),i=q0(t);return e.getTime()===i.getTime()}function hG(n){var t,e;if(Ae(1,arguments),n&&"function"==typeof n.forEach)t=n;else{if("object"!=typeof n||null===n)return new Date(NaN);t=Array.prototype.slice.call(n)}return t.forEach(function(i){var r=nt(i);(void 0===e||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function fG(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setHours(i),e}function pG(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setMinutes(i),e}function gG(n){Ae(1,arguments);var t=nt(n);return t.setSeconds(0,0),t}function mG(n){Ae(1,arguments);var t=nt(n);return t.setDate(1),t.setHours(0,0,0,0),t}function K0(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=Y0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=(f<d?7:0)+f-d;return h.setDate(h.getDate()-p),h.setHours(0,0,0,0),h}function yG(n){Ae(1,arguments);var t=nt(n),e=t.getHours();return e}function vG(n){Ae(1,arguments);var t=nt(n),e=t.getMinutes();return e}function X0(n,t){Ae(2,arguments);var e=Cn(t),i=7*e;return Fg(n,i)}function Q0(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);if(isNaN(i))return new Date(NaN);if(!i)return e;var r=e.getDate(),s=new Date(e.getTime());s.setMonth(e.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),r),e)}function wG(n,t){Ae(2,arguments);var e=Cn(t);return Fg(n,-e)}function bG(n,t){Ae(2,arguments);var e=Cn(t);return X0(n,-e)}function DG(n,t){Ae(2,arguments);var e=Cn(t);return Q0(n,-e)}function Bu(n){return Ae(1,arguments),K0(n,{weekStartsOn:1})}function CG(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=new Date(0);i.setFullYear(e+1,0,4),i.setHours(0,0,0,0);var r=Bu(i),s=new Date(0);s.setFullYear(e,0,4),s.setHours(0,0,0,0);var o=Bu(s);return t.getTime()>=r.getTime()?e+1:t.getTime()>=o.getTime()?e:e-1}function EG(n){Ae(1,arguments);var t=CG(n),e=new Date(0);e.setFullYear(t,0,4),e.setHours(0,0,0,0);var i=Bu(e);return i}var xG=6048e5;function SG(n){Ae(1,arguments);var t=nt(n),e=Bu(t).getTime()-EG(t).getTime();return Math.round(e/xG)+1}function MG(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setDate(i),e}function AG(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}function TG(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t),r=e.getFullYear(),s=e.getDate(),o=new Date(0);o.setFullYear(r,i,15),o.setHours(0,0,0,0);var a=AG(o);return e.setMonth(i,Math.min(s,a)),e}function kG(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}function IG(n){Ae(1,arguments);var t=nt(n),e=t.getDate();return e}function OG(n){return Ae(1,arguments),nt(n).getFullYear()}function FG(){return Eu(Eu({},function _G(){return{addDays:Fg,addHours:$3,addMinutes:G3,addSeconds:U3,differenceInDays:q3,differenceInMinutes:nG,differenceInSeconds:iG,endOfDay:rG,endOfMonth:sG,endOfWeek:oG,getDay:aG,getMonth:lG,isSameDay:cG,isSameMonth:uG,isSameSecond:dG,max:hG,setHours:fG,setMinutes:pG,startOfDay:ll,startOfMinute:gG,startOfMonth:mG,startOfWeek:K0,getHours:yG,getMinutes:vG}}()),{addWeeks:X0,addMonths:Q0,subDays:wG,subWeeks:bG,subMonths:DG,getISOWeek:SG,setDate:MG,setMonth:TG,setYear:kG,getDate:IG,getYear:OG})}let Pg;try{Pg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Pg=!1}let cl,Is,Ng,Si=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Br(this._platformId):"object"==typeof document&&!!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&&!Pg)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(S(vi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Hu(n){return function RG(){if(null==cl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>cl=!0}))}finally{cl=cl||!1}return cl}()?n:!!n.capture}function PG(){if(null==Is){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Is=!1,Is;if("scrollBehavior"in document.documentElement.style)Is=!0;else{const n=Element.prototype.scrollTo;Is=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Is}function Os(n){return n.composedPath?n.composedPath()[0]:n.target}function Lg(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function ex(n){return t=>t.lift(new UG(n))}class UG{constructor(t){this.total=t}call(t,e){return e.subscribe(new WG(t,this.total))}}class WG extends Be{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let YG=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:[YG]}),n})();function $u(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const nx="cdk-describedby-message",zu="cdk-describedby-host";let ix=0,QG=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ix++,this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Vg(i,r);"string"!=typeof i?(rx(i),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){var s;if(!i||!this._isElementNode(e))return;const o=Vg(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${zu}="${this._id}"]`);for(let r=0;r<i.length;r++)this._removeCdkDescribedByReferenceIds(i[r]),i[r].removeAttribute(zu);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");rx(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Vg(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i,r;null===(r=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===r||r.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let s=0;s<i.length;s++)i[s].remove();const 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){const i=$u(e,"aria-describedby").filter(r=>0!=r.indexOf(nx));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function KG(n,t,e){const i=$u(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(zu,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function XG(n,t,e){const r=$u(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(zu)}_isElementDescribedByMessage(e,i){const r=$u(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(S(Ie),S(Si))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function rx(n){n.id||(n.id=`${nx}-${ix++}`)}function ox(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function ax(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const iU=new ne("cdk-input-modality-detector-options"),rU={ignoreKeys:[18,17,224,91,16]},Wo=Hu({passive:!0,capture:!0});let sU=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new op(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Os(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ox(o)?"keyboard":"mouse"),this._mostRecentTarget=Os(o))},this._onTouchstart=o=>{ax(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Os(o))},this._options=Object.assign(Object.assign({},rU),s),this.modalityDetected=this._modality.pipe(ex(1)),this.modalityChanged=this.modalityDetected.pipe(f0()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wo),r.addEventListener("mousedown",this._onMousedown,Wo),r.addEventListener("touchstart",this._onTouchstart,Wo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wo),document.removeEventListener("mousedown",this._onMousedown,Wo),document.removeEventListener("touchstart",this._onTouchstart,Wo))}}return n.\u0275fac=function(e){return new(e||n)(S(Si),S(Ve),S(Ie),S(iU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const aU=new ne("cdk-focus-monitor-default-options"),Gu=Hu({passive:!0,capture:!0});let cx=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,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 O,this._rootNodeFocusAndBlurListener=a=>{const l=Os(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Fo(e);if(!this._platform.isBrowser||1!==r.nodeType)return Gi(null);const s=function LG(n){if(function NG(){if(null==Ng){const n="undefined"!=typeof document?document.head:null;Ng=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Ng}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new O,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Fo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Fo(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Os(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(vt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(S(Ve),S(Si),S(sU),S(Ie,8),S(aU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ux="cdk-high-contrast-black-on-white",dx="cdk-high-contrast-white-on-black",Bg="cdk-high-contrast-active";let hx=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bg),e.remove(ux),e.remove(dx),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Bg),e.add(ux)):2===i&&(e.add(Bg),e.add(dx))}}}return n.\u0275fac=function(e){return new(e||n)(S(Si),S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lU=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(S(hx))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[qG]]}),n})();const uU=new ne("mat-sanity-checks",{providedIn:"root",factory:function cU(){return!0}});let Qr=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Lg()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(S(hx),S(uU,8),S(Ie))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[Ro],Ro]}),n})();function dU(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ci(t)}}}function px(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function hU(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ci(t)}}}class pU{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const gx={enterDuration:225,exitDuration:150},Hg=Hu({passive:!0}),mx=["mousedown","touchstart"],yx=["mouseup","mouseleave","touchend","touchcancel"];class mU{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fo(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},gx),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function vU(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function yU(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new pU(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},gx),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Fo(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(mx))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(yx),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=ox(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!ax(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Hg)})})}_removeTriggerEvents(){this._triggerElement&&(mx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Hg)}),this._pointerUpEventsRegistered&&yx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Hg)}))}}const _U=new ne("mat-ripple-global-options");let vx=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new mU(this,i,e,r)}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()}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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{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,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(Ve),g(Si),g(_U,8),g(Vo,8))},n.\u0275dir=T({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Qt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),wU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[Qr],Qr]}),n})();const bU=["mat-button",""],DU=["*"],EU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],xU=px(dU(hU(class{constructor(n){this._elementRef=n}})));let SU=(()=>{class n extends xU{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of EU)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(cx),g(Vo,8))},n.\u0275cmp=rn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&gf(vx,5),2&e){let r;pf(r=mf())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(zt("disabled",i.disabled||null),Qt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[H],attrs:bU,ngContentSelectors:DU,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&($h(),oe(0,"span",0),zh(1),ye(),Xt(2,"span",1)(3,"span",2)),2&e&&(te(2),Qt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),L("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[vx],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),MU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[wU,Qr],Qr]}),n})();var dl=qo(764),AU=qo(274),TU=qo(268),_x=qo(23);new class IU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class kU extends Vc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let FU=1;const RU=Promise.resolve(),Uu={};function wx(n){return n in Uu&&(delete Uu[n],!0)}const bx={setImmediate(n){const t=FU++;return Uu[t]=!0,RU.then(()=>wx(t)&&n()),t},clearImmediate(n){wx(n)}};new class NU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class PU extends Vc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=bx.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(bx.clearImmediate(e),t.scheduled=void 0)}});let Dx=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new O,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){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Y(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(xg(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Gi()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Tn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Fo(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>tl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(S(Ve),S(Si),S(Ie,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cx=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(xg(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(S(Si),S(Ve),S(Ie,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})(),Ex=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[Ro,jg],Ro,jg]}),n})();class $g{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class xx extends $g{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class HU extends $g{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class jU extends $g{constructor(t){super(),this.element=t instanceof de?t.nativeElement:t}}class zU extends class $U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof xx?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof HU?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof jU?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||fn.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=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let GU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({}),n})();const Sx=PG();class UU{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=en(-this._previousScrollPosition.left),t.style.top=en(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Sx&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Sx&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class WU{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Mx{enable(){}disable(){}attach(){}}function zg(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function Ax(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class YU{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();zg(e,[{width:i,height:r,bottom:r,right:i,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}}let qU=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Mx,this.close=o=>new WU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new UU(this._viewportRuler,this._document),this.reposition=o=>new YU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(S(Dx),S(Cx),S(Ve),S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class KU{constructor(t){if(this.scrollStrategy=new Mx,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class XU{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class QU{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new O,this._attachments=new O,this._detachments=new O,this._locationChanges=he.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new O,this._outsidePointerEvents=new O,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(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Mr(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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=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),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=en(this._config.width),t.height=en(this._config.height),t.minWidth=en(this._config.minWidth),t.minHeight=en(this._config.minHeight),t.maxWidth=en(this._config.maxWidth),t.maxHeight=en(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;!t||(t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500)))}_toggleClasses(t,e,i){const r=zc(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(vt(qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Tx=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Lg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),Lg()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(S(Ie),S(Si))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kx="cdk-overlay-connected-position-bounding-box",ZU=/([A-Za-z%]+)$/;class JU{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,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 O,this._resizeSubscription=he.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(kx),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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)return void this.reapplyLastPosition();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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Fs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(kx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=Ox(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),v=this._subtractOverflows(s.height,h,f),D=p*v;return{visibleArea:D,isCompletelyWithinViewport:s.width*s.height===D,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Ix(this._overlayRef.getConfig().minHeight),a=Ix(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Ox(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new XU(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=en(i.height),r.top=en(i.top),r.bottom=en(i.bottom),r.width=en(i.width),r.left=en(i.left),r.right=en(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=en(s)),o&&(r.maxWidth=en(o))}this._lastBoundingBoxSize=i,Fs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Fs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Fs(i,this._getExactOverlayY(e,t,u)),Fs(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=en(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=en(o.maxWidth):s&&(i.maxWidth="")),Fs(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=en(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=en(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ax(t,i),isOriginOutsideView:zg(t,i),isOverlayClipped:Ax(e,i),isOverlayOutsideView:zg(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&zc(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof de)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Fs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ix(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(ZU);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Ox(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Fx="cdk-global-overlay-wrapper";class eW{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Fx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Fx),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let tW=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new eW}flexibleConnectedTo(e){return new JU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(S(Cx),S(Ie),S(Si),S(Tx))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rx=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(S(Ie))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nW=(()=>{class n extends Rx{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.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)}}return n.\u0275fac=function(e){return new(e||n)(S(Ie),S(Ve,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iW=(()=>{class n extends Rx{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Os(s)},this._clickListener=s=>{const o=Os(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const 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)}}return n.\u0275fac=function(e){return new(e||n)(S(Ie),S(Si),S(Ve,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rW=0,Wu=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new KU(e);return o.direction=o.direction||this._directionality.value,new QU(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+rW++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(mc)),new zU(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(S(qU),S(Tx),S(br),S(tW),S(nW),S(fn),S(Ve),S(Ie),S(Gc),S(Fb),S(iW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const aW={provide:new ne("cdk-connected-overlay-scroll-strategy"),deps:[Wu],useFactory:function oW(n){return()=>n.scrollStrategies.reposition()}};let lW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:[Wu,aW],imports:[[Ro,GU,Ex],Ex]}),n})();class uW{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new dW(t,this.dueTime,this.scheduler))}}class dW extends Be{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(hW,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function hW(n){n.debouncedNext()}const Px=new Set;let Yo,fW=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):gW}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function pW(n){if(!Px.has(n))try{Yo||(Yo=document.createElement("style"),Yo.setAttribute("type","text/css"),document.head.appendChild(Yo)),Yo.sheet&&(Yo.sheet.insertRule(`@media ${n} {body{ }}`,0),Px.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(S(Si))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gW(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let mW=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Nx(zc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=o0(Nx(zc(e)).map(o=>this._registerQuery(o).observable));return s=ug(s.pipe(Mr(1)),s.pipe(ex(1),function cW(n,t=Za){return e=>e.lift(new uW(n,t))}(0))),s.pipe(P(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Y(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Su(i),P(({matches:o})=>({query:e,matches:o})),vt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(S(fW),S(Ve))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Nx(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const vW=["tooltip"],Lx="tooltip-panel",Vx=Hu({passive:!0}),Bx=new ne("mat-tooltip-scroll-strategy"),DW={provide:Bx,deps:[Wu],useFactory:function bW(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},CW=new ne("mat-tooltip-default-options",{providedIn:"root",factory:function EW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let xW=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(vt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ci(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=PD(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=PD(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=null!=e?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)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(vt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,Vx)}),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){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new xx(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(vt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Lx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(vt(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(vt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!function GG(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(e=this._defaultOptions)||void 0===e?void 0:e.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){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mr(1),vt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Lx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var r;const s=i.relatedTarget;(!s||!(null===(r=this._overlayRef)||void 0===r?void 0:r.overlayElement.contains(s)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,Vx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){!function e_(){throw new Error("invalid")}()},n.\u0275dir=T({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),SW=(()=>{class n extends xW{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=AW}}return n.\u0275fac=function(e){return new(e||n)(g(Wu),g(de),g(Dx),g(Un),g(Ve),g(Si),g(QG),g(cx),g(Bx),g(Gc,8),g(CW,8),g(Ie))},n.\u0275dir=T({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[H]}),n})(),MW=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new O,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(e?s:r),i.classList.add(e?r:s),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(g(Dr),g(Vo,8))},n.\u0275dir=T({type:n}),n})(),AW=(()=>{class n extends MW{constructor(e,i,r){super(e,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(g(Dr),g(mW),g(Vo,8))},n.\u0275cmp=rn({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&gf(vW,7),2&e){let r;pf(r=mf())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Le("mouseleave",function(s){return i._handleMouseLeave(s)}),2&e&&wr("zoom",i.isVisible()?1:null)},features:[H],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(oe(0,"div",0,1),Le("animationend",function(s){return i._handleAnimationEnd(s)}),kt(2,"async"),Ln(3),ye()),2&e){let r;Qt("mat-tooltip-handset",null==(r=function dc(n,t,e){const i=n+20,r=k(),s=zs(r,i);return Ia(r,i)?Iw(r,Fn(),t,s.transform,e,s):s.transform(e)}(2,4,i._isHandset))?null:r.matches),L("ngClass",i.tooltipClass),te(3),ds(i.message)}},directives:[ai],pipes:[Kf],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),TW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:[DW],imports:[[lU,To,lW,Qr],Qr,jg]}),n})();class IW{constructor(t){this.selector=t}call(t,e){return e.subscribe(new OW(t,this.selector,this.caught))}}class OW extends C{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Qn(this);this.add(i);const r=F(e,i);r!==i&&this.add(r)}}}class RW{constructor(t){this.callback=t}call(t,e){return e.subscribe(new PW(t,this.callback))}}class PW extends Be{constructor(t,e){super(t),this.add(new he(e))}}class LW{}class Zr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Zr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Zr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Zr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class VW{encodeKey(t){return Hx(t)}encodeValue(t){return Hx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const HW=/%(\d[a-f0-9])/gi,jW={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Hx(n){return encodeURIComponent(n).replace(HW,(t,e)=>{var i;return null!==(i=jW[e])&&void 0!==i?i:t})}function jx(n){return`${n}`}class Jr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new VW,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function BW(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Jr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(jx(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(jx(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class $W{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function $x(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function zx(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Gx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class hl{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function zW(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Zr),this.context||(this.context=new $W),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Jr,this.urlWithParams=e}serializeBody(){return null===this.body?null:$x(this.body)||zx(this.body)||Gx(this.body)||function GW(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Jr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Gx(this.body)?null:zx(this.body)?this.body.type||null:$x(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Jr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new hl(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var En=(()=>((En=En||{})[En.Sent=0]="Sent",En[En.UploadProgress=1]="UploadProgress",En[En.ResponseHeader=2]="ResponseHeader",En[En.DownloadProgress=3]="DownloadProgress",En[En.Response=4]="Response",En[En.User=5]="User",En))();class Gg extends class UW{constructor(t,e=200,i="OK"){this.headers=t.headers||new Zr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=En.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Gg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Ug(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Wx=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof hl)s=e;else{let l,c;l=r.headers instanceof Zr?r.headers:new Zr(r.headers),r.params&&(c=r.params instanceof Jr?r.params:new Jr({fromObject:r.params})),s=new hl(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Gi(s).pipe(function NW(n,t){return $(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof hl||"events"===r.observe)return o;const a=o.pipe(Tn(l=>l instanceof Gg));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(P(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(P(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Jr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Ug(r,i))}post(e,i,r={}){return this.request("POST",e,Ug(r,i))}put(e,i,r={}){return this.request("PUT",e,Ug(r,i))}}return n.\u0275fac=function(e){return new(e||n)(S(LW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const YW=["*"];let Yu;function fl(n){var t;return(null===(t=function qW(){if(void 0===Yu&&(Yu=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Yu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Yu}())||void 0===t?void 0:t.createHTML(n))||n}function Yx(n){return Error(`Unable to find icon with the name "${n}"`)}function qx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Kx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Rs{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let qu=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,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",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new Rs(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(tt.HTML,r);if(!o)throw Kx(r);const a=fl(o);return this._addSvgIconConfig(e,i,new Rs("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Rs(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(tt.HTML,i);if(!s)throw Kx(i);const o=fl(s);return this._addSvgIconSetConfig(e,new Rs("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(tt.RESOURCE_URL,e);if(!i)throw qx(e);const r=this._cachedIconsByUrl.get(i);return r?Gi(Ku(r)):this._loadSvgIconFromConfig(new Rs(e,null)).pipe(za(s=>this._cachedIconsByUrl.set(i,s)),P(s=>Ku(s)))}getNamedSvgIcon(e,i=""){const r=Xx(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):mD(Yx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Gi(Ku(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(P(i=>Ku(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Gi(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function kW(n){return function(e){const i=new IW(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(tt.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Gi(null)})));return function iC(...n){if(1===n.length){const t=n[0];if(Dt(t))return Wc(t,null);if(Ft(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Wc(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Wc(n=1===n.length&&Dt(n[0])?n[0]:n,null).pipe(P(e=>t(...e)))}return Wc(n,null)}(s).pipe(P(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw Yx(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(za(i=>e.svgText=i),P(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Gi(null):this._fetchIcon(e).pipe(za(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(fl("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(fl("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function KW(){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.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(tt.RESOURCE_URL,r);if(!a)throw qx(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(P(u=>fl(u)),function FW(n){return t=>t.lift(new RW(n))}(()=>this._inProgressUrlFetches.delete(a)),Ai());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Xx(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return QW(s)?new Rs(s.url,null,s.options):new Rs(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(S(Wx,8),S(Lc),S(Ie,8),S(Rr))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ku(n){return n.cloneNode(!0)}function Xx(n,t){return n+":"+t}function QW(n){return!(!n.url||!n.options)}const ZW=px(class{constructor(n){this._elementRef=n}}),JW=new ne("mat-icon-location",{providedIn:"root",factory:function e8(){const n=Js(Ie),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),Qx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t8=Qx.map(n=>`[${n}]`).join(", "),n8=/^url\(['"]?#(.*?)['"]?\)$/;let i8=(()=>{class n extends ZW{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=he.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ci(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){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(t8),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)Qx.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(n8):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Mr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(qu),function Nl(n){return function pM(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(xm(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(sn(),n)}("aria-hidden"),g(JW),g(Rr))},n.\u0275cmp=rn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(zt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Qt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[H],ngContentSelectors:YW,decls:1,vars:0,template:function(e,i){1&e&&($h(),zh(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),r8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=et({type:n}),n.\u0275inj=qe({imports:[[Qr],Qr]}),n})();dl.extend(TU),dl.extend(AU);let s8=(()=>{class n{constructor(){this.events=[],this.view=Kr.Month,this.viewDate=new Date,this.activeDayIsOpen=!1,this.calendarEvents=[]}eventClicked({event:e}){var i;null===(i=this.onEventClick)||void 0===i||i.call(this,{id:e.id})}dayClicked({day:e}){var r;null===(r=this.onDayClick)||void 0===r||r.call(this,{date:this.getISOString(e.date)})}viewDateChange(e){}getISOString(e){return e?dl(e).utc(!0).startOf("day").toISOString():null}ngAfterViewInit(){}ngOnChanges(e){var i;this.calendarEvents=null===(i=this.events)||void 0===i?void 0:i.map(r=>({title:r.title,color:{primary:_x(r.color).toRgbString(),secondary:_x(r.color).setAlpha(.3).toRgbString()},start:dl(r.start).toDate(),end:dl(r.end).toDate(),id:r.id}))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["drayman-calendar-internal"]],inputs:{events:"events",onEventClick:"onEventClick",onDayClick:"onDayClick"},features:[hn],decls:16,vars:14,consts:[["fxLayout","column",2,"height","100%","background-color","#fff"],["fxLayout","","fxLayoutAlign","start center",2,"height","40px"],["type","button","mat-icon-button","","mwlCalendarPreviousView","","matTooltip","Previous month",3,"view","viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarToday","","matTooltip","Today's month",3,"viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarNextView","","matTooltip","Next month",3,"view","viewDate","viewDateChange"],["fxFlex","",2,"font-weight","bolder","text-align","center"],[2,"height","calc(100% - 32px - 40px)"],[2,"height","100%",3,"weekStartsOn","activeDayIsOpen","viewDate","events","eventClicked","dayClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"div",1)(2,"button",2),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(3,"mat-icon"),Ln(4,"chevron_left"),ye()(),oe(5,"button",3),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(6,"mat-icon"),Ln(7,"today"),ye()(),oe(8,"button",4),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(9,"mat-icon"),Ln(10,"chevron_right"),ye()(),oe(11,"div",5),Ln(12),kt(13,"calendarDate"),ye()(),oe(14,"div",6)(15,"mwl-calendar-month-view",7),Le("eventClicked",function(s){return i.eventClicked(s)})("dayClicked",function(s){return i.dayClicked(s)}),ye()()()),2&e&&(te(2),L("view",i.view)("viewDate",i.viewDate),te(3),L("viewDate",i.viewDate),te(3),L("view",i.view)("viewDate",i.viewDate),te(4),bo(" ",Hi(13,10,i.viewDate,i.view+"ViewTitle","en")," "),te(3),L("weekStartsOn",1)("activeDayIsOpen",!1)("viewDate",i.viewDate)("events",i.calendarEvents))},directives:[$D,YD,SU,x3,SW,i8,M3,S3,WD,T3],pipes:[ol],styles:['@charset "UTF-8"; .cal-days>div{flex:1} .cal-month-view .cal-header{text-align:center;font-weight:bolder} .cal-month-view .cal-header .cal-cell{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap} .cal-month-view .cal-days{display:flex;flex-direction:column;height:100%;border:1px solid;border-bottom:0} .cal-month-view .cal-cell-top{min-height:78px;flex:1} .cal-month-view .cal-cell-row{-js-display:flex;display:flex} .cal-month-view .cal-cell{float:left;flex:1;-js-display:flex;display:flex;flex-direction:column;align-items:stretch} .cal-month-view .cal-cell .cal-event{pointer-events:all!important} .cal-month-view .cal-day-cell{min-height:100px}@media all and (-ms-high-contrast: none){ .cal-month-view .cal-day-cell{display:block}} .cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid} .cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid} .cal-month-view .cal-day-badge{margin-top:18px;margin-left:10px;display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:10px} .cal-month-view .cal-day-number{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px} .cal-month-view .cal-events{flex:1;align-items:flex-end;margin:3px;line-height:10px;-js-display:flex;display:flex;flex-wrap:wrap} .cal-month-view .cal-event{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px} .cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer} .cal-month-view .cal-day-cell.cal-out-month .cal-day-number{opacity:.1;cursor:default} .cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em} .cal-month-view .cal-open-day-events{padding:15px} .cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px} .cal-month-view .cal-out-month .cal-day-badge, .cal-month-view .cal-out-month .cal-event{opacity:.3} .cal-month-view .cal-draggable{cursor:move} .cal-month-view .cal-drag-active *{pointer-events:none} .cal-month-view .cal-event-title{cursor:pointer} .cal-month-view .cal-event-title:hover{text-decoration:underline} .cal-month-view{background-color:#fff;height:100%} .cal-month-view .cal-cell-row:hover{background-color:#fafafa} .cal-month-view .cal-cell-row .cal-cell:hover, .cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed} .cal-month-view .cal-days{border-color:#e1e1e1} .cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1} .cal-month-view .cal-days .cal-cell-row{height:100%;border-bottom-color:#e1e1e1} .cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff} .cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff} .cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000} .cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7} .cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important} .cal-month-view .cal-open-day-events{color:#fff;background-color:#555;box-shadow:inset 0 0 15px #00000080} .cal-week-view *{box-sizing:border-box} .cal-week-view .cal-day-headers{-js-display:flex;display:flex;padding-left:70px;border:1px solid} .cal-week-view .cal-day-headers .cal-header{flex:1;text-align:center;padding:5px} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid} .cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid} .cal-week-view .cal-day-headers span{font-weight:400;opacity:.5} .cal-week-view .cal-day-column{flex-grow:1;border-left:solid 1px} .cal-week-view .cal-event{font-size:12px;border:1px solid} .cal-week-view .cal-time-label-column{width:70px;height:100%} .cal-week-view .cal-current-time-marker{position:absolute;width:100%;height:2px;z-index:2} .cal-week-view .cal-all-day-events{border:solid 1px;border-top:0;border-bottom-width:3px;padding-top:3px;position:relative} .cal-week-view .cal-all-day-events .cal-day-columns{height:100%;width:100%;-js-display:flex;display:flex;position:absolute;top:0;z-index:0} .cal-week-view .cal-all-day-events .cal-events-row{position:relative;height:31px;margin-left:70px} .cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute} .cal-week-view .cal-all-day-events .cal-event-container.resize-active{z-index:1;pointer-events:none} .cal-week-view .cal-all-day-events .cal-event{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px} .cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-top-left-radius:5px;border-bottom-left-radius:5px} .cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-top-right-radius:5px;border-bottom-right-radius:5px} .cal-week-view .cal-all-day-events .cal-time-label-column{-js-display:flex;display:flex;align-items:center;justify-content:center;font-size:14px} .cal-week-view .cal-all-day-events .cal-resize-handle{width:6px;height:100%;cursor:col-resize;position:absolute;top:0} .cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0} .cal-week-view .cal-event, .cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cal-week-view .cal-drag-active{pointer-events:none;z-index:1} .cal-week-view .cal-drag-active *{pointer-events:none} .cal-week-view .cal-time-events{position:relative;border:solid 1px;border-top:0;-js-display:flex;display:flex} .cal-week-view .cal-time-events .cal-day-columns{-js-display:flex;display:flex;flex-grow:1} .cal-week-view .cal-time-events .cal-day-column{position:relative} .cal-week-view .cal-time-events .cal-events-container{position:relative} .cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1} .cal-week-view .cal-time-events .cal-event{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px} .cal-week-view .cal-time-events .cal-resize-handle{width:100%;height:4px;cursor:row-resize;position:absolute} .cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0} .cal-week-view .cal-hour-segment{position:relative} .cal-week-view .cal-hour-segment:after{content:"\\a0"} .cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer} .cal-week-view .cal-draggable{cursor:move} .cal-week-view mwl-calendar-week-view-hour-segment, .cal-week-view .cal-hour-segment{display:block} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom:thin dashed} .cal-week-view .cal-time{font-weight:700;padding-top:5px;width:70px;text-align:center} .cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none} .cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px} .cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px} .cal-week-view{background-color:#fff;border-top:solid 1px #e1e1e1} .cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:hover, .cal-week-view .cal-day-headers .cal-drag-over{background-color:#ededed} .cal-week-view .cal-day-column{border-left-color:#e1e1e1} .cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff} .cal-week-view .cal-all-day-events{border-color:#e1e1e1} .cal-week-view .cal-header.cal-today{background-color:#e8fde7} .cal-week-view .cal-header.cal-weekend span{color:#8b0000} .cal-week-view .cal-time-events{border-color:#e1e1e1} .cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed} .cal-week-view .cal-hour-odd{background-color:#fafafa} .cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1} .cal-week-view .cal-current-time-marker{background-color:#ea4334} .cal-day-view mwl-calendar-week-view-header{display:none} .cal-day-view .cal-events-container{margin-left:70px} .cal-day-view .cal-day-column{border-left:0} .cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)} .cal-tooltip{position:absolute;z-index:1070;display:block;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;font-size:11px;word-wrap:break-word;opacity:.9} .cal-tooltip.cal-tooltip-top{padding:5px 0;margin-top:-3px} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0} .cal-tooltip.cal-tooltip-right{padding:0 5px;margin-left:3px} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0} .cal-tooltip.cal-tooltip-bottom{padding:5px 0;margin-top:3px} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px} .cal-tooltip.cal-tooltip-left{padding:0 5px;margin-left:-3px} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px} .cal-tooltip-inner{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem} .cal-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000} .cal-tooltip-inner{color:#fff;background-color:#000}']}),n})(),o8=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function mN(n,t){const e=function cN(n,t){return t.get(br).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new fN(n,t.injector),r=function lN(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function iN(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends gN{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(s8,{injector:this.injector});customElements.define("drayman-calendar",e)}}return n.\u0275fac=function(e){return new(e||n)(S(fn))},n.\u0275mod=et({type:n}),n.\u0275inj=qe({providers:[],imports:[[uD,Vj,VH,VB,r8,TW,MU,Go.forRoot({provide:Dn,useFactory:FG})]]}),n})();(function tR(){vb=!1})(),RP().bootstrapModule(o8).catch(n=>console.error(n))})()})();