webc-miam 4.9.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main-es2015.js +1 -1
- package/main-es5.js +1 -1
- package/package.json +1 -1
- package/webc-miam-de.js +1 -0
- package/webc-miam-en.js +1 -0
- package/webc-miam-es.js +1 -0
- package/webc-miam-fr.js +1 -0
- package/webc-miam-it.js +1 -0
- package/webc-miam-nl.js +1 -0
- package/webc-miam-pt.js +1 -0
- package/webc-miam-ro.js +1 -0
- package/webc-miam.js +0 -1
package/webc-miam-en.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){function r(r){for(var n,i,l=r[0],a=r[1],f=r[2],p=0,s=[];p<l.length;p++)i=l[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++)0!==o[t[l]]&&(n=!1);n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={0:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,(function(r){return e[r]}).bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="";var l=window.webpackJsonpWebcMiam=window.webpackJsonpWebcMiam||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var f=0;f<l.length;f++)r(l[f]);var c=a;t()}([]);(window.webpackJsonpWebcMiam=window.webpackJsonpWebcMiam||[]).push([[1],{0:function(e,t,i){e.exports=i("5Mvx")},"0LHn":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.abs=void 0;var n=i("wvHV"),r=i("MBFf"),a=i("X1CF");t.abs=function(e){return n.isNegative(e)?r.negate(e):a.parse(e)}},"1vCq":function(e,t,i){"use strict";(function(e){var n=i("fw2E"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===r?n.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var i=e.length,n=s?s(i):new e.constructor(i);return e.copy(n),n}}).call(this,i("cyaT")(e))},"4NgV":function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getUnitCount=void 0;var r=i("9a4g"),a=i("X1CF");t.getUnitCount=function(e){var t=n({},a.parse(e)),i=0;return r.UNITS.forEach((function(e){0!==t[e]&&i++})),i}},"5Mvx":function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.r(t);let r=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const s={closed:!0,next(e){},error(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},c=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function l(e){return null!==e&&"object"==typeof e}const d=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:r,_unsubscribe:a,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(let e=0;e<i.length;++e)i[e].remove(this);if(n(a)){r&&(this._unsubscribe=void 0);try{a.call(this)}catch(s){t=s instanceof d?m(s.errors):[s]}}if(c(o)){let e=-1,i=o.length;for(;++e<i;){const i=o[e];if(l(i))try{i.unsubscribe()}catch(s){t=t||[],s instanceof d?t=t.concat(m(s.errors)):t.push(s)}}}if(t)throw new d(t)}add(t){let i=t;if(!t)return e.EMPTY;switch(typeof t){case"function":i=new e(t);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof e)){const t=i;i=new e,i._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=i;if(null===n)i._parentOrParents=this;else if(n instanceof e){if(n===this)return i;i._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return i;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[i]:r.push(i),i}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function m(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class h extends u{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s;break;case 1:if(!e){this.destination=s;break}if("object"==typeof e){e instanceof h?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,i)}}[p](){return this}static create(e,t,i){const n=new h(e,t,i);return n.syncErrorThrowable=!1,n}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends h{constructor(e,t,i,r){let a;super(),this._parentSubscriber=e;let o=this;n(t)?a=t:t&&(a=t.next,i=t.error,r=t.complete,t!==s&&(o=Object.create(t),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=a,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=a;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(e,t,i){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(n){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const f=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(e){return e}function _(...e){return y(e)}function y(e){return 0===e.length?v:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(e,t,i){const{operator:n}=this,r=function(e,t,i){if(e){if(e instanceof h)return e;if(e[p])return e[p]()}return e||t||i?new h(e,t,i):new h(s)}(e,t,i);if(r.add(n?n.call(r,this.source):this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:i,isStopped:n}=e;if(t||n)return!1;e=i&&i instanceof h?i:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=w(t))((t,i)=>{let n;n=this.subscribe(t=>{try{e(t)}catch(r){i(r),n&&n.unsubscribe()}},i,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[f](){return this}pipe(...e){return 0===e.length?this:y(e)(this)}toPromise(e){return new(e=w(e))((e,t)=>{let i;this.subscribe(e=>i=e,e=>t(e),()=>e(i))})}}return e.create=t=>new e(t),e})();function w(e){if(e||(e=a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const x=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class C extends u{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class k extends h{constructor(e){super(e),this.destination=e}}let A=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new k(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new x;if(!this.isStopped){const{observers:t}=this,i=t.length,n=t.slice();for(let r=0;r<i;r++)n[r].next(e)}}error(e){if(this.closed)throw new x;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,i=t.length,n=t.slice();for(let r=0;r<i;r++)n[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new x;this.isStopped=!0;const{observers:e}=this,t=e.length,i=e.slice();for(let n=0;n<t;n++)i[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new x;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new x;return this.hasError?(e.error(this.thrownError),u.EMPTY):this.isStopped?(e.complete(),u.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new b;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends A{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):u.EMPTY}}function E(e){return e&&"function"==typeof e.schedule}function D(e,t){return function(i){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new I(e,t))}}class I{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new O(e,this.project,this.thisArg))}}class O extends h{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const P=e=>t=>{for(let i=0,n=e.length;i<n&&!t.closed;i++)t.next(e[i]);t.complete()};function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=T(),L=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const z=e=>{if(e&&"function"==typeof e[f])return n=e,e=>{const t=n[f]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(L(e))return P(e);if(R(e))return i=e,e=>(i.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[M])return t=e,e=>{const i=t[M]();for(;;){let t;try{t=i.next()}catch(n){return e.error(n),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof i.return&&e.add(()=>{i.return&&i.return()}),e};{const t=l(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,i,n};function F(e,t){return new b(i=>{const n=new u;let r=0;return n.add(t.schedule((function(){r!==e.length?(i.next(e[r++]),i.closed||n.add(this.schedule())):i.complete()}))),n})}function H(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[f]}(e))return function(e,t){return new b(i=>{const n=new u;return n.add(t.schedule(()=>{const r=e[f]();n.add(r.subscribe({next(e){n.add(t.schedule(()=>i.next(e)))},error(e){n.add(t.schedule(()=>i.error(e)))},complete(){n.add(t.schedule(()=>i.complete()))}}))})),n})}(e,t);if(R(e))return function(e,t){return new b(i=>{const n=new u;return n.add(t.schedule(()=>e.then(e=>{n.add(t.schedule(()=>{i.next(e),n.add(t.schedule(()=>i.complete()))}))},e=>{n.add(t.schedule(()=>i.error(e)))}))),n})}(e,t);if(L(e))return F(e,t);if(function(e){return e&&"function"==typeof e[M]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(i=>{const n=new u;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(t.schedule(()=>{r=e[M](),n.add(t.schedule((function(){if(i.closed)return;let e,t;try{const i=r.next();e=i.value,t=i.done}catch(n){return void i.error(n)}t?i.complete():(i.next(e),this.schedule())})))})),n})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof b?e:new b(z(e))}class B extends h{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends h{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function N(e,t){if(!t.closed)return e instanceof b?e.subscribe(t):z(e)(t)}function V(e,t,i=Number.POSITIVE_INFINITY){return"function"==typeof t?n=>n.pipe(V((i,n)=>H(e(i,n)).pipe(D((e,r)=>t(i,e,n,r))),i)):("number"==typeof t&&(i=t),t=>t.lift(new Z(e,i)))}class Z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends j{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(t)}_innerSub(e){const t=new B(this),i=this.destination;i.add(t);const n=N(e,t);n!==t&&i.add(n)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const W=V;function U(e=Number.POSITIVE_INFINITY){return V(v,e)}function Y(e,t){return t?F(e,t):new b(P(e))}function X(...e){let t=Number.POSITIVE_INFINITY,i=null,n=e[e.length-1];return E(n)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof n&&(t=e.pop()),null===i&&1===e.length&&e[0]instanceof b?e[0]:U(t)(Y(e,i))}function G(){return function(e){return e.lift(new q(e))}}class q{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const n=new J(e,i),r=t.subscribe(n);return n.closed||(n.connection=i.connect()),r}}class J extends h{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,n=e._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class K extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new u,e.add(this.source.subscribe(new ee(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.EMPTY)),e}refCount(){return G()(this)}}const $=(()=>{const e=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class ee extends k{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function te(e,t){return function(i){let n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return i.lift(new ie(n,t));const r=Object.create(i,$);return r.source=i,r.subjectFactory=n,r}}class ie{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,n=this.subjectFactory(),r=i(n).subscribe(e);return r.add(t.subscribe(n)),r}}function ne(){return new A}function re(){return e=>G()(te(ne)(e))}function ae(e){return{toString:e}.toString()}function oe(e,t,i){return ae(()=>{const n=function(e){return function(...t){if(e){const i=e(...t);for(const e in i)this[e]=i[e]}}}(t);function r(...e){if(this instanceof r)return n.apply(this,e),this;const t=new r(...e);return i.annotation=t,i;function i(e,i,n){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(t),e}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const se=oe("Inject",e=>({token:e})),ce=oe("Optional"),le=oe("Self"),de=oe("SkipSelf");var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function me(e){for(let t in e)if(e[t]===me)return t;throw Error("Could not find renamed property on target object.")}function pe(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function he(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const ge=he;function fe(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ve(e){return _e(e,e[be])||_e(e,e[Ce])}function _e(e,t){return t&&t.token===e?t:null}function ye(e){return e&&(e.hasOwnProperty(we)||e.hasOwnProperty(ke))?e[we]:null}const be=me({\u0275prov:me}),we=me({\u0275inj:me}),xe=me({\u0275provFallback:me}),Ce=me({ngInjectableDef:me}),ke=me({ngInjectorDef:me});function Ae(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ae).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function Se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ee=me({__forward_ref__:me});function De(e){return e.__forward_ref__=De,e.toString=function(){return Ae(this())},e}function Ie(e){return Oe(e)?e():e}function Oe(e){return"function"==typeof e&&e.hasOwnProperty(Ee)&&e.__forward_ref__===De}const Pe="undefined"!=typeof globalThis&&globalThis,Te="undefined"!=typeof window&&window,Me="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Le="undefined"!=typeof global&&global,Re=Pe||Le||Te||Me,ze=me({\u0275cmp:me}),Fe=me({\u0275dir:me}),He=me({\u0275pipe:me}),Be=me({\u0275mod:me}),je=me({\u0275loc:me}),Ne=me({\u0275fac:me}),Ve=me({__NG_ELEMENT_ID__:me});class Ze{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=he({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Qe=new Ze("INJECTOR",-1),We={},Ue=/\n/gm,Ye=me({provide:String,useValue:me});let Xe,Ge;function qe(e){const t=Xe;return Xe=e,t}function Je(e){const t=Ge;return Ge=e,t}function Ke(e,t=ue.Default){if(void 0===Xe)throw new Error("inject() must be called from an injection context");return null===Xe?tt(e,void 0,t):Xe.get(e,t&ue.Optional?null:void 0,t)}function $e(e,t=ue.Default){return(Ge||Ke)(Ie(e),t)}const et=$e;function tt(e,t,i){const n=ve(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&ue.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${Ae(e)}]`)}function it(e){const t=[];for(let i=0;i<e.length;i++){const n=Ie(e[i]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");let e,i=ue.Default;for(let t=0;t<n.length;t++){const r=n[t];r instanceof ce||"Optional"===r.ngMetadataName||r===ce?i|=ue.Optional:r instanceof de||"SkipSelf"===r.ngMetadataName||r===de?i|=ue.SkipSelf:r instanceof le||"Self"===r.ngMetadataName||r===le?i|=ue.Self:e=r instanceof se||r===se?r.token:r}t.push($e(e,i))}else t.push($e(n))}return t}class nt{get(e,t=We){if(t===We){const t=new Error(`NullInjectorError: No provider for ${Ae(e)}!`);throw t.name="NullInjectorError",t}return t}}class rt{}function at(e,t){void 0===t&&(t=e);for(let i=0;i<e.length;i++){let n=e[i];Array.isArray(n)?(t===e&&(t=e.slice(0,i)),at(n,t)):t!==e&&t.push(n)}return t}function ot(e,t){e.forEach(e=>Array.isArray(e)?ot(e,t):t(e))}function st(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function ct(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lt(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function dt(e,t,i){let n=mt(e,t);return n>=0?e[1|n]=i:(n=~n,function(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function ut(e,t){const i=mt(e,t);if(i>=0)return e[1|i]}function mt(e,t){return function(e,t,i){let n=0,r=e.length>>1;for(;r!==n;){const i=n+(r-n>>1),a=e[i<<1];if(t===a)return i<<1;a>t?r=i:n=i+1}return~(r<<1)}(e,t)}var pt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),ht=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const gt={},ft=[];let vt=0;function _t(e){return ae(()=>{const t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===pt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ft,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,id:"c",styles:e.styles||ft,_:null,setInput:null,schemas:e.schemas||null,tView:null},n=e.directives,r=e.features,a=e.pipes;return i.id+=vt++,i.inputs=Ct(e.inputs,t),i.outputs=Ct(e.outputs),r&&r.forEach(e=>e(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(yt):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(bt):null,i})}function yt(e){return St(e)||function(e){return e[Fe]||null}(e)}function bt(e){return function(e){return e[He]||null}(e)}const wt={};function xt(e){const t={type:e.type,bootstrap:e.bootstrap||ft,declarations:e.declarations||ft,imports:e.imports||ft,exports:e.exports||ft,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&ae(()=>{wt[e.id]=e.type}),t}function Ct(e,t){if(null==e)return gt;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),i[r]=n,t&&(t[r]=a)}return i}const kt=_t;function At(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function St(e){return e[ze]||null}function Et(e,t){return e.hasOwnProperty(Ne)?e[Ne]:null}function Dt(e,t){const i=e[Be]||null;if(!i&&!0===t)throw new Error(`Type ${Ae(e)} does not have '\u0275mod' property.`);return i}function It(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ot(e){return Array.isArray(e)&&!0===e[1]}function Pt(e){return 0!=(8&e.flags)}function Tt(e){return 2==(2&e.flags)}function Mt(e){return 1==(1&e.flags)}function Lt(e){return null!==e.template}function Rt(e){return 0!=(512&e[2])}function zt(e){return"string"==typeof e?e:null==e?"":""+e}function Ft(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():zt(e)}const Ht=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function Bt(e){return{name:"window",target:e.ownerDocument.defaultView}}function jt(e){return{name:"document",target:e.ownerDocument}}function Nt(e){return e instanceof Function?e():e}function Vt(e,t){const i=t?` in ${t}`:"";throw new Error(`No provider for ${Ft(e)} found${i}`)}class Zt{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qt(){return Wt}function Wt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yt),Ut}function Ut(){const e=Xt(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===gt)e.previous=t;else for(let e in t)i[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Yt(e,t,i,n){const r=Xt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:gt,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[i],c=o[s];a[s]=new Zt(c&&c.currentValue,t,o===gt),e[n]=t}function Xt(e){return e.__ngSimpleChanges__||null}let Gt;function qt(){return void 0!==Gt?Gt:"undefined"!=typeof document?document:void 0}function Jt(e){return!!e.listen}Qt.ngInherit=!0;const Kt={createRenderer:(e,t)=>qt()};function $t(e){for(;Array.isArray(e);)e=e[0];return e}function ei(e,t){return $t(t[e+20])}function ti(e,t){return $t(t[e.index])}function ii(e,t){return e.data[t+20]}function ni(e,t){return e[t+20]}function ri(e,t){const i=t[e];return It(i)?i:i[0]}function ai(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function oi(e){return 4==(4&e[2])}function si(e){return 128==(128&e[2])}function ci(e,t){return null===e||null==t?null:e[t]}function li(e){e[18]=0}function di(e,t){e[5]+=t;let i=e,n=e[3];for(;null!==n&&(1===t&&1===i[5]||-1===t&&0===i[5]);)n[5]+=t,i=n,n=n[3]}const ui={lFrame:Mi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function mi(){return ui.bindingsEnabled}function pi(){return ui.lFrame.lView}function hi(){return ui.lFrame.tView}function gi(e){ui.lFrame.contextLView=e}function fi(){return ui.lFrame.currentTNode}function vi(e,t){ui.lFrame.currentTNode=e,ui.lFrame.isParent=t}function _i(){return ui.lFrame.isParent}function yi(){ui.lFrame.isParent=!1}function bi(){return ui.isInCheckNoChangesMode}function wi(e){ui.isInCheckNoChangesMode=e}function xi(){const e=ui.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ci(){return ui.lFrame.bindingIndex}function ki(){return ui.lFrame.bindingIndex++}function Ai(e){const t=ui.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function Si(e,t){const i=ui.lFrame;i.bindingIndex=i.bindingRootIndex=e,Ei(t)}function Ei(e){ui.lFrame.currentDirectiveIndex=e}function Di(){return ui.lFrame.currentQueryIndex}function Ii(e){ui.lFrame.currentQueryIndex=e}function Oi(e,t){const i=Ti();ui.lFrame=i,i.currentTNode=t,i.lView=e}function Pi(e){const t=Ti(),i=e[1];ui.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex}function Ti(){const e=ui.lFrame,t=null===e?null:e.child;return null===t?Mi(e):t}function Mi(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Li(){const e=ui.lFrame;return ui.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ri=Li;function zi(){const e=Li();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Fi(){return ui.lFrame.selectedIndex}function Hi(e){ui.lFrame.selectedIndex=e}function Bi(){const e=ui.lFrame;return ii(e.tView,e.selectedIndex)}function ji(){ui.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ni(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i<n;i++){const t=e.data[i].type.prototype,{ngAfterContentInit:n,ngAfterContentChecked:r,ngAfterViewInit:a,ngAfterViewChecked:o,ngOnDestroy:s}=t;n&&(e.contentHooks||(e.contentHooks=[])).push(-i,n),r&&((e.contentHooks||(e.contentHooks=[])).push(i,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(i,r)),a&&(e.viewHooks||(e.viewHooks=[])).push(-i,a),o&&((e.viewHooks||(e.viewHooks=[])).push(i,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(i,o)),null!=s&&(e.destroyHooks||(e.destroyHooks=[])).push(i,s)}}function Vi(e,t,i){Wi(e,t,3,i)}function Zi(e,t,i,n){(3&e[2])===i&&Wi(e,t,i,n)}function Qi(e,t){let i=e[2];(3&i)===t&&(i&=2047,i+=1,e[2]=i)}function Wi(e,t,i,n){const r=null!=n?n:-1;let a=0;for(let o=void 0!==n?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(a=t[o],null!=n&&a>=n)break}else t[o]<0&&(e[18]+=65536),(a<r||-1==r)&&(Ui(e,i,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Ui(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}class Yi{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Xi(e,t,i){const n=Jt(e);let r=0;for(;r<i.length;){const a=i[r];if("number"==typeof a){if(0!==a)break;r++;const o=i[r++],s=i[r++],c=i[r++];n?e.setAttribute(t,s,c,o):t.setAttributeNS(o,s,c)}else{const o=a,s=i[++r];qi(o)?n&&e.setProperty(t,o,s):n?e.setAttribute(t,o,s):t.setAttribute(o,s),r++}}return r}function Gi(e){return 3===e||4===e||6===e}function qi(e){return 64===e.charCodeAt(0)}function Ji(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let n=0;n<t.length;n++){const r=t[n];"number"==typeof r?i=r:0===i||Ki(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function Ki(e,t,i,n,r){let a=0,o=e.length;if(-1===t)o=-1;else for(;a<e.length;){const i=e[a++];if("number"==typeof i){if(i===t){o=-1;break}if(i>t){o=a-1;break}}}for(;a<e.length;){const t=e[a];if("number"==typeof t)break;if(t===i){if(null===n)return void(null!==r&&(e[a+1]=r));if(n===e[a+1])return void(e[a+2]=r)}a++,null!==n&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,t),a=o+1),e.splice(a++,0,i),null!==n&&e.splice(a++,0,n),null!==r&&e.splice(a++,0,r)}function $i(e){return-1!==e}function en(e){return 32767&e}function tn(e,t){let i=e>>16,n=t;for(;i>0;)n=n[15],i--;return n}let nn=!0;function rn(e){const t=nn;return nn=e,t}let an=0;function on(e,t){const i=cn(e,t);if(-1!==i)return i;const n=t[1];n.firstCreatePass&&(e.injectorIndex=t.length,sn(n.data,e),sn(t,null),sn(n.blueprint,null));const r=ln(e,t),a=e.injectorIndex;if($i(r)){const e=en(r),i=tn(r,t),n=i[1].data;for(let r=0;r<8;r++)t[a+r]=i[e+r]|n[e+r]}return t[a+8]=r,a}function sn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ln(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(n=2===t?e.declTNode:1===t?r[6]:null,null===n)return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function dn(e,t,i){!function(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ve)&&(n=i[Ve]),null==n&&(n=i[Ve]=an++);const r=255&n,a=1<<r,o=64&r,s=32&r,c=t.data;128&r?o?s?c[e+7]|=a:c[e+6]|=a:s?c[e+5]|=a:c[e+4]|=a:o?s?c[e+3]|=a:c[e+2]|=a:s?c[e+1]|=a:c[e]|=a}(e,t,i)}function un(e,t,i,n=ue.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ve)?e[Ve]:void 0;return"number"==typeof t&&t>0?255&t:t}(i);if("function"==typeof r){Oi(t,e);try{const e=r();if(null!=e||n&ue.Optional)return e;Vt(i)}finally{Ri()}}else if("number"==typeof r){if(-1===r)return new _n(e,t);let a=null,o=cn(e,t),s=-1,c=n&ue.Host?t[16][6]:null;for((-1===o||n&ue.SkipSelf)&&(s=-1===o?ln(e,t):t[o+8],-1!==s&&vn(n,!1)?(a=t[1],o=en(s),t=tn(s,t)):o=-1);-1!==o;){const e=t[1];if(fn(r,o,e.data)){const e=pn(o,t,i,a,n,c);if(e!==mn)return e}s=t[o+8],-1!==s&&vn(n,t[1].data[o+8]===c)&&fn(r,o,t)?(a=e,o=en(s),t=tn(s,t)):o=-1}}}if(n&ue.Optional&&void 0===r&&(r=null),0==(n&(ue.Self|ue.Host))){const e=t[9],a=Je(void 0);try{return e?e.get(i,r,n&ue.Optional):tt(i,r,n&ue.Optional)}finally{Je(a)}}if(n&ue.Optional)return r;Vt(i,"NodeInjector")}const mn={};function pn(e,t,i,n,r,a){const o=t[1],s=o.data[e+8],c=hn(s,o,i,null==n?Tt(s)&&nn:n!=o&&2===s.type,r&ue.Host&&a===s);return null!==c?gn(t,o,c,s):mn}function hn(e,t,i,n,r){const a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,l=a>>20,d=r?s+l:e.directiveEnd;for(let u=n?s:s+l;u<d;u++){const e=o[u];if(u<c&&i===e||u>=c&&e.type===i)return u}if(r){const e=o[c];if(e&&Lt(e)&&e.type===i)return c}return null}function gn(e,t,i,n){let r=e[i];const a=t.data;if(r instanceof Yi){const o=r;o.resolving&&function(e,t){throw new Error(`Circular dependency in DI detected for ${e}`)}(Ft(a[i]));const s=rn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Je(o.injectImpl):null;Oi(e,n);try{r=e[i]=o.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const n=Wt(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,n)}r&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,r),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,a))}(i,a[i],t)}finally{null!==c&&Je(c),rn(s),o.resolving=!1,Ri()}}return r}function fn(e,t,i){const n=64&e,r=32&e;let a;return a=128&e?n?r?i[t+7]:i[t+6]:r?i[t+5]:i[t+4]:n?r?i[t+3]:i[t+2]:r?i[t+1]:i[t],!!(a&1<<e)}function vn(e,t){return!(e&ue.Self||e&ue.Host&&t)}class _n{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return un(this._tNode,this._lView,e,void 0,t)}}function yn(e){const t=e;if(Oe(e))return()=>{const e=yn(Ie(t));return e?e():null};let i=Et(t);if(null===i){const e=ye(t);i=e&&e.factory}return i||null}function bn(e){return ae(()=>{const t=e.prototype.constructor,i=t[Ne]||yn(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const e=r[Ne]||yn(r);if(e&&e!==i)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function wn(e){return e.ngDebugContext}function xn(e){return e.ngOriginalError}function Cn(e,...t){e.error(...t)}class kn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=this._findContext(e),n=function(e){return e.ngErrorLogger||Cn}(e);n(this._console,"ERROR",e),t&&n(this._console,"ORIGINAL ERROR",t),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(e){return e?wn(e)?wn(e):this._findContext(xn(e)):null}_findOriginalError(e){let t=xn(e);for(;t&&xn(t);)t=xn(t);return t}}class An{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see http://g.co/ng/security#xss)`}}class Sn extends An{getTypeName(){return"HTML"}}class En extends An{getTypeName(){return"Style"}}class Dn extends An{getTypeName(){return"Script"}}class In extends An{getTypeName(){return"URL"}}class On extends An{getTypeName(){return"ResourceURL"}}function Pn(e){return e instanceof An?e.changingThisBreaksApplicationSecurity:e}function Tn(e,t){const i=Mn(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===t}function Mn(e){return e instanceof An&&e.getTypeName()||null}let Ln=!0,Rn=!1;function zn(){return Rn=!0,Ln}class Fn{getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Hn{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const i=this.inertDocument.createElement("body");return i.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let n=t.length-1;0<n;n--){const i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Bn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,jn=/^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 Nn(e){return(e=String(e)).match(Bn)||e.match(jn)?e:(zn()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Vn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Zn(...e){const t={};for(const i of e)for(const e in i)i.hasOwnProperty(e)&&(t[e]=!0);return t}const Qn=Vn("area,br,col,hr,img,wbr"),Wn=Vn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Un=Vn("rp,rt"),Yn=Zn(Un,Wn),Xn=Zn(Qn,Zn(Wn,Vn("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")),Zn(Un,Vn("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")),Yn),Gn=Vn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qn=Vn("srcset"),Jn=Zn(Gn,qn,Vn("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"),Vn("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")),Kn=Vn("script,style,template");class $n{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Xn.hasOwnProperty(t))return this.sanitizedSomething=!0,!Kn.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const e=i.item(r),t=e.name,a=t.toLowerCase();if(!Jn.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let o=e.value;Gn[a]&&(o=Nn(o)),qn[a]&&(n=o,o=(n=String(n)).split(",").map(e=>Nn(e.trim())).join(", ")),this.buf.push(" ",t,'="',ir(o),'"')}var n;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Xn.hasOwnProperty(t)&&!Qn.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(ir(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const er=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tr=/([^\#-~ |!])/g;function ir(e){return e.replace(/&/g,"&").replace(er,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(tr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let nr;function rr(e,t){let i=null;try{nr=nr||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Fn:new Hn(e)}(e);let n=t?String(t):"";i=nr.getInertBodyElement(n);let r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=i.innerHTML,i=nr.getInertBodyElement(n)}while(n!==a);const o=new $n,s=o.sanitizeChildren(ar(i)||i);return zn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(i){const e=ar(i)||i;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ar(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var or=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function sr(e){const t=dr();return t?t.sanitize(or.HTML,e)||"":Tn(e,"HTML")?Pn(e):rr(qt(),zt(e))}function cr(e){const t=dr();return t?t.sanitize(or.URL,e)||"":Tn(e,"URL")?Pn(e):Nn(zt(e))}function lr(e){const t=dr();if(t)return t.sanitize(or.RESOURCE_URL,e)||"";if(Tn(e,"ResourceURL"))return Pn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function dr(){const e=pi();return e&&e[12]}function ur(e,t){e.__ngContext__=t}function mr(e,t,i){let n=e.length;for(;;){const r=e.indexOf(t,i);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const i=t.length;if(r+i===n||e.charCodeAt(r+i)<=32)return r}i=r+1}}function pr(e,t,i){let n=0;for(;n<e.length;){let r=e[n++];if(i&&"class"===r){if(r=e[n],-1!==mr(r.toLowerCase(),t,0))return!0}else if(1===r){for(;n<e.length&&"string"==typeof(r=e[n++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function hr(e){return 0===e.type&&"ng-template"!==e.tagName}function gr(e,t,i){return t===(0!==e.type||i?e.tagName:"ng-template")}function fr(e,t,i){let n=4;const r=e.attrs||[],a=function(e){for(let t=0;t<e.length;t++)if(Gi(e[t]))return t;return e.length}(r);let o=!1;for(let s=0;s<t.length;s++){const c=t[s];if("number"!=typeof c){if(!o)if(4&n){if(n=2|1&n,""!==c&&!gr(e,c,i)||""===c&&1===t.length){if(vr(n))return!1;o=!0}}else{const l=8&n?c:t[++s];if(8&n&&null!==e.attrs){if(!pr(e.attrs,l,i)){if(vr(n))return!1;o=!0}continue}const d=_r(8&n?"class":c,r,hr(e),i);if(-1===d){if(vr(n))return!1;o=!0;continue}if(""!==l){let e;e=d>a?"":r[d+1].toLowerCase();const t=8&n?e:null;if(t&&-1!==mr(t,l,0)||2&n&&l!==e){if(vr(n))return!1;o=!0}}}}else{if(!o&&!vr(n)&&!vr(c))return!1;if(o&&vr(c))continue;o=!1,n=c|1&n}}return vr(n)||o}function vr(e){return 0==(1&e)}function _r(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let i=!1;for(;r<t.length;){const n=t[r];if(n===e)return r;if(3===n||6===n)i=!0;else{if(1===n||2===n){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===n)break;if(0===n){r+=4;continue}}r+=i?1:2}return-1}return function(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const n=e[i];if("number"==typeof n)return-1;if(n===t)return i;i++}return-1}(t,e)}function yr(e,t,i=!1){for(let n=0;n<t.length;n++)if(fr(e,t[n],i))return!0;return!1}function br(e,t){e:for(let i=0;i<t.length;i++){const n=t[i];if(e.length===n.length){for(let t=0;t<e.length;t++)if(e[t]!==n[t])continue e;return!0}}return!1}function wr(e,t){return e?":not("+t.trim()+")":t}function xr(e){let t=e[0],i=1,n=2,r="",a=!1;for(;i<e.length;){let o=e[i];if("string"==typeof o)if(2&n){const t=e[++i];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&n?r+="."+o:4&n&&(r+=" "+o);else""===r||vr(o)||(t+=wr(a,r),r=""),n=o,a=a||!vr(n);i++}return""!==r&&(t+=wr(a,r)),t}const Cr={};function kr(e){const t=e[3];return Ot(t)?t[3]:t}function Ar(e){return Er(e[13])}function Sr(e){return Er(e[4])}function Er(e){for(;null!==e&&!Ot(e);)e=e[4];return e}function Dr(e){Ir(hi(),pi(),Fi()+e,bi())}function Ir(e,t,i,n){if(!n)if(3==(3&t[2])){const n=e.preOrderCheckHooks;null!==n&&Vi(t,n,i)}else{const n=e.preOrderHooks;null!==n&&Zi(t,n,0,i)}Hi(i)}function Or(e,t){return e<<17|t<<2}function Pr(e){return e>>17&32767}function Tr(e){return 2|e}function Mr(e){return(131068&e)>>2}function Lr(e,t){return-131069&e|t<<2}function Rr(e){return 1|e}function zr(e,t){const i=e.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const r=i[n],a=i[n+1];if(-1!==a){const i=e.data[a];Ii(r),i.contentQueries(2,t[a],a)}}}function Fr(e,t,i){return Jt(t)?t.createElement(e,i):null===i?t.createElement(e):t.createElementNS(i,e)}function Hr(e,t,i,n,r,a,o,s,c,l){const d=t.blueprint.slice();return d[0]=r,d[2]=140|n,li(d),d[3]=d[15]=e,d[8]=i,d[10]=o||e&&e[10],d[11]=s||e&&e[11],d[12]=c||e&&e[12]||null,d[9]=l||e&&e[9]||null,d[6]=a,d[16]=2==t.type?e[16]:d,d}function Br(e,t,i,n,r){const a=t+20,o=e.data[a]||function(e,t,i,n,r){const a=fi(),o=_i(),s=e.data[t]=function(e,t,i,n,r,a){return{type:i,index:n,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:a,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?a:a&&a.parent,i,t,n,r);return null===e.firstChild&&(e.firstChild=s),null!==a&&(o&&null==a.child&&null!==s.parent?a.child=s:o||(a.next=s)),s}(e,a,i,n,r);return vi(o,!0),o}function jr(e,t,i){Pi(t);try{const n=e.viewQuery;null!==n&&_a(1,n,i);const r=e.template;null!==r&&Zr(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&zr(e,t),e.staticViewQueries&&_a(2,e.viewQuery,i);const a=e.components;null!==a&&function(e,t){for(let i=0;i<t.length;i++)pa(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),n}finally{t[2]&=-5,zi()}}function Nr(e,t,i,n){const r=t[2];if(256==(256&r))return;Pi(t);const a=bi();try{li(t),ui.lFrame.bindingIndex=e.bindingStartIndex,null!==i&&Zr(e,t,i,2,n);const o=3==(3&r);if(!a)if(o){const i=e.preOrderCheckHooks;null!==i&&Vi(t,i,null)}else{const i=e.preOrderHooks;null!==i&&Zi(t,i,0,null),Qi(t,0)}if(function(e){for(let t=Ar(e);null!==t;t=Sr(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const i=e[t],n=i[3];0==(1024&i[2])&&di(n,1),i[2]|=1024}}}(t),function(e){for(let t=Ar(e);null!==t;t=Sr(t))for(let e=10;e<t.length;e++){const i=t[e],n=i[1];si(i)&&Nr(n,i,n.template,i[8])}}(t),null!==e.contentQueries&&zr(e,t),!a)if(o){const i=e.contentCheckHooks;null!==i&&Vi(t,i)}else{const i=e.contentHooks;null!==i&&Zi(t,i,1),Qi(t,1)}!function(e,t){try{const i=e.expandoInstructions;if(null!==i){let n=e.expandoStartIndex,r=-1,a=-1;for(let e=0;e<i.length;e++){const o=i[e];"number"==typeof o?o<=0?(a=0-o,Hi(a),n+=9+i[++e],r=n):n+=o:(null!==o&&(Si(n,r),o(2,t[r])),r++)}}}finally{Hi(-1)}}(e,t);const s=e.components;null!==s&&function(e,t){for(let i=0;i<t.length;i++)ua(e,t[i])}(t,s);const c=e.viewQuery;if(null!==c&&_a(2,c,n),!a)if(o){const i=e.viewCheckHooks;null!==i&&Vi(t,i)}else{const i=e.viewHooks;null!==i&&Zi(t,i,2),Qi(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,di(t[3],-1))}finally{zi()}}function Vr(e,t,i,n){const r=t[10],a=!bi(),o=oi(t);try{a&&!o&&r.begin&&r.begin(),o&&jr(e,t,n),Nr(e,t,i,n)}finally{a&&!o&&r.end&&r.end()}}function Zr(e,t,i,n,r){const a=Fi();try{Hi(-1),2&n&&t.length>20&&Ir(e,t,0,bi()),i(n,r)}finally{Hi(a)}}function Qr(e,t,i){if(Pt(t)){const n=t.directiveEnd;for(let r=t.directiveStart;r<n;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,i[r],r)}}}function Wr(e,t,i){mi()&&(function(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;e.firstCreatePass||on(i,t),ur(n,t);const o=i.initialInputs;for(let s=r;s<a;s++){const n=e.data[s],a=Lt(n);a&&sa(t,i,n);const c=gn(t,e,s,i);ur(c,t),null!==o&&ca(0,s-r,c,n,0,o),a&&(ri(i.index,t)[8]=c)}}(e,t,i,ti(i,t)),128==(128&i.flags)&&function(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=e.expandoInstructions,o=e.firstCreatePass,s=i.index-20,c=ui.lFrame.currentDirectiveIndex;try{Hi(s);for(let i=n;i<r;i++){const n=e.data[i],r=t[i];Ei(i),null!==n.hostBindings||0!==n.hostVars||null!==n.hostAttrs?ta(n,r):o&&a.push(null)}}finally{Hi(-1),Ei(c)}}(e,t,i))}function Ur(e,t,i=ti){const n=t.localNames;if(null!==n){let r=t.index+1;for(let a=0;a<n.length;a+=2){const o=n[a+1],s=-1===o?i(t,e):e[o];e[r++]=s}}}function Yr(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Xr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Xr(e,t,i,n,r,a,o,s,c,l){const d=20+n,u=d+r,m=function(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:Cr);return i}(d,u),p="function"==typeof l?l():l;return m[1]={type:e,blueprint:m,template:i,queries:null,viewQuery:s,declTNode:t,data:m.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:u,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 a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function Gr(e,t,i,n){const r=ba(t);r.push(i),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(n,r.length-1)}function qr(e,t,i){for(let n in e)if(e.hasOwnProperty(n)){const r=e[n];(i=null===i?{}:i).hasOwnProperty(n)?i[n].push(t,r):i[n]=[t,r]}return i}function Jr(e,t,i,n,r,a,o,s){const c=ti(t,i);let l,d=t.inputs;var u;!s&&null!=d&&(l=d[n])?(xa(e,i,l,n,r),Tt(t)&&function(e,t){const i=ri(t,e);16&i[2]||(i[2]|=64)}(i,t.index)):2===t.type&&(n="class"===(u=n)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=o?o(r,t.tagName||"",n):r,Jt(a)?a.setProperty(c,n,r):qi(n)||(c.setProperty?c.setProperty(n,r):c[n]=r))}function Kr(e,t,i,n){let r=!1;if(mi()){const a=function(e,t,i){const n=e.directiveRegistry;let r=null;if(n)for(let a=0;a<n.length;a++){const o=n[a];yr(i,o.selectors,!1)&&(r||(r=[]),dn(on(i,t),e,o.type),Lt(o)?(na(e,i),r.unshift(o)):r.push(o))}return r}(e,t,i),o=null===n?null:{"":-1};if(null!==a){let n=0;r=!0,aa(i,e.data.length,a.length);for(let e=0;e<a.length;e++){const t=a[e];t.providersResolver&&t.providersResolver(t)}ia(e,i,a.length);let s=!1,c=!1;for(let r=0;r<a.length;r++){const l=a[r];i.mergedAttrs=Ji(i.mergedAttrs,l.hostAttrs),oa(e,t,l),ra(e.data.length-1,l,o),null!==l.contentQueries&&(i.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(i.flags|=128);const d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i.index-20),s=!0),c||!d.ngOnChanges&&!d.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i.index-20),c=!0),$r(e,l),n+=l.hostVars}!function(e,t){const i=t.directiveEnd,n=e.data,r=t.attrs,a=[];let o=null,s=null;for(let c=t.directiveStart;c<i;c++){const e=n[c],i=e.inputs,l=null===r||hr(t)?null:la(i,r);a.push(l),o=qr(i,c,o),s=qr(e.outputs,c,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=o,t.outputs=s}(e,i),ea(e,t,n)}o&&function(e,t,i){if(t){const n=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=i[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);n.push(t[e],r)}}}(i,n,o)}return i.mergedAttrs=Ji(i.mergedAttrs,i.attrs),r}function $r(e,t){const i=e.expandoInstructions;i.push(t.hostBindings),0!==t.hostVars&&i.push(t.hostVars)}function ea(e,t,i){for(let n=0;n<i;n++)t.push(Cr),e.blueprint.push(Cr),e.data.push(null)}function ta(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ia(e,t,i){const n=20-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(n,r,i)}function na(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ra(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Lt(t)&&(i[""]=e)}}function aa(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function oa(e,t,i){e.data.push(i);const n=i.factory||(i.factory=Et(i.type)),r=new Yi(n,Lt(i),null);e.blueprint.push(r),t.push(r)}function sa(e,t,i){const n=ti(t,e),r=Yr(i),a=e[10],o=ha(e,Hr(e,r,null,i.onPush?64:16,n,t,a,a.createRenderer(n,i),null,null));e[t.index]=o}function ca(e,t,i,n,r,a){const o=a[t];if(null!==o){const e=n.setInput;for(let t=0;t<o.length;){const r=o[t++],a=o[t++],s=o[t++];null!==e?n.setInput(i,s,r,a):i[a]=s}}}function la(e,t){let i=null,n=0;for(;n<t.length;){const r=t[n];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===i&&(i=[]),i.push(r,e[r],t[n+1])),n+=2}else n+=2;else n+=4}return i}function da(e,t,i,n){return new Array(e,!0,!1,t,null,0,n,i,null,null)}function ua(e,t){const i=ri(t,e);if(si(i)){const e=i[1];80&i[2]?Nr(e,i,e.template,i[8]):i[5]>0&&ma(i)}}function ma(e){for(let i=Ar(e);null!==i;i=Sr(i))for(let e=10;e<i.length;e++){const t=i[e];if(1024&t[2]){const e=t[1];Nr(e,t,e.template,t[8])}else t[5]>0&&ma(t)}const t=e[1].components;if(null!==t)for(let i=0;i<t.length;i++){const n=ri(t[i],e);si(n)&&n[5]>0&&ma(n)}}function pa(e,t){const i=ri(t,e),n=i[1];!function(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(n,i),jr(n,i,i[8])}function ha(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ga(e){for(;e;){e[2]|=64;const t=kr(e);if(Rt(e)&&!t)return e;e=t}return null}function fa(e,t,i){const n=t[10];n.begin&&n.begin();try{Nr(e,t,e.template,i)}catch(r){throw wa(t,r),r}finally{n.end&&n.end()}}function va(e){!function(e){for(let t=0;t<e.components.length;t++){const i=e.components[t],n=ai(i),r=n[1];Vr(r,n,r.template,i)}}(e[8])}function _a(e,t,i){Ii(0),t(e,i)}const ya=(()=>Promise.resolve(null))();function ba(e){return e[7]||(e[7]=[])}function wa(e,t){const i=e[9],n=i?i.get(kn,null):null;n&&n.handleError(t)}function xa(e,t,i,n,r){for(let a=0;a<i.length;){const o=i[a++],s=i[a++],c=t[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,n,s):c[s]=r}}function Ca(e,t,i){const n=ei(t,e),r=e[11];Jt(r)?r.setValue(n,i):n.textContent=i}function ka(e,t,i,n,r){if(null!=n){let a,o=!1;Ot(n)?a=n:It(n)&&(o=!0,n=n[0]);const s=$t(n);0===e&&null!==i?null==r?Pa(t,i,s):Oa(t,i,s,r||null):1===e&&null!==i?Oa(t,i,s,r||null):2===e?function(e,t,i){const n=Ma(e,t);n&&function(e,t,i,n){Jt(e)?e.removeChild(t,i,n):t.removeChild(i)}(e,n,t,i)}(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,i,n,r){const a=i[7];a!==$t(i)&&ka(t,e,n,a,r);for(let o=10;o<i.length;o++){const r=i[o];Ba(r[1],r,e,t,n,a)}}(t,e,a,i,r)}}function Aa(e,t){const i=e[9],n=i.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,di(r,-1)),i.splice(n,1)}function Sa(e,t){if(e.length<=10)return;const i=10+t,n=e[i];if(n){const a=n[17];null!==a&&a!==e&&Aa(a,n),t>0&&(e[i-1][4]=n[4]);const o=ct(e,10+t);Ba(n[1],r=n,r[11],2,null,null),r[0]=null,r[6]=null;const s=o[19];null!==s&&s.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var r;return n}function Ea(e,t){if(!(256&t[2])){const i=t[11];Jt(i)&&i.destroyNode&&Ba(e,t,i,3,null,null),function(e){let t=e[13];if(!t)return Da(e[1],e);for(;t;){let i=null;if(It(t))i=t[13];else{const e=t[10];e&&(i=e)}if(!i){for(;t&&!t[4]&&t!==e;)It(t)&&Da(t[1],t),t=t[3];null===t&&(t=e),It(t)&&Da(t[1],t),i=t&&t[4]}t=i}}(t)}}function Da(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n<i.length;n+=2){const e=t[i[n]];if(!(e instanceof Yi)){const t=i[n+1];if(Array.isArray(t))for(let i=0;i<t.length;i+=2)t[i+1].call(e[t[i]]);else t.call(e)}}}(e,t),function(e,t){const i=e.cleanup;if(null!==i){const e=t[7];for(let n=0;n<i.length-1;n+=2)if("string"==typeof i[n]){const r=i[n+1],a="function"==typeof r?r(t):$t(t[r]),o=e[i[n+2]],s=i[n+3];"boolean"==typeof s?a.removeEventListener(i[n],o,s):s>=0?e[s]():e[-s].unsubscribe(),n+=2}else i[n].call(e[i[n+1]]);t[7]=null}}(e,t),1===t[1].type&&Jt(t[11])&&t[11].destroy();const i=t[17];if(null!==i&&Ot(t[3])){i!==t[3]&&Aa(i,t);const n=t[19];null!==n&&n.detachView(e)}}}function Ia(e,t,i){let n=t.parent;for(;null!=n&&(3===n.type||4===n.type);)n=(t=n).parent;if(null===n)return i[0];if(t&&4===t.type&&4&t.flags)return ti(t,i).parentNode;if(2&n.flags){const t=e.data,i=t[t[n.index].directiveStart].encapsulation;if(i!==ht.ShadowDom&&i!==ht.Native)return null}return ti(n,i)}function Oa(e,t,i,n){Jt(e)?e.insertBefore(t,i,n):t.insertBefore(i,n,!0)}function Pa(e,t,i){Jt(e)?e.appendChild(t,i):t.appendChild(i)}function Ta(e,t,i,n){null!==n?Oa(e,t,i,n):Pa(e,t,i)}function Ma(e,t){return Jt(e)?e.parentNode(t):t.parentNode}function La(e,t){return 3===e.type||4===e.type?ti(e,t):null}function Ra(e,t,i,n){const r=Ia(e,n,t);if(null!=r){const e=t[11],a=La(n.parent||t[6],t);if(Array.isArray(i))for(let t=0;t<i.length;t++)Ta(e,r,i[t],a);else Ta(e,r,i,a)}}function za(e,t){if(null!==t){const i=t.type;if(2===i)return ti(t,e);if(0===i)return Fa(-1,e[t.index]);if(3===i||4===i){const i=t.child;if(null!==i)return za(e,i);{const i=e[t.index];return Ot(i)?Fa(-1,i):$t(i)}}{const i=e[16],n=i[6],r=kr(i),a=n.projection[t.projection];return null!=a?za(r,a):za(e,t.next)}}return null}function Fa(e,t){const i=10+e+1;if(i<t.length){const e=t[i],n=e[1].firstChild;if(null!==n)return za(e,n)}return t[7]}function Ha(e,t,i,n,r,a,o){for(;null!=i;){const s=n[i.index],c=i.type;o&&0===t&&(s&&ur($t(s),n),i.flags|=4),64!=(64&i.flags)&&(3===c||4===c?(Ha(e,t,i.child,n,r,a,!1),ka(t,e,r,s,a)):1===c?ja(e,t,n,i,r,a):ka(t,e,r,s,a)),i=o?i.projectionNext:i.next}}function Ba(e,t,i,n,r,a){Ha(i,n,e.firstChild,t,r,a,!1)}function ja(e,t,i,n,r,a){const o=i[16],s=o[6].projection[n.projection];if(Array.isArray(s))for(let c=0;c<s.length;c++)ka(t,e,r,s[c],a);else Ha(e,t,s,o[3],r,a,!0)}function Na(e,t,i){Jt(e)?e.setAttribute(t,"style",i):t.style.cssText=i}function Va(e,t,i){Jt(e)?""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i):t.className=i}class Za{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView,t=e[1];return Wa(t,e,t.firstChild,[])}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 e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ea(this._lView[1],this._lView)}onDestroy(e){Gr(this._lView[1],this._lView,null,e)}markForCheck(){ga(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fa(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,i){wi(!0);try{fa(e,t,i)}finally{wi(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Ba(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Qa extends Za{constructor(e){super(e),this._view=e}detectChanges(){va(this._view)}checkNoChanges(){!function(e){wi(!0);try{va(e)}finally{wi(!1)}}(this._view)}get context(){return null}}function Wa(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];if(null!==a&&n.push($t(a)),Ot(a))for(let e=10;e<a.length;e++){const t=a[e],i=t[1].firstChild;null!==i&&Wa(t[1],t,i,n)}const o=i.type;if(3===o||4===o)Wa(e,t,i.child,n);else if(1===o){const e=t[16],r=e[6].projection[i.projection];if(Array.isArray(r))n.push(...r);else{const t=kr(e);Wa(t[1],t,r,n,!0)}}i=r?i.projectionNext:i.next}return n}let Ua,Ya,Xa;function Ga(e,t,i){return Ua||(Ua=class extends e{}),new Ua(ti(t,i))}function qa(e,t,i,n){return Ya||(Ya=class extends e{constructor(e,t,i){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Hr(this._declarationView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationView[this._declarationTContainer.index];const n=this._declarationView[19];return null!==n&&(i[19]=n.createEmbeddedView(t)),jr(t,i,e),new Za(i)}}),0===i.type?new Ya(n,i,Ga(t,i,n)):null}function Ja(e,t,i,n){let r;Xa||(Xa=class extends e{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostView=i}get element(){return Ga(t,this._hostTNode,this._hostView)}get injector(){return new _n(this._hostTNode,this._hostView)}get parentInjector(){const e=ln(this._hostTNode,this._hostView);if($i(e)){const t=tn(e,this._hostView),i=en(e);return new _n(t[1].data[i+8],t)}return new _n(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const n=e.createEmbeddedView(t||{});return this.insert(n,i),n}createComponent(e,t,i,n,r){const a=i||this.parentInjector;if(!r&&null==e.ngModule&&a){const e=a.get(rt,null);e&&(r=e)}const o=e.create(a,n,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const i=e._lView,n=i[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ot(i[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=i[3],n=new Xa(t,t[6],t[3]);n.detach(n.indexOf(e))}}const r=this._adjustIndex(t),a=this._lContainer;!function(e,t,i,n){const r=10+n,a=i.length;n>0&&(i[r-1][4]=t),n<a-10?(t[4]=i[r],st(i,10+n,t)):(i.push(t),t[4]=null),t[3]=i;const o=t[17];null!==o&&i!==o&&function(e,t){const i=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===i?e[9]=[t]:i.push(t)}(o,t);const s=t[19];null!==s&&s.insertView(e),t[2]|=128}(n,i,a,r);const o=Fa(r,a),s=i[11],c=Ma(s,a[7]);return null!==c&&function(e,t,i,n,r,a){n[0]=r,n[6]=t,Ba(e,n,i,1,r,a)}(n,a[6],s,i,c,o),e.attachToViewContainerRef(this),st(a[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),i=Sa(this._lContainer,t);i&&(ct(this._lContainer[8],t),Ea(i[1],i))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),i=Sa(this._lContainer,t);return i&&null!=ct(this._lContainer[8],t)?new Za(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const a=n[i.index];if(Ot(a))r=a;else{let e;if(3===i.type)e=$t(a);else if(e=n[11].createComment(""),Rt(n)){const t=n[11],r=ti(i,n);Oa(t,Ma(t,r),e,function(e,t){return Jt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else Ra(n[1],n,e,i);n[i.index]=r=da(a,n,e,i),ha(n,r)}return new Xa(r,i,n)}function Ka(e=!1){return function(e,t,i){if(!i&&Tt(e)){const i=ri(e.index,t);return new Za(i,i)}return 2===e.type||0===e.type||3===e.type||4===e.type?new Za(t[16],t):null}(fi(),pi(),e)}let $a=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>eo(),e})();const eo=Ka,to=new Ze("Set Injector scope."),io={},no={},ro=[];let ao;function oo(){return void 0===ao&&(ao=new nt),ao}function so(e,t=null,i=null,n){return new co(e,i,t||oo(),n)}class co{constructor(e,t,i,n=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&ot(t,i=>this.processProvider(i,e,t)),ot([e],e=>this.processInjectorType(e,[],r)),this.records.set(Qe,mo(void 0,this));const a=this.records.get(to);this.scope=null!=a?a.value:null,this.source=n||("object"==typeof e?null:Ae(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=We,i=ue.Default){this.assertNotDestroyed();const n=qe(this);try{if(!(i&ue.SkipSelf)){let t=this.records.get(e);if(void 0===t){const i=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Ze)&&ve(e);t=i&&this.injectableDefInScope(i)?mo(lo(e),io):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(i&ue.Self?oo():this.parent).get(e,t=i&ue.Optional&&t===We?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(Ae(e)),n)throw a;return function(e,t,i,n){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=Ae(t);if(Array.isArray(t))r=t.map(Ae).join(" -> ");else if("object"==typeof t){let e=[];for(let i in t)if(t.hasOwnProperty(i)){let n=t[i];e.push(i+":"+("string"==typeof n?JSON.stringify(n):Ae(n)))}r=`{${e.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(Ue,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(a,e,"R3InjectorError",this.source)}throw a}finally{qe(n)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,i)=>e.push(Ae(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,i){if(!(e=Ie(e)))return!1;let n=ye(e);const r=null==n&&e.ngModule||void 0,a=void 0===r?e:r,o=-1!==i.indexOf(a);if(void 0!==r&&(n=ye(r)),null==n)return!1;if(null!=n.imports&&!o){let e;i.push(a);try{ot(n.imports,n=>{this.processInjectorType(n,t,i)&&(void 0===e&&(e=[]),e.push(n))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:i,providers:n}=e[t];ot(n,e=>this.processProvider(e,i,n||ro))}}this.injectorDefTypes.add(a),this.records.set(a,mo(n.factory,io));const s=n.providers;if(null!=s&&!o){const t=e;ot(s,e=>this.processProvider(e,t,s))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,i){let n=ho(e=Ie(e))?e:Ie(e&&e.provide);const r=function(e,t,i){return po(e)?mo(void 0,e.useValue):mo(uo(e),io)}(e);if(ho(e)||!0!==e.multi)this.records.get(n);else{let t=this.records.get(n);t||(t=mo(void 0,io,!0),t.factory=()=>it(t.multi),this.records.set(n,t)),n=e,t.multi.push(e)}this.records.set(n,r)}hydrate(e,t){var i;return t.value===io&&(t.value=no,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(i=t.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function lo(e){const t=ve(e),i=null!==t?t.factory:Et(e);if(null!==i)return i;const n=ye(e);if(null!==n)return n.factory;if(e instanceof Ze)throw new Error(`Token ${Ae(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const i=lt(t,"?");throw new Error(`Can't resolve all parameters for ${Ae(e)}: (${i.join(", ")}).`)}const i=function(e){const t=e&&(e[be]||e[Ce]||e[xe]&&e[xe]());if(t){const i=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),t}return null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new Error("unreachable")}function uo(e,t,i){let n;if(ho(e)){const t=Ie(e);return Et(t)||lo(t)}if(po(e))n=()=>Ie(e.useValue);else if((r=e)&&r.useFactory)n=()=>e.useFactory(...it(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))n=()=>$e(Ie(e.useExisting));else{const t=Ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Et(t)||lo(t);n=()=>new t(...it(e.deps))}var r;return n}function mo(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function po(e){return null!==e&&"object"==typeof e&&Ye in e}function ho(e){return"function"==typeof e}const go=function(e,t,i){return function(e,t=null,i=null,n){const r=so(e,t,i,n);return r._resolveInjectorDefTypes(),r}({name:i},t,e,i)};let fo=(()=>{class e{static create(e,t){return Array.isArray(e)?go(e,t,""):go(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=We,e.NULL=new nt,e.\u0275prov=he({token:e,providedIn:"any",factory:()=>$e(Qe)}),e.__NG_ELEMENT_ID__=-1,e})();function vo(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,a=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?a=e:1==a?r=Se(r,e):2==a&&(n=Se(n,e+": "+t[++o]+";"))}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}function _o(e,t){const i=ai(e)[1],n=i.data.length-1;Ni(i,{directiveStart:n,directiveEnd:n+1})}function yo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,i=!0;const n=[e];for(;t;){let r;if(Lt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(i){n.push(r);const t=e;t.inputs=bo(e.inputs),t.declaredInputs=bo(e.declaredInputs),t.outputs=bo(e.outputs);const i=r.hostBindings;i&&Co(e,i);const a=r.viewQuery,o=r.contentQueries;if(a&&wo(e,a),o&&xo(e,o),pe(e.inputs,r.inputs),pe(e.declaredInputs,r.declaredInputs),pe(e.outputs,r.outputs),Lt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let n=0;n<t.length;n++){const r=t[n];r&&r.ngInherit&&r(e),r===yo&&(i=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,i=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Ji(r.hostAttrs,i=Ji(i,r.hostAttrs))}}(n)}function bo(e){return e===gt?{}:e===ft?[]:e}function wo(e,t){const i=e.viewQuery;e.viewQuery=i?(e,n)=>{t(e,n),i(e,n)}:t}function xo(e,t){const i=e.contentQueries;e.contentQueries=i?(e,n,r)=>{t(e,n,r),i(e,n,r)}:t}function Co(e,t){const i=e.hostBindings;e.hostBindings=i?(e,n)=>{t(e,n),i(e,n)}:t}let ko=null;function Ao(){if(!ko){const e=Re.Symbol;if(e&&e.iterator)ko=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ko=i)}}}return ko}class So{constructor(e){this.wrapped=e}static wrap(e){return new So(e)}static unwrap(e){return So.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof So}}function Eo(e){return!!Do(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ao()in e)}function Do(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Io(e,t,i){return e[t]=i}function Oo(e,t){return e[t]}function Po(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function To(e,t,i,n){const r=Po(e,t,i);return Po(e,t+1,n)||r}function Mo(e,t,i,n,r){const a=To(e,t,i,n);return Po(e,t+2,r)||a}function Lo(e,t,i,n,r,a){const o=To(e,t,i,n);return To(e,t+2,r,a)||o}function Ro(e,t,i,n){const r=pi();return Po(r,ki(),t)&&(hi(),function(e,t,i,n,r,a){const o=ti(e,t),s=t[11];if(null==n)Jt(s)?s.removeAttribute(o,i,a):o.removeAttribute(i);else{const t=null==r?zt(n):r(n,e.tagName||"",i);Jt(s)?s.setAttribute(o,i,t,a):a?o.setAttributeNS(a,i,t):o.setAttribute(i,t)}}(Bi(),r,e,t,i,n)),Ro}function zo(e,t,i,n){return Po(e,ki(),i)?t+zt(i)+n:Cr}function Fo(e,t,i,n,r,a,o,s){const c=pi(),l=hi(),d=e+20,u=l.firstCreatePass?function(e,t,i,n,r,a,o,s,c){const l=t.consts,d=Br(t,e,0,o||null,ci(l,s));Kr(t,i,d,ci(l,c)),Ni(t,d);const u=d.tViews=Xr(2,d,n,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(e,l,c,t,i,n,r,a,o):l.data[d];vi(u,!1);const m=c[11].createComment("");Ra(l,c,m,u),ur(m,c),ha(c,c[d]=da(m,c,m,u)),Mt(u)&&Wr(l,c,u),null!=o&&Ur(c,u,s)}function Ho(e){return ni(ui.lFrame.contextLView,e)}function Bo(e,t=ue.Default){const i=pi();return null===i?$e(e,t):un(fi(),i,Ie(e),t)}function jo(e,t,i){const n=pi();return Po(n,ki(),t)&&Jr(hi(),Bi(),n,e,t,n[11],i,!1),jo}function No(e,t,i,n,r){const a=r?"class":"style";xa(e,i,t.inputs[a],a,n)}function Vo(e,t,i,n){const r=pi(),a=hi(),o=20+e,s=r[11],c=r[o]=Fr(t,s,ui.lFrame.currentNamespace),l=a.firstCreatePass?function(e,t,i,n,r,a,o){const s=t.consts,c=Br(t,e,2,r,ci(s,a));return Kr(t,i,c,ci(s,o)),null!==c.attrs&&vo(c,c.attrs,!1),null!==c.mergedAttrs&&vo(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,a,r,0,t,i,n):a.data[o];vi(l,!0);const d=l.mergedAttrs;null!==d&&Xi(s,c,d);const u=l.classes;null!==u&&Va(s,c,u);const m=l.styles;null!==m&&Na(s,c,m),Ra(a,r,c,l),0===ui.lFrame.elementDepthCount&&ur(c,r),ui.lFrame.elementDepthCount++,Mt(l)&&(Wr(a,r,l),Qr(a,l,r)),null!==n&&Ur(r,l)}function Zo(){let e=fi();_i()?yi():(e=e.parent,vi(e,!1));const t=e;ui.lFrame.elementDepthCount--;const i=hi();i.firstCreatePass&&(Ni(i,e),Pt(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&No(i,t,pi(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&No(i,t,pi(),t.stylesWithoutHost,!1)}function Qo(e,t,i,n){Vo(e,t,i,n),Zo()}function Wo(e,t,i){const n=pi(),r=hi(),a=e+20,o=r.firstCreatePass?function(e,t,i,n,r){const a=t.consts,o=ci(a,n),s=Br(t,e,3,"ng-container",o);return null!==o&&vo(s,o,!0),Kr(t,i,s,ci(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,r,n,t,i):r.data[a];vi(o,!0);const s=n[a]=n[11].createComment("");Ra(r,n,s,o),ur(s,n),Mt(o)&&(Wr(r,n,o),Qr(r,o,n)),null!=i&&Ur(n,o)}function Uo(){let e=fi();const t=hi();_i()?yi():(e=e.parent,vi(e,!1)),t.firstCreatePass&&(Ni(t,e),Pt(e)&&t.queries.elementEnd(e))}function Yo(e,t,i){Wo(e,t,i),Uo()}function Xo(){return pi()}function Go(e){return!!e&&"function"==typeof e.then}function qo(e){return!!e&&"function"==typeof e.subscribe}function Jo(e,t,i=!1,n){const r=pi(),a=hi(),o=fi();return function(e,t,i,n,r,a,o=!1,s){const c=Mt(n),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),d=ba(t);let u=!0;if(2===n.type){const m=ti(n,t),p=s?s(m):gt,h=p.target||m,g=d.length,f=s?e=>s($t(e[n.index])).target:n.index;if(Jt(i)){let o=null;if(!s&&c&&(o=function(e,t,i,n){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const e=r[a];if(e===i&&r[a+1]===n){const e=t[7],i=r[a+2];return e.length>i?e[i]:null}"string"==typeof e&&(a+=2)}return null}(e,t,r,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=a,o.__ngLastListenerFn__=a,u=!1;else{a=$o(n,t,a,!1);const e=i.listen(p.name||h,r,a);d.push(a,e),l&&l.push(r,f,g,g+1)}}else a=$o(n,t,a,!0),h.addEventListener(r,a,o),d.push(a),l&&l.push(r,f,g,o)}const m=n.outputs;let p;if(u&&null!==m&&(p=m[r])){const e=p.length;if(e)for(let i=0;i<e;i+=2){const e=t[p[i]][p[i+1]].subscribe(a),o=d.length;d.push(a,e),l&&l.push(r,n.index,o,-(o+1))}}}(a,r,r[11],o,e,t,i,n),Jo}function Ko(e,t,i){try{return!1!==t(i)}catch(n){return wa(e,n),!1}}function $o(e,t,i,n){return function r(a){if(a===Function)return i;const o=2&e.flags?ri(e.index,t):t;0==(32&t[2])&&ga(o);let s=Ko(t,i,a),c=r.__ngNextListenerFn__;for(;c;)s=Ko(t,c,a)&&s,c=c.__ngNextListenerFn__;return n&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function es(e=1){return function(e){return(ui.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ui.lFrame.contextLView))[8]}(e)}function ts(e,t){let i=null;const n=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const a=t[r];if("*"!==a){if(null===n?yr(e,a,!0):br(n,a))return r}else i=r}return i}function is(e){const t=pi()[16][6];if(!t.projection){const i=t.projection=lt(e?e.length:1,null),n=i.slice();let r=t.child;for(;null!==r;){const t=e?ts(r,e):0;null!==t&&(n[t]?n[t].projectionNext=r:i[t]=r,n[t]=r),r=r.next}}}function ns(e,t=0,i){const n=pi(),r=hi(),a=Br(r,e,1,null,i||null);null===a.projection&&(a.projection=t),yi(),function(e,t,i){ja(t[11],0,t,i,Ia(e,i,t),La(i.parent||t[6],t))}(r,n,a)}function rs(e,t,i){return as(e,"",t,"",i),rs}function as(e,t,i,n,r){const a=pi(),o=zo(a,t,i,n);return o!==Cr&&Jr(hi(),Bi(),a,e,o,a[11],r,!1),as}const os=[];function ss(e,t,i,n,r){const a=e[i+1],o=null===t;let s=n?Pr(a):Mr(a),c=!1;for(;0!==s&&(!1===c||o);){const i=e[s+1];cs(e[s],t)&&(c=!0,e[s+1]=n?Rr(i):Tr(i)),s=n?Pr(i):Mr(i)}c&&(e[i+1]=n?Tr(a):Rr(a))}function cs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&mt(e,t)>=0}function ls(e,t,i){return us(e,t,i,!1),ls}function ds(e,t){return us(e,t,null,!0),ds}function us(e,t,i,n){const r=pi(),a=hi(),o=Ai(2);a.firstUpdatePass&&function(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[Fi()+20],o=function(e,t){return t>=e.expandoStartIndex}(e,i);(function(e,t){return 0!=(e.flags&(t?16:32))})(a,n)&&null===t&&!o&&(t=!1),t=function(e,t,i,n){const r=function(e){const t=ui.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=ps(i=ms(null,e,t,i,n),t.attrs,n),a=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(i=ms(r,e,t,i,n),null===a){let i=function(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==Mr(n))return e[Pr(n)]}(e,t,n);void 0!==i&&Array.isArray(i)&&(i=ms(null,e,t,i[1],n),i=ps(i,t.attrs,n),function(e,t,i,n){e[Pr(i?t.classBindings:t.styleBindings)]=n}(e,t,n,i))}else a=function(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=ps(n,e[a].hostAttrs,i);return ps(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function(e,t,i,n,r,a){let o=a?t.classBindings:t.styleBindings,s=Pr(o),c=Mr(o);e[n]=i;let l,d=!1;if(Array.isArray(i)){const e=i;l=e[1],(null===l||mt(e,l)>0)&&(d=!0)}else l=i;if(r)if(0!==c){const t=Pr(e[s+1]);e[n+1]=Or(t,s),0!==t&&(e[t+1]=Lr(e[t+1],n)),e[s+1]=131071&e[s+1]|n<<17}else e[n+1]=Or(s,0),0!==s&&(e[s+1]=Lr(e[s+1],n)),s=n;else e[n+1]=Or(c,0),0===s?s=n:e[c+1]=Lr(e[c+1],n),c=n;d&&(e[n+1]=Tr(e[n+1])),ss(e,l,n,!0),ss(e,l,n,!1),function(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&mt(a,t)>=0&&(i[n+1]=Rr(i[n+1]))}(t,l,e,n,a),o=Or(s,c),a?t.classBindings=o:t.styleBindings=o}(r,a,t,i,o,n)}}(a,e,o,n),t!==Cr&&Po(r,o,t)&&function(e,t,i,n,r,a,o,s){if(2!==t.type)return;const c=e.data,l=c[s+1];gs(1==(1&l)?hs(c,t,i,r,Mr(l),o):void 0)||(gs(a)||function(e){return 2==(2&e)}(l)&&(a=hs(c,null,i,r,s,o)),function(e,t,i,n,r){const a=Jt(e);if(t)r?a?e.addClass(i,n):i.classList.add(n):a?e.removeClass(i,n):i.classList.remove(n);else{const t=-1==n.indexOf("-")?void 0:2;null==r?a?e.removeStyle(i,n,t):i.style.removeProperty(n):a?e.setStyle(i,n,r,t):i.style.setProperty(n,r)}}(n,o,ei(Fi(),i),r,a))}(a,a.data[Fi()+20],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ae(Pn(e)))),e}(t,i),n,o)}function ms(e,t,i,n,r){let a=null;const o=i.directiveEnd;let s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s<o&&(a=t[s],n=ps(n,a.hostAttrs,r),a!==e);)s++;return null!==e&&(i.directiveStylingLast=s),n}function ps(e,t,i){const n=i?1:2;let r=-1;if(null!==t)for(let a=0;a<t.length;a++){const o=t[a];"number"==typeof o?r=o:r===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),dt(e,o,!!i||t[++a]))}return void 0===e?null:e}function hs(e,t,i,n,r,a){const o=null===t;let s;for(;r>0;){const t=e[r],a=Array.isArray(t),c=a?t[1]:t,l=null===c;let d=i[r+1];d===Cr&&(d=l?os:void 0);let u=l?ut(d,n):c===n?d:void 0;if(a&&!gs(u)&&(u=ut(t,n)),gs(u)&&(s=u,o))return s;const m=e[r+1];r=o?Pr(m):Mr(m)}if(null!==t){let e=a?t.residualClasses:t.residualStyles;null!=e&&(s=ut(e,n))}return s}function gs(e){return void 0!==e}function fs(e,t=""){const i=pi(),n=hi(),r=e+20,a=n.firstCreatePass?Br(n,e,2,null,null):n.data[r],o=i[r]=function(e,t){return Jt(t)?t.createText(e):t.createTextNode(e)}(t,i[11]);Ra(n,i,o,a),vi(a,!1)}function vs(e){return _s("",e,""),vs}function _s(e,t,i){const n=pi(),r=zo(n,e,t,i);return r!==Cr&&Ca(n,Fi(),r),_s}function ys(e,t,i,n,r){const a=pi(),o=function(e,t,i,n,r,a){const o=To(e,Ci(),i,r);return Ai(2),o?t+zt(i)+n+zt(r)+a:Cr}(a,e,t,i,n,r);return o!==Cr&&Ca(a,Fi(),o),ys}function bs(e,t,i){const n=pi();return Po(n,ki(),t)&&Jr(hi(),Bi(),n,e,t,n[11],i,!0),bs}const ws=void 0;var xs=["en",[["a","p"],["AM","PM"],ws],[["AM","PM"],ws,ws],[["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"]],ws,[["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"]],ws,[["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}",ws,"{1} 'at' {0}",ws],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let Cs={};function ks(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=As(t);if(i)return i;const n=t.split("-")[0];if(i=As(n),i)return i;if("en"===n)return xs;throw new Error(`Missing locale data for the locale "${e}".`)}function As(e){return e in Cs||(Cs[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),Cs[e]}var Ss=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let Es="en-US";function Ds(e){var t,i;i="Expected localeId to be defined",null==(t=e)&&function(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(i,t),"string"==typeof e&&(Es=e.toLowerCase().replace(/_/g,"-"))}function Is(e,t,i,n,r){if(e=Ie(e),Array.isArray(e))for(let a=0;a<e.length;a++)Is(e[a],t,i,n,r);else{const a=hi(),o=pi();let s=ho(e)?e:Ie(e.provide),c=uo(e);const l=fi(),d=1048575&l.providerIndexes,u=l.directiveStart,m=l.providerIndexes>>20;if(ho(e)||!e.multi){const n=new Yi(c,r,Bo),p=Ts(s,t,r?d:d+m,u);-1===p?(dn(on(l,o),a,s),Os(a,e,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=Ts(s,t,d+m,u),h=Ts(s,t,d,d+m),g=p>=0&&i[p],f=h>=0&&i[h];if(r&&!f||!r&&!g){dn(on(l,o),a,s);const d=function(e,t,i,n,r){const a=new Yi(e,i,Bo);return a.multi=[],a.index=t,a.componentProviders=0,Ps(a,r,n&&!i),a}(r?Ls:Ms,i.length,r,n,c);!r&&f&&(i[h].providerFactory=d),Os(a,e,t.length,0),t.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(d),o.push(d)}else Os(a,e,p>-1?p:h,Ps(i[r?h:p],c,!r&&n));!r&&n&&f&&i[h].componentProviders++}}}function Os(e,t,i,n){const r=ho(t);if(r||t.useClass){const a=(t.useClass||t).prototype.ngOnDestroy;if(a){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(i);-1===e?o.push(i,[n,a]):o[e+1].push(n,a)}else o.push(i,a)}}}function Ps(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Ts(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function Ms(e,t,i,n){return Rs(this.multi,[])}function Ls(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=gn(i,i[1],this.providerFactory.index,n);a=t.slice(0,e),Rs(r,a);for(let i=e;i<t.length;i++)a.push(t[i])}else a=[],Rs(r,a);return a}function Rs(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function zs(e,t=[]){return i=>{i.providersResolver=(i,n)=>function(e,t,i){const n=hi();if(n.firstCreatePass){const r=Lt(e);Is(i,n.data,n.blueprint,r,!0),Is(t,n.data,n.blueprint,r,!1)}}(i,n?n(e):e,t)}}class Fs{}class Hs{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${Ae(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Bs=(()=>{class e{}return e.NULL=new Hs,e})(),js=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Ns(e),e})();const Ns=function(e){return Ga(e,fi(),pi())};class Vs{}var Zs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Qs=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ws(),e})();const Ws=function(){const e=pi(),t=ri(fi().index,e);return function(e){const t=e[11];if(Jt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(It(t)?t:e)};let Us=(()=>{class e{}return e.\u0275prov=he({token:e,providedIn:"root",factory:()=>null}),e})();class Ys{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Xs=new Ys("10.2.3");class Gs{constructor(){}supports(e){return Eo(e)}create(e){return new Js(e)}}const qs=(e,t)=>t;class Js{constructor(e){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=e||qs}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,n=0,r=null;for(;t||i;){const a=!i||t&&t.currentIndex<tc(i,n,r)?t:i,o=tc(a,n,r),s=a.currentIndex;if(a===i)n--,i=i._nextRemoved;else if(t=t._next,null==a.previousIndex)n++;else{r||(r=[]);const e=o-n,t=s-n;if(e!=t){for(let i=0;i<e;i++){const n=i<r.length?r[i]:r[i]=0,a=n+i;t<=a&&a<e&&(r[i]=n+1)}r[a.previousIndex]=t-e}}o!==s&&e(a,o,s)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Eo(e))throw new Error(`Error trying to diff '${Ae(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,i,n,r=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)i=e[t],n=this._trackByFn(t,i),null!==r&&Object.is(r.trackById,n)?(a&&(r=this._verifyReinsertion(r,i,n,t)),Object.is(r.item,i)||this._addIdentityChange(r,i)):(r=this._mismatch(r,i,n,t),a=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[Ao()]();let n;for(;!(n=i.next()).done;)t(n.value)}}(e,e=>{n=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,n)?(a&&(r=this._verifyReinsertion(r,e,n,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,n,t),a=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,n){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,n)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,n)):e=this._addAfter(new Ks(t,i),r,n),e}_verifyReinsertion(e,t,i,n){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?e=this._reinsertAfter(r,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const n=e._prevRemoved,r=e._nextRemoved;return null===n?this._removalsHead=r:n._nextRemoved=r,null===r?this._removalsTail=n:r._prevRemoved=n,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const n=null===t?this._itHead:t._next;return e._next=n,e._prev=t,null===n?this._itTail=e:n._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ec),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ec),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Ks{constructor(e,t){this.item=e,this.trackById=t,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 $s{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class ec{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new $s,this.map.set(t,i)),i.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tc(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+t+r}class ic{constructor(){}supports(e){return e instanceof Map||Do(e)}create(){return new nc}}class nc{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Do(e)))throw new Error(`Error trying to diff '${Ae(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,i)=>{if(t&&t.key===i)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const n=this._getOrCreateRecordForKey(i,e);t=this._insertBeforeOrAppend(t,n)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);const n=i._prev,r=i._next;return n&&(n._next=r),r&&(r._prev=n),i._next=null,i._prev=null,i}const i=new rc(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class rc{constructor(e){this.key=e,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 ac=(()=>{class e{constructor(e){this.factories=e}static create(t,i){if(null!=i){const e=i.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,i)},deps:[[e,new de,new ce]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${i=e,i.name||typeof i}'`);var i}}return e.\u0275prov=he({token:e,providedIn:"root",factory:()=>new e([new Gs])}),e})(),oc=(()=>{class e{constructor(e){this.factories=e}static create(t,i){if(i){const e=i.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,i)},deps:[[e,new de,new ce]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=he({token:e,providedIn:"root",factory:()=>new e([new ic])}),e})();const sc=[new ic],cc=new ac([new Gs]),lc=new oc(sc);let dc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>uc(e,js),e})();const uc=function(e,t){return qa(e,t,fi(),pi())};let mc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>pc(e,js),e})();const pc=function(e,t){return Ja(e,t,fi(),pi())},hc={};class gc extends Bs{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=St(e);return new _c(t,this.ngModule)}}function fc(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}const vc=new Ze("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ht});class _c extends Fs{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(xr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return fc(this.componentDef.inputs)}get outputs(){return fc(this.componentDef.outputs)}create(e,t,i,n){const r=(n=n||this.ngModule)?function(e,t){return{get:(i,n,r)=>{const a=e.get(i,hc,r);return a!==hc||n===hc?a:t.get(i,n,r)}}}(e,n.injector):e,a=r.get(Vs,Kt),o=r.get(Us,null),s=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=i?function(e,t,i){if(Jt(e))return e.selectRootElement(t,i===ht.ShadowDom);let n="string"==typeof t?e.querySelector(t):t;return n.textContent="",n}(s,i,this.componentDef.encapsulation):Fr(c,a.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,u={components:[],scheduler:Ht,clean:ya,playerHandler:null,flags:0},m=Xr(0,null,null,1,0,null,null,null,null,null),p=Hr(null,m,u,d,null,null,a,s,o,r);let h,g;Pi(p);try{const e=function(e,t,i,n,r,a){const o=i[1];i[20]=e;const s=Br(o,0,2,null,null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(vo(s,c,!0),null!==e&&(Xi(r,e,c),null!==s.classes&&Va(r,e,s.classes),null!==s.styles&&Na(r,e,s.styles)));const l=n.createRenderer(e,t),d=Hr(i,Yr(t),null,t.onPush?64:16,i[20],s,n,l,null,null);return o.firstCreatePass&&(dn(on(s,i),o,t.type),na(o,s),aa(s,i.length,1)),ha(i,d),i[20]=d}(l,this.componentDef,p,a,s);if(l)if(i)Xi(s,l,["ng-version",Xs.full]);else{const{attrs:e,classes:t}=function(e){const t=[],i=[];let n=1,r=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++n]):8===r&&i.push(a);else{if(!vr(r))break;r=a}n++}return{attrs:t,classes:i}}(this.componentDef.selectors[0]);e&&Xi(s,l,e),t&&t.length>0&&Va(s,l,t.join(" "))}if(g=ii(m,0),void 0!==t){const e=g.projection=[];for(let i=0;i<this.ngContentSelectors.length;i++){const n=t[i];e.push(null!=n?Array.from(n):null)}}h=function(e,t,i,n,r){const a=i[1],o=function(e,t,i){const n=fi();e.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),ia(e,n,1),oa(e,t,i));const r=gn(t,e,t.length-1,n);ur(r,t);const a=ti(n,t);return a&&ur(a,t),r}(a,i,t);n.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,i.length-1);const s=fi();if(a.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Hi(s.index-20);const e=i[1];$r(e,t),ea(e,i,t.hostVars),ta(t,o)}return o}(e,this.componentDef,p,u,[_o]),jr(m,p,null)}finally{zi()}return new yc(this.componentType,h,Ga(js,g,p),p,g)}}class yc extends class{}{constructor(e,t,i,n,r){super(),this.location=i,this._rootLView=n,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new Qa(n),this.componentType=e}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const bc=new Map;class wc extends rt{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gc(this);const i=Dt(e),n=e[je]||null;n&&Ds(n),this._bootstrapComponents=Nt(i.bootstrap),this._r3Injector=so(e,t,[{provide:rt,useValue:this},{provide:Bs,useValue:this.componentFactoryResolver}],Ae(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=fo.THROW_IF_NOT_FOUND,i=ue.Default){return e===fo||e===rt||e===Qe?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class xc extends class{}{constructor(e){super(),this.moduleType=e,null!==Dt(e)&&function(e){const t=new Set;!function e(i){const n=Dt(i,!0),r=n.id;null!==r&&(function(e,t,i){if(t&&t!==i)throw new Error(`Duplicate module registered for ${e} - ${Ae(t)} vs ${Ae(t.name)}`)}(r,bc.get(r),i),bc.set(r,i));const a=Nt(n.imports);for(const o of a)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new wc(this.moduleType,e)}}function Cc(e,t,i){const n=xi()+e,r=pi();return r[n]===Cr?Io(r,n,i?t.call(i):t()):Oo(r,n)}function kc(e,t,i,n){return Oc(pi(),xi(),e,t,i,n)}function Ac(e,t,i,n,r){return Pc(pi(),xi(),e,t,i,n,r)}function Sc(e,t,i,n,r,a){return Tc(pi(),xi(),e,t,i,n,r,a)}function Ec(e,t,i,n,r,a,o,s){const c=xi()+e,l=pi(),d=Lo(l,c,i,n,r,a);return Po(l,c+4,o)||d?Io(l,c+5,s?t.call(s,i,n,r,a,o):t(i,n,r,a,o)):Oo(l,c+5)}function Dc(e,t,i,n){return function(e,t,i,n,r,a){let o=t+i,s=!1;for(let c=0;c<r.length;c++)Po(e,o++,r[c])&&(s=!0);return s?Io(e,o,n.apply(a,r)):Ic(e,o)}(pi(),xi(),e,t,i,n)}function Ic(e,t){const i=e[t];return i===Cr?void 0:i}function Oc(e,t,i,n,r,a){const o=t+i;return Po(e,o,r)?Io(e,o+1,a?n.call(a,r):n(r)):Ic(e,o+1)}function Pc(e,t,i,n,r,a,o){const s=t+i;return To(e,s,r,a)?Io(e,s+2,o?n.call(o,r,a):n(r,a)):Ic(e,s+2)}function Tc(e,t,i,n,r,a,o,s){const c=t+i;return Mo(e,c,r,a,o)?Io(e,c+3,s?n.call(s,r,a,o):n(r,a,o)):Ic(e,c+3)}function Mc(e,t){const i=hi();let n;const r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(let i=t.length-1;i>=0;i--){const n=t[i];if(e===n.name)return n}throw new Error(`The pipe '${e}' could not be found!`)}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];const a=n.factory||(n.factory=Et(n.type)),o=Je(Bo);try{const t=rn(!1),n=a();return rn(t),function(e,t,i,n){const r=i+20;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}(i,pi(),e,n),n}finally{Je(o)}}function Lc(e,t,i){const n=pi(),r=ni(n,e);return Hc(n,Fc(n,e)?Oc(n,xi(),t,r.transform,i,r):r.transform(i))}function Rc(e,t,i,n){const r=pi(),a=ni(r,e);return Hc(r,Fc(r,e)?Pc(r,xi(),t,a.transform,i,n,a):a.transform(i,n))}function zc(e,t,i,n,r){const a=pi(),o=ni(a,e);return Hc(a,Fc(a,e)?Tc(a,xi(),t,o.transform,i,n,r,o):o.transform(i,n,r))}function Fc(e,t){return e[1].data[t+20].pure}function Hc(e,t){return So.isWrapped(t)&&(t=So.unwrap(t),e[Ci()]=Cr),t}const Bc=class extends A{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let n,r=e=>null,a=()=>null;e&&"object"==typeof e?(n=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(a=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),i&&(a=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,r,a);return e instanceof u&&e.add(o),o}};function jc(){return this._results[Ao()]()}class Nc{constructor(){this.dirty=!0,this._results=[],this.changes=new Bc,this.length=0;const e=Ao(),t=Nc.prototype;t[e]||(t[e]=jc)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=at(e),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 Vc{constructor(e){this.queryList=e,this.matches=null}clone(){return new Vc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,n=[];for(let e=0;e<i;e++){const i=t.getByIndex(e);n.push(this.queries[i.indexInDeclarationView].clone())}return new Zc(n)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==nl(e,t).matches&&this.queries[t].setDirty()}}class Qc{constructor(e,t,i,n=null){this.predicate=e,this.descendants=t,this.isStatic=i,this.read=n}}class Wc{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const n=null!==t?t.length:0,r=this.getByIndex(i).embeddedTView(e,n);r&&(r.indexInDeclarationView=i,null!==t?t.push(r):t=[r])}return null!==t?new Wc(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Uc{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Uc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&3===i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let n=0;n<i.length;n++){const r=i[n];this.matchTNodeWithReadOption(e,t,Yc(t,r)),this.matchTNodeWithReadOption(e,t,hn(t,e,r,!1,!1))}else i===dc?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,hn(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const n=this.metadata.read;if(null!==n)if(n===js||n===mc||n===dc&&0===t.type)this.addMatch(t.index,-2);else{const i=hn(t,e,n,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Yc(e,t){const i=e.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===t)return i[n+1];return null}function Xc(e,t,i,n){return-1===i?function(e,t){return 2===e.type||3===e.type?Ga(js,e,t):0===e.type?qa(dc,js,e,t):null}(t,e):-2===i?function(e,t,i){return i===js?Ga(js,t,e):i===dc?qa(dc,js,t,e):i===mc?Ja(mc,js,t,e):void 0}(e,t,n):gn(e,e[1],i,t)}function Gc(e,t,i,n){const r=t[19].queries[n];if(null===r.matches){const n=e.data,a=i.matches,o=[];for(let e=0;e<a.length;e+=2){const r=a[e];o.push(r<0?null:Xc(t,n[r],a[e+1],i.metadata.read))}r.matches=o}return r.matches}function qc(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const o=Gc(e,t,r,i);for(let e=0;e<a.length;e+=2){const i=a[e];if(i>0)n.push(o[e/2]);else{const r=a[e+1],o=t[-i];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&qc(t[1],t,r,n)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const i=e[t];qc(i[1],i,r,n)}}}}}return n}function Jc(e){const t=pi(),i=hi(),n=Di();Ii(n+1);const r=nl(i,n);if(e.dirty&&oi(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?qc(i,t,n,[]):Gc(i,t,r,n);e.reset(a),e.notifyOnChanges()}return!0}return!1}function Kc(e,t,i){!function(e,t,i,n,r,a){e.firstCreatePass&&il(e,new Qc(i,n,false,r),-1),tl(e,t)}(hi(),pi(),e,t,i)}function $c(e,t,i,n){!function(e,t,i,n,r,a,o,s){e.firstCreatePass&&(il(e,new Qc(i,n,false,r),o.index),function(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(e,s)),tl(e,t)}(hi(),pi(),t,i,n,0,fi(),e)}function el(){return e=pi(),t=Di(),e[19].queries[t].queryList;var e,t}function tl(e,t){const i=new Nc;Gr(e,t,i,i.destroy),null===t[19]&&(t[19]=new Zc),t[19].queries.push(new Vc(i))}function il(e,t,i){null===e.queries&&(e.queries=new Wc),e.queries.track(new Uc(t,i))}function nl(e,t){return e.queries.getByIndex(t)}function rl(e,t){return qa(dc,js,e,t)}const al=new Ze("Application Initializer");let ol=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const t=this.appInits[i]();Go(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)($e(al,8))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const sl=new Ze("AppId"),cl={provide:sl,useFactory:function(){return`${ll()}${ll()}${ll()}`},deps:[]};function ll(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dl=new Ze("Platform Initializer"),ul=new Ze("Platform ID"),ml=new Ze("appBootstrapListener");let pl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const hl=new Ze("LocaleId"),gl=new Ze("DefaultCurrencyCode");class fl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const vl=function(e){return new xc(e)},_l=vl,yl=function(e){return Promise.resolve(vl(e))},bl=function(e){const t=vl(e),i=Nt(Dt(e).declarations).reduce((e,t)=>{const i=St(t);return i&&e.push(new _c(i)),e},[]);return new fl(t,i)},wl=bl,xl=function(e){return Promise.resolve(bl(e))};let Cl=(()=>{class e{constructor(){this.compileModuleSync=_l,this.compileModuleAsync=yl,this.compileModuleAndAllComponentsSync=wl,this.compileModuleAndAllComponentsAsync=xl}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const kl=(()=>Promise.resolve(0))();function Al(e){"undefined"==typeof Zone?kl.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Sl{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bc(!1),this.onMicrotaskEmpty=new Bc(!1),this.onStable=new Bc(!1),this.onError=new Bc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i);const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ol(e),Il(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ol(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(i,n,r,a,o,s)=>{try{return Pl(e),i.invokeTask(r,a,o,s)}finally{t&&"eventTask"===a.type&&t(),Tl(e)}},onInvoke:(t,i,n,r,a,o,s)=>{try{return Pl(e),t.invoke(n,r,a,o,s)}finally{Tl(e)}},onHasTask:(t,i,n,r)=>{t.hasTask(n,r),i===n&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Ol(e),Il(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,i,n,r)=>(t.handleError(n,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Sl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Sl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,n){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+n,e,Dl,El,El);try{return r.runTask(a,t,i)}finally{r.cancelTask(a)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}function El(){}const Dl={};function Il(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ol(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Pl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tl(e){e._nesting--,Il(e)}class Ml{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bc,this.onMicrotaskEmpty=new Bc,this.onStable=new Bc,this.onError=new Bc}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,n){return e.apply(t,i)}}let Ll=(()=>{class e{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:()=>{Sl.assertNotInAngularZone(),Al(()=>{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())Al(()=>{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(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.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,t,i){let n=-1;t&&t>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==n),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:n,updateCb:i})}whenStable(e,t,i){if(i&&!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(e,t,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,i){return[]}}return e.\u0275fac=function(t){return new(t||e)($e(Sl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Rl=(()=>{class e{constructor(){this._applications=new Map,Hl.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}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,t=!0){return Hl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class zl{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Fl,Hl=new zl;const Bl=new Ze("AllowMultipleToken");function jl(e,t,i=[]){const n=`Platform: ${t}`,r=new Ze(n);return(t=[])=>{let a=Nl();if(!a||a.injector.get(Bl,!1))if(e)e(i.concat(t).concat({provide:r,useValue:!0}));else{const e=i.concat(t).concat({provide:r,useValue:!0},{provide:to,useValue:"platform"});!function(e){if(Fl&&!Fl.destroyed&&!Fl.injector.get(Bl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fl=e.get(Vl);const t=e.get(dl,null);t&&t.forEach(e=>e())}(fo.create({providers:e,name:n}))}return function(e){const t=Nl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Nl(){return Fl&&!Fl.destroyed?Fl:null}let Vl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const i=function(e,t){let i;return i="noop"===e?new Ml:("zone.js"===e?void 0:e)||new Sl({enableLongStackTrace:zn(),shouldCoalesceEventChangeDetection:t}),i}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),n=[{provide:Sl,useValue:i}];return i.run(()=>{const t=fo.create({providers:n,parent:this.injector,name:e.moduleType.name}),r=e.create(t),a=r.injector.get(kn,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Wl(this._modules,r)),i.runOutsideAngular(()=>i.onError.subscribe({next:e=>{a.handleError(e)}})),function(e,t,i){try{const n=i();return Go(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(a,i,()=>{const e=r.injector.get(ol);return e.runInitializers(),e.donePromise.then(()=>(Ds(r.injector.get(hl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const i=Zl({},t);return function(e,t,i){const n=new xc(i);return Promise.resolve(n)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,i))}_moduleDoBootstrap(e){const t=e.injector.get(Ql);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Ae(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)($e(fo))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function Zl(e,t){return Array.isArray(t)?t.reduce(Zl,e):Object.assign(Object.assign({},e),t)}let Ql=(()=>{class e{constructor(e,t,i,n,r,a){this._zone=e,this._console=t,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),s=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Sl.assertNotInAngularZone(),Al(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Sl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),i.unsubscribe()}});this.isStable=X(o,s.pipe(re()))}bootstrap(e,t){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 i;i=e instanceof Fs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(rt),r=i.create(fo.NULL,[],t||i.selector,n);r.onDestroy(()=>{this._unloadComponent(r)});const a=r.injector.get(Ll,null);return a&&r.injector.get(Rl).registerApplication(r.location.nativeElement,a),this._loadComponent(r),zn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Wl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ml,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Wl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)($e(Sl),$e(pl),$e(fo),$e(kn),$e(Bs),$e(ol))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function Wl(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Ul=jl(null,"core",[{provide:ul,useValue:"unknown"},{provide:Vl,deps:[fo]},{provide:Rl,deps:[]},{provide:pl,deps:[]}]),Yl=[{provide:Ql,useClass:Ql,deps:[Sl,pl,fo,kn,Bs,ol]},{provide:vc,deps:[Sl],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ol,useClass:ol,deps:[[new ce,al]]},{provide:Cl,useClass:Cl,deps:[]},cl,{provide:ac,useFactory:function(){return cc},deps:[]},{provide:oc,useFactory:function(){return lc},deps:[]},{provide:hl,useFactory:function(e){return Ds(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new se(hl),new ce,new de]]},{provide:gl,useValue:"USD"}];let Xl=(()=>{class e{constructor(e){}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(Ql))},providers:Yl}),e})(),Gl=null;function ql(){return Gl}const Jl=new Ze("DocumentToken"),Kl={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var $l=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),ed=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),td=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),id=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),nd=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),rd=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function ad(e,t){return ud(ks(e)[Ss.DateFormat],t)}function od(e,t){return ud(ks(e)[Ss.TimeFormat],t)}function sd(e,t){return ud(ks(e)[Ss.DateTimeFormat],t)}function cd(e,t){const i=ks(e),n=i[Ss.NumberSymbols][t];if(void 0===n){if(t===rd.CurrencyDecimal)return i[Ss.NumberSymbols][rd.Decimal];if(t===rd.CurrencyGroup)return i[Ss.NumberSymbols][rd.Group]}return n}function ld(e,t){return ks(e)[Ss.NumberFormats][t]}function dd(e){if(!e[Ss.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ss.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ud(e,t){for(let i=t;i>-1;i--)if(void 0!==e[i])return e[i];throw new Error("Locale data API: locale data undefined")}function md(e){const[t,i]=e.split(":");return{hours:+t,minutes:+i}}const pd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,hd={},gd=/((?:[^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 fd=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),vd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),_d=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function yd(e,t,i,n){let r=function(e){if(Id(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,i,n]=e.split("-").map(e=>+e);return new Date(t,i-1,n)}let i;if(i=e.match(pd))return function(e){const t=new Date(0);let i=0,n=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(i=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-i,s=Number(e[5]||0)-n,c=Number(e[6]||0),l=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,c,l),t}(i)}const t=new Date(e);if(!Id(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=bd(i,t)||t;let a,o=[];for(;t;){if(a=gd.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const e=o.pop();if(!e)break;t=e}}let s=r.getTimezoneOffset();n&&(s=Dd(n,s),r=function(e,t,i){const n=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Dd(t,n)-n))}(r,n));let c="";return o.forEach(e=>{const t=function(e){if(Ed[e])return Ed[e];let t;switch(e){case"G":case"GG":case"GGG":t=kd(_d.Eras,id.Abbreviated);break;case"GGGG":t=kd(_d.Eras,id.Wide);break;case"GGGGG":t=kd(_d.Eras,id.Narrow);break;case"y":t=Cd(vd.FullYear,1,0,!1,!0);break;case"yy":t=Cd(vd.FullYear,2,0,!0,!0);break;case"yyy":t=Cd(vd.FullYear,3,0,!1,!0);break;case"yyyy":t=Cd(vd.FullYear,4,0,!1,!0);break;case"M":case"L":t=Cd(vd.Month,1,1);break;case"MM":case"LL":t=Cd(vd.Month,2,1);break;case"MMM":t=kd(_d.Months,id.Abbreviated);break;case"MMMM":t=kd(_d.Months,id.Wide);break;case"MMMMM":t=kd(_d.Months,id.Narrow);break;case"LLL":t=kd(_d.Months,id.Abbreviated,td.Standalone);break;case"LLLL":t=kd(_d.Months,id.Wide,td.Standalone);break;case"LLLLL":t=kd(_d.Months,id.Narrow,td.Standalone);break;case"w":t=Sd(1);break;case"ww":t=Sd(2);break;case"W":t=Sd(1,!0);break;case"d":t=Cd(vd.Date,1);break;case"dd":t=Cd(vd.Date,2);break;case"E":case"EE":case"EEE":t=kd(_d.Days,id.Abbreviated);break;case"EEEE":t=kd(_d.Days,id.Wide);break;case"EEEEE":t=kd(_d.Days,id.Narrow);break;case"EEEEEE":t=kd(_d.Days,id.Short);break;case"a":case"aa":case"aaa":t=kd(_d.DayPeriods,id.Abbreviated);break;case"aaaa":t=kd(_d.DayPeriods,id.Wide);break;case"aaaaa":t=kd(_d.DayPeriods,id.Narrow);break;case"b":case"bb":case"bbb":t=kd(_d.DayPeriods,id.Abbreviated,td.Standalone,!0);break;case"bbbb":t=kd(_d.DayPeriods,id.Wide,td.Standalone,!0);break;case"bbbbb":t=kd(_d.DayPeriods,id.Narrow,td.Standalone,!0);break;case"B":case"BB":case"BBB":t=kd(_d.DayPeriods,id.Abbreviated,td.Format,!0);break;case"BBBB":t=kd(_d.DayPeriods,id.Wide,td.Format,!0);break;case"BBBBB":t=kd(_d.DayPeriods,id.Narrow,td.Format,!0);break;case"h":t=Cd(vd.Hours,1,-12);break;case"hh":t=Cd(vd.Hours,2,-12);break;case"H":t=Cd(vd.Hours,1);break;case"HH":t=Cd(vd.Hours,2);break;case"m":t=Cd(vd.Minutes,1);break;case"mm":t=Cd(vd.Minutes,2);break;case"s":t=Cd(vd.Seconds,1);break;case"ss":t=Cd(vd.Seconds,2);break;case"S":t=Cd(vd.FractionalSeconds,1);break;case"SS":t=Cd(vd.FractionalSeconds,2);break;case"SSS":t=Cd(vd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ad(fd.Short);break;case"ZZZZZ":t=Ad(fd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ad(fd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ad(fd.Long);break;default:return null}return Ed[e]=t,t}(e);c+=t?t(r,i,s):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function bd(e,t){const i=function(e){return ks(e)[Ss.LocaleId]}(e);if(hd[i]=hd[i]||{},hd[i][t])return hd[i][t];let n="";switch(t){case"shortDate":n=ad(e,nd.Short);break;case"mediumDate":n=ad(e,nd.Medium);break;case"longDate":n=ad(e,nd.Long);break;case"fullDate":n=ad(e,nd.Full);break;case"shortTime":n=od(e,nd.Short);break;case"mediumTime":n=od(e,nd.Medium);break;case"longTime":n=od(e,nd.Long);break;case"fullTime":n=od(e,nd.Full);break;case"short":const t=bd(e,"shortTime"),i=bd(e,"shortDate");n=wd(sd(e,nd.Short),[t,i]);break;case"medium":const r=bd(e,"mediumTime"),a=bd(e,"mediumDate");n=wd(sd(e,nd.Medium),[r,a]);break;case"long":const o=bd(e,"longTime"),s=bd(e,"longDate");n=wd(sd(e,nd.Long),[o,s]);break;case"full":const c=bd(e,"fullTime"),l=bd(e,"fullDate");n=wd(sd(e,nd.Full),[c,l])}return n&&(hd[i][t]=n),n}function wd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,i){return null!=t&&i in t?t[i]:e}))),e}function xd(e,t,i="-",n,r){let a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=i));let o=String(e);for(;o.length<t;)o="0"+o;return n&&(o=o.substr(o.length-t)),a+o}function Cd(e,t,i=0,n=!1,r=!1){return function(a,o){let s=function(e,t){switch(e){case vd.FullYear:return t.getFullYear();case vd.Month:return t.getMonth();case vd.Date:return t.getDate();case vd.Hours:return t.getHours();case vd.Minutes:return t.getMinutes();case vd.Seconds:return t.getSeconds();case vd.FractionalSeconds:return t.getMilliseconds();case vd.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,a);if((i>0||s>-i)&&(s+=i),e===vd.Hours)0===s&&-12===i&&(s=12);else if(e===vd.FractionalSeconds)return c=t,xd(s,3).substr(0,c);var c;const l=cd(o,rd.MinusSign);return xd(s,t,l,n,r)}}function kd(e,t,i=td.Format,n=!1){return function(r,a){return function(e,t,i,n,r,a){switch(i){case _d.Months:return function(e,t,i){const n=ks(e),r=ud([n[Ss.MonthsFormat],n[Ss.MonthsStandalone]],t);return ud(r,i)}(t,r,n)[e.getMonth()];case _d.Days:return function(e,t,i){const n=ks(e),r=ud([n[Ss.DaysFormat],n[Ss.DaysStandalone]],t);return ud(r,i)}(t,r,n)[e.getDay()];case _d.DayPeriods:const o=e.getHours(),s=e.getMinutes();if(a){const e=function(e){const t=ks(e);return dd(t),(t[Ss.ExtraData][2]||[]).map(e=>"string"==typeof e?md(e):[md(e[0]),md(e[1])])}(t),i=function(e,t,i){const n=ks(e);dd(n);const r=ud([n[Ss.ExtraData][0],n[Ss.ExtraData][1]],t)||[];return ud(r,i)||[]}(t,r,n),a=e.findIndex(e=>{if(Array.isArray(e)){const[t,i]=e,n=o>=t.hours&&s>=t.minutes,r=o<i.hours||o===i.hours&&s<i.minutes;if(t.hours<i.hours){if(n&&r)return!0}else if(n||r)return!0}else if(e.hours===o&&e.minutes===s)return!0;return!1});if(-1!==a)return i[a]}return function(e,t,i){const n=ks(e),r=ud([n[Ss.DayPeriodsFormat],n[Ss.DayPeriodsStandalone]],t);return ud(r,i)}(t,r,n)[o<12?0:1];case _d.Eras:return function(e,t){return ud(ks(e)[Ss.Eras],t)}(t,n)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${i}`)}}(r,a,e,t,i,n)}}function Ad(e){return function(t,i,n){const r=-1*n,a=cd(i,rd.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case fd.Short:return(r>=0?"+":"")+xd(o,2,a)+xd(Math.abs(r%60),2,a);case fd.ShortGMT:return"GMT"+(r>=0?"+":"")+xd(o,1,a);case fd.Long:return"GMT"+(r>=0?"+":"")+xd(o,2,a)+":"+xd(Math.abs(r%60),2,a);case fd.Extended:return 0===n?"Z":(r>=0?"+":"")+xd(o,2,a)+":"+xd(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${e}"`)}}}function Sd(e,t=!1){return function(i,n){let r;if(t){const e=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,t=i.getDate();r=1+Math.floor((t+e)/7)}else{const e=(a=i,new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))),t=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),n=e.getTime()-t.getTime();r=1+Math.round(n/6048e5)}var a;return xd(r,e,cd(n,rd.MinusSign))}}const Ed={};function Dd(e,t){e=e.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(i)?t:i}function Id(e){return e instanceof Date&&!isNaN(e.valueOf())}const Od=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Pd(e,t,i,n,r,a,o=!1){let s="",c=!1;if(isFinite(e)){let l=function(e){let t,i,n,r,a,o=Math.abs(e)+"",s=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(a=o.length))t=[0],i=1;else{for(a--;"0"===o.charAt(a);)a--;for(i-=n,t=[],r=0;n<=a;n++,r++)t[r]=Number(o.charAt(n))}return i>22&&(t=t.splice(0,21),s=i-1,i=1),{digits:t,exponent:s,integerLen:i}}(e);o&&(l=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));let d=t.minInt,u=t.minFrac,m=t.maxFrac;if(a){const e=a.match(Od);if(null===e)throw new Error(`${a} is not a valid digit info`);const t=e[1],i=e[3],n=e[5];null!=t&&(d=Md(t)),null!=i&&(u=Md(i)),null!=n?m=Md(n):null!=i&&u>m&&(m=u)}!function(e,t,i){if(t>i)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${i}).`);let n=e.digits,r=n.length-e.integerLen;const a=Math.min(Math.max(t,r),i);let o=a+e.integerLen,s=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let e=o;e<n.length;e++)n[e]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=a+1),n[0]=0;for(let e=1;e<o;e++)n[e]=0}if(s>=5)if(o-1<0){for(let t=0;t>o;t--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,a);r++)n.push(0);let c=0!==a;const l=t+e.integerLen,d=n.reduceRight((function(e,t,i,n){return n[i]=(t+=e)<10?t:t-10,c&&(0===n[i]&&i>=l?n.pop():c=!1),t>=10?1:0}),0);d&&(n.unshift(d),e.integerLen++)}(l,u,m);let p=l.digits,h=l.integerLen;const g=l.exponent;let f=[];for(c=p.every(e=>!e);h<d;h++)p.unshift(0);for(;h<0;h++)p.unshift(0);h>0?f=p.splice(h,p.length):(f=p,p=[0]);const v=[];for(p.length>=t.lgSize&&v.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)v.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),s=v.join(cd(i,n)),f.length&&(s+=cd(i,r)+f.join("")),g&&(s+=cd(i,rd.Exponential)+"+"+g)}else s=cd(i,rd.Infinity);return s=e<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf,s}function Td(e,t="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(";"),r=n[0],a=n[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],c=o[1]||"";i.posPre=s.substr(0,s.indexOf("#"));for(let d=0;d<c.length;d++){const e=c.charAt(d);"0"===e?i.minFrac=i.maxFrac=d+1:"#"===e?i.maxFrac=d+1:i.posSuf+=e}const l=s.split(",");if(i.gSize=l[1]?l[1].length:0,i.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,a){const e=r.length-i.posPre.length-i.posSuf.length,t=a.indexOf("#");i.negPre=a.substr(0,t).replace(/'/g,""),i.negSuf=a.substr(t+e).replace(/'/g,"")}else i.negPre=t+i.posPre,i.negSuf=i.posSuf;return i}function Md(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class Ld{}function Rd(e,t,i,n){let r=`=${e}`;if(t.indexOf(r)>-1)return r;if(r=i.getPluralCategory(e,n),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}let zd=(()=>{class e extends Ld{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return ks(e)[Ss.PluralCase]}(t||this.locale)(e)){case ed.Zero:return"zero";case ed.One:return"one";case ed.Two:return"two";case ed.Few:return"few";case ed.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)($e(hl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();function Fd(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const e=i.indexOf("="),[n,r]=-1==e?[i,""]:[i.slice(0,e),i.slice(e+1)];if(n.trim()===t)return decodeURIComponent(r)}return null}let Hd=(()=>{class e{constructor(e,t,i,n){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=i,this._renderer=n,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&&(Eo(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(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ae(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(Bo(ac),Bo(oc),Bo(js),Bo(Qs))},e.\u0275dir=kt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),Bd=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(rt);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(Bs)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc))},e.\u0275dir=kt({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Qt]}),e})();class jd{constructor(e,t,i,n){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=n}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 Nd=(()=>{class e{constructor(e,t,i){this._viewContainer=e,this._template=t,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){zn()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${i}' of type '${e=i,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,i,n)=>{if(null==e.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new jd(null,this._ngForOf,-1,-1),null===n?void 0:n),r=new Vd(e,i);t.push(r)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const r=this._viewContainer.get(i);this._viewContainer.move(r,n);const a=new Vd(e,r);t.push(a)}});for(let i=0;i<t.length;i++)this._perViewChange(t[i].view,t[i].record);for(let i=0,n=this._viewContainer.length;i<n;i++){const e=this._viewContainer.get(i);e.context.index=i,e.context.count=n,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc),Bo(dc),Bo(ac))},e.\u0275dir=kt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Vd{constructor(e,t){this.record=e,this.view=t}}let Zd=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Qd,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wd("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wd("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,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc),Bo(dc))},e.\u0275dir=kt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Qd{constructor(){this.$implicit=null,this.ngIf=null}}function Wd(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ae(t)}'.`)}class Ud{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Yd=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Xd=(()=>{class e{constructor(e,t,i){this.ngSwitch=i,i._addCase(),this._view=new Ud(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc),Bo(dc),Bo(Yd,1))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Gd=(()=>{class e{constructor(e,t,i){i._addDefault(new Ud(e,t))}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc),Bo(dc),Bo(Yd,1))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),qd=(()=>{class e{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=Rd(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}return e.\u0275fac=function(t){return new(t||e)(Bo(Ld))},e.\u0275dir=kt({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),e})(),Jd=(()=>{class e{constructor(e,t,i,n){this.value=e;const r=!isNaN(Number(e));n.addCase(r?`=${e}`:e,new Ud(i,t))}}return e.\u0275fac=function(t){return new(t||e)(("ngPluralCase",function(e,t){const i=e.attrs;if(i){const e=i.length;let t=0;for(;t<e;){const n=i[t];if(Gi(n))break;if(0===n)t+=2;else if("number"==typeof n)for(t++;t<e&&"string"==typeof i[t];)t++;else{if("ngPluralCase"===n)return i[t+1];t+=2}}}return null}(fi())),Bo(dc),Bo(mc),Bo(qd,1))},e.\u0275dir=kt({type:e,selectors:[["","ngPluralCase",""]]}),e})(),Kd=(()=>{class e{constructor(e,t,i){this._ngEl=e,this._differs=t,this._renderer=i,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,t){const[i,n]=e.split(".");null!=(t=null!=t&&n?`${t}${n}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(oc),Bo(Qs))},e.\u0275dir=kt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),$d=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),i=Object.keys(e.currentValue||{});if(t.length===i.length){for(let e of i)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(Bo(mc))},e.\u0275dir=kt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Qt]}),e})();function eu(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Ae(e)}'`)}class tu{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class iu{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const nu=new iu,ru=new tu;let au=(()=>{class e{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,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Go(t))return nu;if(qo(t))return ru;throw eu(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(function(e=ue.Default){const t=Ka(!0);if(null!=t||e&ue.Optional)return t;Vt("ChangeDetectorRef")}())},e.\u0275pipe=At({name:"async",type:e,pure:!1}),e})(),ou=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw eu(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"lowercase",type:e,pure:!0}),e})();const su=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let cu=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw eu(e,t);return t.replace(su,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"titlecase",type:e,pure:!0}),e})(),lu=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw eu(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"uppercase",type:e,pure:!0}),e})(),du=(()=>{class e{constructor(e){this.locale=e}transform(t,i="mediumDate",n,r){if(null==t||""===t||t!=t)return null;try{return yd(t,i,r||this.locale,n)}catch(a){throw eu(e,a.message)}}}return e.\u0275fac=function(t){return new(t||e)(Bo(hl))},e.\u0275pipe=At({name:"date",type:e,pure:!0}),e})();const uu=/#/g;let mu=(()=>{class e{constructor(e){this._localization=e}transform(t,i,n){if(null==t)return"";if("object"!=typeof i||null===i)throw eu(e,i);return i[Rd(t,Object.keys(i),this._localization,n)].replace(uu,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(Bo(Ld))},e.\u0275pipe=At({name:"i18nPlural",type:e,pure:!0}),e})(),pu=(()=>{class e{transform(t,i){if(null==t)return"";if("object"!=typeof i||"string"!=typeof t)throw eu(e,i);return i.hasOwnProperty(t)?i[t]:i.hasOwnProperty("other")?i.other:""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"i18nSelect",type:e,pure:!0}),e})(),hu=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"json",type:e,pure:!1}),e})(),gu=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=fu){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const i=this.differ.diff(e);return i&&(this.keyValues=[],i.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(Bo(oc))},e.\u0275pipe=At({name:"keyvalue",type:e,pure:!1}),e})();function fu(e,t){const i=e.key,n=t.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i<n?-1:1;if("number"==typeof i&&"number"==typeof n)return i-n;if("boolean"==typeof i&&"boolean"==typeof n)return i<n?-1:1;const r=String(i),a=String(n);return r==a?0:r<a?-1:1}let vu=(()=>{class e{constructor(e){this._locale=e}transform(t,i,n){if(bu(t))return null;n=n||this._locale;try{return function(e,t,i){return Pd(e,Td(ld(t,$l.Decimal),cd(t,rd.MinusSign)),t,rd.Group,rd.Decimal,i)}(wu(t),n,i)}catch(r){throw eu(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(Bo(hl))},e.\u0275pipe=At({name:"number",type:e,pure:!0}),e})(),_u=(()=>{class e{constructor(e){this._locale=e}transform(t,i,n){if(bu(t))return null;n=n||this._locale;try{return function(e,t,i){return Pd(e,Td(ld(t,$l.Percent),cd(t,rd.MinusSign)),t,rd.Group,rd.Decimal,i,!0).replace(new RegExp("%","g"),cd(t,rd.PercentSign))}(wu(t),n,i)}catch(r){throw eu(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(Bo(hl))},e.\u0275pipe=At({name:"percent",type:e,pure:!0}),e})(),yu=(()=>{class e{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(t,i,n="symbol",r,a){if(bu(t))return null;a=a||this._locale,"boolean"==typeof n&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");let o=i||this._defaultCurrencyCode;"code"!==n&&(o="symbol"===n||"symbol-narrow"===n?function(e,t,i="en"){const n=function(e){return ks(e)[Ss.Currencies]}(i)[e]||Kl[e]||[],r=n[1];return"narrow"===t&&"string"==typeof r?r:n[0]||e}(o,"symbol"===n?"wide":"narrow",a):n);try{return function(e,t,i,n,r){const a=Td(ld(t,$l.Currency),cd(t,rd.MinusSign));return a.minFrac=function(e){let t;const i=Kl[e];return i&&(t=i[2]),"number"==typeof t?t:2}(n),a.maxFrac=a.minFrac,Pd(e,a,t,rd.CurrencyGroup,rd.CurrencyDecimal,r).replace("\xa4",i).replace("\xa4","").trim()}(wu(t),a,o,i,r)}catch(s){throw eu(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(Bo(hl),Bo(gl))},e.\u0275pipe=At({name:"currency",type:e,pure:!0}),e})();function bu(e){return null==e||""===e||e!=e}function wu(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let xu=(()=>{class e{transform(t,i,n){if(null==t)return t;if(!this.supports(t))throw eu(e,t);return t.slice(i,n)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"slice",type:e,pure:!1}),e})(),Cu=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[{provide:Ld,useClass:zd}]}),e})();function ku(e){return"browser"===e}function Au(...e){let t=e[e.length-1];return E(t)?(e.pop(),F(e,t)):Y(e)}function Su(e,t){return function(i){return i.lift(new Eu(e,t))}}class Eu{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Du(e,this.predicate,this.thisArg))}}class Du extends h{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class Iu{}class Ou{}class Pu{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const i=e.slice(0,t),n=i.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(r):this.headers.set(n,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const n=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(t,n))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Pu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Pu;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Pu?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const n=("a"===e.op?this.headers.get(t):void 0)||[];n.push(...i),this.headers.set(t,n);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Tu{encodeKey(e){return Mu(e)}encodeValue(e){return Mu(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Mu(e){return encodeURIComponent(e).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 Lu{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Tu,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const i=new Map;return e.length>0&&e.split("&").forEach(e=>{const n=e.indexOf("="),[r,a]=-1==n?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,n)),t.decodeValue(e.slice(n+1))],o=i.get(r)||[];o.push(a),i.set(r,o)}),i}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Lu({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const i=t.indexOf(e.value);-1!==i&&t.splice(i,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function Ru(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function zu(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Fu(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Hu{constructor(e,t,i,n){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,r=n):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Pu),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const i=t.indexOf("?");this.urlWithParams=t+(-1===i?"?":i<t.length-1?"&":"")+e}}else this.params=new Lu,this.urlWithParams=t}serializeBody(){return null===this.body?null:Ru(this.body)||zu(this.body)||Fu(this.body)||"string"==typeof this.body?this.body:this.body instanceof Lu?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||Fu(this.body)?null:zu(this.body)?this.body.type||null:Ru(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Lu?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,i=e.url||this.url,n=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let s=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(s=Object.keys(e.setHeaders).reduce((t,i)=>t.set(i,e.setHeaders[i]),s)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,i)=>t.set(i,e.setParams[i]),c)),new Hu(t,i,r,{params:c,headers:s,reportProgress:o,responseType:n,withCredentials:a})}}var Bu=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class ju{constructor(e,t=200,i="OK"){this.headers=e.headers||new Pu,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Nu extends ju{constructor(e={}){super(e),this.type=Bu.ResponseHeader}clone(e={}){return new Nu({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Vu extends ju{constructor(e={}){super(e),this.type=Bu.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Vu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Zu extends ju{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Qu(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Wu=(()=>{class e{constructor(e){this.handler=e}request(e,t,i={}){let n;if(e instanceof Hu)n=e;else{let r,a;r=i.headers instanceof Pu?i.headers:new Pu(i.headers),i.params&&(a=i.params instanceof Lu?i.params:new Lu({fromObject:i.params})),n=new Hu(e,t,void 0!==i.body?i.body:null,{headers:r,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=Au(n).pipe(V(e=>this.handler.handle(e),void 0,1));if(e instanceof Hu||"events"===i.observe)return r;const a=r.pipe(Su(e=>e instanceof Vu));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(D(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return a.pipe(D(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return a.pipe(D(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return a.pipe(D(e=>e.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Lu).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,i={}){return this.request("PATCH",e,Qu(i,t))}post(e,t,i={}){return this.request("POST",e,Qu(i,t))}put(e,t,i={}){return this.request("PUT",e,Qu(i,t))}}return e.\u0275fac=function(t){return new(t||e)($e(Iu))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class Uu{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Yu=new Ze("HTTP_INTERCEPTORS");let Xu=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const Gu=/^\)\]\}',?\n/;class qu{}let Ju=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Ku=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(t=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((e,t)=>i.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&i.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();i.responseType="json"!==t?t:"text"}const n=e.serializeBody();let r=null;const a=()=>{if(null!==r)return r;const t=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Pu(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return r=new Nu({headers:a,status:t,statusText:n,url:o}),r},o=()=>{let{headers:n,status:r,statusText:o,url:s}=a(),c=null;204!==r&&(c=void 0===i.response?i.responseText:i.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(Gu,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=e,l&&(l=!1,c={error:d,text:c})}}l?(t.next(new Vu({body:c,headers:n,status:r,statusText:o,url:s||void 0})),t.complete()):t.error(new Zu({error:c,headers:n,status:r,statusText:o,url:s||void 0}))},s=e=>{const{url:n}=a(),r=new Zu({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});t.error(r)};let c=!1;const l=n=>{c||(t.next(a()),c=!0);let r={type:Bu.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(r.total=n.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),t.next(r)},d=e=>{let i={type:Bu.UploadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),t.next(i)};return i.addEventListener("load",o),i.addEventListener("error",s),e.reportProgress&&(i.addEventListener("progress",l),null!==n&&i.upload&&i.upload.addEventListener("progress",d)),i.send(n),t.next({type:Bu.Sent}),()=>{i.removeEventListener("error",s),i.removeEventListener("load",o),e.reportProgress&&(i.removeEventListener("progress",l),null!==n&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(t){return new(t||e)($e(qu))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const $u=new Ze("XSRF_COOKIE_NAME"),em=new Ze("XSRF_HEADER_NAME");class tm{}let im=(()=>{class e{constructor(e,t,i){this.doc=e,this.platform=t,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)($e(Jl),$e(ul),$e($u))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),nm=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t.handle(e);const n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)($e(tm),$e(em))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),rm=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Yu,[]);this.chain=e.reduceRight((e,t)=>new Uu(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)($e(Ou),$e(fo))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),am=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:nm,useClass:Xu}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:$u,useValue:t.cookieName}:[],t.headerName?{provide:em,useValue:t.headerName}:[]]}}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[nm,{provide:Yu,useExisting:nm,multi:!0},{provide:tm,useClass:im},{provide:$u,useValue:"XSRF-TOKEN"},{provide:em,useValue:"X-XSRF-TOKEN"}]}),e})(),om=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[Wu,{provide:Iu,useClass:rm},Ku,{provide:Ou,useExisting:Ku},Ju,{provide:qu,useExisting:Ju}],imports:[[am.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();function sm(){}function cm(e,t){return new b(t?i=>t.schedule(lm,0,{error:e,subscriber:i}):t=>t.error(e))}function lm({error:e,subscriber:t}){t.error(e)}class dm extends A{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new x;return this._value}next(e){super.next(this._value=e)}}function um(e,t,i){return function(n){return n.lift(new mm(e,t,i))}}class mm{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new pm(e,this.nextOrObserver,this.error,this.complete))}}class pm extends h{constructor(e,t,i,r){super(e),this._tapNext=sm,this._tapError=sm,this._tapComplete=sm,this._tapError=i||sm,this._tapComplete=r||sm,n(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||sm,this._tapError=t.error||sm,this._tapComplete=t.complete||sm)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function hm(e){return function(t){const i=new gm(e),n=t.lift(i);return i.caught=n}}class gm{constructor(e){this.selector=e}call(e,t){return t.subscribe(new fm(e,this.selector,this.caught))}}class fm extends j{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let i;try{i=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const n=new B(this);this.add(n);const r=N(i,n);r!==n&&this.add(r)}}}var vm=function(e,t){return e===t||e!=e&&t!=t},_m=function(e,t){for(var i=e.length;i--;)if(vm(e[i][0],t))return i;return-1},ym=Array.prototype.splice;function bm(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}bm.prototype.clear=function(){this.__data__=[],this.size=0},bm.prototype.delete=function(e){var t=this.__data__,i=_m(t,e);return!(i<0||(i==t.length-1?t.pop():ym.call(t,i,1),--this.size,0))},bm.prototype.get=function(e){var t=this.__data__,i=_m(t,e);return i<0?void 0:t[i][1]},bm.prototype.has=function(e){return _m(this.__data__,e)>-1},bm.prototype.set=function(e,t){var i=this.__data__,n=_m(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var wm,xm=bm,Cm=i("fw2E"),km=Cm.a.Symbol,Am=Object.prototype,Sm=Am.hasOwnProperty,Em=Am.toString,Dm=km?km.toStringTag:void 0,Im=Object.prototype.toString,Om=km?km.toStringTag:void 0,Pm=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Om&&Om in Object(e)?function(e){var t=Sm.call(e,Dm),i=e[Dm];try{e[Dm]=void 0;var n=!0}catch(a){}var r=Em.call(e);return n&&(t?e[Dm]=i:delete e[Dm]),r}(e):function(e){return Im.call(e)}(e)},Tm=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Mm=function(e){if(!Tm(e))return!1;var t=Pm(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Lm=Cm.a["__core-js_shared__"],Rm=(wm=/[^.]+$/.exec(Lm&&Lm.keys&&Lm.keys.IE_PROTO||""))?"Symbol(src)_1."+wm:"",zm=Function.prototype.toString,Fm=function(e){if(null!=e){try{return zm.call(e)}catch(t){}try{return e+""}catch(t){}}return""},Hm=/^\[object .+?Constructor\]$/,Bm=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jm=function(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Tm(e)||(t=e,Rm&&Rm in t))&&(Mm(e)?Bm:Hm).test(Fm(e));var t}(i)?i:void 0},Nm=jm(Cm.a,"Map"),Vm=jm(Object,"create"),Zm=Object.prototype.hasOwnProperty,Qm=Object.prototype.hasOwnProperty;function Wm(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Wm.prototype.clear=function(){this.__data__=Vm?Vm(null):{},this.size=0},Wm.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wm.prototype.get=function(e){var t=this.__data__;if(Vm){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return Zm.call(t,e)?t[e]:void 0},Wm.prototype.has=function(e){var t=this.__data__;return Vm?void 0!==t[e]:Qm.call(t,e)},Wm.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Vm&&void 0===t?"__lodash_hash_undefined__":t,this};var Um=Wm,Ym=function(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map};function Xm(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Xm.prototype.clear=function(){this.size=0,this.__data__={hash:new Um,map:new(Nm||xm),string:new Um}},Xm.prototype.delete=function(e){var t=Ym(this,e).delete(e);return this.size-=t?1:0,t},Xm.prototype.get=function(e){return Ym(this,e).get(e)},Xm.prototype.has=function(e){return Ym(this,e).has(e)},Xm.prototype.set=function(e,t){var i=Ym(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};var Gm=Xm;function qm(e){var t=this.__data__=new xm(e);this.size=t.size}qm.prototype.clear=function(){this.__data__=new xm,this.size=0},qm.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},qm.prototype.get=function(e){return this.__data__.get(e)},qm.prototype.has=function(e){return this.__data__.has(e)},qm.prototype.set=function(e,t){var i=this.__data__;if(i instanceof xm){var n=i.__data__;if(!Nm||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Gm(n)}return i.set(e,t),this.size=i.size,this};var Jm=qm;function Km(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Gm;++t<i;)this.add(e[t])}Km.prototype.add=Km.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Km.prototype.has=function(e){return this.__data__.has(e)};var $m=Km,ep=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1},tp=function(e,t){return e.has(t)},ip=function(e,t,i,n,r,a){var o=1&i,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var u=-1,m=!0,p=2&i?new $m:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var h=e[u],g=t[u];if(n)var f=o?n(g,h,u,t,e,a):n(h,g,u,e,t,a);if(void 0!==f){if(f)continue;m=!1;break}if(p){if(!ep(t,(function(e,t){if(!tp(p,t)&&(h===e||r(h,e,i,n,a)))return p.push(t)}))){m=!1;break}}else if(h!==g&&!r(h,g,i,n,a)){m=!1;break}}return a.delete(e),a.delete(t),m},np=Cm.a.Uint8Array,rp=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i},ap=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i},op=km?km.prototype:void 0,sp=op?op.valueOf:void 0,cp=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e},lp=Array.isArray,dp=function(e,t,i){var n=t(e);return lp(e)?n:cp(n,i(e))},up=function(){return[]},mp=Object.prototype.propertyIsEnumerable,pp=Object.getOwnPropertySymbols,hp=pp?function(e){return null==e?[]:(e=Object(e),function(t,i){for(var n=-1,r=null==t?0:t.length,a=0,o=[];++n<r;){var s=t[n];mp.call(e,s)&&(o[a++]=s)}return o}(pp(e)))}:up,gp=function(e){return null!=e&&"object"==typeof e},fp=function(e){return gp(e)&&"[object Arguments]"==Pm(e)},vp=Object.prototype,_p=vp.hasOwnProperty,yp=vp.propertyIsEnumerable,bp=fp(function(){return arguments}())?fp:function(e){return gp(e)&&_p.call(e,"callee")&&!yp.call(e,"callee")},wp=i("TPB+"),xp=/^(?:0|[1-9]\d*)$/,Cp=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&xp.test(e))&&e>-1&&e%1==0&&e<t},kp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ap={};Ap["[object Float32Array]"]=Ap["[object Float64Array]"]=Ap["[object Int8Array]"]=Ap["[object Int16Array]"]=Ap["[object Int32Array]"]=Ap["[object Uint8Array]"]=Ap["[object Uint8ClampedArray]"]=Ap["[object Uint16Array]"]=Ap["[object Uint32Array]"]=!0,Ap["[object Arguments]"]=Ap["[object Array]"]=Ap["[object ArrayBuffer]"]=Ap["[object Boolean]"]=Ap["[object DataView]"]=Ap["[object Date]"]=Ap["[object Error]"]=Ap["[object Function]"]=Ap["[object Map]"]=Ap["[object Number]"]=Ap["[object Object]"]=Ap["[object RegExp]"]=Ap["[object Set]"]=Ap["[object String]"]=Ap["[object WeakMap]"]=!1;var Sp=function(e){return function(t){return e(t)}},Ep=i("Af8m"),Dp=Ep.a&&Ep.a.isTypedArray,Ip=Dp?Sp(Dp):function(e){return gp(e)&&kp(e.length)&&!!Ap[Pm(e)]},Op=Object.prototype.hasOwnProperty,Pp=function(e,t){var i=lp(e),n=!i&&bp(e),r=!i&&!n&&Object(wp.a)(e),a=!i&&!n&&!r&&Ip(e),o=i||n||r||a,s=o?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],c=s.length;for(var l in e)!t&&!Op.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Cp(l,c))||s.push(l);return s},Tp=Object.prototype,Mp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Tp)},Lp=function(e,t){return function(i){return e(t(i))}},Rp=Lp(Object.keys,Object),zp=Object.prototype.hasOwnProperty,Fp=function(e){return null!=e&&kp(e.length)&&!Mm(e)},Hp=function(e){return Fp(e)?Pp(e):function(e){if(!Mp(e))return Rp(e);var t=[];for(var i in Object(e))zp.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)},Bp=function(e){return dp(e,Hp,hp)},jp=Object.prototype.hasOwnProperty,Np=jm(Cm.a,"DataView"),Vp=jm(Cm.a,"Promise"),Zp=jm(Cm.a,"Set"),Qp=jm(Cm.a,"WeakMap"),Wp=Fm(Np),Up=Fm(Nm),Yp=Fm(Vp),Xp=Fm(Zp),Gp=Fm(Qp),qp=Pm;(Np&&"[object DataView]"!=qp(new Np(new ArrayBuffer(1)))||Nm&&"[object Map]"!=qp(new Nm)||Vp&&"[object Promise]"!=qp(Vp.resolve())||Zp&&"[object Set]"!=qp(new Zp)||Qp&&"[object WeakMap]"!=qp(new Qp))&&(qp=function(e){var t=Pm(e),i="[object Object]"==t?e.constructor:void 0,n=i?Fm(i):"";if(n)switch(n){case Wp:return"[object DataView]";case Up:return"[object Map]";case Yp:return"[object Promise]";case Xp:return"[object Set]";case Gp:return"[object WeakMap]"}return t});var Jp=qp,Kp=Object.prototype.hasOwnProperty,$p=function e(t,i,n,r,a){return t===i||(null==t||null==i||!gp(t)&&!gp(i)?t!=t&&i!=i:function(e,t,i,n,r,a){var o=lp(e),s=lp(t),c=o?"[object Array]":Jp(e),l=s?"[object Array]":Jp(t),d="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),u="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),m=c==l;if(m&&Object(wp.a)(e)){if(!Object(wp.a)(t))return!1;o=!0,d=!1}if(m&&!d)return a||(a=new Jm),o||Ip(e)?ip(e,t,i,n,r,a):function(e,t,i,n,r,a,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new np(e),new np(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return vm(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=rp;case"[object Set]":if(s||(s=ap),e.size!=t.size&&!(1&n))return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var l=ip(s(e),s(t),n,r,a,o);return o.delete(e),l;case"[object Symbol]":if(sp)return sp.call(e)==sp.call(t)}return!1}(e,t,c,i,n,r,a);if(!(1&i)){var p=d&&Kp.call(e,"__wrapped__"),h=u&&Kp.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,f=h?t.value():t;return a||(a=new Jm),r(g,f,i,n,a)}}return!!m&&(a||(a=new Jm),function(e,t,i,n,r,a){var o=1&i,s=Bp(e),c=s.length;if(c!=Bp(t).length&&!o)return!1;for(var l=c;l--;){var d=s[l];if(!(o?d in t:jp.call(t,d)))return!1}var u=a.get(e),m=a.get(t);if(u&&m)return u==t&&m==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=o;++l<c;){var g=e[d=s[l]],f=t[d];if(n)var v=o?n(f,g,d,t,e,a):n(g,f,d,e,t,a);if(!(void 0===v?g===f||r(g,f,i,n,a):v)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var _=e.constructor,y=t.constructor;_==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,i,n,r,a))}(t,i,n,r,e,a))},eh=function(e,t){return $p(e,t)},th=function(){try{var e=jm(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),ih=function(e,t,i){"__proto__"==t&&th?th(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i},nh=Object.prototype.hasOwnProperty,rh=function(e,t,i){var n=e[t];nh.call(e,t)&&vm(n,i)&&(void 0!==i||t in e)||ih(e,t,i)},ah=function(e,t,i,n){var r=!i;i||(i={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=n?n(i[s],e[s],s,i,e):void 0;void 0===c&&(c=e[s]),r?ih(i,s,c):rh(i,s,c)}return i},oh=Object.prototype.hasOwnProperty,sh=function(e){return Fp(e)?Pp(e,!0):function(e){if(!Tm(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=Mp(e),i=[];for(var n in e)("constructor"!=n||!t&&oh.call(e,n))&&i.push(n);return i}(e)},ch=i("1vCq"),lh=Lp(Object.getPrototypeOf,Object),dh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)cp(t,hp(e)),e=lh(e);return t}:up,uh=function(e){return dp(e,sh,dh)},mh=Object.prototype.hasOwnProperty,ph=function(e){var t=new e.constructor(e.byteLength);return new np(t).set(new np(e)),t},hh=/\w*$/,gh=km?km.prototype:void 0,fh=gh?gh.valueOf:void 0,vh=Object.create,_h=function(){function e(){}return function(t){if(!Tm(t))return{};if(vh)return vh(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),yh=Ep.a&&Ep.a.isMap,bh=yh?Sp(yh):function(e){return gp(e)&&"[object Map]"==Jp(e)},wh=Ep.a&&Ep.a.isSet,xh=wh?Sp(wh):function(e){return gp(e)&&"[object Set]"==Jp(e)},Ch={};Ch["[object Arguments]"]=Ch["[object Array]"]=Ch["[object ArrayBuffer]"]=Ch["[object DataView]"]=Ch["[object Boolean]"]=Ch["[object Date]"]=Ch["[object Float32Array]"]=Ch["[object Float64Array]"]=Ch["[object Int8Array]"]=Ch["[object Int16Array]"]=Ch["[object Int32Array]"]=Ch["[object Map]"]=Ch["[object Number]"]=Ch["[object Object]"]=Ch["[object RegExp]"]=Ch["[object Set]"]=Ch["[object String]"]=Ch["[object Symbol]"]=Ch["[object Uint8Array]"]=Ch["[object Uint8ClampedArray]"]=Ch["[object Uint16Array]"]=Ch["[object Uint32Array]"]=!0,Ch["[object Error]"]=Ch["[object Function]"]=Ch["[object WeakMap]"]=!1;var kh=function e(t,i,n,r,a,o){var s,c=1&i,l=2&i,d=4&i;if(n&&(s=a?n(t,r,a,o):n(t)),void 0!==s)return s;if(!Tm(t))return t;var u=lp(t);if(u){if(s=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&mh.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(t),!c)return function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}(t,s)}else{var m=Jp(t),p="[object Function]"==m||"[object GeneratorFunction]"==m;if(Object(wp.a)(t))return Object(ch.a)(t,c);if("[object Object]"==m||"[object Arguments]"==m||p&&!a){if(s=l||p?{}:function(e){return"function"!=typeof e.constructor||Mp(e)?{}:_h(lh(e))}(t),!c)return l?function(e,t){return ah(e,dh(e),t)}(t,function(e,t){return e&&ah(t,sh(t),e)}(s,t)):function(e,t){return ah(e,hp(e),t)}(t,function(e,t){return e&&ah(t,Hp(t),e)}(s,t))}else{if(!Ch[m])return a?t:{};s=function(e,t,i){var n,r,a=e.constructor;switch(t){case"[object ArrayBuffer]":return ph(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var i=t?ph(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var i=t?ph(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,i);case"[object Map]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(r=new(n=e).constructor(n.source,hh.exec(n))).lastIndex=n.lastIndex,r;case"[object Set]":return new a;case"[object Symbol]":return fh?Object(fh.call(e)):{}}}(t,m,c)}}o||(o=new Jm);var h=o.get(t);if(h)return h;o.set(t,s),xh(t)?t.forEach((function(r){s.add(e(r,i,n,r,t,o))})):bh(t)&&t.forEach((function(r,a){s.set(a,e(r,i,n,a,t,o))}));var g=u?void 0:(d?l?uh:Bp:l?sh:Hp)(t);return function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i););}(g||t,(function(r,a){g&&(r=t[a=r]),rh(s,a,e(r,i,n,a,t,o))})),s},Ah=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){e.done?r(e.value):new i((function(t){t(e.value)})).then(o,s)}c((n=n.apply(e,t||[])).next())}))};let Sh=(()=>{class e{getDataObject(e,t){return Ah(this,void 0,void 0,(function*(){return"collection"===e?{data:[],cache_last_update:0}:{cache_last_update:Date.now(),id:"",type:""}}))}getDataResources(e){return Ah(this,void 0,void 0,(function*(){return{}}))}saveResource(e,t,i){}saveCollection(e,t){}clearCache(){}deprecateResource(e,t){}deprecateCollection(e){}removeObjectsWithKey(e){return Ah(this,void 0,void 0,(function*(){}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();var Eh=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){e.done?r(e.value):new i((function(t){t(e.value)})).then(o,s)}c((n=n.apply(e,t||[])).next())}))};let Dh=(()=>{class e{constructor(){this.enabled=!1}getResource(e,t=[]){return Eh(this,void 0,void 0,(function*(){return{data:{id:"",type:"",cache_last_update:0}}}))}getResourceByResource(e,t=[]){return Eh(this,void 0,void 0,(function*(){return this.getResource(e.type,t)}))}getCollection(e,t=[]){return Eh(this,void 0,void 0,(function*(){return{data:[],cache_last_update:0}}))}saveCollection(e,t,i=[]){}saveResource(e,t=[]){return Eh(this,void 0,void 0,(function*(){}))}static toResourceElements(e,t,i=[]){return[]}deprecateCollection(e){return Eh(this,void 0,void 0,(function*(){}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class Ih{constructor(){this.number=1,this.total_resources=0,this.size=0,this.resources_per_page=0}}class Oh{static propagateLoaded(e,t){for(let i in e){let n=e[i];n instanceof Hh&&n.setLoaded(t&&n.builded)}}}class Ph{constructor(){this.paths=[],this.includes=[],this.get_params=[]}applyParams(e,t={}){if(this.appendPath(e.getPrePath()),t.beforepath&&this.appendPath(t.beforepath),this.appendPath(e.getPath()),t.include&&this.setInclude(t.include),function(e){return void 0!==e.id||void 0!==e.include_get||void 0!==e.include_save}(t)&&t.include_get&&this.setInclude([...this.includes,...t.include_get]),t.fields&&Object.keys(t.fields).length>0)for(let i in t.fields){let e=`fields[${i}]=${t.fields[i].join(",")}`;this.get_params.push(e)}}appendPath(e){""!==e&&this.paths.push(e)}getForCache(){return this.paths.join("/")+this.get_params.join("/")}get(){let e=[...this.get_params];return this.includes.length>0&&e.push("include="+this.includes.join(",")),this.paths.join("/")+(e.length>0?Yh.injectedServices.rsJsonapiConfig.params_separator+e.join("&"):"")}setInclude(e){this.includes=e}}class Th{static json_array2resources_array_by_type(e){let t={},i={};Th.json_array2resources_array(e,t);for(const n in t){let e=t[n];e.type in i||(i[e.type]={}),i[e.type][e.id]=e}return i}static json2resource(e,t){if(Th.getService(e.type))return Th.procreate(e);{zn()&&console.warn("`"+e.type+"`","service not found on json2resource().","Use @Autoregister() on service and inject it on component.");let t=new zh;return t.id=e.id,t.type=e.type,t}}static getService(e){return Yh.me.getResourceService(e)}static getServiceOrFail(e){return Yh.me.getResourceServiceOrFail(e)}static buildIncluded(e){return"included"in e&&e.included?Th.json_array2resources_array_by_type(e.included):{}}static procreate(e){"type"in e&&"id"in e||console.error("Jsonapi Resource is not correct",e);let t=jh.getInstance().getOrCreateResource(e.type,e.id);return t.fill({data:e}),t.is_new=!1,t}static json_array2resources_array(e,t={}){for(let i of e){let e=Th.json2resource(i,!1);t[e.type+"_"+e.id]=e}}}class Mh{constructor(){this.builded=!1,this.is_loading=!0,this.loaded=!1,this.source="new",this.cache_last_update=0,this.meta={}}}class Lh extends Mh{constructor(){super(...arguments),this.data=new zh,this.builded=!1,this.content="id"}fill(e){this.builded=!1,this.content="id",null!==e?(this.data||(this.data=jh.getInstance().getOrCreateResource(e.data.type,e.data.id)),this.data.fill(e)&&(this.builded=!0,this.content="resource"),this.meta=e.meta||{}):this.data=null}unsetData(){this.data=void 0,this.builded=!1}}class Rh{constructor(e,t,i,n){this.getService=e,this.relationships_from=t,this.relationships_dest=i,this.included_resources=n}buildRelationships(){for(const e in this.relationships_from){let t=this.relationships_from[e];this.relationships_dest[e]&&null===t.data&&(this.relationships_dest[e].data=null,this.relationships_dest[e].builded=!0,this.relationships_dest[e].is_loading=!1,this.relationships_dest[e].loaded=!0),t.data&&(this.relationships_dest[e]instanceof Hh?this.__buildRelationshipHasMany(t,e):this.relationships_dest[e]instanceof Lh&&this.__buildRelationshipHasOne(t,e))}}__buildRelationshipHasMany(e,t){if(0===e.data.length)return this.relationships_dest[t]=new Hh,void(this.relationships_dest[t].builded=!0);this.relationships_dest[t].fill(e)}__buildRelationshipHasOne(e,t){if("type"in e.data){if(this.relationships_dest[t].data||(this.relationships_dest[t].data=new zh),e.data.id!==this.relationships_dest[t].data.id&&(this.relationships_dest[t].data=new zh,this.relationships_dest[t].data.type=e.data.type),this.relationships_dest[t].data.id!==e.data.id||!this.relationships_dest[t].data.attributes||0===Object.keys(this.relationships_dest[t].data.attributes).length){let i=this.__buildRelationship(e.data);i?(this.relationships_dest[t].data=i,this.relationships_dest[t].builded=!0):(this.relationships_dest[t].data.id=e.data.id,this.relationships_dest[t].data.type=e.data.type)}}else this.relationships_dest[t].data=[]}__buildRelationship(e){if(e.type in this.included_resources&&e.id in this.included_resources[e.type]){let t=this.included_resources[e.type][e.id];return jh.getInstance().setResource(t,!0),t}{this.getService(e.type);let t=jh.getInstance().getResource(e.type,e.id);if(t)return t}}}class zh{constructor(){this.id="",this.type="",this.attributes={},this.relationships={},this.links={},this.is_new=!0,this.is_saving=!1,this.is_loading=!1,this.loaded=!0,this.source="new",this.cache_last_update=0,this.ttl=0}reset(){this.id="",this.attributes={},this.is_new=!0;for(const e in this.relationships)this.relationships[e]=this.relationships[e]instanceof Hh?new Hh:new Lh}toObject(e){let t,i={},n=[],r=[],a=(e=Object.assign({},Bh.ParamsResource,e)).include||[];e.include_save&&(a=a.concat(e.include_save));for(const s in this.relationships){let e=this.relationships[s];if(e instanceof Hh){e.builded||e.data&&0!==e.data.length?i[s]={data:[]}:delete i[s];for(const t of e.data){i[s].data.push({id:t.id,type:t.type});let e=t.type+"_"+t.id;-1===r.indexOf(e)&&a&&-1!==a.indexOf(s)&&(r.push(e),n.push(t.toObject({}).data))}}else{if(null==e.data){i[s]={data:e.data};continue}e instanceof Lh||console.warn(e," is not DocumentCollection or DocumentResource");let t=e.data;if(e.data&&!("id"in e.data)&&Object.keys(e.data).length>0&&console.warn(s+" defined with hasMany:false, but I have a collection"),t.id&&t.type)i[s]={data:{id:t.id,type:t.type}};else if(!e.builded&&!t.id&&!t.type){delete i[s];continue}let o=t.type+"_"+t.id;-1===r.indexOf(o)&&a&&-1!==a.indexOf(s)&&(r.push(o),n.push(t.toObject({}).data))}}this.getService()&&this.getService().parseToServer?(t=Object.assign({},this.attributes),this.getService().parseToServer(t)):t=this.attributes;let o={data:{type:this.type,id:this.id,attributes:t,relationships:i}};return this.meta&&(o.data.meta=this.meta),e.meta&&(o.meta=e.meta),n.length>0&&(o.included=n),o}fill(e){this.id=e.data.id||"",this.attributes=Object.assign({},this.attributes||{},e.data.attributes),this.is_new=!1;let t=Th.getService(e.data.type);if(!this.relationships&&t&&(this.relationships=(new t.resource).relationships),!t)return!1;if(Object.keys(this.attributes).length){let e=Th.getService(this.type);e&&"parseFromServer"in e&&e.parseFromServer(this.attributes)}return"cache_last_update"in e.data&&(this.cache_last_update=e.data.cache_last_update),new Rh(Th.getService,e.data.relationships||{},this.relationships,Th.buildIncluded(e)).buildRelationships(),!0}addRelationship(e,t){let i=this.relationships[t||e.type];i instanceof Hh?i.replaceOrAdd(e):i.data=e}addRelationships(e,t){if(0!==e.length){if(!(this.relationships[t]instanceof Hh))throw new Error("addRelationships require a DocumentCollection (hasMany) relation.");e.forEach(e=>{this.addRelationship(e,t)})}}removeRelationship(e,t){if(!(e in this.relationships))return!1;if(!("data"in this.relationships[e]))return!1;let i=this.relationships[e];return i instanceof Hh?(i.data=i.data.filter(e=>e.id!==t),0===i.data.length&&(i.builded=!0)):i.data=null,!0}hasManyRelated(e){return this.relationships[e]&&this.relationships[e].data.length>0}hasOneRelated(e){return Boolean(this.relationships[e]&&this.relationships[e].data.type&&""!==this.relationships[e].data.type)}restore(e={}){return e.meta=Object.assign({},e.meta,{restore:!0}),this.save(e)}getService(){return Th.getServiceOrFail(this.type)}delete(){return this.getService().delete(this.id)}save(e){if(e=Object.assign({},Bh.ParamsResource,e),this.is_saving||!this.loaded)return Au({});this.is_saving=!0;let t=new A,i=this.toObject(e);""===this.id&&delete i.data.id;let n=new Ph;return n.applyParams(this.getService(),e),this.id&&n.appendPath(this.id),Yh.exec(n.get(),this.is_new?"POST":"PATCH",i,!0).subscribe(e=>{this.is_saving=!1,this.id||(jh.getInstance().deprecateCollections(n.get()),Yh.injectedServices.json_ripper.deprecateCollection(n.get())),"id"in e.data?(this.id=e.data.id,this.fill(e)):Array.isArray(e.data)&&console.warn("Server return a collection when we save()",e.data),t.next(e),t.complete()},e=>{this.is_saving=!1,t.error("data"in e?e.data:e)}),t}setLoaded(e){this.is_loading=!e,this.loaded=e}setLoadedAndPropagate(e){this.setLoaded(e),Oh.propagateLoaded(this.relationships,e)}setSource(e){this.source=e}setSourceAndPropagate(e){this.setSource(e);for(let t in this.relationships){let i=this.relationships[t];i instanceof Hh&&i.setSource(e)}}setCacheLastUpdate(e=Date.now()){this.cache_last_update=e}}class Fh extends Mh{constructor(){super(...arguments),this.data=[],this.page=new Ih,this.ttl=0,this.content="ids"}trackBy(e){return e.id}find(e){if("ids"===this.content)return null;for(let t=0;t<this.data.length;t++)if(this.data[t].id===e)return this.data[t];return null}fill(e){Th.buildIncluded(e),this.page&&e.meta&&(this.page.number=e.meta.page||1,this.page.resources_per_page=e.meta.resources_per_page||null,this.page.size=e.meta.resources_per_page||null,this.page.total_resources=e.meta.total_resources||null);let t,i={};this.data.length=0,this.builded=e.data&&0===e.data.length;for(let r of e.data)try{let e=this.getResourceOrFail(r);e.fill({data:r}),i[r.id]=r.id,this.data.push(e),Object.keys(e.attributes).length>0&&(this.builded=!0)}catch(n){this.content="ids",this.builded=!1,this.data.push({id:r.id,type:r.type})}for(;t<this.data.length;t++)this.data[t].id in i||delete this.data[t];this.meta=e.meta||{},"cache_last_update"in e&&(this.cache_last_update=e.cache_last_update)}getResourceOrFail(e){let t=this.find(e.id);if(null!==t)return t;let i=Th.getService(e.type);if(!i)throw zn()&&console.warn("The relationship relation_alias? (type "+e.type+") cant be generated because service for this type has not been injected."),new Error("Cant create service for "+e.type);return i.getOrCreateResource(e.id)}replaceOrAdd(e){let t=this.find(e.id);null===t?this.data.push(e):t=e}hasMorePages(){return!this.page.size||this.page.size<1?null:this.page.size*(this.page.number-1)+this.data.length<this.page.total_resources}setLoaded(e){this.is_loading=!e,this.loaded=e}setLoadedAndPropagate(e){this.setLoaded(e),"ids"!==this.content&&this.data.forEach(t=>{Oh.propagateLoaded(t.relationships,e)})}setBuilded(e){this.builded=e}setBuildedAndPropagate(e){this.setBuilded(e),"ids"!==this.content&&this.data.forEach(t=>{t.setLoaded(e)})}setSource(e){this.source=e}setSourceAndPropagate(e){this.setSource(e),this.data.forEach(t=>{t instanceof zh&&t.setSource(e)})}setCacheLastUpdate(e=Date.now()){this.cache_last_update=e}setCacheLastUpdateAndPropagate(e=Date.now()){this.setCacheLastUpdate(e),this.data.forEach(t=>{t instanceof zh&&t.setCacheLastUpdate(e)})}toObject(e){return this.builded?{data:this.data.map(t=>t.toObject(e).data)}:{data:this.data}}}class Hh extends Fh{constructor(){super(...arguments),this.data=[],this.content="collection"}}let Bh=(()=>{class e{static newCollection(){return new Hh}static isObjectLive(e,t){return e>=0&&Date.now()<=t+1e3*e}static forEach(e,t){Object.keys(e).forEach(i=>{t(e[i],i)})}}return e.ParamsResource={beforepath:"",ttl:void 0,include:[],fields:{},id:""},e.ParamsCollection={beforepath:"",ttl:void 0,include:[],remotefilter:{},fields:{},smartfilter:{},sort:[],page:new Ih,store_cache_method:"individual",storage_ttl:0,cachehash:""},e})();class jh{constructor(){this.resources={},this.collections={}}static getInstance(){return jh.instance||(jh.instance=new jh),jh.instance}clearCache(){this.resources={},this.collections={},jh.instance=null}getResource(e,t){return this.getKey(e,t)in this.resources?this.resources[this.getKey(e,t)]:null}getResourceOrFail(e,t){if(this.getKey(e,t)in this.resources)return this.resources[this.getKey(e,t)];throw new Error("The requested resource does not exist in cache memory")}getKey(e,t){return e+"."+t}getOrCreateCollection(e){return e in this.collections||(this.collections[e]=new Hh,this.collections[e].source="new"),this.collections[e]}setCollection(e,t){e in this.collections||(this.collections[e]=new Hh);for(let i=0;i<t.data.length;i++)this.setResource(t.data[i],!0);this.collections[e].data=t.data,this.collections[e].page=t.page,this.collections[e].cache_last_update=t.cache_last_update}getOrCreateResource(e,t){let i=this.getResource(e,t);return null!==i||(i=Th.getServiceOrFail(e).new(),i.id=t,this.setResource(i,!1)),i}setResource(e,t=!1){this.getKey(e.type,e.id)in this.resources?this.fillExistentResource(e):this.resources[this.getKey(e.type,e.id)]=e,this.resources[this.getKey(e.type,e.id)].cache_last_update=t?Date.now():0}deprecateCollections(e=""){for(let t in this.collections)t.includes(e)&&(this.collections[t].cache_last_update=0);return!0}removeResource(e,t){let i=this.getResource(e,t);if(i){Bh.forEach(this.collections,(i,n)=>{i.data.splice(i.data.findIndex(i=>i.type===e&&i.id===t),1)}),i.attributes={};for(let e in i.relationships)null!=i.relationships[e].data&&(i.relationships[e].data instanceof Array?i.relationships[e].data=[]:i.relationships[e].data instanceof Object&&delete i.relationships[e].data);delete this.resources[this.getKey(e,t)]}}fillExistentResource(e){let t=this.getResourceOrFail(e.type,e.id);t.attributes=Object.assign({},t.attributes,e.attributes),t.relationships=t.relationships||e.relationships}}function Nh(e,t){let i=t&&"number"==typeof t?t:e.ttl||0;return Date.now()<e.cache_last_update+1e3*i}function Vh(e,t,i){const n=i.value;return i.value=function(){let e,t=Array.prototype.slice.call(arguments);try{e="string"==typeof t[0]?t[0]:t[0].type}catch(a){return console.warn("ERROR: First argument of methods decorated with serviceIsRegistered has to be string or Resource."),null}const i=Yh.me.getResourceService(e);if(!i)return console.warn(`ERROR: ${e} service has not been registered.`),null;const r=n.apply(this,t);return r},i}let Zh=(()=>{class e{constructor(){this.url="http://yourdomain/api/v1/",this.params_separator="?",this.unify_concurrency=!0,this.cache_prerequests=!0,this.parameters={page:{number:"page[number]",size:"page[size]"}}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),Qh=(()=>{class e{constructor(e,t){this.http=e,this.rsJsonapiConfig=t,this.get_requests={}}exec(e,t,i){let n={body:i||null,headers:new Pu({"Content-Type":"application/vnd.api+json",Accept:"application/vnd.api+json"})};if("get"===t){if(!this.get_requests[e]){let i=this.http.request(t,this.rsJsonapiConfig.url+e,n).pipe(um(()=>{delete this.get_requests[e]}),re());return this.get_requests[e]=i,i}return this.get_requests[e]}return this.http.request(t,this.rsJsonapiConfig.url+e,n).pipe(um(()=>{delete this.get_requests[e]}),re())}}return e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(Zh))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();var Wh=function(e,t,i,n){var r,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,i,o):r(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},Uh=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Yh=(()=>{class e{constructor(t,i,n){this.loadingsCounter=0,this.loadingsStart=sm,this.loadingsDone=sm,this.loadingsError=sm,this.loadingsOffline=sm,this.resourceServices={},this.config=new Zh;for(let e in this.config)this.config[e]=void 0!==t[e]?t[e]:this.config[e];e.me=this,e.injectedServices={JsonapiStoreService:n.get("jsonapi_store_service"),JsonapiHttp:i,json_ripper:n.get("jsonapi_ripper_service"),rsJsonapiConfig:this.config}}static delete(t){return e.exec(t,"DELETE")}static get(t){return e.exec(t,"get")}static exec(t,i,n,r=!0){return e.me.refreshLoadings(1),e.injectedServices.JsonapiHttp.exec(t,i,n).pipe(um(()=>e.me.refreshLoadings(-1)),hm(t=>(t=t.error||t,e.me.refreshLoadings(-1),t.status<=0?!e.me.loadingsOffline(t)&&zn()&&console.warn("Jsonapi.Http.exec (use JsonapiCore.loadingsOffline for catch it) error =>",t):r&&!e.me.loadingsError(t)&&zn()&&console.warn("Jsonapi.Http.exec (use JsonapiCore.loadingsError for catch it) error =>",t),cm(t))))}registerService(e){return!(e.type in this.resourceServices)&&(this.resourceServices[e.type]=e,e)}getResourceService(e){return this.resourceServices[e]}getResourceServiceOrFail(e){let t=this.resourceServices[e];if(!t)throw new Error(`The requested service with type ${e} has not been registered, please use register() method or @Autoregister() decorator`);return t}static removeCachedResource(e,t){jh.getInstance().removeResource(e,t)}static setCachedResource(e){jh.getInstance().setResource(e,!0)}static deprecateCachedCollections(t){let i=e.me.getResourceServiceOrFail(t),n=new Ph;n.applyParams(i),jh.getInstance().deprecateCollections(n.getForCache())}refreshLoadings(e){this.loadingsCounter+=e,0===this.loadingsCounter?this.loadingsDone():1===this.loadingsCounter&&this.loadingsStart()}clearCache(){return t=this,void 0,n=function*(){return e.injectedServices.JsonapiStoreService.clearCache(),jh.getInstance().clearCache(),e.injectedServices.json_ripper.deprecateCollection("").then(()=>!0)},new((i=void 0)||(i=Promise))((function(e,r){function a(e){try{s(n.next(e))}catch(t){r(t)}}function o(e){try{s(n.throw(e))}catch(t){r(t)}}function s(t){t.done?e(t.value):new i((function(e){e(t.value)})).then(a,o)}s((n=n.apply(t,[])).next())}));var t,i,n}duplicateResource(e,...t){let i=this.getResourceServiceOrFail(e.type).new();i.id="new_"+Math.floor(1e4*Math.random()).toString(),i.attributes=Object.assign({},i.attributes,e.attributes);for(const n in e.relationships){let r=e.relationships[n];r.data?"id"in r.data?t.indexOf(n)>-1?i.addRelationship(this.duplicateResource(r.data),n):i.addRelationship(r.data,n):t.indexOf(n)>-1?r.data.forEach(e=>{i.addRelationship(this.duplicateResource(e),n)}):i.addRelationships(r.data,n):i.relationships[n]=e.relationships[n]}return i}}return e.\u0275fac=function(t){return new(t||e)($e(Zh,8),$e(Qh),$e(fo))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),Wh([Vh,Uh("design:type",Function),Uh("design:paramtypes",[String,String]),Uh("design:returntype",void 0)],e,"removeCachedResource",null),Wh([Vh,Uh("design:type",Function),Uh("design:paramtypes",[zh]),Uh("design:returntype",void 0)],e,"setCachedResource",null),Wh([Vh,Uh("design:type",Function),Uh("design:paramtypes",[String]),Uh("design:returntype",void 0)],e,"deprecateCachedCollections",null),e})(),Xh=(()=>{class e{constructor(e,t){if(e)throw new Error("NgxJsonapiModule is already loaded. Import it in the AppModule only")}static forRoot(t){return{ngModule:e,providers:[{provide:Zh,useValue:t}]}}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(e,12),$e(Yh))},providers:[Yh,{provide:"jsonapi_ripper_service",useClass:Dh},{provide:"jsonapi_store_service",useClass:Sh},Zh,Qh],imports:[[Cu],om]}),e})();class Gh{toparams(e){let t="";return Bh.forEach(e,(e,i)=>{t+=this.toparamsarray(e,"&"+i)}),t.slice(1)}toparamsarray(e,t){let i="";return Array.isArray(e)||e instanceof Object?Bh.forEach(e,(e,n)=>{i+=this.toparamsarray(e,t+"["+n+"]")}):i+=t+"="+e,i}}class qh extends Ph{applyParams(e,t={}){super.applyParams(e,t);let i=new Gh;t.remotefilter&&Object.keys(t.remotefilter).length>0&&(e.parseToServer&&e.parseToServer(t.remotefilter),this.addParam(i.toparams({filter:t.remotefilter}))),t.page&&(t.page.number>1&&this.addParam(this.getPageConfig().number+"="+t.page.number),t.page.size&&this.addParam(this.getPageConfig().size+"="+t.page.size)),t.sort&&t.sort.length&&this.addParam("sort="+t.sort.join(","))}getPageConfig(){return Yh.injectedServices.rsJsonapiConfig.parameters&&Yh.injectedServices.rsJsonapiConfig.parameters.page||{number:"number",size:"size"}}addParam(e){this.get_params.push(e)}}class Jh{constructor(e,t,i){var n;this.parent_resource_object=t instanceof zh?t.toObject(i):{data:t},this.resource_object=(n=e)&&n.toObject&&"function"==typeof n.toObject&&n.superToObject&&"function"==typeof n.superToObject?e.superToObject(i):{data:e},this.removeDuplicatedAttributes(),this.removeDuplicatedRelationships(),this.removeDuplicatedIncludes()}getResourceObject(){return this.resource_object}removeDuplicatedIncludes(){if(!this.resource_object.included||!this.parent_resource_object.included)return this;let e=this.parent_resource_object.included;return this.resource_object.included=this.resource_object.included.filter(t=>!eh(t,e.find(e=>e.id===t.id))),this.resource_object.included=this.resource_object.included.map(t=>e.find(e=>e.id===t.id)?new Jh(t,e.find(e=>e.id===t.id)).getResourceObject().data:t),this}removeDuplicatedRelationships(){if(!this.resource_object.data.relationships||!this.parent_resource_object.data.relationships)return this;for(let e in this.resource_object.data.relationships)eh(this.resource_object.data.relationships[e],this.parent_resource_object.data.relationships[e])&&delete this.resource_object.data.relationships[e];return this}removeDuplicatedAttributes(){if(!this.resource_object.data.attributes||!this.parent_resource_object.data.attributes)return this;for(let e in this.resource_object.data.attributes)this.resource_object.data.attributes[e]===this.parent_resource_object.data.attributes[e]&&delete this.resource_object.data.attributes[e];return this}}class Kh extends zh{constructor(e){super(),this.parent=kh(e,5),this.type=this.parent.type,delete this.relationships;let t=Object.keys(this.parent.relationships);this.fill(this.parent.toObject({include:t})),this.copySourceFromParent()}toObject(e){return new Jh(this,this.parent,e).getResourceObject()}superToObject(e){return super.toObject(e)}copySourceFromParent(){this.source=this.parent.source;for(let e in this.relationships)this.relationships[e].source=this.parent.relationships[e].source}}var $h=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n.throw(e))}catch(t){a(t)}}function c(e){e.done?r(e.value):new i((function(t){t(e.value)})).then(o,s)}c((n=n.apply(e,t||[])).next())}))};class eg{constructor(){this.resource=zh,setTimeout(()=>this.register())}register(){if(null===Yh.me)throw new Error("Error: you are trying register `"+this.type+"` before inject JsonapiCore somewhere, almost one time.");return Yh.me.registerService(this)}newResource(){return this.new()}newCollection(){return new Hh}new(){let e=new this.resource;return e.type=this.type,this.getService(),e.reset(),e}getPrePath(){return""}getPath(){return this.path||this.type}getClone(e,t={}){return this.get(e,t).pipe(D(e=>new Kh(e)))}get(e,t={}){t=Object.assign({},Bh.ParamsResource,t);let i=new Ph;i.applyParams(this,t),i.appendPath(e);let n=this.getOrCreateResource(e);n.setLoaded(!1);let r=new dm(n);return Object.keys(t.fields||[]).length>0?this.getGetFromServer(i,n,r):Nh(n,t.ttl)&&function(e,t){if(0===t.length)return!0;for(let i in e.relationships)if(t.includes(i)&&!e.relationships[i].builded)return!1;return!0}(n,t.include||[])?(n.setLoaded(!0),setTimeout(()=>r.complete(),0)):0===n.cache_last_update?this.getGetFromLocal(t,i,n).then(()=>{r.next(n),setTimeout(()=>r.complete(),0)}).catch(()=>{n.setLoaded(!1),this.getGetFromServer(i,n,r)}):this.getGetFromServer(i,n,r),r.asObservable()}getGetFromLocal(e={},t,i){return $h(this,void 0,void 0,(function*(){if(!Yh.injectedServices.json_ripper.enabled)throw new Error("We cant handle this request");i.setLoaded(!1);let n=yield Yh.injectedServices.json_ripper.getResourceByResource(i,t.includes);if(i.fill(n),i.setSource("store"),!Nh(i,e.ttl))throw new Error("Resource is dead!");i.setLoadedAndPropagate(!0)}))}getGetFromServer(e,t,i){Yh.get(e.get()).subscribe(n=>{t.fill(n),t.cache_last_update=Date.now(),t.setLoadedAndPropagate(!0),t.setSourceAndPropagate("server"),Yh.injectedServices.json_ripper.saveResource(t,e.includes),i.next(t),setTimeout(()=>i.complete(),0)},e=>{t.setLoadedAndPropagate(!0),i.next(t),i.error(e)})}getService(){return Th.getService(this.type)||this.register()}getOrCreateCollection(e){const t=this.getService(),i=jh.getInstance().getOrCreateCollection(e.getForCache());return i.ttl=t.collections_ttl,"new"!==i.source&&(i.source="memory"),i}getOrCreateResource(e){let t,i=Th.getServiceOrFail(this.type);return t=jh.getInstance().getResource(this.type,e),null===t&&(t=i.new(),t.id=e,jh.getInstance().setResource(t,!1)),"new"!==t.source&&(t.source="memory"),t}createResource(e){let t=Th.getServiceOrFail(this.type).new();return t.id=e,jh.getInstance().setResource(t,!1),t}clearCacheMemory(){return $h(this,void 0,void 0,(function*(){return this.clearCache()}))}clearCache(){return $h(this,void 0,void 0,(function*(){let e=new Ph;return e.applyParams(this),jh.getInstance().deprecateCollections(e.getForCache()),Yh.injectedServices.json_ripper.deprecateCollection(e.getForCache()).then(()=>!0)}))}parseToServer(e){}parseFromServer(e){}delete(e,t){t=Object.assign({},Bh.ParamsResource,t);let i=new Ph;i.applyParams(this,t),i.appendPath(e);let n=new A;return Yh.delete(i.get()).subscribe(t=>{jh.getInstance().removeResource(this.type,e),n.next(),n.complete()},e=>{n.error(e)}),n.asObservable()}all(e={}){let t=Object.assign({},Bh.ParamsCollection,e);t.ttl||0===t.ttl||(t.ttl=this.collections_ttl);let i=new qh;i.applyParams(this,t);let n=this.getOrCreateCollection(i);n.page.number=1*t.page.number;let r=new dm(n);return Object.keys(t.fields).length>0?this.getAllFromServer(i,t,n,r):Nh(n,t.ttl)?setTimeout(()=>r.complete(),0):0===n.cache_last_update?(n.source="new",this.getAllFromLocal(t,i,n).then(()=>{r.next(n),setTimeout(()=>{r.complete()},0)}).catch(()=>{n.setLoaded(!1),this.getAllFromServer(i,t,n,r)})):this.getAllFromServer(i,t,n,r),r.asObservable()}getAllFromLocal(e={},t,i){return $h(this,void 0,void 0,(function*(){if(!Yh.injectedServices.json_ripper.enabled)throw new Error("We cant handle this request");let n;if(i.setLoaded(!1),n="compact"===e.store_cache_method?yield Yh.injectedServices.JsonapiStoreService.getDataObject("collection",t.getForCache()+".compact"):yield Yh.injectedServices.json_ripper.getCollection(t.getForCache(),t.includes),i.fill(n),i.setSourceAndPropagate("store"),Nh(i,e.ttl))return i.setLoadedAndPropagate(!0),void i.setBuildedAndPropagate(!0);throw new Error("Collection is dead!")}))}getAllFromServer(e,t,i,n){i.setLoaded(!1),Yh.get(e.get()).subscribe(r=>{if(t.cachehash)for(const e in r.data){let i=r.data[e];i.id=i.id+t.cachehash}i.fill(r),i.cache_last_update=Date.now(),i.setCacheLastUpdateAndPropagate(),i.setSourceAndPropagate("server"),i.setLoadedAndPropagate(!0),Yh.injectedServices.json_ripper.enabled&&(Yh.injectedServices.json_ripper.saveCollection(e.getForCache(),i,e.includes),"compact"===t.store_cache_method&&Yh.injectedServices.JsonapiStoreService.saveCollection(e.getForCache()+".compact",r)),n.next(i),setTimeout(()=>n.complete(),0)},e=>{i.setLoadedAndPropagate(!0),n.next(i),n.error(e)})}}class tg extends zh{constructor(){super(...arguments),this.attributes={name:"","created-at":"","updated-at":"",entries:[],"recipes-ids":[],"recipes-infos":[],"search-options":{},settings:{},"user-id":"","append-recipes":!1},this.relationships={"groceries-entries":new Hh}}get recipeInfos(){return this.attributes["recipes-infos"]}get entries(){return this.relationships["groceries-entries"]}hasRecipe(e){var t;return null===(t=this.recipeInfos)||void 0===t?void 0:t.map(e=>e.id).includes(e)}guestsForRecipe(e){var t;return+(null===(t=this.recipeInfos.find(t=>t.id===e.id))||void 0===t?void 0:t.guests)}}function ig(e){return t=>t.lift(new ng(e))}class ng{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new rg(e,this.predicate))}}class rg extends h{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const ag=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})(),og=new b(e=>e.complete());function sg(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):og}function cg(e){return t=>0===e?sg():t.lift(new lg(e))}class lg{constructor(e){if(this.total=e,this.total<0)throw new ag}call(e,t){return t.subscribe(new dg(e,this.total))}}class dg extends h{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function ug(e,t){return"function"==typeof t?i=>i.pipe(ug((i,n)=>H(e(i,n)).pipe(D((e,r)=>t(i,e,n,r))))):t=>t.lift(new mg(e))}class mg{constructor(e){this.project=e}call(e,t){return t.subscribe(new pg(e,this.project))}}class pg extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new B(this),n=this.destination;n.add(i),this.innerSubscription=N(e,i),this.innerSubscription!==i&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}new Ze("MIAM_STATUS_ID"),new Ze("MIAM_PROVIDER_ID");const hg=new Ze("MIAM_BASKET_PATH");let gg=(()=>{class e{constructor(){this.EVENT_PAGEVIEW="pageview",this.EVENT_SEARCH="search",this.EVENT_RECIPE_SHOW="recipe.show",this.EVENT_RECIPE_DISPLAY="recipe.display",this.EVENT_RECIPE_ADD="recipe.add",this.EVENT_RECIPE_REMOVE="recipe.remove",this.EVENT_RECIPE_RESET="recipe.reset",this.EVENT_RECIPE_CHANGEGUESTS="recipe.change-guests",this.EVENT_RECIPE_LIKE="recipe.like",this.EVENT_RECIPE_UNLIKE="recipe.unlike",this.EVENT_RECIPE_PRINT="recipe.print",this.EVENT_PERSONAL_RECIPE_CREATE="recipe.personal.create",this.EVENT_PERSONAL_RECIPE_DELETE="recipe.personal.delete",this.EVENT_CATEGORY_SHOW="category.show",this.EVENT_ENTRY_ADD="entry.add",this.EVENT_ENTRY_DELETE="entry.delete",this.EVENT_ENTRY_REPLACE="entry.replace",this.EVENT_ENTRY_CHANGE_QUANTITY="entry.change-quantity",this.EVENT_PAYMENT_STARTED="payment.started",this.EVENT_PAYMENT_CONFIRMED="payment.confirmed",this.EVENT_BASKET_CONFIRMED="basket.confirmed",this.ready$=new dm(!1),this.eventEmitter=new Bc}init(e,t){this._injectPlausible(e),this._injectOptimize(t)}setAbTestKey(e){this.abTestkey=e}event(e,t,i){this.abTestkey&&(i.abTestKey=this.abTestkey),plausible(e,{u:this.url(t),props:i}),this.eventEmitter.emit(JSON.stringify({name:e,path:this.url(t),props:i}))}sendEventWhenReady(e,t,i){if(this.ready$.getValue())return this.event(e,t,i);this.ready$.pipe(Su(e=>e),cg(1)).subscribe(()=>this.event(e,t,i))}url(e){return e?`${location.origin}${e}`:location.href}_injectPlausible(e){const t=document.createElement("script");t.src="miam.test"===e?"https://plausible.io/js/plausible.local.manual.js":"https://plausible.io/js/plausible.manual.js",t.defer=!0,t.setAttribute("data-domain",e),t.onload=()=>{console.log("[Miam] Analytics ready for domain:",e),this.ready$.next(!0)},document.head.appendChild(t)}_injectOptimize(e){if(!e||e.length<0)return void console.info("[Miam] Google Optimize not initialized (no key)",e);const t=document.createElement("script");t.src=`https://www.googleoptimize.com/optimize.js?id=${e}`,t.onload=()=>console.log("[Miam] Optimize ready for key:",e),document.head.appendChild(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var fg,vg=new Uint8Array(16);function _g(){if(!fg&&!(fg="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fg(vg)}for(var yg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,bg=function(e){return"string"==typeof e&&yg.test(e)},wg=[],xg=0;xg<256;++xg)wg.push((xg+256).toString(16).substr(1));var Cg=function(e,t,i){var n=(e=e||{}).random||(e.rng||_g)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(wg[e[t+0]]+wg[e[t+1]]+wg[e[t+2]]+wg[e[t+3]]+"-"+wg[e[t+4]]+wg[e[t+5]]+"-"+wg[e[t+6]]+wg[e[t+7]]+"-"+wg[e[t+8]]+wg[e[t+9]]+"-"+wg[e[t+10]]+wg[e[t+11]]+wg[e[t+12]]+wg[e[t+13]]+wg[e[t+14]]+wg[e[t+15]]).toLowerCase();if(!bg(i))throw TypeError("Stringified UUID is invalid");return i}(n)};const kg={env:"prod",miamAPI:"https://api.miam.tech",miamWeb:"https://miam.tech"};let Ag=(()=>{class e extends eg{constructor(e,t,i){super(),this.miamBasketURL=e,this.http=t,this.analyticsService=i,this.resource=tg,this.type="groceries-lists",this.recipeWasAdded$=new dm([]),this.recipeWasDeleted$=new dm([]),this._list$=new dm(null),this.saveOperationType="",this.listIsFetching=!1,this.register()}get list$(){return this._list$.value||this.listIsFetching?this._list$:this.refreshCurrentList()}takeFirstList(){return this.list$.pipe(ig(e=>!e),cg(1))}recipeIsInList(e){return this._list$.pipe(ig(e=>!e),cg(1),D(t=>t.hasRecipe(e)))}guestsForRecipe(e){var t;return null===(t=this._list$.value)||void 0===t?void 0:t.guestsForRecipe(e)}refreshCurrentList(){console.log("[Miam] refreshing gl"),this.listIsFetching=!0;const e=localStorage.getItem("_miam/listId"),t="current?uniq_token="+Cg(),i=(null==e?void 0:e.toString().match(/^[0-9]+$/))?t+"&merge_with="+e:t;return this.currentSubscription&&this.currentSubscription.unsubscribe(),this.currentSubscription=this.get(i+"&include=groceries-entries").pipe(ig(e=>e.is_loading),um(e=>this.assignList(e))).subscribe(),this._list$}resetList(e={originPath:"",props:{}}){return this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_RESET,e.originPath,e.props),this.takeFirstList().pipe(um(t=>{t.recipeInfos.forEach(t=>{const i=Object.assign({recipe_id:t.id},e.props);this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_REMOVE,e.originPath,i)})}),ug(e=>this.get("reset").pipe(ig(e=>e.is_loading),um(e=>this.assignList(e)))))}appendRecipeToList(e,t,i,n=!1){return this.takeFirstList().pipe(ug(r=>{if(r.hasRecipe(e)){if(t){const n=r.recipeInfos.find(t=>t.id===e);if(n.guests.toString()===t.toString())return this._list$;n.guests=t.toString(),this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_CHANGEGUESTS,i.originPath,i.props)}}else{r.attributes["append-recipes"]=!0;const n={id:e};t&&Object.assign(n,{guests:t}),r.attributes["recipes-infos"]=[n],this.saveOperationType="ADD",this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_ADD,i.originPath,i.props)}return this.saveList(r,n)}))}removeRecipeFromList(e,t){return this.takeFirstList().pipe(ug(i=>i.attributes["recipes-infos"]?(i.attributes["recipes-infos"]=i.attributes["recipes-infos"].filter(t=>t.id!==e),this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_REMOVE,t.originPath,t.props),this.saveOperationType="REMOVE",this.saveList(i)):Au(null)))}updateRecipeGuests(e,t,i){return this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_CHANGEGUESTS,i.originPath,i.props),this.takeFirstList().pipe(ug(i=>i.attributes["recipes-infos"]?(i.attributes["recipes-infos"].find(t=>t.id===e).guests=t,this.saveOperationType="GUESTS",this.saveList(i)):this._list$))}addEntriesFromPicture(e,t=[],i=!1){return this.takeFirstList().pipe(ug(n=>{let r=[kg.miamAPI,"api/v1/groceries-lists",n.id,"add_entries_from_picture"].join("/");i&&(r+="?disable_matching=true");const a=new FormData;return a.append("picture",e),a.append("include",t.join(",")),this.http.patch(r,a).pipe(D(e=>{const t=this.new();return t.fill(e),this._list$.next(t),t}))}))}createTemporaryList(){this.listIsFetching=!0,this.new().save({include:["groceries-entries"]}).subscribe(e=>{this._list$.next(this.afterSave(e)),this.listIsFetching=!1})}afterSave(e){const t=this.new();return t.fill(e),t}saveList(e,t=!1){return delete e.attributes["recipes-ids"],delete e.relationships["groceries-entries"],e.save({include:["groceries-entries"]}).pipe(ig(e=>e.is_loading),um(i=>{this._list$.next(this.afterSave(i)),"ADD"===this.saveOperationType&&this.recipeWasAdded$.next(e.recipeInfos),"REMOVE"===this.saveOperationType&&this.recipeWasDeleted$.next(e.recipeInfos),this.saveOperationType="",t&&window.open(`${this.miamBasketURL}/${e.id}`,"_blank")}),D(e=>e.data))}assignList(e){e.id.toString().match(/^[0-9]+$/)&&(e.attributes["user-id"]?localStorage.removeItem("_miam/listId"):localStorage.setItem("_miam/listId",e.id),this._list$.next(e),this.listIsFetching=!1)}}return e.\u0275fac=function(t){return new(t||e)($e(hg),$e(Wu),$e(gg))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sg(...e){if(1===e.length){const t=e[0];if(c(t))return Eg(t,null);if(l(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Eg(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Eg(e=1===e.length&&c(e[0])?e[0]:e,null).pipe(D(e=>t(...e)))}return Eg(e,null)}function Eg(e,t){return new b(i=>{const n=e.length;if(0===n)return void i.complete();const r=new Array(n);let a=0,o=0;for(let s=0;s<n;s++){const c=H(e[s]);let l=!1;i.add(c.subscribe({next:e=>{l||(l=!0,o++),r[s]=e},error:e=>i.error(e),complete:()=>{a++,a!==n&&l||(o===n&&i.next(t?t.reduce((e,t,i)=>(e[t]=r[i],e),{}):r),i.complete())}}))}})}class Dg extends zh{constructor(){super(...arguments),this.attributes={name:"",quantity:"",unit:"",importance:"",active:!0,"forced-eans":[],"picture-url":""},this.relationships={recipe:new Lh,"quantity-unit":new Lh}}get quantity(){return this.attributes.quantity?parseFloat(this.attributes.quantity).toString():"1"}get picture(){return this.attributes["picture-url"]}}class Ig extends zh{constructor(){super(...arguments),this.attributes={name:"",status:"",description:"",brand:"","product-page":"",image:"","unit-price":"",currency:"","capacity-unit":"","capacity-volume":"","capacity-factor":1,"created-at":"","updated-at":"",promoted:!1,"variable-capacity":!1}}getPrice(){return this.attributes["unit-price"]?parseFloat(this.attributes["unit-price"]):0}set inBasket(e){this._inBasket=e}get inBasket(){return this._inBasket}get capacity(){return this.hasVariableCapacity?this.variableCapacity:this.fixedCapacity}get hasVariableCapacity(){return!(!this.attributes["variable-capacity"]||!this.variableCapacity)}get fixedCapacity(){var e;let t=this.capacityVolume;return this.capacityFactor&&this.capacityFactor>1&&(t=`${this.capacityFactor} x ${t}`),(null===(e=this.capacityUnit)||void 0===e?void 0:e.length)>0&&(t=`${t} ${this.attributes["capacity-unit"]}`),t}get variableCapacity(){return this._variableCapacity}set variableCapacity(e){e&&e.length>0&&(this._variableCapacity=`${e} ${this.capacityUnit}`)}get capacityVolume(){return this.attributes["capacity-volume"]}get capacityFactor(){return this.attributes["capacity-factor"]}get capacityUnit(){return this.attributes["capacity-unit"]}get pftPlages(){return this.attributes["pft-plages"]}}class Og extends zh{constructor(){super(...arguments),this.attributes={name:"",settings:{drive:{enabled:!0,logo:""},delivery:{enabled:!0,logo:""},mobile_warning:!1},"active-items-count":0,distance:0,address:"",latitude:"",longitude:""},this.relationships={supplier:new Lh,items:new Hh}}get references(){return new Intl.NumberFormat("Fr-fr").format(this.attributes["active-items-count"])}get driveEnabled(){const e=this.attributes.settings;return e&&e.drive&&e.drive.enabled}get deliveryEnabled(){const e=this.attributes.settings;return e&&e.delivery&&e.delivery.enabled}}class Pg extends zh{constructor(){super(...arguments),this.attributes={title:"","author-id":"",editable:!1,shared:!1,"catalog-category":!1,"catalog-position":"","recipes-count":"",settings:{}},this.relationships={provider:new Lh,status:new Lh,recipes:new Hh,"shared-suppliers":new Hh}}get title(){return this.attributes.title}get status(){return this.relationships&&this.relationships.status&&this.relationships.status.data}get subtitle(){return this.attributes.settings.subtitle}}var Tg=i("yerO");class Mg extends zh{constructor(){super(...arguments),this.attributes={title:"","ext-id":"","ext-link":"",description:"","number-of-guests":"","ingredients-str":[],"preparation-time":"","preheating-time":"","cooking-time":"","resting-time":"","media-url":"",source:"","informational-page-html":"","filigrane-logo-url":"","informational-sentence":"",difficulty:1,cost:1,suggested:!1,popularity:0,"video-id":"",promoted:!1,shared:"not_shared",editable:!1},this.relationships={ingredients:new Hh,"recipe-steps":new Hh,"recipe-provider":new Lh,"recipe-status":new Lh,tags:new Hh,"recipe-type":new Lh,sponsors:new Hh,packages:new Hh},this.ttl=3600,this.finalTimer=this.attributes["preparation-time"]+this.attributes["preheating-time"]+this.attributes["cooking-time"]+this.attributes["resting-time"]}shallowCopyWithEvents(e,t){const i=new Mg;return Object.assign(i,this),i._eventOrigin=e,i._eventsGroupId=t,i}get eventsGroupId(){return this._eventsGroupId}get eventOrigin(){return this._eventOrigin}get title(){return this.attributes.title}get promoted(){return this.attributes.promoted}get guests(){return this.attributes["number-of-guests"]}get shared(){return"shared"===this.attributes.shared}set shared(e){this.attributes.shared=e?"shared":"not_shared"}get filigraneLogoUrl(){return this.attributes["filigrane-logo-url"]?this.attributes["filigrane-logo-url"]:null}get sponsorLogoUrl(){return this.sponsors.length>0?this.sponsors[0].attributes["logo-url"]:null}get informationalSentence(){return this.attributes["informational-sentence"]}get costLabel(){switch(this.attributes.cost){case 1:return"faible";case 2:return"moyen";case 3:return"\xe9lev\xe9";default:return"moyen"}}get difficulty(){return this.attributes.difficulty}set difficulty(e){this.attributes.difficulty=e}get totalTime(){const e=Object(Tg.normalize)(Object(Tg.sum)(Object(Tg.parse)(this.attributes["preparation-time"]),Object(Tg.parse)(this.attributes["cooking-time"]),Object(Tg.parse)(this.attributes["resting-time"])));return Object(Tg.toMinutes)(e)<10?" < 10 min":this.formatDuration(e)}getPhotos(){return[this.attributes["media-url"]]}get preparationTime(){return this.formatDuration(Object(Tg.normalize)(Object(Tg.parse)(this.attributes["preparation-time"])))}get cookingTime(){return this.formatDuration(Object(Tg.normalize)(Object(Tg.parse)(this.attributes["cooking-time"])))}get restingTime(){return this.formatDuration(Object(Tg.normalize)(Object(Tg.parse)(this.attributes["resting-time"])))}get ingredients(){return this.relationships.ingredients.data.filter(e=>e.attributes.active).sort((e,t)=>e.attributes["forced-eans"]&&e.attributes["forced-eans"].length>0&&!(t.attributes["forced-eans"]&&t.attributes["forced-eans"].length>0)?-1:1)}get sponsors(){var e,t;return null===(t=null===(e=this.relationships)||void 0===e?void 0:e.sponsors)||void 0===t?void 0:t.data}get steps(){return this.relationships["recipe-steps"].data.sort((e,t)=>e.attributes["step-number"]>t.attributes["step-number"]?1:-1)}get status(){return this.relationships&&this.relationships["recipe-status"]&&this.relationships["recipe-status"].data}get recipeType(){return this.relationships&&this.relationships["recipe-type"]&&this.relationships["recipe-type"].data}get modifiedIngredients(){return this.normalizedIngredients.map(e=>Object.assign(Object.assign({},e),{qty:e.qty*(this.modifiedGuests||+this.guests)}))}get normalizedIngredients(){return this._normalizedIngredients||(this._normalizedIngredients=this.ingredients.map(e=>({name:e.attributes.name,qty:+e.quantity/(+this.guests||1),unit:e.attributes.unit,picture:e.picture}))),this._normalizedIngredients}get videoId(){return this.attributes["video-id"]}formatDuration(e){if(!Object(Tg.toMinutes)(e))return"-";if(e.days&&(e.hours+=24*e.days),!e.hours)return`${e.minutes} min`;let t=`${e.hours} h`;return e.minutes&&(t+=`${e.minutes<10?" 0":" "}${e.minutes}`),t}}class Lg extends zh{constructor(){super(...arguments),this.attributes={name:"NoName"},this.relationships={recipes:new Hh}}}class Rg extends zh{constructor(){super(...arguments),this.attributes={name:"",label:""}}get hidden(){return"DELETED"===this.name}get name(){return this.attributes.name}get label(){return this.attributes.label}get icon(){switch(this.attributes.name){case"DRAFT":return"text_snippet";case"SUBMITTED":return"schedule";case"ACTIVE":return"done";case"CHANGE_REQUIRED":return"error_outline";case"INACTIVE":return"highlight_off";default:return"help_outline"}}get color(){switch(this.attributes.name){case"DRAFT":return null;case"SUBMITTED":return"accent";case"ACTIVE":return"primary";case"CHANGE_REQUIRED":return"warn";case"INACTIVE":default:return null}}}class zg extends zh{constructor(){super(...arguments),this.attributes={"step-number":0,title:"",description:"","media-url":null},this.relationships={recipe:new Lh}}}class Fg extends zh{constructor(){super(...arguments),this.attributes={"tag-type-id":"",name:"","icon-url":"","picture-url":""}}get tagType(){return this.attributes["tag-type-id"]}get name(){return this.attributes.name}}class Hg extends zh{constructor(){super(...arguments),this.attributes={name:""}}get name(){return this.attributes.name}}class Bg extends zh{constructor(){super(...arguments),this.attributes={name:"",description:"",logo:"",currency:"\u20ac",settings:{}},this.relationships={"point-of-sales":new Hh,items:new Hh}}get logo(){let e=this.attributes.logo;return e.match(/^assets\//)&&(e=e.replace("assets","https://miam.tech/fr/assets")),e}get currency(){return this.attributes.currency||"\u20ac"}}class jg extends zh{constructor(){super(...arguments),this.attributes={name:"",confirmed:!1,completion:{total:0,found:0},"total-price":0,token:null},this.relationships={"basket-entries":new Hh,"point-of-sale":new Lh}}get redirectUrl(){return this.id?`${kg.miamAPI}/api/v1/baskets/${this.id}/redirect`:null}get completion(){return this.attributes.completion}get entries(){return this.relationships["basket-entries"]&&this.relationships["basket-entries"].data}get totalPrice(){return this.attributes["total-price"]}get token(){return this.attributes.token}}class Ng extends zh{constructor(){super(...arguments),this.replacing=!1,this.candidateIndex=0,this.showCandidates=!1,this.attributes={"selected-item-id":"","learning-factor":1,"basket-entries-items":new Array(0),quantity:1,"recipe-ids":[],"groceries-entry-status":"active"},this.relationships={items:new Hh,"groceries-entry":new Lh}}get entryName(){var e,t;return null===(t=null===(e=this.relationships["groceries-entry"])||void 0===e?void 0:e.data)||void 0===t?void 0:t.attributes.name}get groceriesEntry(){var e;return null===(e=this.relationships["groceries-entry"])||void 0===e?void 0:e.data}get groceriesEntryStatus(){return this.attributes["groceries-entry-status"]}get quantity(){return this.attributes.quantity}set quantity(e){this.attributes.quantity=e}getItems(){return this.relationships.items.data.map(e=>{var t;const i=this.attributes["basket-entries-items"].find(t=>t.item_id==e.id);return e.attributes["unit-price"]=i["unit-price"],e.attributes.currency=i.currency,e.variableCapacity=i.pft_plages&&(null===(t=i.pft_plages[0])||void 0===t?void 0:t.toString()),e})}getGroceriesEntry(){return this.relationships["groceries-entry"].data}setItemsSelection(){this.selectedItem=this.getItems().find(e=>this.attributes["selected-item-id"]&&e.id==this.attributes["selected-item-id"].toString()),this.selectedItem&&(this.candidateItems=this.getItems().filter(e=>e.id!=this.selectedItem.id))}updateTotalPrice(){if(!this.selectedItem)return;const e=this.selectedItem.getPrice();this.totalPrice=(e*this.attributes.quantity).toFixed(2)}selectItem(e){this.attributes["selected-item-id"]=e,this.setItemsSelection(),this.updateTotalPrice(),this.showCandidates=!1}swipeCandidate(e){const t=this.candidateIndex+e;t<0||t>this.candidateItems.length-3||(this.candidateIndex=t)}toggleShowCandidates(){this.showCandidates=!this.showCandidates}}class Vg{constructor(){this._displayMode=!1}static fromRecipe(e,t,i=null,n=null,r=null){const a=new Vg;return Object.assign(a,{id:e.id,isRecipe:!0,title:e.attributes.title,picture:e.attributes["media-url"],description:[`${t} article${t>1?"s":""}`],count:e.modifiedGuests||e.guests,entries:r}),i&&a.description.push(`${i.toFixed(2)}`),null!=n&&(a.price=`${n.toFixed(2)}`),a}static fromBasketEntry(e){const t=new Vg,i=e.relationships.items.data.find(t=>t.id===e.attributes["selected-item-id"].toString()),n=e.attributes["basket-entries-items"].find(t=>t.item_id===e.attributes["selected-item-id"]),r=parseFloat(n["unit-price"]),a=e.relationships["groceries-entry"].data,o=a&&a.attributes["recipe-ids"]&&a.attributes["recipe-ids"].length;return i&&n&&null!=r&&void 0!==r&&Object.assign(t,{id:e.id,record:e,isRecipe:!1,inlineTag:o&&o>1?`Pour ${o} repas`:null,title:e.entryName,picture:i.attributes.image,description:[`${i.attributes.brand?i.attributes.brand:""} ${i.attributes.name} | ${i.capacity}`],price:`${r.toFixed(2)}`,count:e.attributes.quantity}),t}hasEntries(){return this.entries&&(this.entries.found.length>0||this.entries.notFound.length>0||this.entries.oftenDeleted.length>0||this.entries.removed.length>0)}get displayMode(){return this._displayMode}set displayMode(e){e&&(this.description[0]=this.description[0].replace("article","ingr\xe9dient")),this._displayMode=e}}class Zg extends zh{constructor(){super(...arguments),this.attributes={name:"","logo-url":""}}}class Qg extends zh{constructor(){super(...arguments),this.attributes={title:"",image:"",url:"",logo:"",date:"","hidden-css-classes":""},this.relationships={provider:new Lh,packages:new Hh}}get title(){return this.attributes.title}get image(){return this.attributes.image}get url(){return this.attributes.url}get logo(){return this.attributes.logo}get date(){return this.attributes.date?new Date(this.attributes.date):null}get hiddenCssClasses(){return this.attributes["hidden-css-classes"].toString().split(",")}set hiddenCssClasses(e){this.attributes["hidden-css-classes"]=e.join(",")}}class Wg{constructor(e={}){this.user_metadata={preferences:{}},this.forbidProfiling=!1,Object.assign(this,e)}get supplierId(){var e;return void 0===this.app_metadata.env?null:null===(e=this.app_metadata.env[kg.env])||void 0===e?void 0:e.supplier_id}}let Ug=(()=>{class e{constructor(e,t,i,n){this.http=e,this.recipesProvidersService=t,this.toastr=i,this.suppliersService=n,this.isLogged$=new dm(!1),this.preferencesActivated$=new dm(!1),this.userInfo$=new dm(void 0),this.userRoles$=new dm([]),this.userProviders$=new dm(void 0)}get userProvider(){return this.userProviders$.asObservable().pipe(ig(e=>void 0===e))}get userRoles(){return this.userRoles$.asObservable()}get isAdmin(){return this.userRoles$.pipe(ug(e=>Au(e.includes("Admin"))))}setUserProviderManually(e){this.userProviders$.next(e)}toggleIsLogged(e){this.isLogged$.next(e)}setUserInfo(e){const t=new Wg({forbidProfiling:e});return this.http.get(`${kg.miamAPI}/user_info`).pipe(cg(1),ug(e=>(this.userInfo$.next(Object.assign(t,e)),this.initRoles(),this.initProvider())))}resetUserInfo(){this.userInfo$.next(null),this.userRoles$.next([]),this.userProviders$.next(null)}setPreference(e,t){return this.userInfo$.pipe(cg(1),ig(e=>!(null==e?void 0:e.user_metadata)),ug(i=>(i.user_metadata.preferences||(i.user_metadata.preferences={}),i.user_metadata.preferences[e]===t?Au(i):(i.user_metadata.preferences[e]=t,this.http.patch(`${kg.miamAPI}/user_info`,{data:i}).pipe(D(()=>i))))),um(e=>{this.toastr.info("Vos pr\xe9f\xe9rences ont \xe9t\xe9 mises \xe0 jour.",e.first_name?`Merci ${e.first_name} !`:null,{closeButton:!0,progressBar:!0,progressAnimation:"decreasing"}),this.userInfo$.next(e)}))}hasPreference(e){return this.userInfo$.pipe(ig(e=>!(null==e?void 0:e.user_metadata)),D(t=>t.user_metadata.preferences&&!0===t.user_metadata.preferences[e]))}preferenceDefined(e){return this.userInfo$.pipe(ig(e=>!(null==e?void 0:e.user_metadata)),D(t=>t.user_metadata.preferences&&null!=t.user_metadata.preferences[e]))}setFavoriteItems(e){return this.suppliersService.supplier$.asObservable().pipe(ig(e=>!e),cg(1),ug(t=>this.http.post(`${kg.miamAPI}/set_favorite_items`,{item_ext_ids:e,supplier_id:t.id})))}profilingForbidden(){var e;return null===(e=this.userInfo$.value)||void 0===e?void 0:e.forbidProfiling}getUserSupplier(){return this.userInfo$.pipe(ig(e=>!e),ug(e=>e.supplierId?this.suppliersService.get(e.supplierId):Au(null)))}can(e){return this.userInfo$.pipe(D(t=>{var i,n;return null===(n=null===(i=null==t?void 0:t.app_metadata)||void 0===i?void 0:i.permissions)||void 0===n?void 0:n.includes(e)}))}initProvider(){return this.userInfo$.pipe(ug(e=>{var t;const i=(null===(t=null==e?void 0:e.app_metadata)||void 0===t?void 0:t.recipe_provider)||"personal";return this.recipesProvidersService.get(i)}),ig(e=>null==e),um(e=>this.userProviders$.next(e)))}initRoles(){var e,t;this.userRoles$.next((null===(t=null===(e=this.userInfo$.value)||void 0===e?void 0:e.app_metadata)||void 0===t?void 0:t.roles)||[])}}return e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(Gg),$e(r_),$e(rv))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yg=`${kg.miamAPI}/api/v1/`;let Xg=(()=>{class e extends eg{constructor(e,t){super(),this.http=e,this.userService=t,this.resource=Dg,this.type="ingredients",this.register(),t.isLogged$.pipe(ig(e=>!e),cg(1)).subscribe(e=>{e&&(this.fetchReviewedNames(),this.fetchReviewedUnits())})}getReviewedNames(){return this.reviewedNames||this.fetchReviewedNames(),this.reviewedNames}getReviewedUnits(){return this.reviewedUnits||this.fetchReviewedUnits(),this.reviewedUnits}fetchReviewedNames(){return this.http.get(`${Yg}ingredients-definitions/reviewed_names`).subscribe(e=>{this.reviewedNames=e})}fetchReviewedUnits(){return this.http.get(`${Yg}quantity-units/reviewed_names`).subscribe(e=>{this.reviewedUnits=[...e.map(e=>e.name)]})}isReviewedName(e){return this.reviewedNames?Au(this.reviewedNames.some(t=>t===e)):this.http.get(`${Yg}ingredients-definitions/reviewed_names`).pipe(ug(t=>(this.reviewedNames=t,Au(this.reviewedNames.some(t=>t===e)))))}isReviewedUnit(e){return this.reviewedUnits?Au(this.reviewedUnits.some(t=>t.toLowerCase()===e.toLowerCase())):this.http.get(`${Yg}quantity-units/reviewed_names`).pipe(ug(t=>(this.reviewedUnits=[...t.map(e=>e.name)],Au(this.reviewedUnits.some(t=>t.toLowerCase()===e.toLowerCase())))))}formatIngredients(e){return Sg(e.map(e=>this.get(`from_s?ingredient_str=${e}`)))}createOrUpdateIngredients(e,t){const i=[...e.relationships.ingredients.data],n=[];return t.forEach(t=>{if(t.id){const e=i.findIndex(e=>e.id===t.id),r=i[e].attributes;(r.name!==t.attributes.name||r.unit!==t.attributes.unit||r.quantity!==t.attributes.quantity||r.importance!==t.attributes.importance)&&(i[e].attributes=Object.assign(Object.assign({},i[e].attributes),{name:t.attributes.name,unit:t.attributes.unit,quantity:t.attributes.quantity,importance:t.attributes.importance,"picture-url":t.attributes["picture-url"]}),n.push(i[e]))}else{const i=this.new();delete i.id,i.attributes=Object.assign(Object.assign({},i.attributes),{name:t.attributes.name,unit:t.attributes.unit,quantity:""+t.attributes.quantity,importance:t.attributes.importance,"picture-url":t.attributes["picture-url"]}),i.addRelationship(e,"recipe"),n.push(i)}}),n}upsertIngredientList(e){return Sg(e.map(e=>e.save()))}deleteIngredientList(e){return Sg(e.map(e=>this.delete(e)))}}return e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(Ug))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gg=(()=>{class e extends eg{constructor(){super(),this.resource=Lg,this.type="recipe-providers",this.providerList$=new dm(null),this.register(),this.all().pipe(ig(e=>e.is_loading),cg(1)).subscribe(e=>{this.providerList$.next(e.data)})}get providerList(){return this.providerList$.asObservable().pipe(ig(e=>null==e))}init(e){return this.register(),this.loadCachedProvider(e).toPromise()}getCached(){return this.provider}loadCachedProvider(e){return Au(e).pipe(ug(t=>this.get(e)),um(e=>this.provider=e))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qg=(()=>{class e extends eg{constructor(){super(),this.resource=Rg,this.type="recipe-statuses",this.active$=new dm(null),this.inactive$=new dm(null),this.submitted$=new dm(null),this.draft$=new dm(null),this.changeRequired$=new dm(null),this.register(),this.all().pipe(ig(e=>e.is_loading)).subscribe(e=>{this.active$.next(e.data.find(e=>"ACTIVE"===e.name)),this.inactive$.next(e.data.find(e=>"INACTIVE"===e.name)),this.submitted$.next(e.data.find(e=>"SUBMITTED"===e.name)),this.draft$.next(e.data.find(e=>"DRAFT"===e.name)),this.changeRequired$.next(e.data.find(e=>"CHANGE_REQUIRED"===e.name))})}get active(){return this.active$.asObservable().pipe(ig(e=>null==e))}get inactive(){return this.inactive$.asObservable().pipe(ig(e=>null==e))}get submitted(){return this.submitted$.asObservable().pipe(ig(e=>null==e))}get draft(){return this.draft$.asObservable().pipe(ig(e=>null==e))}get changeRequired(){return this.changeRequired$.asObservable().pipe(ig(e=>null==e))}get activeValue(){return this.active$.getValue()}get inactiveValue(){return this.inactive$.getValue()}get submittedValue(){return this.submitted$.getValue()}get draftValue(){return this.draft$.getValue()}get changeRequiredValue(){return this.changeRequired$.getValue()}getCached(){return this.status}loadCachedStatus(e){return Au(e).pipe(ug(t=>this.get(e)),um(e=>this.status=e))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Jg=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r},Kg=function(e){return"symbol"==typeof e||gp(e)&&"[object Symbol]"==Pm(e)},$g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ef=/^\w*$/,tf=function(e,t){if(lp(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Kg(e))||ef.test(e)||!$g.test(e)||null!=t&&e in Object(t)};function nf(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],a=i.cache;if(a.has(r))return a.get(r);var o=e.apply(this,n);return i.cache=a.set(r,o)||a,o};return i.cache=new(nf.Cache||Gm),i}nf.Cache=Gm;var rf,af,of,sf,cf,lf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,df=/\\(\\)?/g,uf=(rf=nf((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(lf,(function(e,i,n,r){t.push(n?r.replace(df,"$1"):i||e)})),t}),(function(e){return 500===af.size&&af.clear(),e})),af=rf.cache,rf),mf=km?km.prototype:void 0,pf=mf?mf.toString:void 0,hf=function e(t){if("string"==typeof t)return t;if(lp(t))return Jg(t,e)+"";if(Kg(t))return pf?pf.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i},gf=function(e){return null==e?"":hf(e)},ff=function(e,t){return lp(e)?e:tf(e,t)?[e]:uf(gf(e))},vf=function(e){if("string"==typeof e||Kg(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},_f=function(e,t){for(var i=0,n=(t=ff(t,e)).length;null!=e&&i<n;)e=e[vf(t[i++])];return i&&i==n?e:void 0},yf=function(e,t,i){var n=null==e?void 0:_f(e,t);return void 0===n?i:n},bf=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},wf=function(e,t){return t.length<2?e:_f(e,function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var a=Array(r);++n<r;)a[n]=e[n+t];return a}(t,0,-1))},xf=Array.prototype.splice,Cf=function(e,t){for(var i=e?t.length:0,n=i-1;i--;){var r=t[i];if(i==n||r!==a){var a=r;Cp(r)?xf.call(e,r,1):(s=ff(s=r,o=e),null==(o=wf(o,s))||delete o[vf(bf(s))])}}var o,s;return e},kf=function(e,t){if(e!==t){var i=void 0!==e,n=null===e,r=e==e,a=Kg(e),o=void 0!==t,s=null===t,c=t==t,l=Kg(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||n&&o&&c||!i&&c||!r)return 1;if(!n&&!a&&!l&&e<t||l&&i&&r&&!n&&!a||s&&i&&r||!o&&r||!c)return-1}return 0},Af=km?km.isConcatSpreadable:void 0,Sf=function(e){return lp(e)||bp(e)||!!(Af&&e&&e[Af])},Ef=function e(t,i,n,r,a){var o=-1,s=t.length;for(n||(n=Sf),a||(a=[]);++o<s;){var c=t[o];i>0&&n(c)?i>1?e(c,i-1,n,r,a):cp(a,c):r||(a[a.length]=c)}return a},Df=function(e){return null!=e&&e.length?Ef(e,1):[]},If=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)},Of=Math.max,Pf=function(e,t,i){return t=Of(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,a=Of(n.length-t,0),o=Array(a);++r<a;)o[r]=n[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=n[r];return s[t]=i(o),If(e,this,s)}},Tf=function(e){return e},Mf=Date.now,Lf=(of=th?function(e,t){return th(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:Tf,sf=0,cf=0,function(){var e=Mf(),t=16-(e-cf);if(cf=e,t>0){if(++sf>=800)return arguments[0]}else sf=0;return of.apply(void 0,arguments)}),Rf=function(e){return Lf(Pf(e,void 0,Df),e+"")},zf=Rf((function(e,t){var i=null==e?0:e.length,n=function(e,t){for(var i=-1,n=t.length,r=Array(n),a=null==e;++i<n;)r[i]=a?void 0:yf(e,t[i]);return r}(e,t);return Cf(e,Jg(t,(function(e){return Cp(e,i)?+e:e})).sort(kf)),n}));let Ff=(()=>{class e extends eg{constructor(){super(),this.resource=zg,this.type="recipe-steps",this.register()}formToStepsMapper(e,t){const i=[...e.relationships["recipe-steps"].data],n=[];return t.forEach((t,r)=>{if(t.id){const e=i.findIndex(e=>e.id===t.id);i[e].attributes=Object.assign(Object.assign({},i[e].attributes),{"step-number":r,description:t.attributes.description}),n.push(zf(i,[e])[0])}else n.push(this.newStep(t,e,r))}),n}newStep(e,t,i){const n=this.new();return n.addRelationship(t,"recipe"),n.attributes=Object.assign(Object.assign({},n.attributes),{"step-number":i,description:e.attributes.description}),delete n.id,n}createOrUpdateRelatedSteps(e){return Sg(e.map(e=>e.save()))}deleteStepList(e){return Sg(e.map(e=>this.delete(e)))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Hf=(()=>{class e extends eg{constructor(){super(),this.resource=Hg,this.type="recipe-types",this.register(),this.types=new dm(null),this.init()}init(){this.all().pipe(um(e=>this.types.next(e.data))).toPromise()}getTypes(){return this.types.asObservable()}getType(e){return this.types[e]}getTypeByName(e){return e=e.toLowerCase().trim(),this.types.value.filter(t=>t.attributes.name.toLowerCase().trim()===e)[0]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bf extends u{constructor(e,t){super()}schedule(e,t=0){return this}}class jf extends Bf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,n=!1;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Nf=(()=>{class e{constructor(t,i=e.now){this.SchedulerAction=t,this.now=i}schedule(e,t=0,i){return new this.SchedulerAction(this,e).schedule(i,t)}}return e.now=()=>Date.now(),e})();class Vf extends Nf{constructor(e,t=Nf.now){super(e,()=>Vf.delegate&&Vf.delegate!==this?Vf.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Vf.delegate&&Vf.delegate!==this?Vf.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const Zf=new Vf(jf);function Qf(e,t=Zf){return i=>i.lift(new Wf(e,t))}class Wf{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Uf(e,this.dueTime,this.scheduler))}}class Uf extends h{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Yf,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Yf(e){e.debouncedNext()}class Xf extends zh{constructor(){super(...arguments),this.attributes={"user-id":"","is-past":!0,"recipe-id":""},this.relationships={recipe:new Lh}}get isPast(){return this.attributes["is-past"]}set isPast(e){this.attributes["is-past"]=e}toggle(){this.isPast=!this.isPast}}let Gf=(()=>{class e extends eg{constructor(e,t){super(),this.userService=e,this.analyticsService=t,this.resource=Xf,this.type="recipe-likes",this.activeRecipeLikes=new Map,this.MAX_RECIPE_LIKES_BEFORE_CLEAN=200,this.cleanUnobservedLikesIfNecessary=new Bc,this.isCleaning=new dm(!1),this.subscriptions=[],this.register(),this.subscriptions.push(this.cleanUnobservedLikesIfNecessary.pipe(um(e=>this.isCleaning.next(!0)),Qf(100)).subscribe(e=>{this.doCleanUnobservedLikesIfNecessary()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}getLike(e){return this.addLikeToActivesIfNecessary(e),this.activeRecipeLikes.get(e)}updateLike(e,t,i){t.save().subscribe(()=>{this.analyticsService.sendEventWhenReady(t.isPast?this.analyticsService.EVENT_RECIPE_UNLIKE:this.analyticsService.EVENT_RECIPE_LIKE,i.originPath,i.props),this.activeRecipeLikes.get(e).next(t)})}addLikeToActivesIfNecessary(e){this.activeRecipeLikes.get(e)||(this.activeRecipeLikes.set(e,new dm(this.new())),this.fetchLikesOfRecipe(e).subscribe(t=>{t.data[0]&&this.activeRecipeLikes.get(e)&&this.activeRecipeLikes.get(e).next(t.data[0])}))}removeLikeFromActivesIfNecessary(e){const t=this.activeRecipeLikes.get(e);t&&0===t.observers.length&&this.activeRecipeLikes.delete(e)}doCleanUnobservedLikesIfNecessary(){if(console.debug("[Miam] will check cleaning",this.activeRecipeLikes.size),this.activeRecipeLikes.size<this.MAX_RECIPE_LIKES_BEFORE_CLEAN)return void this.isCleaning.next(!1);console.debug("[Miam] will clean unobserved recipes like");const e=[];for(let[t,i]of this.activeRecipeLikes)i&&0===i.observers.length&&e.push(t);e.forEach(e=>this.activeRecipeLikes.delete(e)),this.isCleaning.next(!1)}addLikesToRecipes(e){return this.userService.isLogged$.value?this.isCleaning.asObservable().pipe(ig(e=>e),cg(1),ug(t=>this.afterCLeanAddLikesToRecipes(e))):Au(null)}afterCLeanAddLikesToRecipes(e){return 0==(e=e.filter(e=>!this.activeRecipeLikes.has(e.id))).length?Au(null):this.all({page:{size:20,number:1},remotefilter:{recipe_id:e.map(e=>e.id).join(),is_past:"true,false"}}).pipe(ig(e=>e.is_loading),um(t=>{t.data.forEach(t=>{this.activeRecipeLikes.set(t.attributes["recipe-id"].toString(),new dm(t)),e=e.filter(e=>e.id!==t.attributes["recipe-id"].toString())}),e.forEach(e=>{this.activeRecipeLikes.set(e.id,new dm(this.new()))})}))}fetchLikesOfRecipe(e){return this.all({remotefilter:{recipe_id:e,is_past:"true,false"}}).pipe(ig(e=>e.is_loading))}}return e.\u0275fac=function(t){return new(t||e)($e(Ug),$e(gg))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qf=(()=>{class e{constructor(e){this.http=e,this.suggestion_url=`${kg.miamAPI}/api/events/recipes`,this.ORIGIN_SUGGESTION="suggestion",this.ORIGIN_CATALOG="catalog",this.ACTION_PROPOSED="proposed",this.ACTION_SHOWN="shown",this.ACTION_DISPLAYED="displayed",this.ACTION_ADDED="added",this.ACTION_PUSHED="pushed",this.eventQueue=[],this.willAlreadyProcess=!1,this.QUEUE_REFRESH_TIME_MS=2e3}enqueueEvent(e,t){e.eventOrigin&&(this.eventQueue.push({recipe_id:e.id,origin:e.eventOrigin,action:t,group_id:e.eventsGroupId}),this.willAlreadyProcess||(this.willAlreadyProcess=!0,setTimeout(()=>{this.processQueue()},this.QUEUE_REFRESH_TIME_MS)))}processQueue(){this.willAlreadyProcess=!1;const e=this.eventQueue.splice(0,this.eventQueue.length);this.http.post(`${this.suggestion_url}/batch`,{batch:e}).subscribe()}sendEvent(e,t){if(!e.eventOrigin)return;let i=`${this.suggestion_url}/${e.id}/${e.eventOrigin}/${t}`;e.eventsGroupId&&(i+=`?group_id=${e.eventsGroupId}`),this.http.post(i,{}).subscribe()}}return e.\u0275fac=function(t){return new(t||e)($e(Wu))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Jf extends h{notifyNext(e,t,i,n,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Kf extends h{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function $f(e,t,i,n,r=new Kf(e,i,n)){if(!r.closed)return t instanceof b?t.subscribe(r):z(t)(r)}const ev={};function tv(...e){let t,i;return E(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0]),Y(e,i).lift(new iv(t))}class iv{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new nv(e,this.resultSelector))}}class nv extends Jf{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(ev),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add($f(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const n=this.values,r=this.toRespond?n[i]===ev?--this.toRespond:this.toRespond:0;n[i]=t,0===r&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}let rv=(()=>{class e extends eg{constructor(e){super(),this.http=e,this.resource=Bg,this.type="suppliers",this.supplier$=new dm(null),this.url=`${kg.miamAPI}/api/v1`,this.register()}loadSupplier(e){return this.supplier$.value&&this.supplier$.value.id===e||this.get(e).pipe(ig(e=>e.is_loading),um(e=>this.supplier$.next(e))).subscribe(),this.supplier$}getSupplierPointOfSales(e){return this.http.get(`${this.url}/point-of-sales?filter[supplier_id]=${e}`).pipe(D(e=>e.data))}notifyBasketUpdated(e,t,i=null){if(!this.supplier$.value)return Au(null);const n=`${this.url}/suppliers/${this.supplier$.value.id}/webhooks/basket_updated`,r={token:e,status:t};return i&&(r.total_price=i),this.http.post(n,r)}}return e.\u0275fac=function(t){return new(t||e)($e(Wu))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class av{constructor(e={}){Object.assign(this,e)}}let ov=(()=>{class e extends eg{constructor(){super(),this.resource=Zg,this.type="sponsors",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),sv=(()=>{class e extends eg{constructor(e){super(),this.suppliersService=e,this.resource=Og,this.type="point-of-sales",this.pos$=new dm(null),this.register()}loadPos(e){return this.pos$.value&&this.pos$.value.id===e||this.get(e,{include:["supplier"]}).pipe(ig(e=>e.is_loading),um(e=>this.pos$.next(e))).subscribe(),this.pos$}isPosValid(){return this.pos$.pipe(D(e=>{var t,i,n;return!!(null===(n=null===(i=null===(t=null==e?void 0:e.relationships)||void 0===t?void 0:t.supplier)||void 0===i?void 0:i.data)||void 0===n?void 0:n.id)}))}loadPosWithExtId(e,t){return this.all({remotefilter:{"ext-id":e,"supplier-id":t},include:["supplier"]}).pipe(ig(e=>e.is_loading),um(e=>{e.data.length>0&&this.pos$.next(e.data[0])})).subscribe(),this.pos$}}return e.\u0275fac=function(t){return new(t||e)($e(rv))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const cv=`${kg.miamAPI}/api/v1/`;let lv=(()=>{class e extends eg{constructor(e,t,i){super(),this.http=e,this.providerService=t,this.statusService=i,this.resource=Pg,this.type="packages",this.register()}categories_for(e){return this.statusService.active.pipe(ug(t=>this.all({remotefilter:{category_for:e.join(","),status:t.id,user_preferences:!0},sort:["catalog_position"]})))}unshareWithSupplier(e,t){return this.http.delete(cv+`packages/${e.id}/suppliers/${t.id}`)}shareWithSupplierOrUpdate(e,t,i,n,r){const a=Object.assign(Object.assign(Object.assign({},null!==i?{category:i}:{}),null!==n?{catalog_position:n}:{}),null!==r?{edit_content:r}:{}),o=cv+`packages/${e.id}/suppliers/${t.id}`;return e.attributes.shared?this.http.patch(o,a):this.http.post(o,a)}removeRecipeFromPackage(e,t){return this.http.delete(cv+`packages/${e.id}/recipes/${t.id}`)}addRecipeToPackage(e,t){return this.http.post(cv+`packages/${e.id}/recipes/${t.id}`,{})}}return e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(Gg),$e(qg))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const dv=`${kg.miamAPI}/api/v1/`;let uv=(()=>{class e extends eg{constructor(e){super(),this.http=e,this.resource=Fg,this.type="tags",this.register()}autocomplete(e){return this.http.get(dv+`tags/autocomplete/${e}`)}}return e.\u0275fac=function(t){return new(t||e)($e(Wu))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mv=`${kg.miamAPI}/api/v1/`;let pv=(()=>{class e extends eg{constructor(e,t,i,n,r,a,o,s,c,l,d,u,m,p){super(),this.http=e,this.providerService=t,this.statusService=i,this.typeService=n,this.suppliersService=r,this.posService=a,this.listsService=o,this.ingredientsService=s,this.recipeStepsService=c,this.recipeEventsService=l,this.sponsorService=d,this.packageService=u,this.tagsService=m,this.recipeLikesService=p,this.resource=Mg,this.type="recipes",this.displayedRecipe$=new dm(null),this.displayHelper$=new dm(!1),this.displayedRecipeChanged=new Bc,this.hidden=new Bc,this.suggestionsPrimaryButtonActions={display:!0,addToBasket:!0},this.recipesPrimaryButtonActions={display:!0,addToBasket:!0},this.reloadRecipes$=new dm(!1),this.difficultyLevels=[{value:1,label:"Chef d\xe9butant"},{value:2,label:"Chef interm\xe9diaire"},{value:3,label:"Top chef"}],this.inclusions=["ingredients","recipe-steps","recipe-status","recipe-type","sponsors","recipe-provider","tags"],this.randomRecipeCount=1,this.recipes=[],this.register(),this.intRandomSeed()}loadRecipes(){return this.listsService.takeFirstList().pipe(ug(e=>e?0===e.attributes["recipes-infos"].length?Au([]):Sg(e.attributes["recipes-infos"].map(e=>this.getOrFetch(e.id).pipe(um(t=>{t.modifiedGuests=e.guests,this.recipes.push(t)})))):Au(null)))}getOrCreate(e,t=!1){const i=this.providerService.getCached(),n=this.createExtId(e.title);return this.getRecipe(i.id,n).pipe(ig(e=>e.is_loading),ug(t=>function(e,t=og,i=og){return n=()=>e()?t:i,new b(e=>{let t;try{t=n()}catch(i){return void e.error(i)}return(t?H(t):sg()).subscribe(e)});var n}(()=>!!t.data.length,Au(t.data[0]),Au(void 0).pipe(ug(t=>this.create(n,e))))),ug(e=>this.listsService.appendRecipeToList(e.id,e.modifiedGuests,{originPath:"order-button",props:{recipe_id:e.id}},t)))}filter(e,t,i=null,n=!1){let r;const a=Object.assign({},this.buildRemoteFilters(e));return n&&Object.assign(a,{random:this.randomSeed}),this.all({page:t,remotefilter:a,include:this.inclusions}).pipe(ig(e=>e.is_loading),ug(e=>(r=e.data,i&&i>0&&r.forEach(e=>e.modifiedGuests=i),this.recipeLikesService.addLikesToRecipes(r))),D(()=>r))}filterCount(e){const t=Object.assign({},this.buildRemoteFilters(e));return this.all({remotefilter:t,page:{number:1,size:1}}).pipe(ig(e=>e.is_loading),D(e=>{var t;return e.data.length?null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.total_resources:0}))}difficultyLabel(e){var t;return(null===(t=this.difficultyLevels.find(t=>t.value===e))||void 0===t?void 0:t.label)||this.difficultyLevels[0].label}buildRemoteFilters(e){var t,i;const n=this.buildRemoteFilter(e.difficulty,"-"),r=null===(t=this.buildRemoteFilter(e.cost,"-"))||void 0===t?void 0:t.split("-"),a=this.buildRemoteFilter(e.time,",");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(null==n?void 0:n.length)>0?{difficulty:n+",eq"}:{}),2===(null==r?void 0:r.length)?{computed_cost:r[0]+",gt,"+r[1]+",lt"}:{}),(null==a?void 0:a.length)>0?{"total-time":a}:{}),(null===(i=e.additionalFilters)||void 0===i?void 0:i.filters)?e.additionalFilters.filters:{}),e.search?{search:e.search}:{})}buildRemoteFilter(e,t){if(!e)return;let i="";for(const n of e)n.value&&(i.length>0&&(i+=t),i+=n.name);return i}getRandom(){return this.randomRecipeCount++,this.filter({reviewed:!0,exclude_no_picture:!0},{number:this.randomRecipeCount,size:1},null,!0)}getSuggestion(e,t,i,n){return tv([this.suppliersService.supplier$,this.posService.pos$]).pipe(ig(e=>!e[0]),Qf(100),ug(r=>{let a=`supplier_id=${r[0].id}`;return r[1]&&(a=`supplier_id=${r[0].id}&pos_id=${r[1].id}`),this.http.post(mv+`recipes/suggestions?${a}&include=ingredients,recipe-steps,sponsors,recipe-type,tags`,{shelf_ingredients_ids:e,current_ingredients_ids:t,basket_ingredients_ids:i,group_id:n})}),D(e=>{const t=this.newCollection();return t.fill(e),t.data}))}getPricing(e,t,i=null){if(!e)return Au(null);let n=mv+`recipes/${e}/pricing?point_of_sale_id=${t}`;return i&&(n+=`&serves=${i}`),this.http.get(n).pipe(D(e=>new av(e)))}createFromUrl(e,t){if(!e||!t)throw new Error("No source or recipe link provided");return this.http.post(`${kg.miamAPI}/api/v1/recipes/from_url`,{source:e,ext_link:t}).pipe(D(e=>e.data))}display(e,{previewAllowed:t=!0,guests:i=null,previewMode:n=!1},r){e&&this.get(e,{include:["ingredients","recipe-steps","recipe-type","sponsors","tags"]}).pipe(ig(e=>e.is_loading)).subscribe(e=>{this.displayObject(e,{previewAllowed:t,guests:i,previewMode:n},r)})}displayObject(e,{previewAllowed:t=!0,guests:i=null,previewMode:n=!1,wasAdded:r=!1},a){e&&(e.modifiedGuests=i||+e.guests,this.displayedRecipe$.next({previewAllowed:t,recipe:e,previewMode:n,wasAdded:r,eventTrace:a}),n||this.recipeEventsService.sendEvent(e,this.recipeEventsService.ACTION_DISPLAYED))}openBasket(e){this.displayedRecipe$.next({previewAllowed:!0,recipe:null,previewMode:!0,wasAdded:!0,force:!0,eventTrace:e})}toggleHelper(){this.hide(),this.displayHelper$.next(!this.displayHelper$.value)}hide(){this.displayedRecipe$.next(null),this.hidden.emit(!0)}removeTagFromRecipe(e,t){return this.http.delete(mv+`recipes/${e.id}/tags/${t.id}`)}addTagToRecipe(e,t){return this.http.post(mv+`recipes/${e.id}/tags/${t.id}`,{})}setRecipesPrimaryButtonActions(e=!0,t=!0){this.recipesPrimaryButtonActions={display:e,addToBasket:t},this.suggestionsPrimaryButtonActions={display:e,addToBasket:t},this.reloadAllRecipes()}setSuggestionsPrimaryButtonActions(e=!0,t=!0){this.suggestionsPrimaryButtonActions={display:e,addToBasket:t},this.reloadAllRecipes()}getOrFetch(e){const t=this.recipes.find(t=>t.id===e);return t?Au(t):this.get(e,{include:this.inclusions}).pipe(ig(e=>e.is_loading))}create(e,t){const i=this.new();return Object.assign(i.attributes,t),i.addRelationship(this.providerService.getCached(),"recipe-provider"),i.addRelationship(this.statusService.getCached(),"recipe-status"),i.addRelationship(this.typeService.getTypeByName("plat principal"),"recipe-type"),i.attributes.source=null,i.attributes.description=null,i.attributes["ext-id"]=e,i.save().pipe(ig(e=>e.is_loading),D(e=>e.data))}createExtId(e){return`${this.providerService.getCached().attributes.name.slice(0,3).toUpperCase()}-${e.replace(/\s+/gm,"-").toLowerCase()}`}getRecipe(e,t){return this.all({beforepath:`recipe-providers/${e}`,remotefilter:{"ext-id":t,active:"true,false"}})}intRandomSeed(){this.randomSeed=Date.now()}reloadAllRecipes(){this.reloadRecipes$.next(!0)}}return e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(Gg),$e(qg),$e(Hf),$e(rv),$e(sv),$e(Ag),$e(Xg),$e(Ff),$e(qf),$e(ov),$e(lv),$e(uv),$e(Gf))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),hv=(()=>{class e extends eg{constructor(){super(),this.resource=Ig,this.type="items",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gv=(()=>{class e extends eg{constructor(e){super(),this.itemsService=e,this.resource=Ng,this.type="basket-entries",this.register()}}return e.\u0275fac=function(t){return new(t||e)($e(hv))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class fv extends zh{constructor(){super(...arguments),this.attributes={name:"","capacity-volume":1,"capacity-unit":"","capacity-factor":"",status:"active","recipe-ids":[]}}get status(){return this.attributes.status}set status(e){this.attributes.status=e}get name(){return this.attributes.name}set name(e){this.attributes.name=e}get recipesIds(){return this.attributes["recipe-ids"]}get volume(){return parseFloat(this.attributes["capacity-volume"].toString())}set volume(e){this.attributes["capacity-volume"]=e}get unit(){return this.attributes["capacity-unit"]}set unit(e){this.attributes["capacity-unit"]=e}}let vv=(()=>{class e extends eg{constructor(){super(),this.resource=fv,this.type="groceries-entries",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var _v=function(e){return e==e&&!Tm(e)},yv=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}},bv=function(e,t){return null!=e&&t in Object(e)},wv=function(e,t){return null!=e&&function(e,t,i){for(var n=-1,r=(t=ff(t,e)).length,a=!1;++n<r;){var o=vf(t[n]);if(!(a=null!=e&&i(e,o)))break;e=e[o]}return a||++n!=r?a:!!(r=null==e?0:e.length)&&kp(r)&&Cp(o,r)&&(lp(e)||bp(e))}(e,t,bv)},xv=function(e){return"function"==typeof e?e:null==e?Tf:"object"==typeof e?lp(e)?(r=e[1],tf(n=e[0])&&_v(r)?yv(vf(n),r):function(e){var t=yf(e,n);return void 0===t&&t===r?wv(e,n):$p(r,t,3)}):1==(i=function(e){for(var t=Hp(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,_v(r)]}return t}(t=e)).length&&i[0][2]?yv(i[0][0],i[0][1]):function(e){return e===t||function(e,t,i,n){var r=i.length,a=r;if(null==e)return!a;for(e=Object(e);r--;){var o=i[r];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<a;){var s=(o=i[r])[0],c=e[s],l=o[1];if(o[2]){if(void 0===c&&!(s in e))return!1}else{var d,u=new Jm;if(!(void 0===d?$p(l,c,3,void 0,u):d))return!1}}return!0}(e,0,i)}:function(e){return tf(e)?(t=vf(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return _f(t,e)}}(e);var t}(e);var t,i,n,r},Cv=function(e){return e!=e},kv=function(e,t){return!(null==e||!e.length)&&function(e,t,i){return t==t?function(e,t,i){for(var n=-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t):function(e,t,i,n){for(var r=e.length,a=-1;++a<r;)if(t(e[a],a,e))return a;return-1}(e,Cv)}(e,t)>-1},Av=Zp&&1/ap(new Zp([,-0]))[1]==1/0?function(e){return new Zp(e)}:function(){},Sv=function(e){return gp(e)&&Fp(e)},Ev=function(e,t){return Lf(Pf(e,void 0,Tf),e+"")}((function(e){var t=bf(e);return Sv(t)&&(t=void 0),function(e,t,i){var n=-1,r=kv,a=e.length,o=!0,s=[],c=s;if(a>=200){var l=t?null:Av(e);if(l)return ap(l);o=!1,r=tp,c=new $m}else c=t?[]:s;e:for(;++n<a;){var d=e[n],u=t?t(d):d;if(d=0!==d?d:0,o&&u==u){for(var m=c.length;m--;)if(c[m]===u)continue e;t&&c.push(u),s.push(d)}else r(c,u,undefined)||(c!==s&&c.push(u),s.push(d))}return s}(Ef(e,1,Sv,!0),xv(t))}));let Dv=(()=>{class e extends eg{constructor(e,t,i,n,r,a,o){super(),this.http=e,this.basketEntriesService=t,this.listsService=i,this.groceriesEntriesService=n,this.posService=r,this.recipesService=a,this.analyticsService=o,this.resource=jg,this.type="baskets",this._basket$=new dm(null),this._basketPreview$=new dm(null),this.basketStats$=new dm(null),this.basketIsFetching=!1,this.basketPreviewIsCalculating=!1,this.basketInitCalled=!1,this._entries$=new dm([]),this.register()}get basket$(){return this._basket$.value||this.basketIsFetching||(this.basketIsFetching=!0,this.initBasket()),this._basket$}get basketPreview$(){return this._basketPreview$.value||this.basketPreviewIsCalculating||(this.basketPreviewIsCalculating=!0,this.initBasket()),this._basketPreview$}fetchForListAndPos(e,t){if(!e||!t)return Au(null);let i=[kg.miamAPI,"api/v1/groceries-lists",e,"baskets"].join("/");return i=`${i}?filter[point_of_sale_id]=${t}`,this.http.get(i).pipe(ig(e=>e.is_loading),D(e=>{const t=this.newCollection();return t.fill(e),t.data[0]}))}initBasket(){this.basketInitCalled||(this.basketInitCalled=!0,this.loadBasket().subscribe(),this.loadPreview().subscribe())}reloadBasket(){return this.loadBasket().pipe(cg(1))}confirmBasket(e){let t;return console.log("[Miam] Confirm basket",t),this.basket$.pipe(ig(e=>!e),cg(1),um(t=>{t.totalPrice>0&&this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_PAYMENT_CONFIRMED,null,this.eventProps(t,e))}),ug(e=>(console.log("[Miam] Save basket with confirmed=true"),e.attributes.confirmed=!0,e.save())),ug(i=>(t=this.new(),t.fill(i),console.log("[Miam] send push analytics event if > 0:",t.totalPrice,t),t.totalPrice>0&&t.token&&this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_BASKET_CONFIRMED,null,this.eventProps(t,e)),this._basket$.next(void 0),this.listsService.resetList())),ug(()=>this._basket$),ig(e=>!e),D(()=>t))}eventProps(e,t){return{pos_id:this.posService.pos$.getValue().id,pos_name:this.posService.pos$.getValue().attributes.name,basket_id:e.id,miam_amount:e.totalPrice,total_amount:t}}basketEntries(){return this._entries$}activeBasketEntries(){return this.basketEntries().pipe(D(e=>e.filter(e=>"active"===e.groceriesEntryStatus)))}removeBasketEntries(e){if(!this._entries$.value)return;const t=e.map(e=>{const t=this._entries$.value.find(t=>t.id===e.id);if(!t||!e.qty)return Au(null);const i=t.quantity-e.qty;return i>=1?(t.quantity=i,t.save()):(t.quantity=1,t.groceriesEntry.status="deleted",Sg([t.save(),t.groceriesEntry.save()]))});return Sg(t).pipe(ug(()=>this.listsService.refreshCurrentList()),cg(1))}loadBasket(){return tv([this.listsService.list$,this.posService.pos$]).pipe(ig(e=>!e[0]||!e[1]),ug(e=>this.fetchForListAndPos(e[0].id,e[1].id)),um(e=>{this._basket$.next(e),this.basketIsFetching=!1}))}loadPreview(){return this.basket$.pipe(ig(e=>!e),ug(()=>this.recipesService.loadRecipes()),ug(e=>this.fetchBasketEntries(this._basket$.value).pipe(D(t=>{const i=this.groupBasketEntries(e,t),n=this.recipesAndLineEntriesToBasketPreviewLine(e,i);return this._basketPreview$.next(n),this.basketPreviewIsCalculating=!1,this.basketStats$.next(this.buildStats(n)),n}))))}fetchBasketEntries(t){if(!t||!t.completion||t.completion.total<1)return this._entries$.next([]),this._entries$;const i=Math.ceil(t.completion.total/e.entriesPerPages);return Sg(Array.apply(null,Array(i)).map((e,i)=>this.fetchBasketEntriesPage(t,i+1))).pipe(D(e=>{const t=Df(e.map(e=>e.data));return t.forEach(e=>e.setItemsSelection()),this._entries$.next(t),this._entries$.value}))}buildStats(e){const t=Ev(...e.map(e=>e.entries.found),"id"),i=t.reduce((e,t)=>{const i=t.attributes["basket-entries-items"].find(e=>e.item_id===t.attributes["selected-item-id"]);return e+(t.attributes.quantity||0)*parseFloat(i["unit-price"])},0);return{recipesCount:e.length,entriesCount:t.length,totalPrice:i}}fetchBasketEntriesPage(t,i){let n=[kg.miamAPI,"api/v1/baskets",t.id,"basket-entries"].join("/");return n=`${n}?include=groceries-entry,items&page[number]=${i}&page[size]=${e.entriesPerPages}`,this.http.get(n).pipe(ig(e=>e.is_loading),D(e=>{const t=this.basketEntriesService.newCollection();return t.fill(e),t}))}recipesAndLineEntriesToBasketPreviewLine(e,t){return e.map((e,i)=>{const n=t[i].found.length;let r=0;const a=e.modifiedGuests||parseInt(e.guests,10);return t[i].found.forEach(e=>{const t=e.attributes["basket-entries-items"].find(t=>t.item_id===e.attributes["selected-item-id"]),i=e.attributes.quantity,n=parseFloat(t["unit-price"]);r+=i*n/(e.attributes["recipe-ids"].length||1)}),Vg.fromRecipe(e,n,r/a,r,t[i])})}groupBasketEntries(e,t){return e.map(e=>{const i={found:[],notFound:[],oftenDeleted:[],removed:[]};return t.filter(t=>t.attributes["recipe-ids"].includes(parseInt(e.id,10))).forEach(e=>{if(e.attributes["selected-item-id"])switch(e.attributes["groceries-entry-status"]){case"often_deleted":i.oftenDeleted.push(e);break;case"deleted":i.removed.push(e);break;default:i.found.push(e)}else i.notFound.push(e)}),i})}}return e.entriesPerPages=30,e.\u0275fac=function(t){return new(t||e)($e(Wu),$e(gv),$e(Ag),$e(vv),$e(sv),$e(pv),$e(gg))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Iv=function(e){return e[e.Calendar=0]="Calendar",e[e.CheckCircleFill=1]="CheckCircleFill",e[e.Clear=2]="Clear",e[e.CostHight=3]="CostHight",e[e.CostMedium=4]="CostMedium",e[e.CostLow=5]="CostLow",e[e.DifficultyHigh=6]="DifficultyHigh",e[e.DifficultyMedium=7]="DifficultyMedium",e[e.DifficultyLow=8]="DifficultyLow",e[e.Heart=9]="Heart",e[e.HeartFull=10]="HeartFull",e[e.Share=11]="Share",e[e.Swap=12]="Swap",e[e.People=13]="People",e[e.CheckList=14]="CheckList",e[e.Time=15]="Time",e[e.Euro=16]="Euro",e[e.Basket=17]="Basket",e[e.Grocery=18]="Grocery",e[e.Minus=19]="Minus",e[e.Plus=20]="Plus",e[e.Grip=21]="Grip",e[e.ReturnLeft=22]="ReturnLeft",e[e.ArrowDown=23]="ArrowDown",e[e.Trash=24]="Trash",e[e.CloudUpload=25]="CloudUpload",e[e.Picture=26]="Picture",e[e.Wait=27]="Wait",e[e.Hot=28]="Hot",e[e.RecipeBook=29]="RecipeBook",e[e.ChevronDown=30]="ChevronDown",e[e.Search=31]="Search",e[e.Group=32]="Group",e[e.Cart=33]="Cart",e[e.CartPlus=34]="CartPlus",e[e.Help=35]="Help",e[e.RecipeHelp=36]="RecipeHelp",e[e.Print=37]="Print",e[e.Meal=38]="Meal",e[e.HorizontalDots=39]="HorizontalDots",e[e.NoRecipeFound=40]="NoRecipeFound",e[e.Preheat=41]="Preheat",e[e.caretDown=42]="caretDown",e[e.Empty=43]="Empty",e[e.OpenBook=44]="OpenBook",e[e.CircledPlus=45]="CircledPlus",e[e.MainDish=46]="MainDish",e[e.Dessert=47]="Dessert",e[e.Starter=48]="Starter",e[e.Edit=49]="Edit",e[e.Warning=50]="Warning",e[e.Preparation=51]="Preparation",e[e.ListScanner=52]="ListScanner",e[e.DrawerHorizontalCloseBar=53]="DrawerHorizontalCloseBar",e[e.Video=54]="Video",e[e.Cross=55]="Cross",e[e.Ingredients=56]="Ingredients",e[e.CheckboxChecked=57]="CheckboxChecked",e[e.CheckboxUnchecked=58]="CheckboxUnchecked",e[e.Upload=59]="Upload",e[e.Home=60]="Home",e[e.Filter=61]="Filter",e[e.Difficulty=62]="Difficulty",e[e.Cook=63]="Cook",e[e.ExplainStep1=64]="ExplainStep1",e[e.ExplainStep2=65]="ExplainStep2",e[e.ExplainStep3=66]="ExplainStep3",e}({});class Ov{constructor(e,t,i,n=class{constructor(e,t,i,n=class{constructor(e){this.miamQuantity=0,this.miamTargetQuantity=0,this.miamBasketEntryIds={},this._retailerProducts=[],this._basketWrapper=e}get retailerQuantity(){return this._retailerProducts.map(e=>e.quantity).reduce((e,t)=>parseInt(e)+parseInt(t),0)}clearRetailerProduct(){this._retailerProducts=[]}get miamBasketEntryIdsToStr(){let e="";return Object.keys(this.miamBasketEntryIds).forEach(t=>{e+=`${t}: ${this.miamBasketEntryIds[t]}, `}),e}get firstBasketEntryId(){return Object.keys(this.miamBasketEntryIds)[0]}removeFirstMiamEntry(e){const t=Object.keys(this.miamBasketEntryIds)[0];let i=this.miamBasketEntryIds[t];return i>e?(this.miamBasketEntryIds[t]=i-e,[t,e]):(delete this.miamBasketEntryIds[t],[t,i])}addOrUpdateRetailerProduct(e){0!==this._retailerProducts.length&&0!==this.retailerQuantity?this._retailerProducts[0].quantity=e.quantity:this._retailerProducts=[e]}createRetailerProducts(e,t){return e.selectedItem&&(this._retailerProducts=[{id:e.selectedItem.attributes["ext-id"],quantity:t}]),this._retailerProducts}mapProductToEntry(e){throw new Error("You must implement 'mapProductToEntry' for this retailer")}updateRetailerProducts(){const e=this.miamTargetQuantity-this.miamQuantity;if(0===e||0===this._retailerProducts.length)return[];let t=this._retailerProducts[0];return t.quantity+=e,t.quantity<=0&&this.clearRetailerProduct(),[t]}}){this._extIdToComparisonItem={},this._comparisonItemType=n,this._basketWrapper=e,this.addEntryInMapFromRetailer(t),this._setFromMiam(i)}setAllProductsAsRetailers(){Object.keys(this._extIdToComparisonItem).forEach(e=>{this._extIdToComparisonItem[e].miamQuantity=0,this._extIdToComparisonItem[e].miamTargetQuantity=0})}_fetchComparisonItem(e){let t=this._extIdToComparisonItem[e];return t||(t=new this._comparisonItemType(this._basketWrapper),this._extIdToComparisonItem[e]=t),t}cleanNullProducts(){Object.keys(this._extIdToComparisonItem).forEach(e=>{const t=this._extIdToComparisonItem[e];0===t.miamQuantity&&0===t.retailerQuantity&&delete this._extIdToComparisonItem[e]})}updateMapFromRetailer(e){this.addEntryInMapFromRetailer(e),this.deleteEntrieInMapFromRetailer(e)}addEntryInMapFromRetailer(e){e.forEach(e=>{this._fetchComparisonItem(e.id).addOrUpdateRetailerProduct(e)})}deleteEntrieInMapFromRetailer(e){Object.keys(this._extIdToComparisonItem).forEach(t=>{this.checkIfEntryIsToDeleteFromMap(t,e)})}checkIfEntryIsToDeleteFromMap(e,t){const i=this._extIdToComparisonItem[e];t.find(t=>t.id===e)||i.clearRetailerProduct()}resolveFromRetailer(){let e=[];return Object.keys(this._extIdToComparisonItem).forEach(t=>{const i=this._extIdToComparisonItem[t],n=i.miamQuantity-i.retailerQuantity;n>0&&(e=[...e,...this.getQuantityToRemove(i,n)],i.miamQuantity=i.retailerQuantity)}),e}getQuantityToRemove(e,t){const i=[];for(;t>0;){let n,r;[n,r]=e.removeFirstMiamEntry(t),null==n||null==r?t=0:(t-=r,i.push({id:n,qty:r}))}return i}setTargetFromMiam(e){console.debug("set target from miam",e),this._updateTargetFromMiam(e),this._addTargetFromMiam(e)}resolveFromMiam(e){console.debug("resolve from Miam basket",e);let t=[];return Object.keys(this._extIdToComparisonItem).forEach(i=>{t=[...t,...this.createOrUpdate(i,e)]}),t}createOrUpdate(e,t){const i=this._extIdToComparisonItem[e];let n;if(0===i.retailerQuantity&&0!==i.miamTargetQuantity){const e=t.find(e=>e.id==i.firstBasketEntryId);n=i.createRetailerProducts(e,i.miamTargetQuantity)}else n=i.updateRetailerProducts();return i.miamQuantity=i.miamTargetQuantity,n}_setFromMiam(e){e.forEach(e=>{const t=e.selectedItem&&e.selectedItem.attributes["ext-id"];if(!t)return;const i=this._fetchComparisonItem(t);i.miamQuantity+=e.attributes.quantity,i.miamBasketEntryIds[e.id]=e.attributes.quantity})}_updateTargetFromMiam(e){Object.keys(this._extIdToComparisonItem).forEach(t=>{const i=this._extIdToComparisonItem[t],n=e.filter(e=>e.selectedItem&&e.selectedItem.attributes["ext-id"]===t);if(n.length>0){const e=n.map(e=>e.attributes.quantity);i.miamTargetQuantity=e.reduce((e,t)=>parseInt(e)+parseInt(t),0),i.miamBasketEntryIds=n.reduce((function(e,t){return e[t.id]=parseInt(t.attributes.quantity),e}),{})}else i.miamTargetQuantity=0,i.miamBasketEntryIds={}})}_addTargetFromMiam(e){e.forEach(e=>{const t=e.selectedItem&&e.selectedItem.attributes["ext-id"];if(!t)return;if(this._extIdToComparisonItem[t])return;const i=this._fetchComparisonItem(t);i.miamTargetQuantity+=e.attributes.quantity,i.miamBasketEntryIds[e.id]=e.attributes.quantity})}}){this.isProcessingRetailerEvent=!0,this._basketWrapper=e,this._comparisonMap=new n(e,t,i);const r=this._comparisonMap.resolveFromRetailer();this.sendUpdateToMiam(r)}setAllProductsAsRetailers(){this._comparisonMap.setAllProductsAsRetailers()}updateReceivedFromMiam(e){this._comparisonMap.setTargetFromMiam(e);const t=this._comparisonMap.resolveFromMiam(e);this._comparisonMap.cleanNullProducts(),this.sendUpdateToRetailer(t)}updateReceivedFromRetailer(e){this.isProcessingRetailerEvent=!0,this._comparisonMap.updateMapFromRetailer(e);const t=this._comparisonMap.resolveFromRetailer();this._comparisonMap.cleanNullProducts(),this.sendUpdateToMiam(t)}sendUpdateToMiam(e){if(console.debug("will remove from miam",e),0===e.length)return console.debug("stop processing retailer event"),void(this.isProcessingRetailerEvent=!1);window.miam.basket.removeEntries(e).subscribe(()=>{console.debug("stop processing retailer event"),this.isProcessingRetailerEvent=!1})}sendUpdateToRetailer(e){console.debug("will update retailer",e),0!==e.length&&this._basketWrapper.pushProductsToBasket(e.map(e=>this._basketWrapper.mapComparableProductToProduct(e)))}}class Pv{constructor(e){this.basketWrapper=e}setAllProductsAsRetailers(){this.comparator.setAllProductsAsRetailers()}initBasketProcess(){this.firstMiamBasketReceived=!1,this.handlePayment(()=>{this.handleBasketSync()})}handlePayment(e){if(this.basketWrapper.hasPayment()){const t=this.basketWrapper.paymentTotal(),i=localStorage.getItem("_miam/basketToken");i?(localStorage.removeItem("_miam/basketToken"),this.sendMiamOrder(t,i),e()):this.confirmBasket(t,e)}else e()}sendMiamOrder(e,t){console.debug("[Miam] payment detected",e,t),t&&(console.log("[Miam] Send payment notification",t),window.miam.supplier.notifyBasketUpdated(t,"PAID",e))}confirmBasket(e,t){window.miam.basket.confirm(e).subscribe(i=>{if(i&&i.token&&i.totalPrice>0){const t=i.token;console.log("[Miam] Send confirmation notification",t),window.miam.supplier.notifyBasketUpdated(t,"CONFIRMED"),this.sendMiamOrder(e,t)}t()})}listenToRetailer(e){this.basketWrapper.listenToRetailerBasket(e)}listenToMiam(e){window.miam.basket.entries$.subscribe(t=>{console.debug("Miam basket received",t,this.firstMiamBasketReceived),this.firstMiamBasketReceived||0!==t.length?e(t):this.firstMiamBasketReceived=!0})}handleBasketSync(){this.listenToMiam(e=>{if(!this.comparator){const t=this.basketWrapper.getBasketProducts();return this.comparator=new Ov(this.basketWrapper,t,e),void this.listenToRetailer(this.retailerBasketChangeCallBack.bind(this))}this.comparator.isProcessingRetailerEvent?console.debug("skipping retailer is processing"):this.comparator.updateReceivedFromMiam(e)})}retailerBasketChangeCallBack(e){this.comparator.updateReceivedFromRetailer(e)}}class Tv{hasPayment(){throw new Error("You must implement 'hasPayment' for this retailer")}paymentTotal(){throw new Error("You must implement 'paymentTotal' for this retailer")}listenToRetailerBasket(e){throw new Error("You must implement 'lisentToRetailerBasket' for this retailer")}getBasketProducts(){throw new Error("You must implement 'getBasketProducts' for this retailer")}pushProductsToBasket(e){throw new Error("You must implement 'pushProductsToBasket' for this retailer")}mapComparableProductToProduct(e){throw new Error("You must implement 'mapComparableProductToProduct' for this retailer")}}function Mv(e){return null!=e&&"false"!=`${e}`}function Lv(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Rv(e){return Array.isArray(e)?e:[e]}function zv(e){return e instanceof js?e.nativeElement:e}function Fv(...e){return U(1)(Au(...e))}class Hv{constructor(e){this.total=e}call(e,t){return t.subscribe(new Bv(e,this.total))}}class Bv extends h{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function jv(...e){const t=e[e.length-1];return E(t)?(e.pop(),i=>Fv(e,i,t)):t=>Fv(e,t)}function Nv(e){return t=>t.lift(new Vv(e))}class Vv{constructor(e){this.notifier=e}call(e,t){const i=new Zv(e),n=N(this.notifier,new B(i));return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}class Zv extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Qv;try{Qv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ZB){Qv=!1}let Wv,Uv,Yv=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ku(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&&!Qv)&&"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 e.\u0275fac=function(t){return new(t||e)($e(ul))},e.\u0275prov=he({factory:function(){return new e($e(ul))},token:e,providedIn:"root"}),e})(),Xv=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();function Gv(e){return function(){if(null==Wv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Wv=!0}))}finally{Wv=Wv||!1}return Wv}()?e:!!e.capture}const qv=new Set;let Jv,Kv=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$v}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!qv.has(e))try{Jv||(Jv=document.createElement("style"),Jv.setAttribute("type","text/css"),document.head.appendChild(Jv)),Jv.sheet&&(Jv.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),qv.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)($e(Yv))},e.\u0275prov=he({factory:function(){return new e($e(Yv))},token:e,providedIn:"root"}),e})();function $v(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let e_=(()=>{class e{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new A}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return t_(Rv(e)).some(e=>this._registerQuery(e).mql.matches)}observe(e){let t=tv(t_(Rv(e)).map(e=>this._registerQuery(e).observable));return t=Fv(t.pipe(cg(1)),t.pipe(e=>e.lift(new Hv(1)),Qf(0))),t.pipe(D(e=>{const t={matches:!1,breakpoints:{}};return e.forEach(({matches:e,query:i})=>{t.matches=t.matches||e,t.breakpoints[i]=e}),t}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),i={observable:new b(e=>{const i=t=>this._zone.run(()=>e.next(t));return t.addListener(i),()=>{t.removeListener(i)}}).pipe(jv(t),D(({matches:t})=>({query:e,matches:t})),Nv(this._destroySubject)),mql:t};return this._queries.set(e,i),i}}return e.\u0275fac=function(t){return new(t||e)($e(Kv),$e(Sl))},e.\u0275prov=he({factory:function(){return new e($e(Kv),$e(Sl))},token:e,providedIn:"root"}),e})();function t_(e){return e.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let i_=(()=>{class e{constructor(e,t,i,n,r,a,o,s,c,l){this.posService=e,this.listsService=t,this.basketsService=i,this.userService=n,this.recipesProvidersService=r,this.analyticsService=a,this.recipesService=o,this.mediaMatcher=s,this.suppliersService=c,this.breakpointObserver=l,this.videoRecipesEnabled=!1,this.articlesInCatalogEnabled=!1,this.tagsOnRecipesEnabled=!1,this.displayIngredientPicturesOnRecipeCards=!1,this.defaultIngredientPicture="https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg",this.globalScrollableElement=document.body,this.isSmallScreen$=new dm(!1),this.disablePersonalRecipe$=new dm(!0),this.basketWrapper=new Tv,this.miam={analytics:this.analyticsService,paymentStarted:e=>{console.log("[Miam] send paymentStarted event"),this.onBasketAndPosSendEvent(this.analyticsService.EVENT_PAYMENT_STARTED,e)},basket:{stats$:this.basketsService.basketStats$.pipe(ig(e=>!e)),basketIsReady$:this.basketsService.basketStats$.pipe(ig(e=>!e),cg(1),D(()=>!0)),entries$:this.basketsService.activeBasketEntries(),confirm:e=>this.basketsService.confirmBasket(e),removeEntries:e=>this.basketsService.removeBasketEntries(e),initBasketSynchro:()=>{this.basketsService.initBasket(),this.basketHandler=new Pv(this.basketWrapper),this.basketHandler.initBasketProcess()},setAllProductsAsRetailers:()=>{this.basketHandler&&this.basketHandler.setAllProductsAsRetailers()}},basketMapper:{hasPayment:e=>this.basketWrapper.hasPayment=e,paymentTotal:e=>this.basketWrapper.paymentTotal=e,listenToRetailerBasket:e=>{this.basketWrapper.listenToRetailerBasket=e},getBasketProducts:e=>this.basketWrapper.getBasketProducts=e,pushProductsToBasket:e=>this.basketWrapper.pushProductsToBasket=e,mapComparableProductToProduct:e=>{this.basketWrapper.mapComparableProductToProduct=e}},features:{enableVideoRecipes:()=>{this.videoRecipesEnabled=!0;const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",document.body.appendChild(e)},enableArticlesInCatalog:()=>{this.articlesInCatalogEnabled=!0},enableUserPreferences:()=>{this.userService.preferencesActivated$.next(!0)},enableTagsOnRecipes:()=>{this.tagsOnRecipesEnabled=!0},setPersonnalRecipe:e=>{this.disablePersonalRecipe$.next(!e)}},hook:{setHookCallback:e=>{this.hookCallback=e}},list:{reset:()=>this.listsService.resetList().subscribe(),addRecipe:(e,t)=>this.listsService.appendRecipeToList(e,t,{originPath:"client",props:{recipe_id:e}}),hasRecipe:e=>this.listsService.recipeIsInList(e),createTemporaryList:()=>this.listsService.createTemporaryList(),refresh:()=>this.listsService.refreshCurrentList()},pos:{load:e=>{this.posService.loadPos(e)},loadWithExtId:(e,t)=>{this.posService.loadPosWithExtId(e,t)},pos$:this.posService.pos$},recipes:{display:(e,t=!0,i=!1,n={originPath:"",props:{}})=>this.recipesService.display(e,{previewAllowed:t,previewMode:i},n),hidden:this.recipesService.hidden,search:(e,t)=>this.recipesService.all({remotefilter:{recipe_provider_id:e,search:t}}).pipe(ig(e=>!e),D(e=>e.data)),shouldDisplayIngredientPicturesOnRecipeCards:e=>{this.displayIngredientPicturesOnRecipeCards=e},setDefaultIngredientPicture:e=>{this.defaultIngredientPicture=e},setRecipesPrimaryButtonActions:(e=!0,t=!0)=>{this.recipesService.setRecipesPrimaryButtonActions(e,t)},setSuggestionsPrimaryButtonActions:(e=!0,t=!0)=>{this.recipesService.setSuggestionsPrimaryButtonActions(e,t)},setDifficultyLevels:e=>{this.recipesService.difficultyLevels=e}},router:{setRecipeCatalogUrl:(e="")=>{this.miam.router.catalog=e},catalog:"",setRecipeInfoLink:(e="")=>{this.miam.router.recipeInfo=e},recipeInfo:""},supplier:{load:e=>{this.suppliersService.loadSupplier(e.toString())},notifyBasketUpdated:(e,t,i=null)=>{this.suppliersService.notifyBasketUpdated(e,t,i).subscribe()}},user:{setToken:(e,t=!1,i=!1)=>(localStorage.setItem("_miam/userToken",e),localStorage.removeItem("_miam/userId"),this.logUser(e,t,i)),loadWithExtId:(e,t=!1,i=!1)=>(localStorage.setItem("_miam/userId",e),localStorage.removeItem("_miam/userToken"),this.logUser(e,t,i)),reset:()=>{localStorage.removeItem("_miam/userToken"),localStorage.removeItem("_miam/userId"),this.userService.toggleIsLogged(!1),console.log("[Miam] will refresh list after reset"),this.listsService.refreshCurrentList(),this.userService.resetUserInfo()},setFavoriteItems:e=>this.userService.setFavoriteItems(e),device:this.mediaMatcher,isSmallScreen$:this.isSmallScreen$.asObservable()},view:{setGlobalScrollableElement:e=>{e&&this.globalScrollableElement!==e&&(this.globalScrollableElement=e)}},overrideIcon:(e,t)=>{this.icons||(this.icons=[]);const i=this.icons.find(t=>t.icon.toString()===e);i&&this.icons.splice(this.icons.indexOf(i),1),this.icons.push({icon:e,url:t})}},this.isSmallScreen$.next(!this.mediaMatcher.matchMedia("(min-width: 1023px)").matches),this.breakpointObserver.observe("(min-width: 1023px)").subscribe(e=>this.isSmallScreen$.next(!e.matches)),this.icons=[],this.CORSIssues=new dm(!1),Object.assign(window,{miam:this.miam})}setCORSIssueState(e){this.CORSIssues.next(e)}getCORSIssuesState(){return this.CORSIssues.asObservable()}getOverrideIconUrl(e){const t=this.icons.find(t=>t.icon.toString()===Iv[e]);return t?t.url:""}onBasketAndPosSendEvent(e,t){Sg([this.basketsService.basket$.asObservable().pipe(ig(e=>!e),cg(1)),this.posService.pos$.asObservable().pipe(ig(e=>!e),cg(1))]).pipe(ig(e=>!e[0]||!e[1]),cg(1)).subscribe(i=>{const n=i[0],r=i[1];n.totalPrice>0&&this.analyticsService.sendEventWhenReady(e,null,{pos_id:r.id,pos_name:r.attributes.name,basket_id:n.id,miam_amount:n.totalPrice,total_amount:t})})}logUser(e,t,i){return e&&this.userService.toggleIsLogged(!0),i&&this.basketsService.initBasket(),this.userService.setUserInfo(t)}}return e.\u0275fac=function(t){return new(t||e)($e(sv),$e(Ag),$e(Dv),$e(Ug),$e(Gg),$e(gg),$e(pv),$e(Kv),$e(rv),$e(e_))},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),n_=(()=>{class e extends eg{constructor(){super(),this.resource=Qg,this.type="articles",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),r_=(()=>{class e{info(e,t=null,i={}){this.prepareScripts(()=>{window.toastr.info(e,t,i)})}prepareScripts(e){this.injectJquery(()=>{if(window.toastr)return e();this.injectScript(()=>{e()}),this.injectCss()})}injectJquery(e){if(window.jQuery)return e();const t=document.createElement("script");t.src="https://code.jquery.com/jquery-3.6.0.min.js",t.integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=",t.crossOrigin="anonymous",t.addEventListener("load",()=>e()),document.head.appendChild(t)}injectScript(e){const t=document.createElement("script");t.src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js",t.addEventListener("load",()=>e()),document.head.appendChild(t)}injectCss(){const e=document.createElement("link");e.rel="stylesheet",e.href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css",document.head.appendChild(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),a_=(()=>{class e{constructor(e){this.injector=e}intercept(e,t){if(e.url.includes("plausible"))return t.handle(e);const i=localStorage.getItem("_miam/userToken"),n=localStorage.getItem("_miam/userId");i?e=e.clone({setHeaders:{Authorization:`Bearer ${i}`}}):n&&(e=e.clone({setHeaders:{Authorization:`user_id ${n}`}})),e=e.clone({withCredentials:!0});const r=this.injector.get(Ug);return(null==r?void 0:r.profilingForbidden())&&(e=e.clone({params:(new Lu).set("profiling","off")})),t.handle(e).pipe(D(e=>{var t;if(e instanceof Vu&&(null===(t=null==e?void 0:e.body)||void 0===t?void 0:t.links)){const t=e.body.links,i=new URLSearchParams(new URL(t.last).search),n=parseInt(i.get("page[size]"),10),r=n*parseInt(i.get("page[number]"),10);let a=parseInt(i.get("page[number]"),10);if(t.next){const e=new URLSearchParams(new URL(t.next).search);a=parseInt(e.get("page[number]"),10)-1}Object.assign(e.body,{meta:{size:n,resources_per_page:n,number:a,total_resources:r}})}return e}),hm(e=>{const t=this.injector.get(i_);return 0===e.status&&e.url.includes("https://api.miam.tech/api")&&t&&t.setCORSIssueState(!0),cm(e)}))}}return e.\u0275fac=function(t){return new(t||e)($e(fo))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class o_ extends jf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}class s_ extends Vf{}const c_=new s_(o_);let l_=(()=>{class e{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return Au(this.value);case"E":return cm(this.error);case"C":return sg()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class d_ extends h{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(d_.dispatch,this.delay,new u_(e,this.destination)))}_next(e){this.scheduleMessage(l_.createNext(e))}_error(e){this.scheduleMessage(l_.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(l_.createComplete()),this.unsubscribe()}}class u_{constructor(e,t){this.notification=e,this.destination=t}}class m_ extends A{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new p_(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,r=i.length;let a;if(this.closed)throw new x;if(this.isStopped||this.hasError?a=u.EMPTY:(this.observers.push(e),a=new C(this,e)),n&&e.add(e=new d_(e,n)),t)for(let o=0;o<r&&!e.closed;o++)e.next(i[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(i[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),a}_getNow(){return(this.scheduler||c_).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,n=this._events,r=n.length;let a=0;for(;a<r&&!(e-n[a].time<i);)a++;return r>t&&(a=Math.max(a,r-t)),a>0&&n.splice(0,a),n}}class p_{constructor(e,t){this.time=e,this.value=t}}const h_={schedule(e,t){const i=setTimeout(e,t);return()=>clearTimeout(i)},scheduleBeforeRender(e){if("undefined"==typeof window)return h_.schedule(e,0);if(void 0===window.requestAnimationFrame)return h_.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};let g_;function f_(e,t,i){let n=i;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,i)=>!("*"===t||!function(e,t){if(!g_){const e=Element.prototype;g_=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&g_.call(e,t)}(e,t)||(n=i,0))),n}class v_{constructor(e,t){this.componentFactory=t.get(Bs).resolveComponentFactory(e)}create(e){return new __(this.componentFactory,e)}}class __{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new m_(1),this.events=this.eventEmitters.pipe(ug(e=>X(...e))),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(Sl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=h_.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var i,n;null!==this.componentRef?((i=t)!==(n=this.getInputValue(e))&&(i==i||n==n)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=fo.create({providers:[],parent:this.injector}),i=function(e,t){const i=e.childNodes,n=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let a=0,o=i.length;a<o;++a){const e=i[a],o=f_(e,t,r);-1!==o&&n[o].push(e)}return n}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ql).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:i})=>e.instance[t].pipe(D(e=>({name:i,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=h_.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const n=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=n?void 0:this.getInputValue(e);this.inputChanges[e]=new Zt(r,t,n)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class y_ extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function b_(e,t){const i=function(e,t){return t.get(Bs).resolveComponentFactory(e).inputs}(e,t.injector),n=t.strategyFactory||new v_(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:i})=>{var n;t[(n=i,n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))]=e}),t}(i);class a extends y_{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=n.create(this.injector||t.injector),r=i.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof a?r.forEach(([e])=>delete this[e]):w_(i,this),r.forEach(([t,i])=>e.setInputValue(t,i))}return this._ngElementStrategy}attributeChangedCallback(e,t,i,n){this.ngElementStrategy.setInputValue(r[e],i)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,i){if("function"!=typeof CustomEvent){const n=e.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,i),n}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:i})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return a.observedAttributes=Object.keys(r),Object.defineProperty(a.prototype,"ngElementStrategy",{enumerable:!0}),w_(i,a.prototype),a}function w_(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}const x_=new Ze("NgValueAccessor"),C_={provide:x_,useExisting:De(()=>k_),multi:!0};let k_=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js))},e.\u0275dir=kt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Jo("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[zs([C_])]}),e})();const A_={provide:x_,useExisting:De(()=>E_),multi:!0},S_=new Ze("CompositionEventMode");let E_=(()=>{class e{constructor(e,t,i){this._renderer=e,this._elementRef=t,this._compositionMode=i,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=ql()?ql().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js),Bo(S_,8))},e.\u0275dir=kt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Jo("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[zs([A_])]}),e})(),D_=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e}),e})(),I_=(()=>{class e extends D_{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return O_(t||e)},e.\u0275dir=kt({type:e,features:[yo]}),e})();const O_=bn(I_);class P_ extends D_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class T_{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let M_=(()=>{class e extends T_{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(P_,2))},e.\u0275dir=kt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&ds("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[yo]}),e})(),L_=(()=>{class e extends T_{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,2))},e.\u0275dir=kt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&ds("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[yo]}),e})();function R_(e){return null==e||0===e.length}function z_(e){return null!=e&&"number"==typeof e.length}const F_=new Ze("NgValidators"),H_=new Ze("NgAsyncValidators"),B_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class j_{static min(e){return t=>{if(R_(t.value)||R_(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(R_(t.value)||R_(e))return null;const i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}static required(e){return R_(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return R_(e.value)||B_.test(e.value)?null:{email:!0}}static minLength(e){return t=>R_(t.value)||!z_(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>z_(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return j_.nullValidator;let t,i;return"string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),t=new RegExp(i)):(i=e.toString(),t=e),e=>{if(R_(e.value))return null;const n=e.value;return t.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(N_);return 0==t.length?null:function(e){return Z_(Q_(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(N_);return 0==t.length?null:function(e){return Sg(Q_(e,t).map(V_)).pipe(D(Z_))}}}function N_(e){return null!=e}function V_(e){const t=Go(e)?H(e):e;return qo(t),t}function Z_(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Q_(e,t){return t.map(t=>t(e))}function W_(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const U_={provide:x_,useExisting:De(()=>Y_),multi:!0};let Y_=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js))},e.\u0275dir=kt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Jo("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[zs([U_])]}),e})();const X_={provide:x_,useExisting:De(()=>q_),multi:!0};let G_=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),q_=(()=>{class e{constructor(e,t,i,n){this._renderer=e,this._elementRef=t,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js),Bo(G_),Bo(fo))},e.\u0275dir=kt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Jo("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[zs([X_])]}),e})();const J_={provide:x_,useExisting:De(()=>K_),multi:!0};let K_=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js))},e.\u0275dir=kt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Jo("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[zs([J_])]}),e})();const $_={provide:x_,useExisting:De(()=>ty),multi:!0};function ey(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let ty=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=ey(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js))},e.\u0275dir=kt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Jo("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[zs([$_])]}),e})(),iy=(()=>{class e{constructor(e,t,i){this._element=e,this._renderer=t,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ey(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(Qs),Bo(ty,9))},e.\u0275dir=kt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const ny={provide:x_,useExisting:De(()=>ay),multi:!0};function ry(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let ay=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const i=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(i.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const i=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const n=e.item(t),r=this._getOptionValue(n.value);i.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const n=e.item(t);if(n.selected){const e=this._getOptionValue(n.value);i.push(e)}}}this.value=i,e(i)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js))},e.\u0275dir=kt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Jo("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[zs([ny])]}),e})(),oy=(()=>{class e{constructor(e,t,i){this._element=e,this._renderer=t,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(ry(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(ry(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(Qs),Bo(ay,9))},e.\u0275dir=kt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();function sy(e,t){return[...t.path,e]}function cy(e,t){e.validator=j_.compose([e.validator,t.validator]),e.asyncValidator=j_.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ly(e,t)})}(e,t),function(e,t){e.registerOnChange((e,i)=>{t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ly(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function ly(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function dy(e,t){e.validator=j_.compose([e.validator,t.validator]),e.asyncValidator=j_.composeAsync([e.asyncValidator,t.asyncValidator])}function uy(e){return null!=e?j_.compose(W_(e)):null}function my(e){return null!=e?j_.composeAsync(W_(e)):null}function py(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)}const hy=[k_,K_,Y_,ty,ay,q_];function gy(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function fy(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===E_?i=e:(t=e,hy.some(e=>t.constructor===e)?n=e:r=e)}),r||n||i||null}function vy(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function _y(e,t,i,n){zn()&&"never"!==n&&((null!==n&&"once"!==n||t._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function yy(e){return(Cy(e)?e.validators:e)||null}function by(e){return Array.isArray(e)?uy(e):e||null}function wy(e,t){return(Cy(t)?t.asyncValidators:e)||null}function xy(e){return Array.isArray(e)?my(e):e||null}function Cy(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ky{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=by(this._rawValidators),this._composedAsyncValidatorFn=xy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=by(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=xy(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=V_(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,i){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let n=e;return t.forEach(e=>{n=n instanceof Sy?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Ey&&n.at(e)||null}),n}(this,e)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Bc,this.statusChanges=new Bc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Cy(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ay extends ky{constructor(e=null,t,i){super(yy(t),wy(i,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Sy extends ky{constructor(e,t,i){super(yy(t),wy(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t instanceof Ay?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((e,n)=>{i=t(i,e,n)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Ey extends ky{constructor(e,t,i){super(yy(t),wy(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,i)=>{this.at(i)&&this.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Ay?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,i)=>{if(void 0===e[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Dy={provide:I_,useExisting:De(()=>Oy)},Iy=(()=>Promise.resolve(null))();let Oy=(()=>{class e extends I_{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Bc,this.form=new Sy({},uy(e),my(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Iy.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),cy(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Iy.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),vy(this._directives,e)})}addFormGroup(e){Iy.then(()=>{const t=this._findContainer(e.path),i=new Sy({});dy(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Iy.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Iy.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,gy(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(Bo(F_,10),Bo(H_,10))},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Jo("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[zs([Dy]),yo]}),e})(),Py=(()=>{class e extends I_{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return sy(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return uy(this._validators)}get asyncValidator(){return my(this._asyncValidators)}_checkParentType(){}}return e.\u0275fac=function(t){return Ty(t||e)},e.\u0275dir=kt({type:e,features:[yo]}),e})();const Ty=bn(Py),My={provide:I_,useExisting:De(()=>Ly)};let Ly=(()=>{class e extends Py{constructor(e,t,i){super(),this._parent=e,this._validators=t,this._asyncValidators=i}_checkParentType(){}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,5),Bo(F_,10),Bo(H_,10))},e.\u0275dir=kt({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[zs([My]),yo]}),e})();const Ry={provide:P_,useExisting:De(()=>Fy)},zy=(()=>Promise.resolve(null))();let Fy=(()=>{class e extends P_{constructor(e,t,i,n){super(),this.control=new Ay,this._registered=!1,this.update=new Bc,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=i||[],this.valueAccessor=fy(0,n)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),py(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?sy(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return uy(this._rawValidators)}get asyncValidator(){return my(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){cy(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){zy.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,i=""===t||t&&"false"!==t;zy.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,9),Bo(F_,10),Bo(H_,10),Bo(x_,10))},e.\u0275dir=kt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[zs([Ry]),yo,Qt]}),e})(),Hy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const By=new Ze("NgModelWithFormControlWarning"),jy={provide:P_,useExisting:De(()=>Ny)};let Ny=(()=>{class e extends P_{constructor(e,t,i,n){super(),this._ngModelWarningConfig=n,this.update=new Bc,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=fy(0,i)}set isDisabled(e){}ngOnChanges(t){this._isControlChanged(t)&&(cy(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),py(t,this.viewModel)&&(_y(0,e,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return uy(this._rawValidators)}get asyncValidator(){return my(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Bo(F_,10),Bo(H_,10),Bo(x_,10),Bo(By,8))},e.\u0275dir=kt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[zs([jy]),yo,Qt]}),e._ngModelWarningSentOnce=!1,e})();const Vy={provide:I_,useExisting:De(()=>Zy)};let Zy=(()=>{class e extends I_{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Bc}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return cy(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vy(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);dy(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);dy(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,gy(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const i=()=>{};t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&cy(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=uy(this._validators);this.form.validator=j_.compose([this.form.validator,e]);const t=my(this._asyncValidators);this.form.asyncValidator=j_.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Bo(F_,10),Bo(H_,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Jo("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[zs([Vy]),yo,Qt]}),e})();const Qy={provide:I_,useExisting:De(()=>Wy)};let Wy=(()=>{class e extends Py{constructor(e,t,i){super(),this._parent=e,this._validators=t,this._asyncValidators=i}_checkParentType(){Xy(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,13),Bo(F_,10),Bo(H_,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[zs([Qy]),yo]}),e})();const Uy={provide:I_,useExisting:De(()=>Yy)};let Yy=(()=>{class e extends I_{constructor(e,t,i){super(),this._parent=e,this._validators=t,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return sy(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return uy(this._validators)}get asyncValidator(){return my(this._asyncValidators)}_checkParentType(){Xy(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,13),Bo(F_,10),Bo(H_,10))},e.\u0275dir=kt({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[zs([Uy]),yo]}),e})();function Xy(e){return!(e instanceof Wy||e instanceof Zy||e instanceof Yy)}const Gy={provide:P_,useExisting:De(()=>qy)};let qy=(()=>{class e extends P_{constructor(e,t,i,n,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new Bc,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=i||[],this.valueAccessor=fy(0,n)}set isDisabled(e){}ngOnChanges(t){this._added||this._setUpControl(),py(t,this.viewModel)&&(_y(0,e,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return sy(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return uy(this._rawValidators)}get asyncValidator(){return my(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(Bo(I_,13),Bo(F_,10),Bo(H_,10),Bo(x_,10),Bo(By,8))},e.\u0275dir=kt({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[zs([Gy]),yo,Qt]}),e._ngModelWarningSentOnce=!1,e})();const Jy={provide:F_,useExisting:De(()=>$y),multi:!0},Ky={provide:F_,useExisting:De(()=>eb),multi:!0};let $y=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?j_.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("required",t.required?"":null)},inputs:{required:"required"},features:[zs([Jy])]}),e})(),eb=(()=>{class e extends $y{validate(e){return this.required?j_.requiredTrue(e):null}}return e.\u0275fac=function(t){return tb(t||e)},e.\u0275dir=kt({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("required",t.required?"":null)},features:[zs([Ky]),yo]}),e})();const tb=bn(eb),ib={provide:F_,useExisting:De(()=>nb),multi:!0};let nb=(()=>{class e{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?j_.email(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[zs([ib])]}),e})();const rb={provide:F_,useExisting:De(()=>ab),multi:!0};let ab=(()=>{class e{constructor(){this._validator=j_.nullValidator}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=j_.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[zs([rb]),Qt]}),e})();const ob={provide:F_,useExisting:De(()=>sb),multi:!0};let sb=(()=>{class e{constructor(){this._validator=j_.nullValidator}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=j_.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[zs([ob]),Qt]}),e})();const cb={provide:F_,useExisting:De(()=>lb),multi:!0};let lb=(()=>{class e{constructor(){this._validator=j_.nullValidator}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=j_.pattern(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[zs([cb]),Qt]}),e})(),db=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})(),ub=(()=>{class e{group(e,t=null){const i=this._reduceControls(e);let n,r=null,a=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,a=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,a=null!=t.asyncValidator?t.asyncValidator:null)),new Sy(i,{asyncValidators:a,updateOn:n,validators:r})}control(e,t,i){return new Ay(e,t,i)}array(e,t,i){const n=e.map(e=>this._createControl(e));return new Ey(n,t,i)}_reduceControls(e){const t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i])}),t}_createControl(e){return e instanceof Ay||e instanceof Sy||e instanceof Ey?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),mb=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[G_],imports:[db]}),e})(),pb=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:By,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[ub,G_],imports:[db]}),e})();function hb(e,t,i){return i?hb(e,t).pipe(D(e=>c(e)?i(...e):i(e))):new b(i=>{const r=(...e)=>i.next(1===e.length?e[0]:e);let a;try{a=e(r)}catch(o){return void i.error(o)}if(n(t))return()=>t(r,a)})}function gb(...e){return t=>{let i;return"function"==typeof e[e.length-1]&&(i=e.pop()),t.lift(new fb(e,i))}}class fb{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new vb(e,this.observables,this.project))}}class vb extends Jf{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const n=t.length;this.values=new Array(n);for(let r=0;r<n;r++)this.toRespond.push(r);for(let r=0;r<n;r++)this.add($f(this,t[r],void 0,r))}notifyNext(e,t,i){this.values[i]=t;const n=this.toRespond;if(n.length>0){const e=n.indexOf(i);-1!==e&&n.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class _b{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new yb(e,this.accumulator,this.seed,this.hasSeed))}}class yb extends h{constructor(e,t,i,n){super(e),this.accumulator=t,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}function bb(e,t){return i=>i.lift(new wb(e,t))}class wb{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new xb(e,this.compare,this.keySelector))}}class xb extends h{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:i}=this;t=i?i(e):e}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:e}=this;i=e(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}const Cb=["youtubeContainer"];let kb=(()=>{class e{constructor(e,t){this._ngZone=e,this._youtubeContainer=new A,this._destroyed=new A,this._playerChanges=new dm(void 0),this._videoId=new dm(void 0),this._height=new dm(390),this._width=new dm(640),this._startSeconds=new dm(void 0),this._endSeconds=new dm(void 0),this._suggestedQuality=new dm(void 0),this._playerVars=new dm(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=ku(t)}get videoId(){return this._videoId.value}set videoId(e){this._videoId.next(e)}get height(){return this._height.value}set height(e){this._height.next(e||390)}get width(){return this._width.value}set width(e){this._width.next(e||640)}set startSeconds(e){this._startSeconds.next(e)}set endSeconds(e){this._endSeconds.next(e)}set suggestedQuality(e){this._suggestedQuality.next(e)}get playerVars(){return this._playerVars.value}set playerVars(e){this._playerVars.next(e)}ngOnInit(){if(!this._isBrowser)return;let e=Au(!0);if(!window.YT){const t=new A;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>t.next(!0))},e=t.pipe(cg(1),jv(!1))}const t=function(e,t,i,n,r,a,o){const s=tv([t,a]).pipe(gb(tv([n,r])),D(([e,t])=>{const[i,n]=e,[r,a]=t;return i?{videoId:i,playerVars:n,width:r,height:a}:void 0}));return tv([e,s,Au(o)]).pipe(_(function(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),i=>i.lift.call(H([i,...e]),new iv(t))}(i),ig(([e,t])=>!t),D(([e])=>e)),function(e,t){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new _b(e,t,i))}}(Ab,void 0),bb())}(this._youtubeContainer,this._videoId,e,this._width,this._height,this._playerVars,this._ngZone).pipe(um(e=>{this._playerChanges.next(e)}),(i=e=>{Sb(e)||e.destroy()},W(e=>e?Sb(e)?Au(e):new b(t=>{let n=!1,r=!1;const a=e=>{r=!0,n||(e.target.removeEventListener("onReady",a),t.next(e.target))};return e.addEventListener("onReady",a),()=>{n=!0,r||i(e)}}).pipe(cg(1),jv(void 0)):Au(void 0))),Nv(this._destroyed),te(new A));var i;t.subscribe(e=>{this._player=e,e&&this._pendingPlayerState&&this._initializePlayer(e,this._pendingPlayerState),this._pendingPlayerState=void 0}),function(e,t,i){tv([e,t,i]).subscribe(([e,t,i])=>e&&e.setSize(t,i))}(t,this._width,this._height),function(e,t){tv([e,t]).subscribe(([e,t])=>e&&t&&e.setPlaybackQuality(t))}(t,this._suggestedQuality),function(e,t,i,n,r,a){const o=tv([i,n]).pipe(D(([e,t])=>({startSeconds:e,endSeconds:t}))),s=o.pipe(Eb(e,e=>!!e&&!function(e){const t=e.getPlayerState();return-1!==t&&5!==t}(e))),c=t.pipe(Eb(e,(e,t)=>!!e&&e.videoId!==t));X(e.pipe(Eb(tv([t,o]),([e,t],i)=>!(!i||e==i.videoId&&!t.startSeconds&&!t.endSeconds))),c,s).pipe(gb(tv([e,t,o,r])),D(([e,t])=>t),Nv(a)).subscribe(([e,t,i,n])=>{t&&e&&(e.videoId=t,e.cueVideoById(Object.assign({videoId:t,suggestedQuality:n},i)))})}(t,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),t.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(e,t){this._player?this._player.seekTo(e,t):this._getPendingState().seek={seconds:e,allowSeekAhead:t}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(e){this._player?this._player.setVolume(e):this._getPendingState().volume=e}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(e){if(this._player)return this._player.setPlaybackRate(e);this._getPendingState().playbackRate=e}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(e,t){const{playbackState:i,playbackRate:n,volume:r,muted:a,seek:o}=t;switch(i){case 1:e.playVideo();break;case 2:e.pauseVideo();break;case 5:e.stopVideo()}null!=n&&e.setPlaybackRate(n),null!=r&&e.setVolume(r),null!=a&&(a?e.mute():e.unMute()),null!=o&&e.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(e){return this._playerChanges.pipe(ug(t=>t?hb(i=>{t.addEventListener(e,i)},i=>{try{t.removeEventListener&&t.removeEventListener(e,i)}catch(ZB){}}):Au()),e=>new b(t=>e.subscribe({next:e=>this._ngZone.run(()=>t.next(e)),error:e=>t.error(e),complete:()=>t.complete()})),Nv(this._destroyed))}}return e.\u0275fac=function(t){return new(t||e)(Bo(Sl),Bo(ul))},e.\u0275cmp=_t({type:e,selectors:[["youtube-player"]],viewQuery:function(e,t){var i;1&e&&Kc(Cb,!0),2&e&&Jc(i=el())&&(t.youtubeContainer=i.first)},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(e,t){1&e&&Qo(0,"div",null,0)},encapsulation:2,changeDetection:0}),e})();function Ab(e,[t,i,n]){if(e&&i&&e.playerVars!==i.playerVars)e.destroy();else{if(!i)return void(e&&e.destroy());if(e)return e}const r=n.runOutsideAngular(()=>new YT.Player(t,i));return r.videoId=i.videoId,r.playerVars=i.playerVars,r}function Sb(e){return"getPlayerStatus"in e}function Eb(e,t){return _(gb(e),Su(([e,i])=>t(i,e)),D(([e])=>e))}let Db=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();var Ib=function(){return(Ib=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ob=/\s+/,Pb=new(function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var i;void 0===t&&(t=!0);var n={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))i={top:(i=e.getBoundingClientRect()).top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{var r=this.offsetParent(e);i=this.offset(e,!1),r!==document.documentElement&&(n=this.offset(r,!1)),n.top+=r.clientTop,n.left+=r.clientLeft}return i.top-=n.top,i.bottom-=n.top,i.left-=n.left,i.right-=n.left,t&&(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},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var i=e.getBoundingClientRect(),n=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft,a={height:i.height||e.offsetHeight,width:i.width||e.offsetWidth,top:i.top+n,bottom:i.bottom+n,left:i.left+r,right:i.right+r};return t&&(a.height=Math.round(a.height),a.width=Math.round(a.width),a.top=Math.round(a.top),a.bottom=Math.round(a.bottom),a.left=Math.round(a.left),a.right=Math.round(a.right)),a},e.prototype.positionElements=function(e,t,i,n){var r=i.split("-"),a=r[0],o=void 0===a?"top":a,s=r[1],c=void 0===s?"center":s,l=n?this.offset(e,!1):this.position(e,!1),d=this.getAllStyles(t),u=parseFloat(d.marginTop),m=parseFloat(d.marginBottom),p=parseFloat(d.marginLeft),h=parseFloat(d.marginRight),g=0,f=0;switch(o){case"top":g=l.top-(t.offsetHeight+u+m);break;case"bottom":g=l.top+l.height;break;case"left":f=l.left-(t.offsetWidth+p+h);break;case"right":f=l.left+l.width}switch(c){case"top":g=l.top;break;case"bottom":g=l.top+l.height-t.offsetHeight;break;case"left":f=l.left;break;case"right":f=l.left+l.width-t.offsetWidth;break;case"center":"top"===o||"bottom"===o?f=l.left+l.width/2-t.offsetWidth/2:g=l.top+l.height/2-t.offsetHeight/2}t.style.transform="translate("+Math.round(f)+"px, "+Math.round(g)+"px)";var v=t.getBoundingClientRect(),_=document.documentElement,y=window.innerHeight||_.clientHeight,b=window.innerWidth||_.clientWidth;return v.left>=0&&v.top>=0&&v.right<=b&&v.bottom<=y},e}());function Tb(e){return!c(e)&&e-parseFloat(e)+1>=0}function Mb(e=0,t,i){let n=-1;return Tb(t)?n=Number(t)<1?1:Number(t):E(t)&&(i=t),E(i)||(i=Zf),new b(t=>{const r=Tb(e)?e:+e-i.now();return i.schedule(Lb,r,{index:0,period:n,subscriber:t})})}function Lb(e){const{index:t,period:i,subscriber:n}=e;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function Rb(e=0,t=Zf){return(!Tb(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Zf),new b(i=>(i.add(t.schedule(zb,e,{subscriber:i,counter:0,period:e})),i))}function zb(e){const{subscriber:t,counter:i,period:n}=e;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}var Fb=function(){return(Fb=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Hb=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n},Bb=function(e){return e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY",e}({}),jb=[Bb.SUNDAY,Bb.SATURDAY];function Nb(e,t){var i=t.startDate,n=t.excluded,r=t.precision;if(n.length<1)return 0;for(var a=e.getDay,o=e.addDays,s=(0,e.addSeconds)(i,t.seconds-1),c=a(i),l=a(s),d=0,u=i,m=function(){var t=a(u);n.some((function(e){return e===t}))&&(d+=function(e,t){var i=t.day,n=t.dayEnd,r=t.startDate,a=t.endDate,o=e.differenceInSeconds,s=e.startOfDay;if("minutes"===t.precision){if(i===t.dayStart)return o((0,e.endOfDay)(r),r)+1;if(i===n)return o(a,s(a))+1}return 86400}(e,{dayStart:c,dayEnd:l,day:t,precision:r,startDate:i,endDate:s})),u=o(u,1)};u<s;)m();return d}function Vb(e,t){var i=t.periodStart,n=t.periodEnd;return t.events.filter((function(t){return function(e,t){var i=t.event,n=t.periodStart,r=t.periodEnd,a=e.isSameSecond,o=i.start,s=i.end||i.start;return o>n&&o<r||s>n&&s<r||o<n&&s>r||!(!a(o,n)&&!a(o,r))||!(!a(s,n)&&!a(s,r))}(e,{event:t,periodStart:i,periodEnd:n})}))}function Zb(e,t){var i=t.date,n=t.weekendDays,r=void 0===n?jb:n,a=e.isSameDay,o=e.getDay,s=(0,e.startOfDay)(new Date),c=o(i);return{date:i,day:c,isPast:i<s,isToday:a(i,s),isFuture:i>s,isWeekend:r.indexOf(c)>-1}}function Qb(e,t){for(var i=t.excluded,n=void 0===i?[]:i,r=t.weekendDays,a=t.viewStart,o=void 0===a?e.startOfWeek(t.viewDate,{weekStartsOn:t.weekStartsOn}):a,s=t.viewEnd,c=void 0===s?e.addDays(o,7):s,l=e.addDays,d=e.getDay,u=[],m=o;m<c;)n.some((function(e){return d(m)===e}))||u.push(Zb(e,{date:m,weekendDays:r})),m=l(m,1);return u}function Wb(e,t){var i=t.events,n=void 0===i?[]:i,r=t.excluded,a=void 0===r?[]:r,o=t.precision,s=void 0===o?"days":o,c=t.absolutePositionedEvents,l=void 0!==c&&c,d=t.viewStart,u=t.viewEnd;d=e.startOfDay(d),u=e.endOfDay(u);var m=e.differenceInSeconds,p=e.differenceInDays,h=function(e,t){for(var i=t.date2,n=t.excluded,r=t.date1,a=0;r<i;)-1===n.indexOf(e.getDay(r))&&a++,r=e.addDays(r,1);return a}(e,{date1:d,date2:u,excluded:a}),g=p(u,d)+1,f=n.filter((function(e){return e.allDay})).map((function(t){var i=function(e,t){var i=t.event,n=t.startOfWeek,r=t.excluded,a=t.precision,o=e.differenceInDays,s=e.startOfDay,c=e.differenceInSeconds;if(i.start<n)return 0;var l=0;switch(a){case"days":l=86400*o(s(i.start),n);break;case"minutes":l=c(i.start,n)}return l-=Nb(e,{startDate:n,seconds:l,excluded:r,precision:a}),Math.abs(l/86400)}(e,{event:t,startOfWeek:d,excluded:a,precision:s});return{event:t,offset:i,span:function(e,t){var i=t.event,n=t.offset,r=t.excluded,a=t.precision,o=t.totalDaysInView,s=e.differenceInSeconds,c=e.addDays,l=e.endOfDay,d=e.differenceInDays,u=86400,m=(0,e.max)([i.start,t.startOfWeekDate]);if(i.end)switch(a){case"minutes":u=s(i.end,m);break;default:u=86400*d(c(l(i.end),1),m)}var p=86400*n,h=86400*o;return p+u>h&&(u=h-p),(u-=Nb(e,{startDate:m,seconds:u,excluded:r,precision:a}))/86400}(e,{event:t,offset:i,startOfWeekDate:d,excluded:a,precision:s,totalDaysInView:g})}})).filter((function(e){return e.offset<h})).filter((function(e){return e.span>0})).map((function(e){return{event:e.event,offset:e.offset,span:e.span,startsBeforeWeek:e.event.start<d,endsAfterWeek:(e.event.end||e.event.start)>u}})).sort((function(e,t){var i=m(e.event.start,t.event.start);return 0===i?m(t.event.end||t.event.start,e.event.end||e.event.start):i})),v=[],_=[];return f.forEach((function(e,t){if(-1===_.indexOf(e)){_.push(e);var i=e.span+e.offset,n=f.slice(t+1).filter((function(e){if(e.offset>=i&&i+e.span<=g&&-1===_.indexOf(e)){var t=e.offset-i;return l||(e.offset=t),i+=e.span+t,_.push(e),!0}})),r=Hb([e],n),a=r.filter((function(e){return e.event.id})).map((function(e){return e.event.id})).join("-");v.push(Fb({row:r},a?{id:a}:{}))}})),v}function Ub(e,t){var i=t.events,n=t.viewDate,r=t.hourSegments,a=t.hourDuration,o=t.dayStart,s=t.dayEnd,c=t.weekStartsOn,l=t.excluded,d=t.weekendDays,u=t.segmentHeight,m=t.viewStart,p=t.viewEnd,h=t.minimumEventHeight,g=function(e,t){var i=t.viewDate,n=t.hourSegments,r=t.hourDuration,a=t.dayStart,o=t.dayEnd,s=e.setMinutes,c=e.setHours,l=e.startOfDay,d=e.startOfMinute,u=e.endOfDay,m=e.addMinutes,p=e.addDays,h=[],g=s(c(l(i),Xb(a.hour)),Gb(a.minute)),f=s(c(d(u(i)),Xb(o.hour)),Gb(o.minute)),v=(r||60)/n,_=l(i),y=u(i),b=function(e){return e};_.getTimezoneOffset()!==y.getTimezoneOffset()&&(_=p(_,1),g=p(g,1),f=p(f,1),b=function(e){return p(e,-1)});for(var w=r?1440/r:60,x=0;x<w;x++){for(var C=[],k=0;k<n;k++){var A=m(m(g,x*(r||60)),k*v);A>=g&&A<f&&C.push({date:b(A),displayDate:A,isStart:0===k})}C.length>0&&h.push({segments:C})}return h}(e,{viewDate:n,hourSegments:r,hourDuration:a,dayStart:o,dayEnd:s}),f=Qb(e,{viewDate:n,weekStartsOn:c,excluded:l,weekendDays:d,viewStart:m,viewEnd:p}),v=e.setHours,_=e.setMinutes,y=e.getHours,b=e.getMinutes;return f.map((function(t){var n=function(e,t){var i=t.events,n=t.viewDate,r=t.hourSegments,a=t.dayStart,o=t.dayEnd,s=t.eventWidth,c=t.segmentHeight,l=t.hourDuration,d=t.minimumEventHeight,u=e.setMinutes,m=e.setHours,p=e.startOfDay,h=e.startOfMinute,g=e.endOfDay,f=e.differenceInMinutes,v=u(m(p(n),Xb(a.hour)),Gb(a.minute)),_=u(m(h(g(n)),Xb(o.hour)),Gb(o.minute));_.setSeconds(59,999);var y=[],b=Vb(e,{events:i.filter((function(e){return!e.allDay})),periodStart:v,periodEnd:_}),w=b.sort((function(e,t){return e.start.valueOf()-t.start.valueOf()})).map((function(e){var t=e.start,i=e.end||t,n=t<v,a=i>_,o=r*c/(l||60),u=0;if(t>v){var m=t.getTimezoneOffset(),p=v.getTimezoneOffset()-m;u+=f(t,v)+p}u*=o;var h=n?v:t,g=a?_:i,b=h.getTimezoneOffset()-g.getTimezoneOffset(),w=f(g,h)+b;e.end?w*=o:w=c,d&&w<d&&(w=d);for(var x=Yb(y,u,u+w),C=0;x.some((function(e){return e.left===C}));)C+=s;var k={event:e,height:w,width:s,top:u,left:C,startsBeforeDay:n,endsAfterDay:a};return y.push(k),k})),x=Math.max.apply(Math,w.map((function(e){return e.left+e.width})));return{events:w,width:x,allDayEvents:Vb(e,{events:i.filter((function(e){return e.allDay})),periodStart:p(v),periodEnd:g(_)}),period:{events:b,start:v,end:_}}}(e,{events:i,viewDate:t.date,hourSegments:r,dayStart:o,dayEnd:s,segmentHeight:u,eventWidth:1,hourDuration:a,minimumEventHeight:h}),c=g.map((function(e){var i=e.segments.map((function(e){var i=_(v(t.date,y(e.date)),b(e.date));return Fb(Fb({},e),{date:i})}));return Fb(Fb({},e),{segments:i})}));function l(e,t){var i=Math.max.apply(Math,t.map((function(e){return e.left+1}))),n=e.filter((function(e){return e.left>=i})).filter((function(e){return Yb(t,e.top,e.top+e.height).length>0}));return n.length>0?l(e,n):i}var d=n.events.map((function(e){var t=100/l(n.events,Yb(n.events,e.top,e.top+e.height));return Fb(Fb({},e),{left:e.left*t,width:t})}));return{hours:c,date:t.date,events:d.map((function(e){var t=Yb(d.filter((function(t){return t.left>e.left})),e.top,e.top+e.height);return t.length>0?Fb(Fb({},e),{width:Math.min.apply(Math,t.map((function(e){return e.left})))-e.left}):e}))}}))}function Yb(e,t,i){return e.filter((function(e){var n=e.top,r=e.top+e.height;return t<r&&r<i||t<n&&n<i||n<=t&&i<=r}))}function Xb(e){return Math.max(Math.min(23,e),0)}function Gb(e){return Math.max(Math.min(59,e),0)}var qb=function(e){return e.NotArray="Events must be an array",e.StartPropertyMissing="Event is missing the `start` property",e.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",e.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",e.EndsBeforeStart="Event `start` property occurs after the `end`",e}({});function Jb(e,t,i,r){return n(i)&&(r=i,i=void 0),r?Jb(e,t,i).pipe(D(e=>c(e)?r(...e):r(e))):new b(n=>{Kb(e,t,(function(e){n.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),n,i)})}function Kb(e,t,i,n,r){let a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const n=e;e.addEventListener(t,i,r),a=()=>n.removeEventListener(t,i,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const n=e;e.on(t,i),a=()=>n.off(t,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const n=e;e.addListener(t,i),a=()=>n.removeListener(t,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let a=0,o=e.length;a<o;a++)Kb(e[a],t,i,n,r)}n.add(a)}function $b(e,t){var i,n;return n=t,"function"==typeof(e=void 0===(i=e)?void 0===n?i:n:i)?function(){for(var t=arguments,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=t[r];return!!e.apply(this,n)}:e?function(){return!0}:function(){return!1}}var ew="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},tw=function(e){return null!=e&&"object"===(void 0===e?"undefined":ew(e))&&1===e.nodeType&&"object"===ew(e.style)&&"object"===ew(e.ownerDocument)};function iw(e,t){if(t=sw(t,!0),!tw(t))return-1;for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1}function nw(e,t){return-1!==iw(e,t)}function rw(e,t){for(var i=0;i<t.length;i++)nw(e,t[i])||e.push(t[i]);return t}function aw(e){for(var t=arguments,i=[],n=arguments.length-1;n-- >0;)i[n]=t[n+1];return rw(e,i=i.map(sw))}function ow(e){for(var t=arguments,i=[],n=arguments.length-1;n-- >0;)i[n]=t[n+1];return i.map(sw).reduce((function(t,i){var n=iw(e,i);return-1!==n?t.concat(e.splice(n,1)):t}),[])}function sw(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(i){throw i}if(!tw(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}function cw(e){if(e===window)return function(){var e={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({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(i){throw new TypeError("Can't call getBoundingClientRect on "+e)}}var lw,dw=void 0;"function"!=typeof Object.create?(lw=function(){},dw=function(e,t){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");lw.prototype=e||{};var i=new lw;return lw.prototype=null,void 0!==t&&Object.defineProperties(i,t),null===e&&(i.__proto__=null),i}):dw=Object.create;var uw=dw,mw=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function pw(e,t){t=t||{};for(var i=uw(e),n=0;n<mw.length;n++)void 0!==t[mw[n]]&&(i[mw[n]]=t[mw[n]]);return i}function hw(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}var gw=["webkit","moz","ms","o"],fw=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=gw.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[gw[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),n=Math.max(0,16-t-i),r=window.setTimeout((function(){return e(t+n)}),n);return i=t+n,r}}return window.requestAnimationFrame.bind(window)}(),vw=function(){if("undefined"==typeof window)return function(){};for(var e=0,t=gw.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[gw[e]+"CancelAnimationFrame"]||window[gw[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function _w(e,t){void 0===t&&(t={});var i=this,n=4,r=!1;if("object"!=typeof t.margin){var a=t.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var o,s={},c=function(e,t){var i=$b((t=t||{}).allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,i(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var n=t.target&&t.target.ownerDocument||document,r=n.documentElement,a=n.body;e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}(s),l=(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(e,t,i){var n=new MouseEvent("mousemove",pw(o,t));return hw(n,i),e.dispatchEvent(n)}:"function"==typeof document.createEvent?function(e,t,i){var n=pw(o,t),r=document.createEvent("MouseEvents");return r.initMouseEvent("mousemove",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget),hw(r,i),e.dispatchEvent(r)}:"function"==typeof document.createEventObject?function(e,t,i){var n=document.createEventObject(),r=pw(o,t);for(var a in r)n[a]=r[a];return hw(n,i),e.dispatchEvent(n)}:void 0}),d=!1;window.addEventListener("mousemove",c,!1),window.addEventListener("touchmove",c,!1),isNaN(t.maxSpeed)||(n=t.maxSpeed),"object"!=typeof n&&(n={left:n,right:n,top:n,bottom:n}),this.autoScroll=$b(t.autoScroll),this.syncMove=$b(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",c,!1),window.removeEventListener("touchmove",c,!1),window.removeEventListener("mousedown",v,!1),window.removeEventListener("touchstart",v,!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",f,!0),e=[],t&&y()},this.add=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];return aw.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];return ow.apply(void 0,[e].concat(t))};var u,m,p=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),m=e,e=[],m.forEach((function(e){e===window?p=window:i.add(e)})),Object.defineProperties(this,{down:{get:function(){return d}},maxSpeed:{get:function(){return n}},point:{get:function(){return s}},scrolling:{get:function(){return r}}});var h,g=null;function f(t){for(var i=0;i<e.length;i++)if(e[i]===t.target){r=!0;break}r&&fw((function(){return r=!1}))}function v(){d=!0}function _(){d=!1,y()}function y(){vw(h),vw(u)}function b(){d=!1}function w(){for(var t=null,i=0;i<e.length;i++)yw(s,e[i])&&(t=e[i]);return t}function x(t){if(i.autoScroll()&&!t.dispatched){var n=t.target,r=document.body;g&&!yw(s,g)&&(i.scrollWhenOutside||(g=null)),n&&n.parentNode===r?n=w():(n=function(t){if(!t)return null;if(g===t)return t;if(nw(e,t))return t;for(;t=t.parentNode;)if(nw(e,t))return t;return null}(n))||(n=w()),n&&n!==g&&(g=n),p&&(vw(u),u=fw(C)),g&&(vw(h),h=fw(k))}}function C(){A(p),vw(u),u=fw(C)}function k(){g&&(A(g),vw(h),h=fw(k))}function A(e){var t,n,r=cw(e);t=s.x<r.left+i.margin.left?Math.floor(Math.max(-1,(s.x-r.left)/i.margin.left-1)*i.maxSpeed.left):s.x>r.right-i.margin.right?Math.ceil(Math.min(1,(s.x-r.right)/i.margin.right+1)*i.maxSpeed.right):0,n=s.y<r.top+i.margin.top?Math.floor(Math.max(-1,(s.y-r.top)/i.margin.top-1)*i.maxSpeed.top):s.y>r.bottom-i.margin.bottom?Math.ceil(Math.min(1,(s.y-r.bottom)/i.margin.bottom+1)*i.maxSpeed.bottom):0,i.syncMove()&&l.dispatch(e,{pageX:s.pageX+t,pageY:s.pageY+n,clientX:s.x+t,clientY:s.y+n}),setTimeout((function(){n&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,n),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",v,!1),window.addEventListener("touchstart",v,!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",f,!0)}function yw(e,t,i){return i?e.y>i.top&&e.y<i.bottom&&e.x>i.left&&e.x<i.right:function(e,t){var i=cw(t);return e.y>i.top&&e.y<i.bottom&&e.x>i.left&&e.x<i.right}(e,t)}class bw{constructor(e){if(this.total=e,this.total<0)throw new ag}call(e,t){return t.subscribe(new ww(e,this.total))}}class ww extends h{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,i=this.total,n=this.count++;t.length<i?t.push(e):t[n%i]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let r=0;r<i;r++){const r=t++%i;e.next(n[r])}}e.complete()}}class xw{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new Cw(e,this.predicate,this.source))}}class Cw extends h{constructor(e,t,i){super(e),this.predicate=t,this.source=i,this.count=0,this.index=0}_next(e){this.predicate?this._tryPredicate(e):this.count++}_tryPredicate(e){let t;try{t=this.predicate(e,this.index++,this.source)}catch(i){return void this.destination.error(i)}t&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function kw(){return e=>e.lift(new Aw)}class Aw{call(e,t){return t.subscribe(new Sw(e))}}class Sw extends h{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}let Ew=(()=>{class e{constructor(){this.currentDrag=new A}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Dw=(()=>{class e{constructor(e){this.elementRef=e,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return e.\u0275fac=function(t){return new(t||e)(Bo(js))},e.\u0275dir=kt({type:e,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),e})();function Iw(e,t,i){i&&i.split(" ").forEach(i=>e.addClass(t.nativeElement,i))}function Ow(e,t,i){i&&i.split(" ").forEach(i=>e.removeClass(t.nativeElement,i))}let Pw=(()=>{class e{constructor(e,t,i,n,r,a,o){this.element=e,this.renderer=t,this.draggableHelper=i,this.zone=n,this.vcr=r,this.scrollContainer=a,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 Bc,this.dragStart=new Bc,this.ghostElementCreated=new Bc,this.dragging=new Bc,this.dragEnd=new Bc,this.pointerDown$=new A,this.pointerMove$=new A,this.pointerUp$=new A,this.eventListenerSubscriptions={},this.destroy$=new A,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const e=this.pointerDown$.pipe(Su(()=>this.canDrag()),V(e=>{e.event.stopPropagation&&!this.scrollContainer&&e.event.stopPropagation();const t=this.renderer.createElement("style");this.renderer.setAttribute(t,"type","text/css"),this.renderer.appendChild(t,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(t)});const i=this.getScrollPosition(),n=new b(e=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",t=>e.next(t))).pipe(jv(i),D(()=>this.getScrollPosition())),r=new A,a=new m_;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const o=X(this.pointerUp$,this.pointerDown$,a,this.destroy$).pipe(re()),s=tv([this.pointerMove$,n]).pipe(D(([t,i])=>({currentDrag$:r,transformX:t.clientX-e.clientX,transformY:t.clientY-e.clientY,clientX:t.clientX,clientY:t.clientY,scrollLeft:i.left,scrollTop:i.top,target:t.event.target})),D(e=>(this.dragSnapGrid.x&&(e.transformX=Math.round(e.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(e.transformY=Math.round(e.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),e)),D(e=>(this.dragAxis.x||(e.transformX=0),this.dragAxis.y||(e.transformY=0),e)),D(e=>Object.assign({},e,{x:e.transformX+(e.scrollLeft-i.left),y:e.transformY+(e.scrollTop-i.top)})),Su(({x:e,y:t,transformX:i,transformY:n})=>!this.validateDrag||this.validateDrag({x:e,y:t,transform:{x:i,y:n}})),Nv(o),re()),c=s.pipe(cg(1),re()),l=s.pipe((function(e){return e.lift(new bw(1))}),re());return c.subscribe(({clientX:e,clientY:t,x:i,y:n})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:a})}),this.scroller=new _w([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),Iw(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const r=this.element.nativeElement.getBoundingClientRect(),a=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(a):this.element.nativeElement.parentNode.insertBefore(a,this.element.nativeElement.nextSibling),this.ghostElement=a,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(a,{position:"fixed",top:`${r.top}px`,left:`${r.left}px`,width:`${r.width}px`,height:`${r.height}px`,cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const e=this.vcr.createEmbeddedView(this.ghostElementTemplate);a.innerHTML="",e.rootNodes.filter(e=>e instanceof Node).forEach(e=>{a.appendChild(e)}),l.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(e))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:e-i,clientY:t-n,element:a})}),l.subscribe(()=>{a.parentElement.removeChild(a),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(r)}),l.pipe(V(e=>{const t=a.pipe(e=>e.lift(new xw(void 0,e)),cg(1),D(t=>Object.assign({},e,{dragCancelled:t>0})));return a.complete(),t})).subscribe(({x:e,y:t,dragCancelled:i})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:e,y:t,dragCancelled:i})}),Ow(this.renderer,this.element,this.dragActiveClass),r.complete()}),X(o,l).pipe(cg(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(t)})}),s}),re());X(e.pipe(cg(1),D(e=>[,e])),e.pipe(kw())).pipe(Su(([e,t])=>!e||e.x!==t.x||e.y!==t.y),D(([e,t])=>t)).subscribe(({x:e,y:t,currentDrag$:i,clientX:n,clientY:r,transformX:a,transformY:o,target:s})=>{this.zone.run(()=>{this.dragging.next({x:e,y:t})}),requestAnimationFrame(()=>{if(this.ghostElement){const e=`translate3d(${a}px, ${o}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:e,"-webkit-transform":e,"-ms-transform":e,"-moz-transform":e,"-o-transform":e})}}),i.next({clientX:n,clientY:r,dropData:this.dropData,target:s})})}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(),t=Object.keys(this.eventListenerSubscriptions).length>0;e&&!t?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",e=>{this.onMouseDown(e)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",e=>{this.onMouseUp(e)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",e=>{this.onTouchStart(e)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",e=>{this.onTouchEnd(e)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",e=>{this.onTouchEnd(e)}),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&&t&&this.unsubscribeEventListeners()}onMouseDown(e){0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",e=>{this.pointerMove$.next({event:e,clientX:e.clientX,clientY:e.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 t,i,n;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),i=!1,n=this.hasScrollbar(),t=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const r=Jb(this.document,"contextmenu").subscribe(e=>{e.preventDefault()}),a=Jb(this.document,"touchmove",{passive:!1}).subscribe(r=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!i&&n&&(i=this.shouldBeginDrag(e,r,t)),(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&n&&!i||(r.preventDefault(),this.pointerMove$.next({event:r,clientX:r.targetTouches[0].clientX,clientY:r.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{r.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,t){Object.keys(t).forEach(i=>{this.renderer.setStyle(e,i,t[i])})}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,t,i){const n=this.getScrollPosition(),r=Math.abs(n.top-i.top),a=Math.abs(n.left-i.left),o=Math.abs(t.targetTouches[0].clientX-e.touches[0].clientX)-a,s=Math.abs(t.targetTouches[0].clientY-e.touches[0].clientY)-r,c=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(o+s>c.delta||r>0||a>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=c.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 e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(Qs),Bo(Ew),Bo(Sl),Bo(mc),Bo(Dw,8),Bo(Jl))},e.\u0275dir=kt({type:e,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:[Qt]}),e})();function Tw(e,t,i){return e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}let Mw=(()=>{class e{constructor(e,t,i,n,r){this.element=e,this.draggableHelper=t,this.zone=i,this.renderer=n,this.scrollContainer=r,this.dragEnter=new Bc,this.dragLeave=new Bc,this.dragOver=new Bc,this.drop=new Bc}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(e=>{Iw(this.renderer,this.element,this.dragActiveClass);const t={updateCache:!0},i=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{t.updateCache=!0});let n;const r=e.pipe(D(({clientX:e,clientY:i,dropData:r,target:a})=>{n=r,t.updateCache&&(t.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(t.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),t.updateCache=!1);const o=Tw(e,i,t.rect),s=!this.validateDrop||this.validateDrop({clientX:e,clientY:i,target:a});return t.scrollContainerRect?o&&s&&Tw(e,i,t.scrollContainerRect):o&&s})),a=r.pipe(bb());let o;a.pipe(Su(e=>e)).subscribe(()=>{o=!0,Iw(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:n})})}),r.pipe(Su(e=>e)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:n})})}),a.pipe(kw(),Su(([e,t])=>e&&!t)).subscribe(()=>{o=!1,Ow(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:n})})}),e.subscribe({complete:()=>{i(),Ow(this.renderer,this.element,this.dragActiveClass),o&&(Ow(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:n})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(Ew),Bo(Sl),Bo(Qs),Bo(Dw,8))},e.\u0275dir=kt({type:e,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),e})(),Lw=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();class Rw{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new zw(e,this.durationSelector))}}class zw extends j{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:t}=this;i=t(e)}catch(t){return this.destination.error(t)}const n=N(i,new B(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Fw(e,t=Zf){return i=()=>Mb(e,t),function(e){return e.lift(new Rw(i))};var i}const Hw=(()=>"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0))();function Bw(e,t,i=3){return Math.abs(e-t)<i}function jw(e,t,i,n){const r={top:e.top,bottom:e.bottom,left:e.left,right:e.right};return t.top&&(r.top+=n),t.bottom&&(r.bottom+=n),t.left&&(r.left+=i),t.right&&(r.right+=i),r.height=r.bottom-r.top,r.width=r.right-r.left,r}function Nw({clientY:e,rect:t}){return e>=t.top&&e<=t.bottom}function Vw({clientX:e,rect:t}){return e>=t.left&&e<=t.right}function Zw({clientX:e,clientY:t,elm:i,allowedEdges:n,cursorPrecision:r}){const a=i.nativeElement.getBoundingClientRect(),o={};return n.left&&Bw(e,a.left,r)&&Nw({clientY:t,rect:a})&&(o.left=!0),n.right&&Bw(e,a.right,r)&&Nw({clientY:t,rect:a})&&(o.right=!0),n.top&&Bw(t,a.top,r)&&Vw({clientX:e,rect:a})&&(o.top=!0),n.bottom&&Bw(t,a.bottom,r)&&Vw({clientX:e,rect:a})&&(o.bottom=!0),o}const Qw=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Ww(e,t){return e.left&&e.top?t.topLeft:e.right&&e.top?t.topRight:e.left&&e.bottom?t.bottomLeft:e.right&&e.bottom?t.bottomRight:e.left||e.right?t.leftOrRight:e.top||e.bottom?t.topOrBottom:""}function Uw({edges:e,initialRectangle:t,newRectangle:i}){const n={};return Object.keys(e).forEach(e=>{n[e]=(i[e]||0)-(t[e]||0)}),n}let Yw=(()=>{class e{constructor(e,t,i,n){this.platformId=e,this.renderer=t,this.elm=i,this.zone=n,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Qw,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new Bc,this.resizing=new Bc,this.resizeEnd=new Bc,this.mouseup=new A,this.mousedown=new A,this.mousemove=new A,this.destroy$=new A,this.resizeEdges$=new A,this.pointerEventListeners=Xw.getInstance(t,n)}ngOnInit(){const e=X(this.pointerEventListeners.pointerDown,this.mousedown),t=X(this.pointerEventListeners.pointerMove,this.mousemove).pipe(um(({event:e})=>{n&&e.preventDefault()}),re()),i=X(this.pointerEventListeners.pointerUp,this.mouseup);let n;const r=()=>{n&&n.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(n.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},a=()=>Object.assign({},Qw,this.resizeCursors);this.resizeEdges$.pipe(jv(this.resizeEdges),D(()=>this.resizeEdges&&Object.keys(this.resizeEdges).some(e=>!!this.resizeEdges[e])),ug(e=>e?t:og),Fw(this.mouseMoveThrottleMS),Nv(this.destroy$)).subscribe(({clientX:e,clientY:t})=>{const i=Zw({clientX:e,clientY:t,elm:this.elm,allowedEdges:this.resizeEdges,cursorPrecision:this.resizeCursorPrecision}),r=a();if(!n){const e=Ww(i,r);this.renderer.setStyle(this.elm.nativeElement,"cursor",e)}this.setElementClass(this.elm,"resize-left-hover",!0===i.left),this.setElementClass(this.elm,"resize-right-hover",!0===i.right),this.setElementClass(this.elm,"resize-top-hover",!0===i.top),this.setElementClass(this.elm,"resize-bottom-hover",!0===i.bottom)}),e.pipe(V(r=>{function a(e){return{clientX:e.clientX-r.clientX,clientY:e.clientY-r.clientY}}const o=()=>{const e={x:1,y:1};return n&&(this.resizeSnapGrid.left&&n.edges.left?e.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&n.edges.right&&(e.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&n.edges.top?e.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&n.edges.bottom&&(e.y=+this.resizeSnapGrid.bottom)),e};function s(e,t){return{x:Math.ceil(e.clientX/t.x),y:Math.ceil(e.clientY/t.y)}}return X(t.pipe(cg(1)).pipe(D(e=>[,e])),t.pipe(kw())).pipe(D(([e,t])=>[e?a(e):e,a(t)])).pipe(Su(([e,t])=>{if(!e)return!0;const i=o(),n=s(e,i),r=s(t,i);return n.x!==r.x||n.y!==r.y})).pipe(D(([,e])=>{const t=o();return{clientX:Math.round(e.clientX/t.x)*t.x,clientY:Math.round(e.clientY/t.y)*t.y}})).pipe(Nv(X(i,e)))})).pipe(Su(()=>!!n)).pipe(D(({clientX:e,clientY:t})=>jw(n.startingRect,n.edges,e,t))).pipe(Su(e=>this.allowNegativeResizes||!!(e.height&&e.width&&e.height>0&&e.width>0))).pipe(Su(e=>!this.validateResize||this.validateResize({rectangle:e,edges:Uw({edges:n.edges,initialRectangle:n.startingRect,newRectangle:e})})),Nv(this.destroy$)).subscribe(e=>{n&&n.clonedNode&&(this.renderer.setStyle(n.clonedNode,"height",`${e.height}px`),this.renderer.setStyle(n.clonedNode,"width",`${e.width}px`),this.renderer.setStyle(n.clonedNode,"top",`${e.top}px`),this.renderer.setStyle(n.clonedNode,"left",`${e.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Uw({edges:n.edges,initialRectangle:n.startingRect,newRectangle:e}),rectangle:e})}),n.currentRect=e}),e.pipe(D(({clientX:e,clientY:t,edges:i})=>i||Zw({clientX:e,clientY:t,elm:this.elm,allowedEdges:this.resizeEdges,cursorPrecision:this.resizeCursorPrecision}))).pipe(Su(e=>Object.keys(e).length>0),Nv(this.destroy$)).subscribe(e=>{n&&r();const t=function(e,t){let i=0,n=0;const r=e.nativeElement.style,a=["transform","-ms-transform","-moz-transform","-o-transform"].map(e=>r[e]).find(e=>!!e);if(a&&a.includes("translate")&&(i=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),n=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===t)return{height:e.nativeElement.offsetHeight,width:e.nativeElement.offsetWidth,top:e.nativeElement.offsetTop-n,bottom:e.nativeElement.offsetHeight+e.nativeElement.offsetTop-n,left:e.nativeElement.offsetLeft-i,right:e.nativeElement.offsetWidth+e.nativeElement.offsetLeft-i};{const t=e.nativeElement.getBoundingClientRect();return{height:t.height,width:t.width,top:t.top-n,bottom:t.bottom-n,left:t.left-i,right:t.right-i,scrollTop:e.nativeElement.scrollTop,scrollLeft:e.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);n={edges:e,startingRect:t,currentRect:t};const i=a(),o=Ww(n.edges,i);this.renderer.setStyle(document.body,"cursor",o),this.setElementClass(this.elm,"resize-active",!0),this.enableGhostResize&&(n.clonedNode=this.elm.nativeElement.cloneNode(!0),this.elm.nativeElement.parentElement.appendChild(n.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(n.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(n.clonedNode,"left",`${n.startingRect.left}px`),this.renderer.setStyle(n.clonedNode,"top",`${n.startingRect.top}px`),this.renderer.setStyle(n.clonedNode,"height",`${n.startingRect.height}px`),this.renderer.setStyle(n.clonedNode,"width",`${n.startingRect.width}px`),this.renderer.setStyle(n.clonedNode,"cursor",Ww(n.edges,i)),this.renderer.addClass(n.clonedNode,"resize-ghost-element"),n.clonedNode.scrollTop=n.startingRect.scrollTop,n.clonedNode.scrollLeft=n.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Uw({edges:e,initialRectangle:t,newRectangle:t}),rectangle:jw(t,{},0,0)})})}),i.pipe(Nv(this.destroy$)).subscribe(()=>{n&&(this.renderer.removeClass(this.elm.nativeElement,"resize-active"),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Uw({edges:n.edges,initialRectangle:n.startingRect,newRectangle:n.currentRect}),rectangle:n.currentRect})}),r(),n=null)})}ngOnChanges(e){e.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}ngOnDestroy(){ku(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}setElementClass(e,t,i){i?this.renderer.addClass(e.nativeElement,t):this.renderer.removeClass(e.nativeElement,t)}}return e.\u0275fac=function(t){return new(t||e)(Bo(ul),Bo(Qs),Bo(js),Bo(Sl))},e.\u0275dir=kt({type:e,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},features:[Qt]}),e})();class Xw{static getInstance(e,t){return Xw.instance||(Xw.instance=new Xw(e,t)),Xw.instance}constructor(e,t){this.pointerDown=new b(i=>{let n,r;return t.runOutsideAngular(()=>{n=e.listen("document","mousedown",e=>{i.next({clientX:e.clientX,clientY:e.clientY,event:e})}),Hw&&(r=e.listen("document","touchstart",e=>{i.next({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY,event:e})}))}),()=>{n(),Hw&&r()}}).pipe(re()),this.pointerMove=new b(i=>{let n,r;return t.runOutsideAngular(()=>{n=e.listen("document","mousemove",e=>{i.next({clientX:e.clientX,clientY:e.clientY,event:e})}),Hw&&(r=e.listen("document","touchmove",e=>{i.next({clientX:e.targetTouches[0].clientX,clientY:e.targetTouches[0].clientY,event:e})}))}),()=>{n(),Hw&&r()}}).pipe(re()),this.pointerUp=new b(i=>{let n,r,a;return t.runOutsideAngular(()=>{n=e.listen("document","mouseup",e=>{i.next({clientX:e.clientX,clientY:e.clientY,event:e})}),Hw&&(r=e.listen("document","touchend",e=>{i.next({clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,event:e})}),a=e.listen("document","touchcancel",e=>{i.next({clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,event:e})}))}),()=>{n(),Hw&&(r(),a())}}).pipe(re())}}let Gw=(()=>{class e{constructor(e,t,i,n){this.renderer=e,this.element=t,this.zone=i,this.resizable=n,this.resizeEdges={},this.eventListeners={},this.destroy$=new A}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),Hw&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),X(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,t,i){e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",e=>{this.onMousemove(e,e.targetTouches[0].clientX,e.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",e=>{this.onMousemove(e,e.clientX,e.clientY)})),this.resizable.mousedown.next({clientX:t,clientY:i,edges:this.resizeEdges})}onMouseup(e,t){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:t,edges:this.resizeEdges})}onMousemove(e,t,i){this.resizable.mousemove.next({clientX:t,clientY:i,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return Jb(this.element.nativeElement,e).pipe(Nv(this.destroy$))}}return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js),Bo(Sl),Bo(Yw))},e.\u0275dir=kt({type:e,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges"}}),e})(),qw=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();function Jw(e,t){return{type:7,name:e,definitions:t,options:{}}}function Kw(e,t=null){return{type:4,styles:t,timings:e}}function $w(e){return{type:6,styles:e,offset:null}}function ex(e,t,i){return{type:0,name:e,styles:t,options:i}}function tx(e,t,i=null){return{type:1,expr:e,animation:t,options:i}}const ix=function(e){return{action:e}};function nx(e,t){if(1&e){const e=Xo();Vo(0,"a",5),Jo("mwlClick",(function(i){gi(e);const n=t.$implicit,r=es(2).event;return n.onClick({event:r,sourceEvent:i})}))("mwlKeydownEnter",(function(i){gi(e);const n=t.$implicit,r=es(2).event;return n.onClick({event:r,sourceEvent:i})})),Mc(1,"calendarA11y"),Zo()}if(2&e){const e=t.$implicit;jo("ngClass",e.cssClass)("innerHtml",e.label,sr),Ro("aria-label",Rc(1,3,kc(6,ix,e),"actionButtonLabel"))}}function rx(e,t){if(1&e&&(Vo(0,"span",3),Fo(1,nx,2,8,"a",4),Zo()),2&e){const e=es(),t=e.event,i=e.trackByActionId;Dr(1),jo("ngForOf",t.actions)("ngForTrackBy",i)}}function ax(e,t){1&e&&Fo(0,rx,2,2,"span",2),2&e&&jo("ngIf",t.event.actions)}function ox(e,t){}const sx=function(e,t){return{event:e,trackByActionId:t}},cx=function(){return{}};function lx(e,t){if(1&e&&(Qo(0,"span",2),Mc(1,"calendarEventTitle"),Mc(2,"calendarA11y")),2&e){const e=t.event;jo("innerHTML",zc(1,2,e.title,t.view,e),sr),Ro("aria-hidden",Rc(2,6,Cc(9,cx),"hideEventTitle"))}}function dx(e,t){}const ux=function(e,t){return{event:e,view:t}};function mx(e,t){if(1&e&&(Vo(0,"div",2),Qo(1,"div",3),Qo(2,"div",4),Zo()),2&e){const e=t.contents;jo("ngClass","cal-tooltip-"+t.placement),Dr(2),jo("innerHtml",e,sr)}}function px(e,t){}const hx=function(e,t,i){return{contents:e,placement:t,event:i}},gx=function(e){return{backgroundColor:e}};function fx(e,t){if(1&e){const e=Xo();Vo(0,"mwl-calendar-month-cell",7),Jo("mwlClick",(function(i){gi(e);const n=t.$implicit;return es(2).dayClicked.emit({day:n,sourceEvent:i})}))("mwlKeydownEnter",(function(i){gi(e);const n=t.$implicit;return es(2).dayClicked.emit({day:n,sourceEvent:i})}))("highlightDay",(function(t){return gi(e),es(2).toggleDayHighlight(t.event,!0)}))("unhighlightDay",(function(t){return gi(e),es(2).toggleDayHighlight(t.event,!1)}))("drop",(function(i){gi(e);const n=t.$implicit;return es(2).eventDropped(n,i.dropData.event,i.dropData.draggedFrom)}))("eventClicked",(function(t){return gi(e),es(2).eventClicked.emit({event:t.event,sourceEvent:t.sourceEvent})})),Mc(1,"calendarA11y"),Zo()}if(2&e){const e=t.$implicit,i=es(2);jo("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",kc(15,gx,e.backgroundColor))("clickListenerDisabled",0===i.dayClicked.observers.length),Ro("tabindex",Rc(1,12,Cc(17,cx),"monthCellTabIndex"))}}function vx(e,t){if(1&e){const e=Xo();Vo(0,"div"),Vo(1,"div",4),Fo(2,fx,2,18,"mwl-calendar-month-cell",5),Mc(3,"slice"),Zo(),Vo(4,"mwl-calendar-open-day-events",6),Jo("eventClicked",(function(t){return gi(e),es().eventClicked.emit({event:t.event,sourceEvent:t.sourceEvent})}))("drop",(function(t){gi(e);const i=es();return i.eventDropped(i.openDay,t.dropData.event,t.dropData.draggedFrom)})),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es();Dr(2),jo("ngForOf",zc(3,9,i.view.days,e,e+i.view.totalDaysVisibleInWeek))("ngForTrackBy",i.trackByDate),Dr(2),jo("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 _x(e,t){if(1&e){const e=Xo();Vo(0,"div",4),Jo("click",(function(i){gi(e);const n=t.$implicit;return es(2).columnHeaderClicked.emit({isoDayNumber:n.day,sourceEvent:i})})),fs(1),Mc(2,"calendarDate"),Zo()}if(2&e){const e=t.$implicit,i=es().locale;ds("cal-past",e.isPast)("cal-today",e.isToday)("cal-future",e.isFuture)("cal-weekend",e.isWeekend),jo("ngClass",e.cssClass),Dr(1),_s(" ",zc(2,10,e.date,"monthViewColumnHeader",i)," ")}}function yx(e,t){if(1&e&&(Vo(0,"div",2),Fo(1,_x,3,14,"div",3),Zo()),2&e){const e=t.days,i=t.trackByWeekDayHeaderDate;Dr(1),jo("ngForOf",e)("ngForTrackBy",i)}}function bx(e,t){}const wx=function(e,t,i){return{days:e,locale:t,trackByWeekDayHeaderDate:i}};function xx(e,t){if(1&e&&(Vo(0,"span",7),fs(1),Zo()),2&e){const e=es().day;Dr(1),vs(e.badgeTotal)}}const Cx=function(e,t){return{event:e,draggedFrom:t}},kx=function(e,t){return{x:e,y:t}},Ax=function(){return{delay:300,delta:30}};function Sx(e,t){if(1&e){const e=Xo();Vo(0,"div",10),Jo("mouseenter",(function(){gi(e);const i=t.$implicit;return es(2).highlightDay.emit({event:i})}))("mouseleave",(function(){gi(e);const i=t.$implicit;return es(2).unhighlightDay.emit({event:i})}))("mwlClick",(function(i){gi(e);const n=t.$implicit;return es(2).eventClicked.emit({event:n,sourceEvent:i})})),Mc(1,"calendarEventTitle"),Mc(2,"calendarA11y"),Zo()}if(2&e){const e=t.$implicit,i=es(2),n=i.tooltipPlacement,r=i.tooltipTemplate,a=i.tooltipAppendToBody,o=i.tooltipDelay,s=i.day,c=i.validateDrag;ds("cal-draggable",e.draggable),jo("ngStyle",kc(22,gx,null==e.color?null:e.color.primary))("ngClass",null==e?null:e.cssClass)("mwlCalendarTooltip",zc(1,15,e.title,"monthTooltip",e))("tooltipPlacement",n)("tooltipEvent",e)("tooltipTemplate",r)("tooltipAppendToBody",a)("tooltipDelay",o)("dropData",Ac(24,Cx,e,s))("dragAxis",Ac(27,kx,e.draggable,e.draggable))("validateDrag",c)("touchStartLongPress",Cc(30,Ax)),Ro("aria-hidden",Rc(2,19,Cc(31,cx),"hideMonthCellEvents"))}}function Ex(e,t){if(1&e&&(Vo(0,"div",8),Fo(1,Sx,3,32,"div",9),Zo()),2&e){const e=es(),t=e.day,i=e.trackByEventId;Dr(1),jo("ngForOf",t.events)("ngForTrackBy",i)}}const Dx=function(e,t){return{day:e,locale:t}};function Ix(e,t){if(1&e&&(Vo(0,"div",2),Mc(1,"calendarA11y"),Vo(2,"span",3),Fo(3,xx,2,1,"span",4),Vo(4,"span",5),fs(5),Mc(6,"calendarDate"),Zo(),Zo(),Zo(),Fo(7,Ex,2,2,"div",6)),2&e){const e=t.day,i=t.locale;Ro("aria-label",Rc(1,4,Ac(11,Dx,e,i),"monthCell")),Dr(3),jo("ngIf",e.badgeTotal>0),Dr(2),vs(zc(6,7,e.date,"monthViewDayNumber",i)),Dr(2),jo("ngIf",e.events.length>0)}}function Ox(e,t){}const Px=function(e,t,i,n,r,a,o,s,c,l,d,u){return{day:e,openDay:t,locale:i,tooltipPlacement:n,highlightDay:r,unhighlightDay:a,eventClicked:o,tooltipTemplate:s,tooltipAppendToBody:c,tooltipDelay:l,trackByEventId:d,validateDrag:u}},Tx=function(e){return{event:e}},Mx=function(e,t){return{event:e,locale:t}};function Lx(e,t){if(1&e){const e=Xo();Vo(0,"div",7),Qo(1,"span",8),fs(2," "),Vo(3,"mwl-calendar-event-title",9),Jo("mwlClick",(function(i){gi(e);const n=t.$implicit;return es(2).eventClicked.emit({event:n,sourceEvent:i})}))("mwlKeydownEnter",(function(i){gi(e);const n=t.$implicit;return es(2).eventClicked.emit({event:n,sourceEvent:i})})),Mc(4,"calendarA11y"),Zo(),fs(5," "),Qo(6,"mwl-calendar-event-actions",10),Zo()}if(2&e){const e=t.$implicit,i=es(2).validateDrag,n=es();ds("cal-draggable",e.draggable),jo("ngClass",null==e?null:e.cssClass)("dropData",kc(16,Tx,e))("dragAxis",Ac(18,kx,e.draggable,e.draggable))("validateDrag",i)("touchStartLongPress",Cc(21,Ax)),Dr(1),jo("ngStyle",kc(22,gx,null==e.color?null:e.color.primary)),Dr(2),jo("event",e)("customTemplate",n.eventTitleTemplate),Ro("aria-label",Rc(4,13,Ac(24,Mx,e,n.locale),"eventDescription")),Dr(3),jo("event",e)("customTemplate",n.eventActionsTemplate)}}const Rx=function(e,t){return{date:e,locale:t}};function zx(e,t){if(1&e&&(Vo(0,"div",3),Qo(1,"span",4),Mc(2,"calendarA11y"),Qo(3,"span",5),Mc(4,"calendarA11y"),Fo(5,Lx,7,27,"div",6),Zo()),2&e){const e=es(),t=e.events,i=e.trackByEventId,n=es();jo("@collapse",void 0),Dr(1),Ro("aria-label",Rc(2,5,Ac(11,Rx,n.date,n.locale),"openDayEventsAlert")),Dr(2),Ro("aria-label",Rc(4,8,Ac(14,Rx,n.date,n.locale),"openDayEventsLandmark")),Dr(2),jo("ngForOf",t)("ngForTrackBy",i)}}function Fx(e,t){1&e&&Fo(0,zx,6,17,"div",2),2&e&&jo("ngIf",t.isOpen)}function Hx(e,t){}const Bx=function(e,t,i,n,r){return{events:e,eventClicked:t,isOpen:i,trackByEventId:n,validateDrag:r}};function jx(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Jo("drop",(function(i){gi(e);const n=t.$implicit;return es(2).eventDropped(i,n.date,!0)}))("dragEnter",(function(){gi(e);const i=t.$implicit;return es(2).dateDragEnter(i.date)})),Zo()}}const Nx=function(){return{left:!0}};function Vx(e,t){1&e&&Qo(0,"div",22),2&e&&jo("resizeEdges",Cc(1,Nx))}const Zx=function(){return{right:!0}};function Qx(e,t){1&e&&Qo(0,"div",23),2&e&&jo("resizeEdges",Cc(1,Zx))}const Wx=function(e,t){return{left:e,right:t}},Ux=function(e,t){return{event:e,calendarId:t}},Yx=function(e){return{x:e}};function Xx(e,t){if(1&e){const e=Xo();Vo(0,"div",17,18),Jo("resizeStart",(function(i){gi(e);const n=t.$implicit;es();const r=Ho(1);return es(2).allDayEventResizeStarted(r,n,i)}))("resizing",(function(i){gi(e);const n=t.$implicit,r=es(3);return r.allDayEventResizing(n,i,r.dayColumnWidth)}))("resizeEnd",(function(){gi(e);const i=t.$implicit;return es(3).allDayEventResizeEnded(i)}))("dragStart",(function(){gi(e);const t=Ho(1);es();const i=Ho(1);return es(2).dragStarted(i,t)}))("dragging",(function(){return gi(e),es(3).allDayEventDragMove()}))("dragEnd",(function(i){gi(e);const n=t.$implicit,r=es(3);return r.dragEnded(n,i,r.dayColumnWidth)})),Fo(2,Vx,1,2,"div",19),Vo(3,"mwl-calendar-week-view-event",20),Jo("eventClicked",(function(i){gi(e);const n=t.$implicit;return es(3).eventClicked.emit({event:n.event,sourceEvent:i.sourceEvent})})),Zo(),Fo(4,Qx,1,2,"div",21),Zo()}if(2&e){const e=t.$implicit,i=es(3);ls("width",100/i.days.length*e.span,"%")("margin-left",100/i.days.length*e.offset,"%"),ds("cal-draggable",e.event.draggable&&0===i.allDayEventResizes.size)("cal-starts-within-week",!e.startsBeforeWeek)("cal-ends-within-week",!e.endsAfterWeek),jo("ngClass",null==e.event?null:e.event.cssClass)("resizeSnapGrid",Ac(30,Wx,i.dayColumnWidth,i.dayColumnWidth))("validateResize",i.validateResize)("dropData",Ac(33,Ux,e.event,i.calendarId))("dragAxis",Ac(36,kx,e.event.draggable&&0===i.allDayEventResizes.size,!i.snapDraggedEvents&&e.event.draggable&&0===i.allDayEventResizes.size))("dragSnapGrid",i.snapDraggedEvents?kc(39,Yx,i.dayColumnWidth):Cc(41,cx))("validateDrag",i.validateDrag)("touchStartLongPress",Cc(42,Ax)),Dr(2),jo("ngIf",(null==e.event||null==e.event.resizable?null:e.event.resizable.beforeStart)&&!e.startsBeforeWeek),Dr(1),jo("locale",i.locale)("weekEvent",e)("tooltipPlacement",i.tooltipPlacement)("tooltipTemplate",i.tooltipTemplate)("tooltipAppendToBody",i.tooltipAppendToBody)("tooltipDelay",i.tooltipDelay)("customTemplate",i.eventTemplate)("eventTitleTemplate",i.eventTitleTemplate)("eventActionsTemplate",i.eventActionsTemplate)("daysInWeek",i.daysInWeek),Dr(1),jo("ngIf",(null==e.event||null==e.event.resizable?null:e.event.resizable.afterEnd)&&!e.endsAfterWeek)}}function Gx(e,t){if(1&e&&(Vo(0,"div",14,15),Fo(2,Xx,5,43,"div",16),Zo()),2&e){const e=t.$implicit,i=es(2);Dr(2),jo("ngForOf",e.row)("ngForTrackBy",i.trackByWeekAllDayEvent)}}function qx(e,t){if(1&e){const e=Xo();Vo(0,"div",8,9),Jo("dragEnter",(function(){return gi(e),es().dragEnter("allDay")}))("dragLeave",(function(){return gi(e),es().dragLeave("allDay")})),Vo(2,"div",5),Qo(3,"div",10),Fo(4,jx,1,0,"div",11),Zo(),Fo(5,Gx,3,2,"div",12),Zo()}if(2&e){const e=es();Dr(3),jo("ngTemplateOutlet",e.allDayEventsLabelTemplate),Dr(1),jo("ngForOf",e.days)("ngForTrackBy",e.trackByWeekDayHeaderDate),Dr(1),jo("ngForOf",e.view.allDayEventRows)("ngForTrackBy",e.trackById)}}function Jx(e,t){if(1&e&&Qo(0,"mwl-calendar-week-view-hour-segment",28),2&e){const e=t.$implicit,i=es(3);ls("height",i.hourSegmentHeight,"px"),jo("segment",e)("segmentHeight",i.hourSegmentHeight)("locale",i.locale)("customTemplate",i.hourSegmentTemplate)("isTimeLabel",!0)("daysInWeek",i.daysInWeek)}}function Kx(e,t){if(1&e&&(Vo(0,"div",26),Fo(1,Jx,1,8,"mwl-calendar-week-view-hour-segment",27),Zo()),2&e){const e=t.$implicit,i=t.odd,n=es(2);ds("cal-hour-odd",i),Dr(1),jo("ngForOf",e.segments)("ngForTrackBy",n.trackByHourSegment)}}function $x(e,t){if(1&e&&(Vo(0,"div",24),Fo(1,Kx,2,4,"div",25),Zo()),2&e){const e=es();Dr(1),jo("ngForOf",e.view.hourColumns[0].hours)("ngForTrackBy",e.trackByHour)}}const eC=function(){return{left:!0,top:!0}};function tC(e,t){1&e&&Qo(0,"div",22),2&e&&jo("resizeEdges",Cc(1,eC))}function iC(e,t){}function nC(e,t){if(1&e){const e=Xo();Vo(0,"mwl-calendar-week-view-event",36),Jo("eventClicked",(function(t){gi(e);const i=es().$implicit;return es(2).eventClicked.emit({event:i.event,sourceEvent:t.sourceEvent})})),Zo()}if(2&e){const e=es().$implicit,t=es().$implicit,i=es();jo("locale",i.locale)("weekEvent",e)("tooltipPlacement",i.tooltipPlacement)("tooltipTemplate",i.tooltipTemplate)("tooltipAppendToBody",i.tooltipAppendToBody)("tooltipDisabled",i.dragActive||i.timeEventResizes.size>0)("tooltipDelay",i.tooltipDelay)("customTemplate",i.eventTemplate)("eventTitleTemplate",i.eventTitleTemplate)("eventActionsTemplate",i.eventActionsTemplate)("column",t)("daysInWeek",i.daysInWeek)}}const rC=function(){return{right:!0,bottom:!0}};function aC(e,t){1&e&&Qo(0,"div",23),2&e&&jo("resizeEdges",Cc(1,rC))}const oC=function(e,t,i,n){return{left:e,right:t,top:i,bottom:n}};function sC(e,t){if(1&e){const e=Xo();Vo(0,"div",33,18),Jo("resizeStart",(function(i){gi(e);const n=t.$implicit,r=es(2),a=Ho(6);return r.timeEventResizeStarted(a,n,i)}))("resizing",(function(i){gi(e);const n=t.$implicit;return es(2).timeEventResizing(n,i)}))("resizeEnd",(function(){gi(e);const i=t.$implicit;return es(2).timeEventResizeEnded(i)}))("dragStart",(function(){gi(e);const i=t.$implicit,n=Ho(1),r=es(2),a=Ho(6);return r.dragStarted(a,n,i)}))("dragging",(function(i){gi(e);const n=t.$implicit;return es(2).dragMove(n,i)}))("dragEnd",(function(i){gi(e);const n=t.$implicit,r=es(2);return r.dragEnded(n,i,r.dayColumnWidth,!0)})),Fo(2,tC,1,2,"div",19),Fo(3,iC,0,0,"ng-template",34),Fo(4,nC,1,12,"ng-template",null,35,rl),Fo(6,aC,1,2,"div",21),Zo()}if(2&e){const e=t.$implicit,l=Ho(5),d=es(2);ls("top",e.top,"px")("height",e.height,"px")("left",e.left,"%")("width",e.width,"%"),ds("cal-draggable",e.event.draggable&&0===d.timeEventResizes.size)("cal-starts-within-day",!e.startsBeforeDay)("cal-ends-within-day",!e.endsAfterDay),jo("ngClass",e.event.cssClass)("hidden",0===e.height&&0===e.width)("resizeSnapGrid",(i=29,n=oC,r=d.dayColumnWidth,a=d.dayColumnWidth,o=d.eventSnapSize||d.hourSegmentHeight,s=d.eventSnapSize||d.hourSegmentHeight,function(e,t,i,n,r,a,o,s,c){const l=t+i;return Lo(e,l,r,a,o,s)?Io(e,l+4,c?n.call(c,r,a,o,s):n(r,a,o,s)):Ic(e,l+4)}(pi(),xi(),i,n,r,a,o,s,c)))("validateResize",d.validateResize)("allowNegativeResizes",!0)("dropData",Ac(34,Ux,e.event,d.calendarId))("dragAxis",Ac(37,kx,e.event.draggable&&0===d.timeEventResizes.size,e.event.draggable&&0===d.timeEventResizes.size))("dragSnapGrid",d.snapDraggedEvents?Ac(40,kx,d.dayColumnWidth,d.eventSnapSize||d.hourSegmentHeight):Cc(43,cx))("touchStartLongPress",Cc(44,Ax))("ghostDragEnabled",!d.snapDraggedEvents)("ghostElementTemplate",l)("validateDrag",d.validateDrag),Dr(2),jo("ngIf",(null==e.event||null==e.event.resizable?null:e.event.resizable.beforeStart)&&!e.startsBeforeDay),Dr(1),jo("ngTemplateOutlet",l),Dr(3),jo("ngIf",(null==e.event||null==e.event.resizable?null:e.event.resizable.afterEnd)&&!e.endsAfterDay)}var i,n,r,a,o,s,c}function cC(e,t){if(1&e){const e=Xo();Vo(0,"mwl-calendar-week-view-hour-segment",38),Jo("mwlClick",(function(i){gi(e);const n=t.$implicit;return es(3).hourSegmentClicked.emit({date:n.date,sourceEvent:i})}))("drop",(function(i){gi(e);const n=t.$implicit;return es(3).eventDropped(i,n.date,!1)}))("dragEnter",(function(){gi(e);const i=t.$implicit;return es(3).dateDragEnter(i.date)})),Zo()}if(2&e){const e=t.$implicit,i=es(3);ls("height",i.hourSegmentHeight,"px"),jo("segment",e)("segmentHeight",i.hourSegmentHeight)("locale",i.locale)("customTemplate",i.hourSegmentTemplate)("daysInWeek",i.daysInWeek)("clickListenerDisabled",0===i.hourSegmentClicked.observers.length)("dragOverClass",i.dragActive&&i.snapDraggedEvents?null:"cal-drag-over")("isTimeLabel",1===i.daysInWeek)}}function lC(e,t){if(1&e&&(Vo(0,"div",26),Fo(1,cC,1,10,"mwl-calendar-week-view-hour-segment",37),Zo()),2&e){const e=t.$implicit,i=t.odd,n=es(2);ds("cal-hour-odd",i),Dr(1),jo("ngForOf",e.segments)("ngForTrackBy",n.trackByHourSegment)}}function dC(e,t){if(1&e&&(Vo(0,"div",29),Qo(1,"mwl-calendar-week-view-current-time-marker",30),Vo(2,"div",31),Fo(3,sC,7,45,"div",32),Zo(),Fo(4,lC,2,4,"div",25),Zo()),2&e){const e=t.$implicit,i=es();Dr(1),jo("columnDate",e.date)("dayStartHour",i.dayStartHour)("dayStartMinute",i.dayStartMinute)("dayEndHour",i.dayEndHour)("dayEndMinute",i.dayEndMinute)("hourSegments",i.hourSegments)("hourSegmentHeight",i.hourSegmentHeight)("customTemplate",i.currentTimeMarkerTemplate),Dr(2),jo("ngForOf",e.events)("ngForTrackBy",i.trackByWeekTimeEvent),Dr(1),jo("ngForOf",e.hours)("ngForTrackBy",i.trackByHour)}}function uC(e,t){if(1&e){const e=Xo();Vo(0,"div",4),Jo("mwlClick",(function(i){gi(e);const n=t.$implicit;return es().dayHeaderClicked.emit({day:n,sourceEvent:i})}))("drop",(function(i){gi(e);const n=t.$implicit;return es().eventDropped.emit({event:i.dropData.event,newStart:n.date})}))("dragEnter",(function(){gi(e);const i=t.$implicit;return es().dragEnter.emit({date:i.date})})),Vo(1,"b"),fs(2),Mc(3,"calendarDate"),Zo(),Qo(4,"br"),Vo(5,"span"),fs(6),Mc(7,"calendarDate"),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es().locale;ds("cal-past",e.isPast)("cal-today",e.isToday)("cal-future",e.isFuture)("cal-weekend",e.isWeekend),jo("ngClass",e.cssClass),Dr(2),vs(zc(3,11,e.date,"weekViewColumnHeader",i)),Dr(4),vs(zc(7,15,e.date,"weekViewColumnSubHeader",i))}}function mC(e,t){if(1&e&&(Vo(0,"div",2),Fo(1,uC,8,19,"div",3),Zo()),2&e){const e=t.days,i=t.trackByWeekDayHeaderDate;Dr(1),jo("ngForOf",e)("ngForTrackBy",i)}}function pC(e,t){}const hC=function(e,t,i,n,r,a){return{days:e,locale:t,dayHeaderClicked:i,eventDropped:n,dragEnter:r,trackByWeekDayHeaderDate:a}},gC=function(e,t){return{backgroundColor:e,borderColor:t}};function fC(e,t){if(1&e){const e=Xo();Vo(0,"div",2),Jo("mwlClick",(function(i){return gi(e),t.eventClicked.emit({sourceEvent:i})}))("mwlKeydownEnter",(function(i){return gi(e),t.eventClicked.emit({sourceEvent:i})})),Mc(1,"calendarEventTitle"),Mc(2,"calendarA11y"),Qo(3,"mwl-calendar-event-actions",3),fs(4," "),Qo(5,"mwl-calendar-event-title",4),Zo()}if(2&e){const e=t.weekEvent,i=t.tooltipPlacement,n=t.tooltipTemplate,r=t.tooltipAppendToBody,a=t.tooltipDisabled,o=t.tooltipDelay,s=t.daysInWeek,c=es();jo("ngStyle",Ac(20,gC,null==e.event.color?null:e.event.color.secondary,null==e.event.color?null:e.event.color.primary))("mwlCalendarTooltip",a?"":zc(1,13,e.event.title,1===s?"dayTooltip":"weekTooltip",e.tempEvent||e.event))("tooltipPlacement",i)("tooltipEvent",e.tempEvent||e.event)("tooltipTemplate",n)("tooltipAppendToBody",r)("tooltipDelay",o),Ro("aria-label",Rc(2,17,Ac(23,Mx,e.tempEvent||e.event,c.locale),"eventDescription")),Dr(3),jo("event",e.tempEvent||e.event)("customTemplate",c.eventActionsTemplate),Dr(2),jo("event",e.tempEvent||e.event)("customTemplate",c.eventTitleTemplate)("view",1===s?"day":"week")}}function vC(e,t){}const _C=function(e,t,i,n,r,a,o,s,c){return{weekEvent:e,tooltipPlacement:t,eventClicked:i,tooltipTemplate:n,tooltipAppendToBody:r,tooltipDisabled:a,tooltipDelay:o,column:s,daysInWeek:c}};function yC(e,t){if(1&e&&(Vo(0,"div",4),fs(1),Mc(2,"calendarDate"),Zo()),2&e){const e=es(),t=e.segment,i=e.daysInWeek,n=e.locale;Dr(1),_s(" ",zc(2,1,t.displayDate,1===i?"dayViewHour":"weekViewHour",n)," ")}}function bC(e,t){if(1&e&&(Vo(0,"div",2),Mc(1,"calendarA11y"),Fo(2,yC,3,5,"div",3),Zo()),2&e){const e=t.segment,i=t.isTimeLabel,n=t.daysInWeek;ls("height",t.segmentHeight,"px"),ds("cal-hour-start",e.isStart)("cal-after-hour-start",!e.isStart),jo("ngClass",e.cssClass),Ro("aria-hidden",Rc(1,9,Cc(12,cx),1===n?"hideDayHourSegment":"hideWeekHourSegment")),Dr(2),jo("ngIf",i)}}function wC(e,t){}const xC=function(e,t,i,n,r){return{segment:e,locale:t,segmentHeight:i,isTimeLabel:n,daysInWeek:r}};function CC(e,t){1&e&&Qo(0,"div",3),2&e&&ls("top",es().topPx,"px")}function kC(e,t){1&e&&Fo(0,CC,1,2,"div",2),2&e&&jo("ngIf",t.isVisible)}function AC(e,t){}const SC=function(e,t,i,n,r,a,o){return{columnDate:e,dayStartHour:t,dayStartMinute:i,dayEndHour:n,dayEndMinute:r,isVisible:a,topPx:o}};let EC=(()=>{let e=class{constructor(){this.trackByActionId=(e,t)=>t.id?t.id:t}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,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,t){if(1&e&&(Fo(0,ax,1,1,"ng-template",null,0,rl),Fo(2,ox,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Ac(2,sx,t.event,t.trackByActionId))}},directives:function(){return[$d,Zd,Nd,Hd,ik,nk]},pipes:function(){return[ok]},encapsulation:2}),e})(),DC=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,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,t){if(1&e&&(Fo(0,lx,3,10,"ng-template",null,0,rl),Fo(2,dx,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Ac(2,ux,t.event,t.view))}},directives:function(){return[$d]},pipes:function(){return[tk,ok]},encapsulation:2}),e})(),IC=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,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,t){if(1&e&&(Fo(0,mx,3,2,"ng-template",null,0,rl),Fo(2,px,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Sc(2,hx,t.contents,t.placement,t.event))}},directives:[$d,Hd],encapsulation:2}),e})(),OC=(()=>{let e=class{constructor(e,t,i,n,r,a){this.elementRef=e,this.injector=t,this.renderer=i,this.viewContainerRef=r,this.document=a,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new A,this.tooltipFactory=n.resolveComponentFactory(IC)}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?Au("now"):Mb(this.delay)).pipe(Nv(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(e,t,i,n,r){var a=Array.isArray(i)?i:i.split(Ob),o=function(e){e.split("-");return[]},s=a.findIndex((function(e){return"auto"===e}));s>=0&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach((function(e){null==a.find((function(t){return-1!==t.search("^"+e)}))&&a.splice(s++,1,e)}));var c,l=t.style;l.position="absolute",l.top="0",l.left="0",l["will-change"]="transform";for(var d=!1,u=0,m=a;u<m.length;u++)if(o(c=m[u]),Pb.positionElements(e,t,c,n)){d=!0;break}return d||(o(c=a[0]),Pb.positionElements(e,t,c,n)),c}(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 e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(fo),Bo(Qs),Bo(Bs),Bo(mc),Bo(Jl))},e.\u0275dir=kt({type:e,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(e,t){1&e&&Jo("mouseenter",(function(){return t.onMouseOver()}))("mouseleave",(function(){return t.onMouseOut()}))},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[Qt]}),e})();class PC{}var TC=function(e){return e.Month="month",e.Week="week",e.Day="day",e}({});const MC=e=>function(e,t){var i=!0;function n(e,n){t(e,n),i=!1}return Array.isArray(e)?(e.forEach((function(e){e.start?e.start instanceof Date||n(qb.StartPropertyNotDate,e):n(qb.StartPropertyMissing,e),e.end&&(e.end instanceof Date||n(qb.EndPropertyNotDate,e),e.start>e.end&&n(qb.EndsBeforeStart,e))})),i):(t(qb.NotArray,e),!1)}(e,(...e)=>console.warn("angular-calendar",...e));function LC(e,t){return Math.floor(e.left)<=Math.ceil(t.left)&&Math.floor(t.left)<=Math.ceil(e.right)&&Math.floor(e.left)<=Math.ceil(t.right)&&Math.floor(t.right)<=Math.ceil(e.right)&&Math.floor(e.top)<=Math.ceil(t.top)&&Math.floor(t.top)<=Math.ceil(e.bottom)&&Math.floor(e.top)<=Math.ceil(t.bottom)&&Math.floor(t.bottom)<=Math.ceil(e.bottom)}function RC(e,t){return Math.round(e/t)*t}const zC=(e,t)=>t.id?t.id:t,FC=(e,t)=>t.date.toISOString(),HC=(e,t)=>t.date.toISOString(),BC=(e,t)=>t.segments[0].date.toISOString(),jC=(e,t)=>t.event.id?t.event.id:t.event,NC=(e,t)=>t.event.id?t.event.id:t.event;function VC(e,t){return 60/(e*t)}function ZC(e,t,i,n){return RC(e,n||i)*VC(t,i)}function QC(e,t,i){return t.end?t.end:e.addMinutes(t.start,i)}function WC(e,t,i,n){let r=0,a=0;const o=i<0?e.subDays:e.addDays;let s=t;for(;a<=Math.abs(i);){s=o(t,r);const i=e.getDay(s);-1===n.indexOf(i)&&a++,r++}return s}function UC(e,t,i,n=[],r){let a=r?e.startOfDay(t):e.startOfWeek(t,{weekStartsOn:i});const o=e.endOfWeek(t,{weekStartsOn:i});for(;n.indexOf(e.getDay(a))>-1&&a<o;)a=e.addDays(a,1);if(r)return{viewStart:a,viewEnd:e.endOfDay(WC(e,a,r-1,n))};{let t=o;for(;n.indexOf(e.getDay(t))>-1&&t>a;)t=e.subDays(t,1);return{viewStart:a,viewEnd:t}}}function YC({x:e,y:t}){return Math.abs(e)>1||Math.abs(t)>1}let XC=(()=>{let e=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new Bc}onClick(){const e={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===TC.Day?WC(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===TC.Week&&this.daysInWeek?WC(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return e.\u0275fac=function(t){return new(t||e)(Bo(PC))},e.\u0275dir=kt({type:e,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(e,t){1&e&&Jo("click",(function(){return t.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),e})(),GC=(()=>{let e=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new Bc}onClick(){const e={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===TC.Day?WC(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===TC.Week&&this.daysInWeek?WC(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return e.\u0275fac=function(t){return new(t||e)(Bo(PC))},e.\u0275dir=kt({type:e,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(e,t){1&e&&Jo("click",(function(){return t.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),e})(),qC=(()=>{let e=class{constructor(e){this.dateAdapter=e,this.viewDateChange=new Bc}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return e.\u0275fac=function(t){return new(t||e)(Bo(PC))},e.\u0275dir=kt({type:e,selectors:[["","mwlCalendarToday",""]],hostBindings:function(e,t){1&e&&Jo("click",(function(){return t.onClick()}))},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),e})(),JC=(()=>{let e=class{constructor(e){this.dateAdapter=e}monthViewColumnHeader({date:e,locale:t}){return yd(e,"EEEE",t)}monthViewDayNumber({date:e,locale:t}){return yd(e,"d",t)}monthViewTitle({date:e,locale:t}){return yd(e,"LLLL y",t)}weekViewColumnHeader({date:e,locale:t}){return yd(e,"EEEE",t)}weekViewColumnSubHeader({date:e,locale:t}){return yd(e,"MMM d",t)}weekViewTitle({date:e,locale:t,weekStartsOn:i,excludeDays:n,daysInWeek:r}){const{viewStart:a,viewEnd:o}=UC(this.dateAdapter,e,i,n,r),s=(e,i)=>yd(e,"MMM d"+(i?", yyyy":""),t);return`${s(a,a.getUTCFullYear()!==o.getUTCFullYear())} - ${s(o,!0)}`}weekViewHour({date:e,locale:t}){return yd(e,"h a",t)}dayViewHour({date:e,locale:t}){return yd(e,"h a",t)}dayViewTitle({date:e,locale:t}){return yd(e,"EEEE, MMMM d, y",t)}};return e.\u0275fac=function(t){return new(t||e)($e(PC))},e.\u0275prov=he({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),KC=(()=>{let e=class extends JC{};return e.\u0275fac=function(t){return Dk(t||e)},e.\u0275prov=he({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),$C=(()=>{let e=class{constructor(e,t){this.dateFormatter=e,this.locale=t}transform(e,t,i=this.locale,n=0,r=[],a){if(void 0===this.dateFormatter[t]){const e=Object.getOwnPropertyNames(Object.getPrototypeOf(KC.prototype)).filter(e=>"constructor"!==e);throw new Error(`${t} is not a valid date formatter. Can only be one of ${e.join(", ")}`)}return this.dateFormatter[t]({date:e,locale:i,weekStartsOn:n,excludeDays:r,daysInWeek:a})}};return e.\u0275fac=function(t){return new(t||e)(Bo(KC),Bo(hl))},e.\u0275pipe=At({name:"calendarDate",type:e,pure:!0}),e})();class ek{month(e,t){return e.title}monthTooltip(e,t){return e.title}week(e,t){return e.title}weekTooltip(e,t){return e.title}day(e,t){return e.title}dayTooltip(e,t){return e.title}}let tk=(()=>{let e=class{constructor(e){this.calendarEventTitle=e}transform(e,t,i){return this.calendarEventTitle[t](i,e)}};return e.\u0275fac=function(t){return new(t||e)(Bo(ek))},e.\u0275pipe=At({name:"calendarEventTitle",type:e,pure:!0}),e})(),ik=(()=>{let e=class{constructor(e,t,i){this.renderer=e,this.elm=t,this.document=i,this.clickListenerDisabled=!1,this.click=new Bc,this.destroy$=new A}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(Nv(this.destroy$)).subscribe(e=>{e.stopPropagation(),this.click.emit(e)})}ngOnDestroy(){this.destroy$.next()}listen(){return new b(e=>this.renderer.listen(this.elm.nativeElement,"click",t=>{e.next(t)}))}};return e.\u0275fac=function(t){return new(t||e)(Bo(Qs),Bo(js),Bo(Jl))},e.\u0275dir=kt({type:e,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),e})(),nk=(()=>{let e=class{constructor(){this.keydown=new Bc}onKeyPress(e){13!==e.keyCode&&13!==e.which&&"Enter"!==e.key||(e.preventDefault(),e.stopPropagation(),this.keydown.emit(e))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","mwlKeydownEnter",""]],hostBindings:function(e,t){1&e&&Jo("keydown",(function(e){return t.onKeyPress(e)}))},outputs:{keydown:"mwlKeydownEnter"}}),e})(),rk=(()=>{let e=class{constructor(e){this.dateAdapter=e}getMonthView(e){return function(e,t){var i=t.events,n=void 0===i?[]:i,r=t.viewDate,a=t.weekStartsOn,o=t.excluded,s=void 0===o?[]:o,c=t.viewStart,l=void 0===c?e.startOfMonth(r):c,d=t.viewEnd,u=void 0===d?e.endOfMonth(r):d,m=t.weekendDays;n||(n=[]);for(var p,h=e.endOfWeek,g=e.differenceInDays,f=e.startOfDay,v=e.addHours,_=e.endOfDay,y=e.isSameMonth,b=e.getDay,w=(0,e.startOfWeek)(l,{weekStartsOn:a}),x=h(u,{weekStartsOn:a}),C=Vb(e,{events:n,periodStart:w,periodEnd:x}),k=[],A=function(t){var i;if(p?(i=f(v(p,24)),p.getTime()===i.getTime()&&(i=f(v(p,25))),p=i):i=p=w,!s.some((function(e){return b(i)===e}))){var n=Zb(e,{date:i,weekendDays:m}),a=Vb(e,{events:C,periodStart:f(i),periodEnd:_(i)});n.inMonth=y(i,r),n.events=a,n.badgeTotal=a.length,k.push(n)}},S=0;S<g(x,w)+1;S++)A();var E=[],D=7-s.length;if(D<7)for(S=0;S<k.length;S+=D){var I=k.slice(S,S+D);I.some((function(e){return l<=e.date&&e.date<u}))&&(E=Hb(E,I))}else E=k;var O=Math.floor(E.length/D),P=[];for(S=0;S<O;S++)P.push(S*D);return{rowOffsets:P,totalDaysVisibleInWeek:D,days:E,period:{start:E[0].date,end:_(E[E.length-1].date),events:C}}}(this.dateAdapter,e)}getWeekViewHeader(e){return Qb(this.dateAdapter,e)}getWeekView(e){return function(e,t){var i=t.events,n=void 0===i?[]:i,r=t.viewDate,a=t.weekStartsOn,o=t.excluded,s=void 0===o?[]:o,c=t.precision,l=void 0===c?"days":c,d=t.absolutePositionedEvents,u=void 0!==d&&d,m=t.hourSegments,p=t.hourDuration,h=t.dayStart,g=t.dayEnd,f=t.weekendDays,v=t.segmentHeight,_=t.minimumEventHeight,y=t.viewStart,b=void 0===y?e.startOfWeek(r,{weekStartsOn:a}):y,w=t.viewEnd,x=void 0===w?e.endOfWeek(r,{weekStartsOn:a}):w;n||(n=[]);var C=e.endOfDay,k=Vb(e,{events:n,periodStart:b=(0,e.startOfDay)(b),periodEnd:x=C(x)}),A=Qb(e,{viewDate:r,weekStartsOn:a,excluded:s,weekendDays:f,viewStart:b,viewEnd:x});return{allDayEventRows:Wb(e,{events:k,excluded:s,precision:l,absolutePositionedEvents:u,viewStart:b,viewEnd:x}),period:{events:k,start:A[0].date,end:C(A[A.length-1].date)},hourColumns:Ub(e,{events:n,viewDate:r,hourSegments:m,hourDuration:p,dayStart:h,dayEnd:g,weekStartsOn:a,excluded:s,weekendDays:f,segmentHeight:v,viewStart:b,viewEnd:x,minimumEventHeight:_})}}(this.dateAdapter,e)}};return e.\u0275fac=function(t){return new(t||e)($e(PC))},e.\u0275prov=he({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),ak=(()=>{let e=class{constructor(e){this.i18nPlural=e}monthCell({day:e,locale:t}){return e.badgeTotal>0?`\n ${yd(e.date,"EEEE MMMM d",t)},\n ${this.i18nPlural.transform(e.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:`${yd(e.date,"EEEE MMMM d",t)}`}openDayEventsLandmark({date:e,locale:t}){return`\n Beginning of expanded view for ${yd(e,"EEEE MMMM dd",t)}\n `}openDayEventsAlert({date:e,locale:t}){return`${yd(e,"EEEE MMMM dd",t)} expanded`}eventDescription({event:e,locale:t}){if(!0===e.allDay)return this.allDayEventDescription({event:e,locale:t});const i=`\n ${yd(e.start,"EEEE MMMM dd",t)},\n ${e.title}, from ${yd(e.start,"hh:mm a",t)}\n `;return e.end?i+` to ${yd(e.end,"hh:mm a",t)}`:i}allDayEventDescription({event:e,locale:t}){const i=`\n ${e.title}, event spans multiple days:\n start time ${yd(e.start,"MMMM dd hh:mm a",t)}\n `;return e.end?i+`, stop time ${yd(e.end,"MMMM d hh:mm a",t)}`:i+", 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 e.\u0275fac=function(t){return new(t||e)($e(mu))},e.\u0275prov=he({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),ok=(()=>{let e=class{constructor(e,t){this.calendarA11y=e,this.locale=t}transform(e,t){if(e.locale=e.locale||this.locale,void 0===this.calendarA11y[t]){const e=Object.getOwnPropertyNames(Object.getPrototypeOf(ak.prototype)).filter(e=>"constructor"!==e);throw new Error(`${t} is not a valid a11y method. Can only be one of ${e.join(", ")}`)}return this.calendarA11y[t](e)}};return e.\u0275fac=function(t){return new(t||e)(Bo(ak),Bo(hl))},e.\u0275pipe=At({name:"calendarA11y",type:e,pure:!0}),e})();var sk,ck=function(e){return e.Drag="drag",e.Drop="drop",e.Resize="resize",e}({});let lk=(()=>{let e=sk=class{static forRoot(e,t={}){return{ngModule:sk,providers:[e,t.eventTitleFormatter||ek,t.dateFormatter||KC,t.utils||rk,t.a11y||ak]}}};return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[mu],imports:[[Cu]]}),e})(),dk=(()=>{let e=class{constructor(e,t,i,n){this.cdr=e,this.utils=t,this.dateAdapter=n,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new Bc,this.dayClicked=new Bc,this.eventClicked=new Bc,this.columnHeaderClicked=new Bc,this.eventTimesChanged=new Bc,this.trackByRowOffset=(e,t)=>this.view.days.slice(t,this.view.totalDaysVisibleInWeek).map(e=>e.date.toISOString()).join("-"),this.trackByDate=(e,t)=>t.date.toISOString(),this.locale=i}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(e){const t=e.viewDate||e.excludeDays||e.weekendDays,i=e.viewDate||e.events||e.excludeDays||e.weekendDays;t&&this.refreshHeader(),e.events&&MC(this.events),i&&this.refreshBody(),(t||i)&&this.emitBeforeViewRender(),(e.activeDayIsOpen||e.viewDate||e.events||e.excludeDays||e.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(e,t){this.view.days.forEach(i=>{t&&i.events.indexOf(e)>-1?i.backgroundColor=e.color&&e.color.secondary||"#D1E8FF":delete i.backgroundColor})}eventDropped(e,t,i){if(e!==i){const i=this.dateAdapter.getYear(e.date),n=this.dateAdapter.getMonth(e.date),r=this.dateAdapter.getDate(e.date),a=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(t.start,i),n),r);let o;if(t.end){const e=this.dateAdapter.differenceInSeconds(a,t.start);o=this.dateAdapter.addSeconds(t.end,e)}this.eventTimesChanged.emit({event:t,newStart:a,newEnd:o,day:e,type:ck.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(t=>this.dateAdapter.isSameDay(t.date,e));const t=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(t/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 e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(rk),Bo(hl),Bo(PC))},e.\u0275cmp=_t({type:e,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:[Qt],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"cal-cell-row"],["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"],["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,t){1&e&&(Vo(0,"div",0),Vo(1,"mwl-calendar-month-view-header",1),Jo("columnHeaderClicked",(function(e){return t.columnHeaderClicked.emit(e)})),Zo(),Vo(2,"div",2),Fo(3,vx,5,13,"div",3),Zo(),Zo()),2&e&&(Dr(1),jo("days",t.columnHeaders)("locale",t.locale)("customTemplate",t.headerTemplate),Dr(2),jo("ngForOf",t.view.rowOffsets)("ngForTrackBy",t.trackByRowOffset))},directives:function(){return[uk,Nd,hk,Mw,mk,Hd,Kd,ik,nk]},pipes:function(){return[xu,ok]},encapsulation:2}),e})(),uk=(()=>{let e=class{constructor(){this.columnHeaderClicked=new Bc,this.trackByWeekDayHeaderDate=FC}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,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,t){if(1&e&&(Fo(0,yx,2,2,"ng-template",null,0,rl),Fo(2,bx,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Sc(2,wx,t.days,t.locale,t.trackByWeekDayHeaderDate))}},directives:[$d,Nd,Hd],pipes:[$C],encapsulation:2}),e})(),mk=(()=>{let e=class{constructor(){this.highlightDay=new Bc,this.unhighlightDay=new Bc,this.eventClicked=new Bc,this.trackByEventId=zC,this.validateDrag=YC}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(e,t){2&e&&ds("cal-past",t.day.isPast)("cal-today",t.day.isToday)("cal-future",t.day.isFuture)("cal-weekend",t.day.isWeekend)("cal-in-month",t.day.inMonth)("cal-out-month",!t.day.inMonth)("cal-has-events",t.day.events.length>0)("cal-open",t.day===t.openDay)("cal-event-highlight",!!t.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,t){if(1&e&&(Fo(0,Ix,8,14,"ng-template",null,0,rl),Fo(2,Ox,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Dc(2,Px,[t.day,t.openDay,t.locale,t.tooltipPlacement,t.highlightDay,t.unhighlightDay,t.eventClicked,t.tooltipTemplate,t.tooltipAppendToBody,t.tooltipDelay,t.trackByEventId,t.validateDrag]))}},directives:[$d,Zd,Nd,Pw,Kd,Hd,OC,ik],pipes:[ok,$C,tk],encapsulation:2}),e})();const pk=Jw("collapse",[ex("void",$w({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),ex("*",$w({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),tx("* => void",Kw("150ms ease-out")),tx("void => *",Kw("150ms ease-in"))]);let hk=(()=>{let e=class{constructor(){this.isOpen=!1,this.eventClicked=new Bc,this.trackByEventId=zC,this.validateDrag=YC}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,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,t){if(1&e&&(Fo(0,Fx,1,1,"ng-template",null,0,rl),Fo(2,Hx,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Ec(2,Bx,t.events,t.eventClicked,t.isOpen,t.trackByEventId,t.validateDrag))}},directives:[$d,Zd,Nd,Pw,Hd,Kd,DC,ik,nk,EC],pipes:[ok],encapsulation:2,data:{animation:[pk]}}),e})(),gk=(()=>{let e=class{};return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[Cu,Lw,lk],Lw]}),e})();class fk{constructor(e,t){this.dragContainerElement=e,this.startPosition=t.getBoundingClientRect()}validateDrag({x:e,y:t,snapDraggedEvents:i,dragAlreadyMoved:n,transform:r}){if(i){const i=Object.assign({},this.startPosition,{left:this.startPosition.left+r.x,right:this.startPosition.right+r.x,top:this.startPosition.top+r.y,bottom:this.startPosition.bottom+r.y});return(YC({x:e,y:t})||n)&&LC(this.dragContainerElement.getBoundingClientRect(),i)}return YC({x:e,y:t})||n}}class vk{constructor(e,t){this.resizeContainerElement=e,this.minWidth=t}validateResize({rectangle:e}){return!(this.minWidth&&Math.ceil(e.width)<Math.ceil(this.minWidth))&&LC(this.resizeContainerElement.getBoundingClientRect(),e)}}let _k=(()=>{let e=class{constructor(e,t,i,n){this.cdr=e,this.utils=t,this.dateAdapter=n,this.events=[],this.excludeDays=[],this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.precision="days",this.snapDraggedEvents=!0,this.hourSegments=2,this.hourSegmentHeight=30,this.dayStartHour=0,this.dayStartMinute=0,this.dayEndHour=23,this.dayEndMinute=59,this.dayHeaderClicked=new Bc,this.eventClicked=new Bc,this.eventTimesChanged=new Bc,this.beforeViewRender=new Bc,this.hourSegmentClicked=new Bc,this.allDayEventResizes=new Map,this.timeEventResizes=new Map,this.eventDragEnterByType={allDay:0,time:0},this.dragActive=!1,this.dragAlreadyMoved=!1,this.calendarId=Symbol("angular calendar week view id"),this.trackByWeekDayHeaderDate=FC,this.trackByHourSegment=HC,this.trackByHour=BC,this.trackByWeekAllDayEvent=jC,this.trackByWeekTimeEvent=NC,this.trackByHourColumn=(e,t)=>t.hours[0]?t.hours[0].segments[0].date.toISOString():t,this.trackById=(e,t)=>t.id,this.locale=i}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(e){const t=e.viewDate||e.excludeDays||e.weekendDays||e.daysInWeek||e.weekStartsOn,i=e.viewDate||e.dayStartHour||e.dayStartMinute||e.dayEndHour||e.dayEndMinute||e.hourSegments||e.weekStartsOn||e.weekendDays||e.excludeDays||e.hourSegmentHeight||e.events||e.daysInWeek;t&&this.refreshHeader(),e.events&&MC(this.events),i&&this.refreshBody(),(t||i)&&this.emitBeforeViewRender()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}timeEventResizeStarted(e,t,i){this.timeEventResizes.set(t.event,i),this.resizeStarted(e)}timeEventResizing(e,t){this.timeEventResizes.set(e.event,t);const i=new Map,n=[...this.events];this.timeEventResizes.forEach((e,t)=>{const r=this.getTimeEventResizedDates(t,e),a=Object.assign(Object.assign({},t),r);i.set(a,t);const o=n.indexOf(t);n[o]=a}),this.restoreOriginalEvents(n,i,!0)}timeEventResizeEnded(e){this.view=this.getWeekView(this.events);const t=this.timeEventResizes.get(e.event);if(t){this.timeEventResizes.delete(e.event);const i=this.getTimeEventResizedDates(e.event,t);this.eventTimesChanged.emit({newStart:i.start,newEnd:i.end,event:e.event,type:ck.Resize})}}allDayEventResizeStarted(e,t,i){this.allDayEventResizes.set(t,{originalOffset:t.offset,originalSpan:t.span,edge:void 0!==i.edges.left?"left":"right"}),this.resizeStarted(e,this.getDayColumnWidth(e))}allDayEventResizing(e,t,i){const n=this.allDayEventResizes.get(e);if(void 0!==t.edges.left){const r=Math.round(+t.edges.left/i);e.offset=n.originalOffset+r,e.span=n.originalSpan-r}else if(void 0!==t.edges.right){const r=Math.round(+t.edges.right/i);e.span=n.originalSpan+r}}allDayEventResizeEnded(e){const t=this.allDayEventResizes.get(e);if(t){const i="left"===t.edge;let n;n=i?e.offset-t.originalOffset:e.span-t.originalSpan,e.offset=t.originalOffset,e.span=t.originalSpan;let r=e.event.start,a=e.event.end||e.event.start;i?r=WC(this.dateAdapter,r,n,this.excludeDays):a=WC(this.dateAdapter,a,n,this.excludeDays),this.eventTimesChanged.emit({newStart:r,newEnd:a,event:e.event,type:ck.Resize}),this.allDayEventResizes.delete(e)}}getDayColumnWidth(e){return Math.floor(e.offsetWidth/this.days.length)}dateDragEnter(e){this.lastDragEnterDate=e}eventDropped(e,t,i){!function(e,t,i,n){return e.dropData&&e.dropData.event&&(e.dropData.calendarId!==n||e.dropData.event.allDay&&!i||!e.dropData.event.allDay&&i)}(e,0,i,this.calendarId)||this.lastDragEnterDate.getTime()!==t.getTime()||this.snapDraggedEvents&&e.dropData.event===this.lastDraggedEvent||this.eventTimesChanged.emit({type:ck.Drop,event:e.dropData.event,newStart:t,allDay:i}),this.lastDraggedEvent=null}dragEnter(e){this.eventDragEnterByType[e]++}dragLeave(e){this.eventDragEnterByType[e]--}dragStarted(e,t,i){this.dayColumnWidth=this.getDayColumnWidth(e);const n=new fk(e,t);this.validateDrag=({x:e,y:t,transform:i})=>0===this.allDayEventResizes.size&&0===this.timeEventResizes.size&&n.validateDrag({x:e,y:t,snapDraggedEvents:this.snapDraggedEvents,dragAlreadyMoved:this.dragAlreadyMoved,transform:i}),this.dragActive=!0,this.dragAlreadyMoved=!1,this.lastDraggedEvent=null,this.eventDragEnterByType={allDay:0,time:0},!this.snapDraggedEvents&&i&&this.view.hourColumns.forEach(e=>{const t=e.events.find(e=>e.event===i.event&&e!==i);t&&(t.width=0,t.height=0)}),this.cdr.markForCheck()}dragMove(e,t){const i=this.getDragMovedEventTimes(e,t,this.dayColumnWidth,!0),n=e.event,r=Object.assign(Object.assign({},n),i),a=this.events.map(e=>e===n?r:e);this.restoreOriginalEvents(a,new Map([[r,n]]),this.snapDraggedEvents),this.dragAlreadyMoved=!0}allDayEventDragMove(){this.dragAlreadyMoved=!0}dragEnded(e,t,i,n=!1){this.view=this.getWeekView(this.events),this.dragActive=!1,this.validateDrag=null;const{start:r,end:a}=this.getDragMovedEventTimes(e,t,i,n);(this.snapDraggedEvents||this.eventDragEnterByType[n?"time":"allDay"]>0)&&function(e,t,i){const n=t||e;return i.start<=e&&e<=i.end||i.start<=n&&n<=i.end}(r,a,this.view.period)&&(this.lastDraggedEvent=e.event,this.eventTimesChanged.emit({newStart:r,newEnd:a,event:e.event,type:ck.Drag,allDay:!n}))}refreshHeader(){this.days=this.utils.getWeekViewHeader(Object.assign({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays},UC(this.dateAdapter,this.viewDate,this.weekStartsOn,this.excludeDays,this.daysInWeek)))}refreshBody(){this.view=this.getWeekView(this.events)}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender()}emitBeforeViewRender(){this.days&&this.view&&this.beforeViewRender.emit(Object.assign({header:this.days},this.view))}getWeekView(e){return this.utils.getWeekView(Object.assign({events:e,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,precision:this.precision,absolutePositionedEvents:!0,hourSegments:this.hourSegments,dayStart:{hour:this.dayStartHour,minute:this.dayStartMinute},dayEnd:{hour:this.dayEndHour,minute:this.dayEndMinute},segmentHeight:this.hourSegmentHeight,weekendDays:this.weekendDays},UC(this.dateAdapter,this.viewDate,this.weekStartsOn,this.excludeDays,this.daysInWeek)))}getDragMovedEventTimes(e,t,i,n){const r=RC(t.x,i)/i,a=n?ZC(t.y,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize):0,o=this.dateAdapter.addMinutes(WC(this.dateAdapter,e.event.start,r,this.excludeDays),a);let s;return e.event.end&&(s=this.dateAdapter.addMinutes(WC(this.dateAdapter,e.event.end,r,this.excludeDays),a)),{start:o,end:s}}restoreOriginalEvents(e,t,i=!0){const n=this.view;i&&(this.view=this.getWeekView(e));const r=e.filter(e=>t.has(e));this.view.hourColumns.forEach((e,a)=>{n.hourColumns[a].hours.forEach((t,i)=>{t.segments.forEach((t,n)=>{e.hours[i].segments[n].cssClass=t.cssClass})}),r.forEach(n=>{const r=t.get(n),a=e.events.find(e=>e.event===(i?n:r));a?(a.event=r,a.tempEvent=n,i||(a.height=0,a.width=0)):e.events.push({event:r,left:0,top:0,height:0,width:0,startsBeforeDay:!1,endsAfterDay:!1,tempEvent:n})})}),t.clear()}getTimeEventResizedDates(e,t){const i=VC(this.hourSegments,n=this.hourSegmentHeight)*n;var n;const r={start:e.start,end:QC(this.dateAdapter,e,i)},a=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}(e,["end"]),o={start:this.dateAdapter.addMinutes(r.end,-1*i),end:QC(this.dateAdapter,a,i)};if(void 0!==t.edges.left){const e=Math.round(+t.edges.left/this.dayColumnWidth),i=WC(this.dateAdapter,r.start,e,this.excludeDays);r.start=i<o.start?i:o.start}else if(void 0!==t.edges.right){const e=Math.round(+t.edges.right/this.dayColumnWidth),i=WC(this.dateAdapter,r.end,e,this.excludeDays);r.end=i>o.end?i:o.end}if(void 0!==t.edges.top){const e=ZC(t.edges.top,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize),i=this.dateAdapter.addMinutes(r.start,e);r.start=i<o.start?i:o.start}else if(void 0!==t.edges.bottom){const e=ZC(t.edges.bottom,this.hourSegments,this.hourSegmentHeight,this.eventSnapSize),i=this.dateAdapter.addMinutes(r.end,e);r.end=i>o.end?i:o.end}return r}resizeStarted(e,t){this.dayColumnWidth=this.getDayColumnWidth(e);const i=new vk(e,t);this.validateResize=({rectangle:e})=>i.validateResize({rectangle:e}),this.cdr.markForCheck()}};return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(rk),Bo(hl),Bo(PC))},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-week-view"]],inputs:{events:"events",excludeDays:"excludeDays",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",precision:"precision",snapDraggedEvents:"snapDraggedEvents",hourSegments:"hourSegments",hourSegmentHeight:"hourSegmentHeight",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",locale:"locale",viewDate:"viewDate",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",eventTemplate:"eventTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays",hourSegmentTemplate:"hourSegmentTemplate",eventSnapSize:"eventSnapSize",allDayEventsLabelTemplate:"allDayEventsLabelTemplate",daysInWeek:"daysInWeek",currentTimeMarkerTemplate:"currentTimeMarkerTemplate"},outputs:{dayHeaderClicked:"dayHeaderClicked",eventClicked:"eventClicked",eventTimesChanged:"eventTimesChanged",beforeViewRender:"beforeViewRender",hourSegmentClicked:"hourSegmentClicked"},features:[Qt],decls:8,vars:9,consts:[["role","grid",1,"cal-week-view"],[3,"days","locale","customTemplate","dayHeaderClicked","eventDropped","dragEnter"],["class","cal-all-day-events","mwlDroppable","",3,"dragEnter","dragLeave",4,"ngIf"],["mwlDroppable","",1,"cal-time-events",3,"dragEnter","dragLeave"],["class","cal-time-label-column",4,"ngIf"],[1,"cal-day-columns"],["dayColumns",""],["class","cal-day-column",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","",1,"cal-all-day-events",3,"dragEnter","dragLeave"],["allDayEventsContainer",""],[1,"cal-time-label-column",3,"ngTemplateOutlet"],["class","cal-day-column","mwlDroppable","","dragOverClass","cal-drag-over",3,"drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["class","cal-events-row",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",1,"cal-day-column",3,"drop","dragEnter"],[1,"cal-events-row"],["eventRowContainer",""],["class","cal-event-container","mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",3,"cal-draggable","cal-starts-within-week","cal-ends-within-week","ngClass","width","marginLeft","resizeSnapGrid","validateResize","dropData","dragAxis","dragSnapGrid","validateDrag","touchStartLongPress","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd",4,"ngFor","ngForOf","ngForTrackBy"],["mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event-container",3,"ngClass","resizeSnapGrid","validateResize","dropData","dragAxis","dragSnapGrid","validateDrag","touchStartLongPress","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd"],["event",""],["class","cal-resize-handle cal-resize-handle-before-start","mwlResizeHandle","",3,"resizeEdges",4,"ngIf"],[3,"locale","weekEvent","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDelay","customTemplate","eventTitleTemplate","eventActionsTemplate","daysInWeek","eventClicked"],["class","cal-resize-handle cal-resize-handle-after-end","mwlResizeHandle","",3,"resizeEdges",4,"ngIf"],["mwlResizeHandle","",1,"cal-resize-handle","cal-resize-handle-before-start",3,"resizeEdges"],["mwlResizeHandle","",1,"cal-resize-handle","cal-resize-handle-after-end",3,"resizeEdges"],[1,"cal-time-label-column"],["class","cal-hour",3,"cal-hour-odd",4,"ngFor","ngForOf","ngForTrackBy"],[1,"cal-hour"],[3,"height","segment","segmentHeight","locale","customTemplate","isTimeLabel","daysInWeek",4,"ngFor","ngForOf","ngForTrackBy"],[3,"segment","segmentHeight","locale","customTemplate","isTimeLabel","daysInWeek"],[1,"cal-day-column"],[3,"columnDate","dayStartHour","dayStartMinute","dayEndHour","dayEndMinute","hourSegments","hourSegmentHeight","customTemplate"],[1,"cal-events-container"],["class","cal-event-container","mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",3,"cal-draggable","cal-starts-within-day","cal-ends-within-day","ngClass","hidden","top","height","left","width","resizeSnapGrid","validateResize","allowNegativeResizes","dropData","dragAxis","dragSnapGrid","touchStartLongPress","ghostDragEnabled","ghostElementTemplate","validateDrag","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd",4,"ngFor","ngForOf","ngForTrackBy"],["mwlResizable","","mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event-container",3,"ngClass","hidden","resizeSnapGrid","validateResize","allowNegativeResizes","dropData","dragAxis","dragSnapGrid","touchStartLongPress","ghostDragEnabled","ghostElementTemplate","validateDrag","resizeStart","resizing","resizeEnd","dragStart","dragging","dragEnd"],[3,"ngTemplateOutlet"],["weekEventTemplate",""],[3,"locale","weekEvent","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDisabled","tooltipDelay","customTemplate","eventTitleTemplate","eventActionsTemplate","column","daysInWeek","eventClicked"],["mwlDroppable","","dragActiveClass","cal-drag-active",3,"height","segment","segmentHeight","locale","customTemplate","daysInWeek","clickListenerDisabled","dragOverClass","isTimeLabel","mwlClick","drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragActiveClass","cal-drag-active",3,"segment","segmentHeight","locale","customTemplate","daysInWeek","clickListenerDisabled","dragOverClass","isTimeLabel","mwlClick","drop","dragEnter"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"mwl-calendar-week-view-header",1),Jo("dayHeaderClicked",(function(e){return t.dayHeaderClicked.emit(e)}))("eventDropped",(function(e){return t.eventDropped({dropData:e},e.newStart,!0)}))("dragEnter",(function(e){return t.dateDragEnter(e.date)})),Zo(),Fo(2,qx,6,5,"div",2),Vo(3,"div",3),Jo("dragEnter",(function(){return t.dragEnter("time")}))("dragLeave",(function(){return t.dragLeave("time")})),Fo(4,$x,2,2,"div",4),Vo(5,"div",5,6),Fo(7,dC,5,12,"div",7),Zo(),Zo(),Zo()),2&e&&(Dr(1),jo("days",t.days)("locale",t.locale)("customTemplate",t.headerTemplate),Dr(1),jo("ngIf",t.view.allDayEventRows.length>0),Dr(2),jo("ngIf",t.view.hourColumns.length>0&&1!==t.daysInWeek),Dr(1),ds("cal-resize-active",t.timeEventResizes.size>0),Dr(2),jo("ngForOf",t.view.hourColumns)("ngForTrackBy",t.trackByHourColumn))},directives:function(){return[yk,Zd,Mw,Nd,$d,Yw,Pw,Hd,bk,Gw,wk,xk,ik]},encapsulation:2}),e})(),yk=(()=>{let e=class{constructor(){this.dayHeaderClicked=new Bc,this.eventDropped=new Bc,this.dragEnter=new Bc,this.trackByWeekDayHeaderDate=FC}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-week-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{dayHeaderClicked:"dayHeaderClicked",eventDropped:"eventDropped",dragEnter:"dragEnter"},decls:3,vars:9,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-day-headers"],["class","cal-header","mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","mwlClick","drop","dragEnter",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",1,"cal-header",3,"ngClass","mwlClick","drop","dragEnter"]],template:function(e,t){if(1&e&&(Fo(0,mC,2,2,"ng-template",null,0,rl),Fo(2,pC,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",function(e,t,i,n,r,a,o,s,c){const l=xi()+2,d=pi(),u=Lo(d,l,i,n,r,a);return To(d,l+4,o,s)||u?Io(d,l+6,t(i,n,r,a,o,s)):Oo(d,l+6)}(0,hC,t.days,t.locale,t.dayHeaderClicked,t.eventDropped,t.dragEnter,t.trackByWeekDayHeaderDate))}},directives:[$d,Nd,Mw,Hd,ik],pipes:[$C],encapsulation:2}),e})(),bk=(()=>{let e=class{constructor(){this.eventClicked=new Bc}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-week-view-event"]],inputs:{locale:"locale",weekEvent:"weekEvent",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDisabled:"tooltipDisabled",tooltipDelay:"tooltipDelay",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",tooltipTemplate:"tooltipTemplate",column:"column",daysInWeek:"daysInWeek"},outputs:{eventClicked:"eventClicked"},decls:3,vars:12,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0","role","application",1,"cal-event",3,"ngStyle","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"],[3,"event","customTemplate","view"]],template:function(e,t){if(1&e&&(Fo(0,fC,6,26,"ng-template",null,0,rl),Fo(2,vC,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Dc(2,_C,[t.weekEvent,t.tooltipPlacement,t.eventClicked,t.tooltipTemplate,t.tooltipAppendToBody,t.tooltipDisabled,t.tooltipDelay,t.column,t.daysInWeek]))}},directives:[$d,Kd,OC,ik,nk,EC,DC],pipes:[tk,ok],encapsulation:2}),e})(),wk=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-week-view-hour-segment"]],inputs:{segment:"segment",segmentHeight:"segmentHeight",locale:"locale",isTimeLabel:"isTimeLabel",daysInWeek:"daysInWeek",customTemplate:"customTemplate"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-hour-segment",3,"ngClass"],["class","cal-time",4,"ngIf"],[1,"cal-time"]],template:function(e,t){if(1&e&&(Fo(0,bC,3,13,"ng-template",null,0,rl),Fo(2,wC,0,0,"ng-template",1)),2&e){const e=Ho(1);Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",Ec(2,xC,t.segment,t.locale,t.segmentHeight,t.isTimeLabel,t.daysInWeek))}},directives:[$d,Hd,Zd],pipes:[ok,$C],encapsulation:2}),e})(),xk=(()=>{let e=class{constructor(e,t){var i;this.dateAdapter=e,this.zone=t,this.columnDate$=new dm(this.columnDate),this.marker$=this.zone.onStable.pipe(ug(()=>Rb(6e4)),jv(0),(i=this.columnDate$,ug(()=>i)),D(e=>{const t=this.dateAdapter.setMinutes(this.dateAdapter.setHours(e,this.dayStartHour),this.dayStartMinute),i=this.dateAdapter.setMinutes(this.dateAdapter.setHours(e,this.dayEndHour),this.dayEndMinute),n=this.hourSegments*this.hourSegmentHeight/60,r=new Date;return{isVisible:this.dateAdapter.isSameDay(e,r)&&r>=t&&r<=i,top:this.dateAdapter.differenceInMinutes(r,t)*n}}))}ngOnChanges(e){e.columnDate&&this.columnDate$.next(e.columnDate.currentValue)}};return e.\u0275fac=function(t){return new(t||e)(Bo(PC),Bo(Sl))},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-week-view-current-time-marker"]],inputs:{columnDate:"columnDate",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",hourSegments:"hourSegments",hourSegmentHeight:"hourSegmentHeight",customTemplate:"customTemplate"},features:[Qt],decls:5,vars:14,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-current-time-marker",3,"top",4,"ngIf"],[1,"cal-current-time-marker"]],template:function(e,t){if(1&e&&(Fo(0,kC,1,1,"ng-template",null,0,rl),Fo(2,AC,0,0,"ng-template",1),Mc(3,"async"),Mc(4,"async")),2&e){const e=Ho(1);var i=null;Dr(2),jo("ngTemplateOutlet",t.customTemplate||e)("ngTemplateOutletContext",function(e,t,i,n,r,a,o,s,c,l){const d=xi()+6,u=pi();let m=Lo(u,d,i,n,r,a);return Mo(u,d+4,o,s,c)||m?Io(u,d+7,t(i,n,r,a,o,s,c)):Oo(u,d+7)}(0,SC,t.columnDate,t.dayStartHour,t.dayStartMinute,t.dayEndHour,t.dayEndMinute,null==(i=Lc(3,2,t.marker$))?null:i.isVisible,null==(i=Lc(4,4,t.marker$))?null:i.top))}},directives:[$d,Zd],pipes:[au],encapsulation:2}),e})(),Ck=(()=>{let e=class{};return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[Cu,qw,Lw,lk],qw,Lw]}),e})(),kk=(()=>{let e=class{constructor(){this.events=[],this.hourSegments=2,this.hourSegmentHeight=30,this.dayStartHour=0,this.dayStartMinute=0,this.dayEndHour=23,this.dayEndMinute=59,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.snapDraggedEvents=!0,this.eventClicked=new Bc,this.hourSegmentClicked=new Bc,this.eventTimesChanged=new Bc,this.beforeViewRender=new Bc}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["mwl-calendar-day-view"]],inputs:{events:"events",hourSegments:"hourSegments",hourSegmentHeight:"hourSegmentHeight",dayStartHour:"dayStartHour",dayStartMinute:"dayStartMinute",dayEndHour:"dayEndHour",dayEndMinute:"dayEndMinute",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",snapDraggedEvents:"snapDraggedEvents",viewDate:"viewDate",refresh:"refresh",locale:"locale",eventSnapSize:"eventSnapSize",tooltipTemplate:"tooltipTemplate",hourSegmentTemplate:"hourSegmentTemplate",eventTemplate:"eventTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",allDayEventsLabelTemplate:"allDayEventsLabelTemplate",currentTimeMarkerTemplate:"currentTimeMarkerTemplate"},outputs:{eventClicked:"eventClicked",hourSegmentClicked:"hourSegmentClicked",eventTimesChanged:"eventTimesChanged",beforeViewRender:"beforeViewRender"},decls:1,vars:23,consts:[[1,"cal-day-view",3,"daysInWeek","viewDate","events","hourSegments","hourSegmentHeight","dayStartHour","dayStartMinute","dayEndHour","dayEndMinute","refresh","locale","eventSnapSize","tooltipPlacement","tooltipTemplate","tooltipAppendToBody","tooltipDelay","hourSegmentTemplate","eventTemplate","eventTitleTemplate","eventActionsTemplate","snapDraggedEvents","allDayEventsLabelTemplate","currentTimeMarkerTemplate","eventClicked","hourSegmentClicked","eventTimesChanged","beforeViewRender"]],template:function(e,t){1&e&&(Vo(0,"mwl-calendar-week-view",0),Jo("eventClicked",(function(e){return t.eventClicked.emit(e)}))("hourSegmentClicked",(function(e){return t.hourSegmentClicked.emit(e)}))("eventTimesChanged",(function(e){return t.eventTimesChanged.emit(e)}))("beforeViewRender",(function(e){return t.beforeViewRender.emit(e)})),Zo()),2&e&&jo("daysInWeek",1)("viewDate",t.viewDate)("events",t.events)("hourSegments",t.hourSegments)("hourSegmentHeight",t.hourSegmentHeight)("dayStartHour",t.dayStartHour)("dayStartMinute",t.dayStartMinute)("dayEndHour",t.dayEndHour)("dayEndMinute",t.dayEndMinute)("refresh",t.refresh)("locale",t.locale)("eventSnapSize",t.eventSnapSize)("tooltipPlacement",t.tooltipPlacement)("tooltipTemplate",t.tooltipTemplate)("tooltipAppendToBody",t.tooltipAppendToBody)("tooltipDelay",t.tooltipDelay)("hourSegmentTemplate",t.hourSegmentTemplate)("eventTemplate",t.eventTemplate)("eventTitleTemplate",t.eventTitleTemplate)("eventActionsTemplate",t.eventActionsTemplate)("snapDraggedEvents",t.snapDraggedEvents)("allDayEventsLabelTemplate",t.allDayEventsLabelTemplate)("currentTimeMarkerTemplate",t.currentTimeMarkerTemplate)},directives:[_k],encapsulation:2}),e})(),Ak=(()=>{let e=class{};return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[Cu,lk,Ck]]}),e})();var Sk;let Ek=(()=>{let e=Sk=class{static forRoot(e,t={}){return{ngModule:Sk,providers:[e,t.eventTitleFormatter||ek,t.dateFormatter||KC,t.utils||rk,t.a11y||ak]}}};return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[lk,gk,Ck,Ak],lk,gk,Ck,Ak]}),e})();const Dk=bn(KC);function Ik(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ok(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Pk(e){Ok(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Tk(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}function Mk(e,t){Ok(2,arguments);var i=Pk(e).getTime(),n=Ik(t);return new Date(i+n)}function Lk(e,t){Ok(2,arguments);var i=Ik(t);return Mk(e,36e5*i)}function Rk(e,t){Ok(2,arguments);var i=Ik(t);return Mk(e,6e4*i)}function zk(e,t){Ok(2,arguments);var i=Ik(t);return Mk(e,1e3*i)}function Fk(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hk(e){Ok(1,arguments);var t=Pk(e);return t.setHours(0,0,0,0),t}function Bk(e,t){Ok(2,arguments);var i=Hk(e),n=Hk(t),r=i.getTime()-Fk(i),a=n.getTime()-Fk(n);return Math.round((r-a)/864e5)}function jk(e,t){var i=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return i<0?-1:i>0?1:i}function Nk(e,t){Ok(2,arguments);var i=Pk(e),n=Pk(t),r=jk(i,n),a=Math.abs(Bk(i,n));i.setDate(i.getDate()-r*a);var o=jk(i,n)===-r,s=r*(a-o);return 0===s?0:s}function Vk(e,t){Ok(2,arguments);var i=Pk(e),n=Pk(t);return i.getTime()-n.getTime()}function Zk(e,t){Ok(2,arguments);var i=Vk(e,t)/6e4;return i>0?Math.floor(i):Math.ceil(i)}function Qk(e,t){Ok(2,arguments);var i=Vk(e,t)/1e3;return i>0?Math.floor(i):Math.ceil(i)}function Wk(e){Ok(1,arguments);var t=Pk(e);return t.setHours(23,59,59,999),t}function Uk(e){Ok(1,arguments);var t=Pk(e),i=t.getMonth();return t.setFullYear(t.getFullYear(),i+1,0),t.setHours(23,59,59,999),t}function Yk(e,t){Ok(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.weekStartsOn,a=null==r?0:Ik(r),o=null==i.weekStartsOn?a:Ik(i.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Pk(e),c=s.getDay(),l=6+(c<o?-7:0)-(c-o);return s.setDate(s.getDate()+l),s.setHours(23,59,59,999),s}function Xk(e){Ok(1,arguments);var t=Pk(e),i=t.getDay();return i}function Gk(e){Ok(1,arguments);var t=Pk(e),i=t.getMonth();return i}function qk(e,t){Ok(2,arguments);var i=Hk(e),n=Hk(t);return i.getTime()===n.getTime()}function Jk(e,t){Ok(2,arguments);var i=Pk(e),n=Pk(t);return i.getFullYear()===n.getFullYear()&&i.getMonth()===n.getMonth()}function Kk(e){Ok(1,arguments);var t=Pk(e);return t.setMilliseconds(0),t}function $k(e,t){Ok(2,arguments);var i=Kk(e),n=Kk(t);return i.getTime()===n.getTime()}function eA(e){var t,i;if(Ok(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Pk(e);(void 0===i||i<t||isNaN(Number(t)))&&(i=t)})),i||new Date(NaN)}function tA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);return i.setHours(n),i}function iA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);return i.setMinutes(n),i}function nA(e){Ok(1,arguments);var t=Pk(e);return t.setSeconds(0,0),t}function rA(e){Ok(1,arguments);var t=Pk(e);return t.setDate(1),t.setHours(0,0,0,0),t}function aA(e,t){Ok(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.weekStartsOn,a=null==r?0:Ik(r),o=null==i.weekStartsOn?a:Ik(i.weekStartsOn);if(!(o>=0&&o<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Pk(e),c=s.getDay(),l=(c<o?7:0)+c-o;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}function oA(e){Ok(1,arguments);var t=Pk(e),i=t.getHours();return i}function sA(e){Ok(1,arguments);var t=Pk(e),i=t.getMinutes();return i}function cA(e,t){Ok(2,arguments);var i=Ik(t),n=7*i;return Tk(e,n)}function lA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);if(isNaN(n))return new Date(NaN);if(!n)return i;var r=i.getDate(),a=new Date(i.getTime());a.setMonth(i.getMonth()+n+1,0);var o=a.getDate();return r>=o?a:(i.setFullYear(a.getFullYear(),a.getMonth(),r),i)}function dA(e,t){Ok(2,arguments);var i=Ik(t);return Tk(e,-i)}function uA(e,t){Ok(2,arguments);var i=Ik(t);return cA(e,-i)}function mA(e,t){Ok(2,arguments);var i=Ik(t);return lA(e,-i)}function pA(e){return Ok(1,arguments),aA(e,{weekStartsOn:1})}function hA(e){Ok(1,arguments);var t=Pk(e),i=t.getFullYear(),n=new Date(0);n.setFullYear(i+1,0,4),n.setHours(0,0,0,0);var r=pA(n),a=new Date(0);a.setFullYear(i,0,4),a.setHours(0,0,0,0);var o=pA(a);return t.getTime()>=r.getTime()?i+1:t.getTime()>=o.getTime()?i:i-1}function gA(e){Ok(1,arguments);var t=hA(e),i=new Date(0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);var n=pA(i);return n}function fA(e){Ok(1,arguments);var t=Pk(e),i=pA(t).getTime()-gA(t).getTime();return Math.round(i/6048e5)+1}function vA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);return i.setDate(n),i}function _A(e){Ok(1,arguments);var t=Pk(e),i=t.getFullYear(),n=t.getMonth(),r=new Date(0);return r.setFullYear(i,n+1,0),r.setHours(0,0,0,0),r.getDate()}function yA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t),r=i.getFullYear(),a=i.getDate(),o=new Date(0);o.setFullYear(r,n,15),o.setHours(0,0,0,0);var s=_A(o);return i.setMonth(n,Math.min(a,s)),i}function bA(e,t){Ok(2,arguments);var i=Pk(e),n=Ik(t);return isNaN(i.getTime())?new Date(NaN):(i.setFullYear(n),i)}function wA(e){Ok(1,arguments);var t=Pk(e),i=t.getDate();return i}function xA(e){Ok(1,arguments);var t=Pk(e),i=t.getFullYear();return i}function CA(){return Ib(Ib({},{addDays:Tk,addHours:Lk,addMinutes:Rk,addSeconds:zk,differenceInDays:Nk,differenceInMinutes:Zk,differenceInSeconds:Qk,endOfDay:Wk,endOfMonth:Uk,endOfWeek:Yk,getDay:Xk,getMonth:Gk,isSameDay:qk,isSameMonth:Jk,isSameSecond:$k,max:eA,setHours:tA,setMinutes:iA,startOfDay:Hk,startOfMinute:nA,startOfMonth:rA,startOfWeek:aA,getHours:oA,getMinutes:sA}),{addWeeks:cA,addMonths:lA,subDays:dA,subWeeks:uA,subMonths:mA,getISOWeek:fA,setDate:vA,setMonth:yA,setYear:bA,getDate:wA,getYear:xA})}const kA=function(e,t){return{width:e,height:t}},AA=function(e){return{width:e}};function SA(e,t){if(1&e&&(Vo(0,"div",2),Qo(1,"img",3),Zo()),2&e){const e=es();jo("ngStyle",Ac(3,kA,e.width+"px",e.height+"px")),Dr(1),jo("src",e.iconOverrideUrl,cr)("ngStyle",kc(6,AA,e.width+"px"))}}function EA(e,t){if(1&e&&(Wo(0),Qo(1,"img",7),Uo()),2&e){const e=es(2);Dr(1),jo("ngStyle",kc(1,AA,e.width+"px"))}}function DA(e,t){if(1&e&&(Wo(0),Qo(1,"img",8),Uo()),2&e){const e=es(2);Dr(1),jo("ngStyle",kc(1,AA,e.width+"px"))}}function IA(e,t){if(1&e&&(Wo(0),Qo(1,"img",9),Uo()),2&e){const e=es(2);Dr(1),jo("ngStyle",kc(1,AA,e.width+"px"))}}function OA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",10),Qo(2,"path",11),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function PA(e,t){if(1&e&&(Wo(0),Qo(1,"img",12),Uo()),2&e){const e=es(2);Dr(1),jo("ngStyle",kc(1,AA,e.width+"px"))}}function TA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",13),Qo(2,"path",14),Qo(3,"path",15),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function MA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",17),Qo(3,"path",18),Qo(4,"path",19),Qo(5,"path",20),Qo(6,"path",21),Qo(7,"path",22),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function LA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",23),Qo(2,"path",24),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function RA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",25),Qo(2,"path",26),Qo(3,"path",27),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function zA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",28),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function FA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",29),Qo(3,"path",30),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function HA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",31),Qo(2,"path",32),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function BA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",33),Qo(2,"path",34),Qo(3,"path",35),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function jA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",36),Vo(2,"g"),Vo(3,"g"),Qo(4,"path",37),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function NA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",38),Qo(2,"path",39),Qo(3,"path",40),Qo(4,"path",41),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function VA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",42),Qo(2,"path",43),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function ZA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",44),Vo(2,"g",45),Qo(3,"path",46),Zo(),Vo(4,"g",47),Qo(5,"path",48),Zo(),Vo(6,"g",49),Qo(7,"path",50),Zo(),Vo(8,"defs"),Vo(9,"clipPath",51),Qo(10,"rect",52),Zo(),Vo(11,"clipPath",53),Qo(12,"rect",54),Zo(),Vo(13,"clipPath",55),Qo(14,"rect",56),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor)}}function QA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",44),Vo(2,"g",45),Qo(3,"path",46),Zo(),Vo(4,"g",47),Qo(5,"path",57),Zo(),Vo(6,"g",49),Qo(7,"path",50),Zo(),Vo(8,"defs"),Vo(9,"clipPath",51),Qo(10,"rect",52),Zo(),Vo(11,"clipPath",53),Qo(12,"rect",54),Zo(),Vo(13,"clipPath",55),Qo(14,"rect",56),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor),Dr(2),Ro("fill",e.primaryColor)}}function WA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",44),Vo(2,"g",45),Qo(3,"path",46),Zo(),Vo(4,"g",47),Qo(5,"path",57),Zo(),Vo(6,"g",49),Qo(7,"path",58),Zo(),Vo(8,"defs"),Vo(9,"clipPath",51),Qo(10,"rect",52),Zo(),Vo(11,"clipPath",53),Qo(12,"rect",54),Zo(),Vo(13,"clipPath",55),Qo(14,"rect",56),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor),Dr(2),Ro("fill",e.primaryColor),Dr(2),Ro("fill",e.primaryColor)}}function UA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",59),Qo(2,"path",60),Qo(3,"path",61),Qo(4,"path",62),Qo(5,"path",63),Qo(6,"path",64),Vo(7,"g",65),Qo(8,"path",66),Qo(9,"path",67),Qo(10,"path",68),Qo(11,"path",69),Qo(12,"path",70),Zo(),Vo(13,"g",65),Qo(14,"path",71),Qo(15,"path",72),Qo(16,"path",73),Qo(17,"path",74),Qo(18,"path",75),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(2),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(2),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function YA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",59),Qo(2,"path",60),Qo(3,"path",61),Qo(4,"path",62),Qo(5,"path",63),Qo(6,"path",64),Qo(7,"path",66),Qo(8,"path",67),Qo(9,"path",68),Qo(10,"path",69),Qo(11,"path",70),Vo(12,"g",65),Qo(13,"path",71),Qo(14,"path",72),Qo(15,"path",73),Qo(16,"path",74),Qo(17,"path",75),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(2),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function XA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",59),Qo(2,"path",60),Qo(3,"path",61),Qo(4,"path",62),Qo(5,"path",63),Qo(6,"path",64),Qo(7,"path",66),Qo(8,"path",67),Qo(9,"path",68),Qo(10,"path",69),Qo(11,"path",70),Qo(12,"path",71),Qo(13,"path",72),Qo(14,"path",73),Qo(15,"path",74),Qo(16,"path",75),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function GA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",76),Qo(2,"path",77),Qo(3,"path",78),Qo(4,"path",79),Qo(5,"path",80),Qo(6,"path",81),Qo(7,"path",82),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function qA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",83),Qo(2,"path",84),Qo(3,"path",85),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor)}}function JA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",86),Qo(2,"path",87),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function KA(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",88),Qo(2,"path",89),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function $A(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",90),Qo(2,"path",91),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function eS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",92),Qo(2,"path",93),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function tS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",94),Qo(2,"path",95),Qo(3,"path",96),Qo(4,"rect",97),Qo(5,"rect",98),Qo(6,"rect",99),Qo(7,"path",100),Qo(8,"path",101),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function iS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",102),Qo(2,"path",103),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width),Dr(1),Ro("fill",e.primaryColor)}}function nS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",104),Vo(2,"g"),Vo(3,"g"),Qo(4,"path",105),Qo(5,"path",106),Zo(),Zo(),Vo(6,"defs"),Vo(7,"clipPath"),Qo(8,"rect",107),Zo(),Vo(9,"clipPath"),Qo(10,"rect",107),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(3),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function rS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",108),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function aS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",83),Qo(2,"path",84),Qo(3,"path",109),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("fill",e.primaryColor)("width.px",e.width)("height.px",e.height)}}function oS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",83),Qo(2,"path",110),Qo(3,"path",111),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("fill",e.primaryColor)("width.px",e.width)("height.px",e.height)}}function sS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",90),Qo(2,"path",112),Qo(3,"path",113),Qo(4,"path",114),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function cS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",115),Qo(2,"path",116),Qo(3,"path",117),Qo(4,"path",118),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)("fill",e.primaryColor)}}function lS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",119),Vo(2,"mask",120),Qo(3,"path",121),Qo(4,"path",122),Zo(),Qo(5,"path",123),Qo(6,"path",124),Zo(),Uo())}function dS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",125),Qo(2,"path",126),Qo(3,"path",127),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("fill",e.primaryColor)("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function uS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",128),Qo(2,"path",129),Qo(3,"path",130),Qo(4,"path",131),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function mS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",132),Vo(2,"g",133),Qo(3,"path",134),Qo(4,"path",135),Qo(5,"path",136),Qo(6,"path",137),Qo(7,"path",138),Qo(8,"path",139),Qo(9,"path",140),Qo(10,"path",141),Qo(11,"path",142),Qo(12,"path",143),Qo(13,"path",144),Qo(14,"path",145),Qo(15,"path",146),Qo(16,"path",147),Qo(17,"path",148),Qo(18,"path",149),Qo(19,"path",150),Qo(20,"path",151),Qo(21,"path",152),Qo(22,"path",153),Qo(23,"path",154),Qo(24,"path",155),Zo(),Vo(25,"defs"),Vo(26,"clipPath",156),Qo(27,"rect",157),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height)}}function pS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",10),Qo(2,"path",158),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function hS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",159),Qo(2,"path",160),Qo(3,"path",161),Qo(4,"path",162),Qo(5,"path",163),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function gS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",164),Qo(2,"path",165),Qo(3,"path",166),Qo(4,"path",167),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function fS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",168),Qo(2,"circle",169),Qo(3,"circle",170),Qo(4,"circle",171),Qo(5,"circle",172),Vo(6,"g",173),Qo(7,"path",174),Zo(),Vo(8,"g",175),Qo(9,"path",176),Zo(),Qo(10,"path",177),Qo(11,"rect",178),Qo(12,"path",179),Qo(13,"path",180),Qo(14,"path",181),Qo(15,"path",182),Qo(16,"path",183),Qo(17,"path",184),Qo(18,"path",185),Vo(19,"defs"),Vo(20,"filter",186),Qo(21,"feFlood",187),Qo(22,"feGaussianBlur",188),Qo(23,"feComposite",189),Qo(24,"feBlend",190),Qo(25,"feColorMatrix",191),Qo(26,"feOffset",192),Qo(27,"feGaussianBlur",193),Qo(28,"feComposite",194),Qo(29,"feColorMatrix",195),Qo(30,"feBlend",196),Zo(),Vo(31,"filter",197),Qo(32,"feFlood",187),Qo(33,"feGaussianBlur",188),Qo(34,"feComposite",189),Qo(35,"feBlend",190),Qo(36,"feColorMatrix",191),Qo(37,"feOffset",198),Qo(38,"feGaussianBlur",193),Qo(39,"feComposite",194),Qo(40,"feColorMatrix",195),Qo(41,"feBlend",196),Zo(),Zo(),Zo(),Uo())}function vS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",10),Vo(2,"g"),Qo(3,"path",199),Zo(),Vo(4,"defs"),Vo(5,"clipPath",51),Qo(6,"rect",200),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor)}}function _S(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",201),Qo(2,"path",202),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function yS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",203),Qo(2,"path",204),Qo(3,"path",205),Qo(4,"path",206),Qo(5,"path",207),Qo(6,"path",208),Qo(7,"path",209),Qo(8,"path",210),Qo(9,"path",211),Qo(10,"path",212),Qo(11,"path",213),Qo(12,"path",214),Qo(13,"path",215),Qo(14,"path",216),Qo(15,"path",217),Qo(16,"path",218),Qo(17,"path",219),Qo(18,"path",220),Qo(19,"path",221),Qo(20,"path",222),Qo(21,"path",223),Qo(22,"path",224),Qo(23,"path",225),Qo(24,"path",226),Qo(25,"path",227),Qo(26,"path",228),Qo(27,"path",229),Qo(28,"path",230),Qo(29,"path",231),Qo(30,"path",232),Qo(31,"path",233),Qo(32,"path",234),Qo(33,"path",235),Qo(34,"path",236),Qo(35,"path",237),Qo(36,"path",238),Qo(37,"path",239),Qo(38,"path",240),Qo(39,"path",241),Qo(40,"path",242),Qo(41,"path",243),Qo(42,"path",244),Qo(43,"path",245),Qo(44,"path",246),Qo(45,"path",247),Qo(46,"path",248),Qo(47,"path",249),Qo(48,"path",250),Qo(49,"path",251),Qo(50,"path",252),Qo(51,"path",253),Qo(52,"path",254),Qo(53,"path",255),Qo(54,"path",256),Qo(55,"path",257),Qo(56,"path",258),Qo(57,"path",259),Qo(58,"path",260),Qo(59,"path",261),Qo(60,"path",262),Qo(61,"path",263),Qo(62,"path",264),Qo(63,"path",265),Qo(64,"path",266),Qo(65,"path",267),Qo(66,"path",268),Qo(67,"path",269),Qo(68,"path",270),Qo(69,"path",271),Qo(70,"path",272),Qo(71,"path",273),Qo(72,"path",274),Qo(73,"path",275),Zo(),Uo())}function bS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",276),Qo(2,"circle",277),Qo(3,"rect",278),Qo(4,"path",279),Qo(5,"path",280),Qo(6,"path",281),Qo(7,"path",282),Qo(8,"path",283),Qo(9,"path",284),Qo(10,"path",285),Qo(11,"path",286),Qo(12,"path",287),Zo(),Uo()),2&e){const e=es(2);Dr(2),Ro("fill",e.secondaryColor)("stroke",e.primaryColor),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function wS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",276),Qo(2,"circle",277),Qo(3,"rect",278),Qo(4,"path",288),Qo(5,"path",289),Qo(6,"path",290),Qo(7,"path",291),Zo(),Uo()),2&e){const e=es(2);Dr(2),Ro("fill",e.secondaryColor)("stroke",e.primaryColor),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function xS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",276),Qo(2,"circle",292),Qo(3,"rect",278),Qo(4,"path",293),Qo(5,"path",294),Qo(6,"path",295),Qo(7,"path",296),Qo(8,"path",297),Vo(9,"defs"),Vo(10,"clipPath",51),Qo(11,"rect",278),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(2),Ro("fill",e.secondaryColor)("stroke",e.primaryColor),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor),Dr(3),Ro("fill",e.primaryColor)}}function CS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",298),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function kS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",299),Qo(2,"path",300),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function AS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Qo(2,"path",301),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function SS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",10),Qo(2,"path",302),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function ES(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",16),Vo(2,"g",45),Qo(3,"path",303),Zo(),Vo(4,"defs"),Vo(5,"clipPath",51),Qo(6,"rect",304),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(2),Ro("fill",e.primaryColor)}}function DS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",305),Qo(2,"path",306),Qo(3,"path",307),Qo(4,"path",308),Qo(5,"path",309),Qo(6,"path",310),Qo(7,"path",311),Zo(),Uo())}function IS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",312),Qo(2,"path",313),Qo(3,"path",314),Qo(4,"path",315),Qo(5,"path",316),Qo(6,"path",317),Zo(),Uo())}function OS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",318),Qo(2,"line",319),Zo(),Uo())}function PS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",320),Vo(2,"g",321),Qo(3,"rect",322),Qo(4,"path",323),Zo(),Vo(5,"defs"),Vo(6,"filter",324),Qo(7,"feFlood",187),Qo(8,"feGaussianBlur",188),Qo(9,"feComposite",325),Qo(10,"feBlend",326),Zo(),Zo(),Zo(),Uo()),2&e){const e=es(2);Dr(3),Ro("fill",e.primaryColor)}}function TS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",327),Qo(2,"path",328),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("fill",e.primaryColor)}}function MS(e,t){1&e&&(Wo(0),ji(),Vo(1,"svg",305),Qo(2,"path",329),Qo(3,"path",330),Qo(4,"path",331),Qo(5,"path",332),Qo(6,"path",333),Zo(),Uo())}function LS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",334),Qo(2,"rect",335),Qo(3,"path",336),Qo(4,"rect",335),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function RS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",334),Qo(2,"rect",335),Qo(3,"rect",335),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.secondaryColor),Dr(1),Ro("stroke",e.primaryColor)}}function zS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",10),Qo(2,"path",337),Qo(3,"path",338),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor),Dr(1),Ro("fill",e.primaryColor)}}function FS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",339),Qo(2,"path",340),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function HS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",341),Qo(2,"path",342),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function BS(e,t){if(1&e&&(Wo(0),ji(),Vo(1,"svg",343),Qo(2,"path",344),Zo(),Uo()),2&e){const e=es(2);Dr(1),Ro("width.px",e.width)("height.px",e.height),Dr(1),Ro("fill",e.primaryColor)}}function jS(e,t){1&e&&Yo(0)}function NS(e,t){if(1&e&&(Wo(0,4),Vo(1,"div",2),Fo(2,EA,2,3,"ng-container",5),Fo(3,DA,2,3,"ng-container",5),Fo(4,IA,2,3,"ng-container",5),Fo(5,OA,3,3,"ng-container",5),Fo(6,PA,2,3,"ng-container",5),Fo(7,TA,4,3,"ng-container",5),Fo(8,MA,8,8,"ng-container",5),Fo(9,LA,3,3,"ng-container",5),Fo(10,RA,4,3,"ng-container",5),Fo(11,zA,3,3,"ng-container",5),Fo(12,FA,4,4,"ng-container",5),Fo(13,HA,3,3,"ng-container",5),Fo(14,BA,4,3,"ng-container",5),Fo(15,jA,5,3,"ng-container",5),Fo(16,NA,5,3,"ng-container",5),Fo(17,VA,3,3,"ng-container",5),Fo(18,ZA,15,3,"ng-container",5),Fo(19,QA,15,4,"ng-container",5),Fo(20,WA,15,5,"ng-container",5),Fo(21,UA,19,17,"ng-container",5),Fo(22,YA,18,17,"ng-container",5),Fo(23,XA,17,17,"ng-container",5),Fo(24,GA,8,8,"ng-container",5),Fo(25,qA,4,3,"ng-container",5),Fo(26,JA,3,3,"ng-container",5),Fo(27,KA,3,3,"ng-container",5),Fo(28,$A,3,3,"ng-container",5),Fo(29,eS,3,3,"ng-container",5),Fo(30,tS,9,3,"ng-container",5),Fo(31,iS,3,2,"ng-container",5),Fo(32,nS,11,4,"ng-container",5),Fo(33,rS,3,3,"ng-container",5),Fo(34,aS,4,3,"ng-container",5),Fo(35,oS,4,3,"ng-container",5),Fo(36,sS,5,5,"ng-container",5),Fo(37,cS,5,3,"ng-container",5),Fo(38,lS,7,0,"ng-container",5),Fo(39,dS,4,5,"ng-container",5),Fo(40,uS,5,5,"ng-container",5),Fo(41,mS,28,2,"ng-container",5),Fo(42,pS,3,3,"ng-container",5),Fo(43,hS,6,6,"ng-container",5),Fo(44,gS,5,5,"ng-container",5),Fo(45,fS,42,0,"ng-container",5),Fo(46,vS,7,3,"ng-container",5),Fo(47,_S,3,3,"ng-container",5),Fo(48,yS,74,0,"ng-container",5),Fo(49,bS,13,12,"ng-container",5),Fo(50,wS,8,7,"ng-container",5),Fo(51,xS,12,9,"ng-container",5),Fo(52,CS,3,3,"ng-container",5),Fo(53,kS,3,3,"ng-container",5),Fo(54,AS,3,3,"ng-container",5),Fo(55,SS,3,3,"ng-container",5),Fo(56,ES,7,3,"ng-container",5),Fo(57,DS,8,0,"ng-container",5),Fo(58,IS,7,0,"ng-container",5),Fo(59,OS,3,0,"ng-container",5),Fo(60,PS,11,1,"ng-container",5),Fo(61,TS,3,1,"ng-container",5),Fo(62,MS,7,0,"ng-container",5),Fo(63,LS,5,5,"ng-container",5),Fo(64,RS,4,4,"ng-container",5),Fo(65,zS,4,4,"ng-container",5),Fo(66,FS,3,3,"ng-container",5),Fo(67,HS,3,3,"ng-container",5),Fo(68,BS,3,3,"ng-container",5),Fo(69,jS,1,0,"ng-container",6),Zo(),Uo()),2&e){const e=es();jo("ngSwitch",e.iconName),Dr(1),jo("ngStyle",Ac(69,kA,e.width+"px",e.height+"px")),Dr(1),jo("ngSwitchCase",e.icon.ExplainStep1),Dr(1),jo("ngSwitchCase",e.icon.ExplainStep2),Dr(1),jo("ngSwitchCase",e.icon.ExplainStep3),Dr(1),jo("ngSwitchCase",e.icon.CloudUpload),Dr(1),jo("ngSwitchCase",e.icon.Cook),Dr(1),jo("ngSwitchCase",e.icon.Share),Dr(1),jo("ngSwitchCase",e.icon.Time),Dr(1),jo("ngSwitchCase",e.icon.CheckCircleFill),Dr(1),jo("ngSwitchCase",e.icon.Clear),Dr(1),jo("ngSwitchCase",e.icon.Heart),Dr(1),jo("ngSwitchCase",e.icon.HeartFull),Dr(1),jo("ngSwitchCase",e.icon.Picture),Dr(1),jo("ngSwitchCase",e.icon.CheckList),Dr(1),jo("ngSwitchCase",e.icon.Euro),Dr(1),jo("ngSwitchCase",e.icon.Calendar),Dr(1),jo("ngSwitchCase",e.icon.Basket),Dr(1),jo("ngSwitchCase",e.icon.CostLow),Dr(1),jo("ngSwitchCase",e.icon.CostMedium),Dr(1),jo("ngSwitchCase",e.icon.CostHight),Dr(1),jo("ngSwitchCase",e.icon.DifficultyLow),Dr(1),jo("ngSwitchCase",e.icon.DifficultyMedium),Dr(1),jo("ngSwitchCase",e.icon.DifficultyHigh),Dr(1),jo("ngSwitchCase",e.icon.Grip),Dr(1),jo("ngSwitchCase",e.icon.ChevronDown),Dr(1),jo("ngSwitchCase",e.icon.ReturnLeft),Dr(1),jo("ngSwitchCase",e.icon.ArrowDown),Dr(1),jo("ngSwitchCase",e.icon.Cart),Dr(1),jo("ngSwitchCase",e.icon.People),Dr(1),jo("ngSwitchCase",e.icon.Grocery),Dr(1),jo("ngSwitchCase",e.icon.Minus),Dr(1),jo("ngSwitchCase",e.icon.Trash),Dr(1),jo("ngSwitchCase",e.icon.Plus),Dr(1),jo("ngSwitchCase",e.icon.Wait),Dr(1),jo("ngSwitchCase",e.icon.Hot),Dr(1),jo("ngSwitchCase",e.icon.Search),Dr(1),jo("ngSwitchCase",e.icon.Swap),Dr(1),jo("ngSwitchCase",e.icon.Group),Dr(1),jo("ngSwitchCase",e.icon.RecipeBook),Dr(1),jo("ngSwitchCase",e.icon.Help),Dr(1),jo("ngSwitchCase",e.icon.RecipeHelp),Dr(1),jo("ngSwitchCase",e.icon.Meal),Dr(1),jo("ngSwitchCase",e.icon.Print),Dr(1),jo("ngSwitchCase",e.icon.HorizontalDots),Dr(1),jo("ngSwitchCase",e.icon.NoRecipeFound),Dr(1),jo("ngSwitchCase",e.icon.Preheat),Dr(1),jo("ngSwitchCase",e.icon.caretDown),Dr(1),jo("ngSwitchCase",e.icon.Empty),Dr(1),jo("ngSwitchCase",e.icon.Starter),Dr(1),jo("ngSwitchCase",e.icon.Dessert),Dr(1),jo("ngSwitchCase",e.icon.MainDish),Dr(1),jo("ngSwitchCase",e.icon.Edit),Dr(1),jo("ngSwitchCase",e.icon.OpenBook),Dr(1),jo("ngSwitchCase",e.icon.CircledPlus),Dr(1),jo("ngSwitchCase",e.icon.Warning),Dr(1),jo("ngSwitchCase",e.icon.Preparation),Dr(1),jo("ngSwitchCase",e.icon.ListScanner),Dr(1),jo("ngSwitchCase",e.icon.CartPlus),Dr(1),jo("ngSwitchCase",e.icon.DrawerHorizontalCloseBar),Dr(1),jo("ngSwitchCase",e.icon.Video),Dr(1),jo("ngSwitchCase",e.icon.Cross),Dr(1),jo("ngSwitchCase",e.icon.Ingredients),Dr(1),jo("ngSwitchCase",e.icon.CheckboxChecked),Dr(1),jo("ngSwitchCase",e.icon.CheckboxUnchecked),Dr(1),jo("ngSwitchCase",e.icon.Upload),Dr(1),jo("ngSwitchCase",e.icon.Home),Dr(1),jo("ngSwitchCase",e.icon.Filter),Dr(1),jo("ngSwitchCase",e.icon.Difficulty)}}let VS=(()=>{class e{constructor(e,t){this.contextService=e,this.cdr=t,this.icon=Iv,this.primaryColor="black",this.secondaryColor="grey",this.width=16,this.height=16}ngOnChanges(){this.iconOverrideUrl=this.contextService.getOverrideIconUrl(this.iconName),this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo(i_),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-icon"]],inputs:{primaryColor:"primaryColor",secondaryColor:"secondaryColor",width:"width",height:"height",iconName:"iconName"},features:[Qt],decls:3,vars:2,consts:[["class","icon-container",3,"ngStyle",4,"ngIf","ngIfElse"],["switchIcon",""],[1,"icon-container",3,"ngStyle"],[1,"icon-container__icon",3,"src","ngStyle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["src","https://storage.googleapis.com/assets.miam.tech/generic/images/step1.png",1,"icon-container__icon",3,"ngStyle"],["src","https://storage.googleapis.com/assets.miam.tech/generic/images/step2.png",1,"icon-container__icon",3,"ngStyle"],["src","https://storage.googleapis.com/assets.miam.tech/generic/images/step3.png",1,"icon-container__icon",3,"ngStyle"],["viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.5018 13.821H9.91582H9.21945H9.06906V10.3523H10.2035C10.4912 10.3523 10.6612 10.0253 10.4912 9.78995L8.28443 6.73642C8.14385 6.54026 7.85288 6.54026 7.7123 6.73642L5.50552 9.78995C5.33551 10.0253 5.50225 10.3523 5.79322 10.3523H6.92767V13.821H6.77728H6.08092H3.08296C1.36657 13.7262 0 12.121 0 10.3817C0 9.18186 0.650593 8.13568 1.61504 7.57009C1.52677 7.33143 1.481 7.07643 1.481 6.80834C1.481 5.58235 2.4716 4.59175 3.69759 4.59175C3.9624 4.59175 4.21741 4.63752 4.45607 4.72579C5.16551 3.22191 6.69555 2.179 8.47405 2.179C10.7756 2.18227 12.6718 3.94443 12.8876 6.19044C14.6563 6.49449 16 8.13241 16 9.98611C16 11.9673 14.4569 13.6837 12.5018 13.821Z"],["src","https://storage.googleapis.com/assets.miam.tech/cora/icons/chef.svg",1,"icon-container__icon",3,"ngStyle"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-share"],["fill-rule","evenodd","d","M11.724 3.947l-7 3.5-.448-.894 7-3.5.448.894zm-.448 9l-7-3.5.448-.894 7 3.5-.448.894z"],["fill-rule","evenodd","d","M13.5 4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 1a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm0 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 1a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm-11-6.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 1a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z"],["viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.5 22C16.9183 22 20.5 18.4183 20.5 14C20.5 9.58172 16.9183 6 12.5 6C8.08172 6 4.5 9.58172 4.5 14C4.5 18.4183 8.08172 22 12.5 22Z","stroke-width","2"],["d","M14.5 2H10.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12.5 2V6","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M18 8L19.5 6.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12.5 14V11","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12.5 14H9.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-check-circle-fill"],["fill-rule","evenodd","d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-x"],["fill-rule","evenodd","d","M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"],["fill-rule","evenodd","d","M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"],["d","M16.5 3C19.538 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.36 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.934 18.604C13.815 18.048 14.61 17.495 15.354 16.903C18.335 14.533 20 11.943 20 9C20 6.64 18.463 5 16.5 5C15.424 5 14.26 5.57 13.414 6.414L12 7.828L10.586 6.414C9.74 5.57 8.576 5 7.5 5C5.56 5 4 6.656 4 9C4 11.944 5.666 14.533 8.645 16.903C9.39 17.495 10.185 18.048 11.066 18.603C11.365 18.792 11.661 18.973 12 19.175C12.339 18.973 12.635 18.792 12.934 18.604Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M22 9C22 5.5 19.538 3 16.5 3C14.64 3 13 4 12 5C11 4 9.36 3 7.5 3C4.5 3 2 5.5 2 9C2 15.6009 8.66916 19.5341 11.5259 21.219C11.6987 21.3208 11.8575 21.4145 12 21.5C12.1425 21.4145 12.3013 21.3208 12.4741 21.219C15.3308 19.5341 22 15.6009 22 9Z"],["d","M12 5L11.6464 5.35355L12 5.70711L12.3536 5.35355L12 5ZM11.5259 21.219L11.2719 21.6496L11.5259 21.219ZM12 21.5L11.7428 21.9287L12 22.0831L12.2572 21.9287L12 21.5ZM12.4741 21.219L12.7281 21.6496L12.4741 21.219ZM16.5 3.5C19.2316 3.5 21.5 5.74484 21.5 9H22.5C22.5 5.25516 19.8444 2.5 16.5 2.5V3.5ZM12.3536 5.35355C13.2936 4.41346 14.8138 3.5 16.5 3.5V2.5C14.4662 2.5 12.7064 3.58654 11.6464 4.64645L12.3536 5.35355ZM7.5 3.5C9.18616 3.5 10.7064 4.41346 11.6464 5.35355L12.3536 4.64645C11.2936 3.58654 9.53384 2.5 7.5 2.5V3.5ZM2.5 9C2.5 5.74715 4.80427 3.5 7.5 3.5V2.5C4.19573 2.5 1.5 5.25285 1.5 9H2.5ZM11.7799 20.7883C10.3495 19.9446 8.01919 18.5682 6.04476 16.599C4.07253 14.632 2.5 12.1183 2.5 9H1.5C1.5 12.4826 3.26205 15.236 5.3386 17.307C7.41295 19.3759 9.84566 20.8085 11.2719 21.6496L11.7799 20.7883ZM12.2572 21.0713C12.1128 20.9846 11.9522 20.8899 11.7799 20.7883L11.2719 21.6496C11.4451 21.7518 11.6022 21.8444 11.7428 21.9287L12.2572 21.0713ZM12.2201 20.7883C12.0478 20.8899 11.8872 20.9846 11.7428 21.0713L12.2572 21.9287C12.3978 21.8444 12.5549 21.7518 12.7281 21.6496L12.2201 20.7883ZM21.5 9C21.5 12.1183 19.9275 14.632 17.9552 16.599C15.9808 18.5682 13.6505 19.9446 12.2201 20.7883L12.7281 21.6496C14.1543 20.8085 16.587 19.3759 18.6614 17.307C20.7379 15.236 22.5 12.4826 22.5 9H21.5Z"],["viewBox","0 0 17 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-image"],["fill-rule","evenodd","d","M14.002 2h-12a1 1 0 0 0-1 1v9l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15.002 9.5V3a1 1 0 0 0-1-1zm-12-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm4 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-clipboard-check"],["fill-rule","evenodd","d","M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"],["fill-rule","evenodd","d","M9.5 1h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3zm4.354 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","id","Capa_1","x","0px","y","0px","viewBox","0 0 325.799 325.799",0,"xml","space","preserve",2,"enable-background","new 0 0 325.799 325.799"],["d","M285.306,296.302c-73.7,28.4-156.5-8.4-184.9-82.2c-0.5-1.4-1-2.7-1.5-4.1h147.8c5.5,0,10-4.5,10-10s-4.5-10-10-10h-153.1 c-3-15.8-3.3-32.1-1-48h170.1c5.5,0,10-4.5,10-10s-4.5-10-10-10h-165.6c22.7-75.6,102.5-118.5,178.2-95.8c3.3,1,6.7,2.1,10.1,3.4 c5.1,2,10.9-0.5,13-5.7c2-5.1-0.5-10.9-5.7-13h-0.1c-84-32.3-178.3,9.6-210.7,93.6c-2.2,5.7-4.1,11.5-5.6,17.4h-39.6 c-5.5,0-10,4.5-10,10s4.5,10,10,10h35.7c-2,16-1.7,32.1,0.9,48h-36.6c-5.5,0-10,4.5-10,10s4.5,10,10,10h41.3 c26.1,86.2,117.1,134.9,203.2,108.9c3.8-1.2,7.6-2.5,11.3-3.9c5.1-2,7.7-7.8,5.7-12.9 C296.206,296.902,290.406,294.302,285.306,296.302z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-calendar-week"],["fill-rule","evenodd","d","M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1zm1-3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2z"],["fill-rule","evenodd","d","M3.5 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5zm9 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5z"],["d","M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-basket"],["fill-rule","evenodd","d","M5.757 1.071a.5.5 0 0 1 .172.686L3.383 6h9.234L10.07 1.757a.5.5 0 1 1 .858-.514L13.783 6H15a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1v4.5a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 1 13.5V9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h1.217L5.07 1.243a.5.5 0 0 1 .686-.172zM2 9v4.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V9H2zM1 7v1h14V7H1zm3 3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3A.5.5 0 0 1 4 10zm2 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3A.5.5 0 0 1 6 10zm2 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3A.5.5 0 0 1 8 10zm2 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5zm2 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 .5-.5z"],["viewBox","0 0 64 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0)"],["d","M14.7613 14.2631C14.5819 13.8245 14.3992 13.386 14.1998 12.954C14.0237 12.5686 13.7978 12.4557 13.3759 12.552C12.8409 12.6749 12.316 12.8377 11.7811 12.9474C10.7478 13.1634 9.71117 13.1833 8.69117 12.861C7.41202 12.459 6.73091 11.532 6.31228 10.3359H9.78094C10.0534 10.3359 10.2727 10.1166 10.2727 9.8442V8.75111C10.2727 8.47866 10.0534 8.25938 9.78094 8.25938H5.98003C5.98003 7.95371 5.97671 7.66134 5.98003 7.36896H9.78094C10.0534 7.36896 10.2727 7.14968 10.2727 6.87723V5.78414C10.2727 5.5117 10.0534 5.29241 9.78094 5.29241H6.45847C6.45847 5.27912 6.45847 5.26583 6.46512 5.25919C6.86381 4.35215 7.44524 3.62453 8.39879 3.24577C9.5085 2.8072 10.6415 2.81717 11.7844 3.05307C12.326 3.16271 12.8576 3.32883 13.3991 3.45176C13.7945 3.54147 14.0237 3.42518 14.1932 3.05639C14.3892 2.63111 14.5686 2.19919 14.748 1.76395C14.9175 1.35528 14.8178 1.06623 14.4324 0.840299C14.3361 0.783817 14.2364 0.737303 14.1334 0.697433C12.532 0.072808 10.8807 -0.159765 9.17625 0.112678C7.97684 0.305381 6.85717 0.717368 5.89033 1.46825C4.67098 2.41183 3.88023 3.65776 3.42173 5.12297L3.36525 5.29241H1.6575C1.38505 5.29241 1.16577 5.5117 1.16577 5.78414V6.87723C1.16577 7.14968 1.38505 7.36896 1.6575 7.36896H3.0031C3.0031 7.66798 3.0031 7.95704 3.0031 8.25938H1.6575C1.38505 8.25938 1.16577 8.47866 1.16577 8.75111V9.8442C1.16577 10.1166 1.38505 10.3359 1.6575 10.3359H3.27886C3.4018 10.7346 3.50479 11.14 3.66095 11.522C4.4816 13.5022 5.8571 14.911 7.927 15.5821C9.63808 16.137 11.3624 16.1204 13.0868 15.6452C13.5353 15.5223 13.9805 15.3628 14.4058 15.1668C14.8178 14.9774 14.9241 14.6585 14.7613 14.2631Z"],["clip-path","url(#clip1)"],["d","M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z","fill","#8C8CA1"],["clip-path","url(#clip2)"],["d","M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z","fill","#8C8CA1"],["id","clip0"],["width","16","height","16","fill","white"],["id","clip1"],["width","16","height","16","fill","white","transform","translate(24)"],["id","clip2"],["width","16","height","16","fill","white","transform","translate(48)"],["d","M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z"],["d","M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z"],["viewBox","0 0 80 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.5 12.0623C4.50627 11.6792 3 9.9255 3 7.82C3 5.43415 4.93413 3.5 7.32 3.5C7.7033 3.5 8.0749 3.54991 8.4287 3.6436C9.2199 2.64246 10.4449 2 11.82 2C13.2352 2 14.4914 2.68049 15.2794 3.73211C15.7186 3.58166 16.1898 3.5 16.68 3.5C19.0659 3.5 21 5.43415 21 7.82C21 9.9255 19.4937 11.6792 17.5 12.0623V20C17.5 20.5523 17.0523 21 16.5 21H7.5C6.9477 21 6.5 20.5523 6.5 20V12.0623Z","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M6.5 15.5H17.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M10 12.5V15.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M17.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M6.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["opacity","0.4"],["d","M34.5 12.0623C32.5063 11.6792 31 9.9255 31 7.82C31 5.43415 32.9341 3.5 35.32 3.5C35.7033 3.5 36.0749 3.54991 36.4287 3.6436C37.2199 2.64246 38.4449 2 39.82 2C41.2352 2 42.4914 2.68049 43.2794 3.73211C43.7186 3.58166 44.1898 3.5 44.68 3.5C47.0659 3.5 49 5.43415 49 7.82C49 9.9255 47.4937 11.6792 45.5 12.0623V20C45.5 20.5523 45.0523 21 44.5 21H35.5C34.9477 21 34.5 20.5523 34.5 20V12.0623Z","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M34.5 15.5H45.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M38 12.5V15.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M45.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M34.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M62.5 12.0623C60.5063 11.6792 59 9.9255 59 7.82C59 5.43415 60.9341 3.5 63.32 3.5C63.7033 3.5 64.0749 3.54991 64.4287 3.6436C65.2199 2.64246 66.4449 2 67.82 2C69.2352 2 70.4914 2.68049 71.2794 3.73211C71.7186 3.58166 72.1898 3.5 72.68 3.5C75.0659 3.5 77 5.43415 77 7.82C77 9.9255 75.4937 11.6792 73.5 12.0623V20C73.5 20.5523 73.0523 21 72.5 21H63.5C62.9477 21 62.5 20.5523 62.5 20V12.0623Z","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M62.5 15.5H73.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M66 12.5V15.5","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M73.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M62.5 14V17","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["viewBox","0 0 12 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.33333 3.6C4.33333 4.48366 3.58714 5.2 2.66667 5.2C1.74619 5.2 1 4.48366 1 3.6C1 2.71634 1.74619 2 2.66667 2C3.58714 2 4.33333 2.71634 4.33333 3.6Z"],["d","M4.33333 10C4.33333 10.8837 3.58714 11.6 2.66667 11.6C1.74619 11.6 1 10.8837 1 10C1 9.11634 1.74619 8.4 2.66667 8.4C3.58714 8.4 4.33333 9.11634 4.33333 10Z"],["d","M4.33333 16.4C4.33333 17.2837 3.58714 18 2.66667 18C1.74619 18 1 17.2837 1 16.4C1 15.5163 1.74619 14.8 2.66667 14.8C3.58714 14.8 4.33333 15.5163 4.33333 16.4Z"],["d","M11 3.6C11 4.48366 10.2538 5.2 9.33333 5.2C8.41286 5.2 7.66667 4.48366 7.66667 3.6C7.66667 2.71634 8.41286 2 9.33333 2C10.2538 2 11 2.71634 11 3.6Z"],["d","M11 10C11 10.8837 10.2538 11.6 9.33333 11.6C8.41286 11.6 7.66667 10.8837 7.66667 10C7.66667 9.11634 8.41286 8.4 9.33333 8.4C10.2538 8.4 11 9.11634 11 10Z"],["d","M11 16.4C11 17.2837 10.2538 18 9.33333 18C8.41286 18 7.66667 17.2837 7.66667 16.4C7.66667 15.5163 8.41286 14.8 9.33333 14.8C10.2538 14.8 11 15.5163 11 16.4Z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M0 0h24v24H0V0z","fill","none"],["d","M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-arrow-return-left"],["fill-rule","evenodd","d","M14.5 1.5a.5.5 0 0 1 .5.5v4.8a2.5 2.5 0 0 1-2.5 2.5H2.707l3.347 3.346a.5.5 0 0 1-.708.708l-4.2-4.2a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 8.3H12.5A1.5 1.5 0 0 0 14 6.8V2a.5.5 0 0 1 .5-.5z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-arrow-down"],["fill-rule","evenodd","d","M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 16 16"],["d","M12.5 13c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm-9 0c.828 0 1.5.672 1.5 1.5S4.328 16 3.5 16 2 15.328 2 14.5 2.672 13 3.5 13zM3 0l.591 2H15c.623 0 1.095.564.984 1.177C15.27 7.14 14.526 9 13 9H4.42c-.377.391-.67.729-.876 1H13c.552 0 1 .448 1 1s-.448 1-1 1H3c-1.28 0-2.11-.83-1.699-2.066.218-.654.813-1.44 1.807-2.454L1.433 2H0V0h3zm10.786 4H4.182l.887 3h7.737c.09-.124.2-.333.315-.621.224-.56.447-1.355.665-2.379z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-people"],["fill-rule","evenodd","d","M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8zm-7.978-1h7.956a.274.274 0 0 0 .014-.002l.008-.002c-.002-.264-.167-1.03-.76-1.72C13.688 10.629 12.718 10 11 10c-1.717 0-2.687.63-3.24 1.276-.593.69-.759 1.457-.76 1.72a1.05 1.05 0 0 0 .022.004zM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816zM4.92 10c-1.668.02-2.615.64-3.16 1.276C1.163 11.97 1 12.739 1 13h3c0-1.045.323-2.086.92-3zM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"],["xmlns","http://www.w3.org/2000/svg","id","Out_line","data-name","Out line","viewBox","0 0 512 512"],["d","M496,184h-8V95.21a79.51747,79.51747,0,0,0-48.24-73.15991,40.20637,40.20637,0,0,0-31.52,0A79.51747,79.51747,0,0,0,360,95.21v75.6001A87.54442,87.54442,0,0,1,344.36,127.99l-.00061-.00806A7.99364,7.99364,0,0,0,352,120V72a8.00008,8.00008,0,0,0-8-8H280a8.00008,8.00008,0,0,0-8,8v2.8501c-.43994-.51026-.9-1-1.38-1.48A31.984,31.984,0,0,0,220.01,80.51a32.22031,32.22031,0,0,0-5.39-7.13989,32.00263,32.00263,0,0,0-53.80994,15.43994A31.98816,31.98816,0,0,0,146.86,144,31.96526,31.96526,0,0,0,152,195.7V240h16V200H408V480H344v16H496a7.9979,7.9979,0,0,0,8-8V192A7.9979,7.9979,0,0,0,496,184ZM376,136h24a8,8,0,0,1,0,16H376Zm4.37-64H400a8,8,0,1,1,0,16H376.4A64.01244,64.01244,0,0,1,380.37,72ZM288,80h48v32H288ZM168,184a16,16,0,0,1,0-32,8,8,0,0,0,0-16,16,16,0,0,1,0-32,7.9979,7.9979,0,0,0,8-8,16.00013,16.00013,0,0,1,31.62-3.47A31.958,31.958,0,0,0,202.86,144a31.93735,31.93735,0,0,0-6.55994,40Zm56,0a16,16,0,0,1,0-32,8,8,0,0,0,0-16,16,16,0,0,1,0-32,7.9979,7.9979,0,0,0,8-8,16,16,0,1,1,32,0,7.9979,7.9979,0,0,0,8,8v16a7.99364,7.99364,0,0,0,7.64062,7.98193L279.64,127.99A87.73358,87.73358,0,0,1,256,180.62012V96H240v88Zm50.14,0a103.38584,103.38584,0,0,0,21.54993-56h32.62012A103.38584,103.38584,0,0,0,349.86,184ZM376,184V168h24a24,24,0,0,0,0-48H376V104h24a24,24,0,0,0,0-48H389.52a63.465,63.465,0,0,1,25.03-19.24,24.04215,24.04215,0,0,1,18.8999,0A63.51551,63.51551,0,0,1,472,95.21V184ZM488,480H424V200h64Z"],["d","M176,432a24.04267,24.04267,0,0,0-18.334-23.32422,67.0819,67.0819,0,0,0-123.332,0,24.00336,24.00336,0,0,0,0,46.64844,67.0819,67.0819,0,0,0,123.332,0A24.04267,24.04267,0,0,0,176,432Zm-24,8a7.99922,7.99922,0,0,0-7.42773,5.0293l-1.14454,2.86132a51.08168,51.08168,0,0,1-94.85546,0l-1.14454-2.86132A7.99922,7.99922,0,0,0,40,440a8,8,0,0,1,0-16,7.99922,7.99922,0,0,0,7.42773-5.0293l1.14454-2.86132a51.08168,51.08168,0,0,1,94.85546,0l1.14454,2.86132A7.99922,7.99922,0,0,0,152,424a8,8,0,0,1,0,16Z"],["x","64","y","408","width","16","height","16"],["x","80","y","440","width","16","height","16"],["x","112","y","424","width","16","height","16"],["d","M206.02,341.8501l17.13989-34.27-14.31982-7.16016-11.03,22.07007L192,316.67993V299.75a40.18506,40.18506,0,0,0-34.34009-39.59009L129.13,256.08008a7.99356,7.99356,0,0,0-9.04992,9.0498l4.07983,28.53A40.18506,40.18506,0,0,0,163.75,328h16.92993l9.21008,9.21a80.07936,80.07936,0,0,0-67.2301,19.16016L133.34009,368.29A63.911,63.911,0,0,1,176,352a62.44161,62.44161,0,0,1,6.87.37012l-9.07,18.12988a7.74033,7.74033,0,0,0-2.22-1.66016l-16-8-7.16016,14.32007,13.8501,6.92017A25.95522,25.95522,0,0,0,191.61,392.75l12.80993,6.40991,7.16016-14.32007-16-8a8.044,8.044,0,0,0-7.02-.06982l10.28-20.55a64.00695,64.00695,0,0,1-44.17017,120.13989L149.33008,491.45A80.01072,80.01072,0,0,0,206.02,341.8501ZM176,300.68994l-15.6-15.6001L149.09009,296.3999,164.68994,312H163.75a24.12661,24.12661,0,0,1-23.76-20.60986l-2.56006-17.96021L155.39,276A24.10891,24.10891,0,0,1,176,299.75Z"],["d","M304,272h-8v-8h8a7.9979,7.9979,0,0,0,8-8V224a7.9979,7.9979,0,0,0-8-8H224a7.9979,7.9979,0,0,0-8,8v32a7.9979,7.9979,0,0,0,8,8h8v8h-8a32.0512,32.0512,0,0,0-23.85,10.66992l11.92,10.66016A16.0305,16.0305,0,0,1,224,288h16a7.9979,7.9979,0,0,0,8-8V264h32v8H264v16h40a16.02116,16.02116,0,0,1,16,16v16H232v16h88v96H272v16h48v16a16.02116,16.02116,0,0,1-16,16H240v16h64a32.036,32.036,0,0,0,32-32V304A32.036,32.036,0,0,0,304,272Zm-72-24V232h64v16Z"],["height","2","viewBox","0 0 12 2","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5 0.25H1.5C1.05 0.25 0.75 0.55 0.75 1C0.75 1.45 1.05 1.75 1.5 1.75H10.5C10.95 1.75 11.25 1.45 11.25 1C11.25 0.55 10.95 0.25 10.5 0.25Z"],["viewBox","0 0 16 17","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.25 2.67871H10.5V2.17871C10.5 1.35027 9.82844 0.678711 9 0.678711H7C6.17156 0.678711 5.5 1.35027 5.5 2.17871V2.67871H2.75C2.05966 2.67871 1.5 3.23837 1.5 3.92871V4.92871C1.5 5.20487 1.72384 5.42871 2 5.42871H14C14.2762 5.42871 14.5 5.20487 14.5 4.92871V3.92871C14.5 3.23837 13.9403 2.67871 13.25 2.67871ZM6.5 2.17871C6.5 1.90309 6.72437 1.67871 7 1.67871H9C9.27563 1.67871 9.5 1.90309 9.5 2.17871V2.67871H6.5V2.17871Z"],["d","M2.44897 6.42871C2.35975 6.42871 2.28866 6.50327 2.29291 6.5924L2.70541 15.25C2.74353 16.0512 3.40166 16.6787 4.20353 16.6787H11.7967C12.5985 16.6787 13.2567 16.0512 13.2948 15.25L13.7073 6.5924C13.7115 6.50327 13.6404 6.42871 13.5512 6.42871H2.44897ZM10.0001 7.67871C10.0001 7.40246 10.2238 7.17871 10.5001 7.17871C10.7763 7.17871 11.0001 7.40246 11.0001 7.67871V14.1787C11.0001 14.455 10.7763 14.6787 10.5001 14.6787C10.2238 14.6787 10.0001 14.455 10.0001 14.1787V7.67871ZM7.50009 7.67871C7.50009 7.40246 7.72384 7.17871 8.00009 7.17871C8.27634 7.17871 8.50009 7.40246 8.50009 7.67871V14.1787C8.50009 14.455 8.27634 14.6787 8.00009 14.6787C7.72384 14.6787 7.50009 14.455 7.50009 14.1787V7.67871ZM5.00009 7.67871C5.00009 7.40246 5.22384 7.17871 5.50009 7.17871C5.77634 7.17871 6.00009 7.40246 6.00009 7.67871V14.1787C6.00009 14.455 5.77634 14.6787 5.50009 14.6787C5.22384 14.6787 5.00009 14.455 5.00009 14.1787V7.67871Z"],["width","16","height","16","fill","none","transform","translate(0 0.678711)"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.8889 4.88889C12.8889 4.39797 12.4909 4 12 4C11.5091 4 11.1111 4.39797 11.1111 4.88889V11.1111H4.88889C4.39797 11.1111 4 11.5091 4 12C4 12.4909 4.39797 12.8889 4.88889 12.8889H11.1111V19.1111C11.1111 19.602 11.5091 20 12 20C12.4909 20 12.8889 19.602 12.8889 19.1111V12.8889H19.1111C19.602 12.8889 20 12.4909 20 12C20 11.5091 19.602 11.1111 19.1111 11.1111H12.8889V4.88889Z"],["d","M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"],["d","M0 0h24v24H0z","fill","none"],["d","M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"],["d","M4.41768 3.64119C4.18693 3.41025 3.81256 3.41025 3.58181 3.64119C2.72506 4.49794 2.30397 5.69144 2.42634 6.91587C2.45687 7.22091 2.71384 7.44828 3.01393 7.44828C3.03365 7.44828 3.05353 7.44728 3.07325 7.44531C3.39818 7.41281 3.63522 7.12294 3.60272 6.79822C3.51562 5.92806 3.81278 5.08197 4.41768 4.47703C4.64862 4.24631 4.64862 3.87191 4.41768 3.64119Z"],["d","M6.75863 0C3.03191 0 0 3.03191 0 6.75863C0 10.4853 3.03191 13.5173 6.75863 13.5173C10.4853 13.5173 13.5173 10.4853 13.5173 6.75863C13.5173 3.03191 10.4853 0 6.75863 0ZM6.75863 12.335C3.68375 12.335 1.18228 9.8335 1.18228 6.75863C1.18228 3.68375 3.68375 1.18228 6.75863 1.18228C9.83331 1.18228 12.335 3.68375 12.335 6.75863C12.335 9.8335 9.8335 12.335 6.75863 12.335Z"],["d","M15.8268 14.9909L11.5312 10.6954C11.3002 10.4644 10.9262 10.4644 10.6953 10.6954C10.4644 10.9261 10.4644 11.3005 10.6953 11.5312L14.9909 15.8268C15.1064 15.9423 15.2575 16 15.4088 16C15.5602 16 15.7113 15.9423 15.8268 15.8268C16.0577 15.5961 16.0577 15.2217 15.8268 14.9909Z"],["viewBox","0 0 16 16","xmlns","http://www.w3.org/2000/svg",1,"bi","bi-arrow-left-right"],["fill-rule","evenodd","d","M10.146 7.646a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L12.793 11l-2.647-2.646a.5.5 0 0 1 0-.708z"],["fill-rule","evenodd","d","M2 11a.5.5 0 0 1 .5-.5H13a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 11zm3.854-9.354a.5.5 0 0 1 0 .708L3.207 5l2.647 2.646a.5.5 0 1 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 0 1 .708 0z"],["fill-rule","evenodd","d","M2.5 5a.5.5 0 0 1 .5-.5h10.5a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"],["xmlns","http://www.w3.org/2000/svg","width","26","height","17","fill","none","viewBox","0 0 26 17"],["id","v8f0hpt10a","width","26","height","17","x","0","y","0","fill","#000","maskUnits","userSpaceOnUse"],["fill","#fff","d","M0 0H26V17H0z"],["d","M21.757 7.705c.702-.494 1.168-1.315 1.168-2.241 0-1.515-1.225-2.74-2.74-2.74-1.515 0-2.74 1.225-2.74 2.74 0 .926.46 1.747 1.168 2.241-.603.21-1.154.532-1.62.95-.64-.546-1.395-.964-2.222-1.211 1.002-.608 1.677-1.714 1.677-2.973C16.448 2.553 14.895 1 12.976 1c-1.918 0-3.471 1.558-3.471 3.471 0 1.259.67 2.365 1.676 2.973-.816.247-1.562.66-2.198 1.197-.466-.409-1.007-.727-1.6-.931.702-.494 1.167-1.315 1.167-2.241 0-1.515-1.225-2.74-2.74-2.74-1.514 0-2.74 1.225-2.74 2.74 0 .926.461 1.747 1.169 2.24C2.353 8.362 1 10.152 1 12.256v.313c0 .01.01.019.019.019h5.808c-.034.261-.053.532-.053.802v.323c0 1.396 1.13 2.527 2.527 2.527h7.36c1.396 0 2.527-1.13 2.527-2.527v-.323c0-.27-.02-.541-.053-.802h5.846c.01 0 .019-.01.019-.02v-.313c-.01-2.108-1.358-3.898-3.243-4.549zM18.205 5.46c0-1.092.888-1.98 1.98-1.98s1.98.888 1.98 1.98c0 1.078-.869 1.957-1.942 1.98h-.076c-1.078-.019-1.942-.897-1.942-1.98zm-7.95-.988c0-1.496 1.216-2.711 2.712-2.711 1.496 0 2.711 1.215 2.711 2.711 0 1.444-1.135 2.626-2.555 2.707h-.313c-1.42-.08-2.555-1.263-2.555-2.707zm-6.439.988c0-1.092.888-1.98 1.98-1.98s1.98.888 1.98 1.98c0 1.078-.869 1.957-1.942 1.98h-.076c-1.073-.019-1.942-.897-1.942-1.98zm3.144 6.363H1.77C1.982 9.8 3.692 8.213 5.767 8.2h.057c.987.005 1.89.37 2.588.964-.684.74-1.192 1.653-1.453 2.66zm11.458 1.89c0 .974-.793 1.767-1.766 1.767h-7.36c-.974 0-1.767-.793-1.767-1.767v-.323c0-2.949 2.355-5.36 5.285-5.446.052.004.11.004.162.004.052 0 .109 0 .161-.004 2.93.085 5.285 2.497 5.285 5.446v.323zm.565-1.89c-.26-1.002-.76-1.9-1.439-2.64.703-.608 1.615-.973 2.612-.983h.057c2.075.014 3.785 1.6 3.999 3.623h-5.229z"],["fill","#202020","d","M21.757 7.705c.702-.494 1.168-1.315 1.168-2.241 0-1.515-1.225-2.74-2.74-2.74-1.515 0-2.74 1.225-2.74 2.74 0 .926.46 1.747 1.168 2.241-.603.21-1.154.532-1.62.95-.64-.546-1.395-.964-2.222-1.211 1.002-.608 1.677-1.714 1.677-2.973C16.448 2.553 14.895 1 12.976 1c-1.918 0-3.471 1.558-3.471 3.471 0 1.259.67 2.365 1.676 2.973-.816.247-1.562.66-2.198 1.197-.466-.409-1.007-.727-1.6-.931.702-.494 1.167-1.315 1.167-2.241 0-1.515-1.225-2.74-2.74-2.74-1.514 0-2.74 1.225-2.74 2.74 0 .926.461 1.747 1.169 2.24C2.353 8.362 1 10.152 1 12.256v.313c0 .01.01.019.019.019h5.808c-.034.261-.053.532-.053.802v.323c0 1.396 1.13 2.527 2.527 2.527h7.36c1.396 0 2.527-1.13 2.527-2.527v-.323c0-.27-.02-.541-.053-.802h5.846c.01 0 .019-.01.019-.02v-.313c-.01-2.108-1.358-3.898-3.243-4.549zM18.205 5.46c0-1.092.888-1.98 1.98-1.98s1.98.888 1.98 1.98c0 1.078-.869 1.957-1.942 1.98h-.076c-1.078-.019-1.942-.897-1.942-1.98zm-7.95-.988c0-1.496 1.216-2.711 2.712-2.711 1.496 0 2.711 1.215 2.711 2.711 0 1.444-1.135 2.626-2.555 2.707h-.313c-1.42-.08-2.555-1.263-2.555-2.707zm-6.439.988c0-1.092.888-1.98 1.98-1.98s1.98.888 1.98 1.98c0 1.078-.869 1.957-1.942 1.98h-.076c-1.073-.019-1.942-.897-1.942-1.98zm3.144 6.363H1.77C1.982 9.8 3.692 8.213 5.767 8.2h.057c.987.005 1.89.37 2.588.964-.684.74-1.192 1.653-1.453 2.66zm11.458 1.89c0 .974-.793 1.767-1.766 1.767h-7.36c-.974 0-1.767-.793-1.767-1.767v-.323c0-2.949 2.355-5.36 5.285-5.446.052.004.11.004.162.004.052 0 .109 0 .161-.004 2.93.085 5.285 2.497 5.285 5.446v.323zm.565-1.89c-.26-1.002-.76-1.9-1.439-2.64.703-.608 1.615-.973 2.612-.983h.057c2.075.014 3.785 1.6 3.999 3.623h-5.229z"],["fill","#202020","d","M21.757 7.705l-.23-.327-.64.45.74.255.13-.378zm-3.144 0l.13.378.742-.257-.643-.449-.229.328zm-1.62.95l-.259.304.267.227.26-.233-.267-.298zm-2.222-1.211l-.207-.342-.77.467.863.258.114-.383zm-3.59 0l.116.383.861-.26-.77-.465-.207.342zM8.983 8.641l-.264.3.258.227.263-.222-.257-.305zm-1.6-.931l-.23-.327-.642.45.741.255.13-.378zm-3.144 0l.13.378.743-.256-.644-.45-.23.328zm2.588 4.877l.396.05.058-.45h-.454v.4zm12.308 0v-.4h-.454l.057.45.397-.05zM25 12.255h.4v-.002l-.4.002zm-4.777-4.816v.4h.009l-.01-.4zm-.076 0l-.007.4h.007v-.4zm-7.023-.26v.4h.01l.012-.002-.023-.399zm-.314 0l-.023.398.012.001h.011v-.4zm-6.976.26v.4h.009l-.009-.4zm-.076 0l-.007.4h.007v-.4zm1.202 4.383v.4h.31l.077-.3-.387-.1zm-5.19 0l-.399-.042-.046.442h.444v-.4zM5.767 8.2v-.4h-.003l.003.4zm.057 0l.002-.4h-.002v.4zm2.588.964l.294.271.282-.306-.317-.27-.26.305zm4.397-1.22l.036-.399-.024-.002h-.024l.012.4zm.323 0l.012-.4h-.024l-.024.001.036.399zm5.85 3.88l-.387.1.078.3h.31v-.4zm-1.439-2.641l-.261-.303-.312.27.279.303.294-.27zm2.612-.983v-.4h-.003l.003.4zm.057 0l.003-.4h-.003v.4zm3.999 3.623v.4h.444l-.046-.442-.398.042zm-2.225-3.79c.804-.565 1.338-1.505 1.338-2.568h-.8c0 .79-.397 1.491-.998 1.914l.46.654zm1.338-2.568c0-1.736-1.404-3.14-3.14-3.14v.8c1.294 0 2.34 1.046 2.34 2.34h.8zm-3.14-3.14c-1.736 0-3.14 1.404-3.14 3.14h.8c0-1.294 1.046-2.34 2.34-2.34v-.8zm-3.14 3.14c0 1.061.528 2.003 1.339 2.57l.458-.657c-.604-.422-.997-1.123-.997-1.913h-.8zm1.437 1.863c-.652.226-1.25.576-1.756 1.03l.535.596c.425-.382.929-.678 1.483-.87l-.262-.756zM17.253 8.35c-.682-.58-1.486-1.026-2.367-1.29l-.23.767c.772.23 1.478.621 2.078 1.132l.52-.609zm-2.274-.564c1.116-.677 1.869-1.91 1.869-3.315h-.8c0 1.113-.596 2.092-1.484 2.631l.415.684zm1.869-3.315c0-2.14-1.732-3.871-3.872-3.871v.8c1.698 0 3.072 1.374 3.072 3.071h.8zM12.976.6c-2.14 0-3.871 1.737-3.871 3.871h.8c0-1.693 1.374-3.071 3.071-3.071V.6zM9.105 4.471c0 1.404.747 2.638 1.87 3.315l.413-.684c-.891-.538-1.483-1.517-1.483-2.63h-.8zm1.96 2.59c-.87.263-1.664.703-2.34 1.274l.515.611c.597-.502 1.294-.888 2.057-1.12l-.232-.765zM9.247 8.34c-.503-.442-1.09-.787-1.734-1.008l-.26.756c.543.187 1.04.478 1.467.853l.527-.601zm-1.634-.303C8.416 7.472 8.95 6.531 8.95 5.47h-.8c0 .789-.396 1.49-.998 1.914l.46.654zM8.95 5.47c0-1.736-1.404-3.14-3.14-3.14v.8c1.294 0 2.34 1.046 2.34 2.34h.8zm-3.14-3.14c-1.735 0-3.14 1.404-3.14 3.14h.8c0-1.294 1.047-2.34 2.34-2.34v-.8zm-3.14 3.14c0 1.061.529 2.003 1.34 2.569l.458-.656c-.605-.422-.998-1.123-.998-1.913h-.8zm1.438 1.863C2.067 8.036.6 9.975.6 12.255h.8c0-1.928 1.24-3.57 2.97-4.167l-.262-.756zM.6 12.255v.313h.8v-.313H.6zm0 .313c0 .135.063.236.123.296s.161.123.296.123v-.8c.125 0 .217.059.27.111.052.053.111.145.111.27H.6zm.419.419h5.808v-.8H1.019v.8zm5.41-.45c-.034.276-.055.563-.055.852h.8c0-.252.018-.506.05-.752l-.794-.1zm-.055.852v.323h.8v-.323h-.8zm0 .323c0 1.617 1.31 2.927 2.927 2.927v-.8c-1.175 0-2.127-.952-2.127-2.127h-.8zm2.927 2.927h7.36v-.8h-7.36v.8zm7.36 0c1.617 0 2.927-1.31 2.927-2.927h-.8c0 1.175-.951 2.127-2.127 2.127v.8zm2.927-2.927v-.323h-.8v.323h.8zm0-.323c0-.289-.02-.576-.056-.853l-.794.101c.032.246.05.5.05.752h.8zm-.453-.402h5.846v-.8h-5.846v.8zm5.846 0c.135 0 .236-.063.296-.123s.123-.161.123-.296h-.8c0-.125.059-.217.111-.27.053-.053.145-.111.27-.111v.8zm.419-.42v-.313h-.8v.314h.8zm0-.314c-.01-2.282-1.47-4.221-3.513-4.926l-.26.756c1.727.597 2.964 2.238 2.973 4.173l.8-.003zm-6.795-6.794c0-.871.709-1.58 1.58-1.58v-.8c-1.313 0-2.38 1.067-2.38 2.38h.8zm1.58-1.58c.871 0 1.58.709 1.58 1.58h.8c0-1.313-1.067-2.38-2.38-2.38v.8zm1.58 1.58c0 .859-.693 1.561-1.551 1.58l.018.8c1.288-.028 2.333-1.083 2.333-2.38h-.8zm-1.542 1.58h-.002-.002-.001-.001-.002-.003-.001-.001-.002-.001-.002-.001-.002-.001-.001-.004-.001-.002-.001-.001-.001-.002-.001-.002v.8H20.223v-.8zm-.038 0h-.002-.003-.002-.001-.001-.006-.001-.002-.001-.002-.001-.005-.001-.002-.001-.001-.001-.002-.003v.8H20.185v-.8zm-.031 0c-.86-.015-1.55-.715-1.55-1.58h-.8c0 1.3 1.04 2.357 2.336 2.38l.014-.8zm-9.499-2.568c0-1.275 1.037-2.311 2.312-2.311v-.8c-1.717 0-3.112 1.395-3.112 3.111h.8zm2.312-2.311c1.275 0 2.311 1.036 2.311 2.311h.8c0-1.716-1.394-3.111-3.111-3.111v.8zm2.311 2.311c0 1.23-.968 2.239-2.177 2.308l.045.798c1.63-.092 2.932-1.448 2.932-3.106h-.8zm-2.155 2.307h-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001H13h-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.002v.8H13.124v-.8zm-.156 0h-.001-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001-.002-.001-.003-.001-.002-.001-.001-.002-.001-.001v.8H12.967v-.8zm-.134 0c-1.21-.068-2.178-1.077-2.178-2.307h-.8c0 1.658 1.302 3.014 2.932 3.106l.046-.798zM4.216 5.46c0-.871.709-1.58 1.58-1.58v-.8c-1.313 0-2.38 1.067-2.38 2.38h.8zm1.58-1.58c.871 0 1.58.709 1.58 1.58h.8c0-1.313-1.067-2.38-2.38-2.38v.8zm1.58 1.58c0 .859-.693 1.561-1.55 1.58l.017.8c1.289-.028 2.333-1.083 2.333-2.38h-.8zm-1.542 1.58h-.002-.002-.003-.002-.001-.001-.001-.001-.001-.002-.001-.002-.001-.003-.001-.001-.001-.002-.001-.001-.001-.001H5.8h-.002-.001-.001v.8H5.835v-.8zm-.038 0h-.002-.005-.002-.001-.001-.001-.001-.001-.002-.001-.002-.003-.001-.001-.001-.001-.001-.002-.001-.001-.001-.001-.002-.001-.001v.8H5.797v-.8zm-.03 0c-.856-.015-1.55-.716-1.55-1.58h-.8c0 1.301 1.044 2.357 2.335 2.38l.014-.8zm1.194 4.383H1.77v.8h5.19v-.8zm-4.793.442C2.36 10.041 3.901 8.612 5.77 8.6l-.005-.8c-2.281.016-4.159 1.758-4.393 3.981l.795.084zm3.6-3.265H5.797v-.8h-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001-.002H5.774h-.001-.002-.002-.001-.001v.8zm.03 0H5.825v-.8h-.001-.001-.001-.002-.001-.002-.007-.002-.001-.002-.001-.001H5.8 5.8h-.001-.001-.001v.8zm.026 0c.888.004 1.7.333 2.33.869l.519-.61c-.766-.65-1.758-1.054-2.845-1.059l-.004.8zm2.296.293c-.728.788-1.268 1.758-1.547 2.83l.775.2c.244-.94.72-1.794 1.36-2.488l-.588-.542zm9.9 4.82c0 .753-.615 1.367-1.367 1.367v.8c1.194 0 2.166-.972 2.166-2.167h-.8zm-1.367 1.367h-7.36v.8h7.36v-.8zm-7.36 0c-.753 0-1.367-.614-1.367-1.367h-.8c0 1.195.972 2.167 2.166 2.167v-.8zm-1.367-1.367v-.323h-.8v.323h.8zm0-.323c0-2.732 2.183-4.967 4.897-5.047l-.024-.8c-3.145.093-5.673 2.682-5.673 5.847h.8zm4.849-5.048c.073.007.15.006.198.006v-.8c-.056 0-.095 0-.126-.003l-.072.797zm.198.006c.048 0 .124 0 .197-.006l-.072-.797c-.031.003-.07.003-.125.003v.8zm.15-.005c2.713.08 4.896 2.315 4.896 5.047h.8c0-3.165-2.527-5.754-5.673-5.846l-.024.8zm4.896 5.047v.323h.8v-.323h-.8zm1.352-1.668c-.277-1.066-.808-2.021-1.53-2.81l-.59.541c.636.694 1.102 1.534 1.346 2.471l.774-.202zm-1.564-2.236c.633-.548 1.454-.877 2.354-.886l-.008-.8c-1.094.01-2.097.412-2.87 1.08l.524.606zm2.35-.886H20.185v-.8h-.001-.001-.001-.001-.001-.001H20.165h-.001-.001-.001-.001-.001-.001-.001-.001-.001v.8zm.029 0H20.214v-.8h-.001-.001H20.198h-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001-.001v.8zm.026 0c1.869.013 3.41 1.442 3.603 3.265l.796-.084c-.235-2.223-2.113-3.965-4.394-3.98l-.005.799zm4 2.823h-5.228v.8h5.229v-.8z","mask","url(#v8f0hpt10a)"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32"],["d","M24.507 0H2.86C1.284 0 0 1.284 0 2.861V29.14C0 30.716 1.284 32 2.861 32h21.646c.961 0 1.743-.782 1.743-1.743V1.743C26.25.782 25.468 0 24.507 0zM1.25 29.139c0-.889.723-1.612 1.611-1.612H22.5v3.223H2.86c-.888 0-1.611-.723-1.611-1.611zM25 30.257c0 .272-.221.493-.493.493h-.757v-3.223h.757c.171 0 .337-.024.493-.07v2.8zm0-4.473c0 .272-.221.493-.493.493H3.75V11.125c0-.345-.28-.625-.625-.625s-.625.28-.625.625V26.3c-.46.058-.885.226-1.25.475V2.861c0-.764.535-1.405 1.25-1.57v9.66c0 .345.28.625.625.625s.625-.28.625-.625V1.25h20.757c.272 0 .493.221.493.493v24.041z"],["d","M18.807 6.74c-.473 0-.937.09-1.37.264-.68-1.005-1.822-1.627-3.062-1.627-1.24 0-2.382.622-3.061 1.627-.434-.173-.898-.263-1.37-.263-2.037 0-3.694 1.657-3.694 3.693 0 1.565.96 2.922 2.386 3.456v7.294c0 .533.434.966.966.966h9.546c.532 0 .966-.433.966-.966V13.89C21.54 13.356 22.5 12 22.5 10.434c0-2.036-1.657-3.693-3.693-3.693zm-8.92 14.16v-1.25h8.977v1.25H9.886zm9.463-8.083c-.284.064-.486.317-.486.61V18.4H9.886v-4.974c0-.292-.201-.545-.486-.61-1.119-.253-1.9-1.233-1.9-2.382 0-1.347 1.096-2.443 2.443-2.443.46 0 .906.128 1.293.37.154.096.342.12.515.068.173-.054.315-.18.388-.345.392-.885 1.27-1.457 2.236-1.457.967 0 1.845.572 2.236 1.457.073.166.215.291.388.345.173.053.361.028.515-.068.387-.242.834-.37 1.293-.37 1.347 0 2.443 1.096 2.443 2.443 0 1.15-.781 2.129-1.9 2.383zM3.125 13.138c-.345 0-.625.28-.625.626 0 .345.28.625.625.625s.625-.28.625-.625c0-.346-.28-.626-.625-.626z"],["viewBox","0 0 40 40","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M16 17C16 14.7909 17.7909 13 20 13C22.2091 13 24 14.7909 24 17C24 18.8638 22.7252 20.4299 21 20.874V22C21 22.5523 20.5523 23 20 23C19.4477 23 19 22.5523 19 22V20C19 19.4477 19.4477 19 20 19C21.1046 19 22 18.1046 22 17C22 15.8954 21.1046 15 20 15C18.8954 15 18 15.8954 18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M20 26.5C20.6904 26.5 21.25 25.9403 21.25 25.25C21.25 24.5597 20.6904 24 20 24C19.3096 24 18.75 24.5597 18.75 25.25C18.75 25.9403 19.3096 26.5 20 26.5Z"],["viewBox","0 0 128 128","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clipRecipeHelp)"],["d","M126.689 65.5088C126.689 85.8154 116.964 103.879 101.935 115.293C100.072 116.707 97.3936 115.369 97.3936 113.03C97.3936 108.62 93.8184 105.044 89.4072 105.044H21.3613C17.5742 105.044 14.0088 103.182 11.9111 100.028C5.33301 90.1377 1.5 78.2705 1.5 65.5088C1.5 30.9961 29.5244 3.01758 64.0947 3.01758C98.6651 3.01758 126.689 30.9961 126.689 65.5088Z","fill","#1177BC"],["d","M121.324 31.0752H99.3525V14.8584C99.3525 8.31934 104.653 3.01758 111.192 3.01758H112.894C118.961 3.01758 123.879 7.93652 123.879 14.0039V28.5205C123.879 29.9316 122.735 31.0752 121.324 31.0752Z","fill","#D2D1CD"],["d","M112.894 3.01855C106.826 3.01855 101.907 7.92871 101.907 13.9863V115.313C96.3711 119.511 90.1152 122.807 83.3564 124.985C77.2881 126.941 70.8154 127.23 64.0947 127.23C52.9336 127.227 42.4561 124.186 33.3828 119C26.749 115.209 22.7061 108.105 22.7061 100.464V13.9854C22.7061 7.92871 27.624 3.01758 33.6914 3.01758H112.894V3.01855Z","fill","#EFEFEF"],["d","M65.1172 32.6074V33.8788C65.1172 34.5839 64.5449 35.1562 63.8389 35.1562H45.9551C45.25 35.1562 44.6777 34.5839 44.6777 33.8788V32.6074C44.6777 31.9023 45.25 31.33 45.9551 31.33H63.8389C64.5449 31.33 65.1172 31.9023 65.1172 32.6074Z","fill","#797979"],["d","M75.3359 45.999V47.2695C75.3359 47.9755 74.7646 48.5468 74.0586 48.5468H45.9551C45.25 48.5468 44.6777 47.9755 44.6777 47.2695V45.999C44.6777 45.2929 45.25 44.7216 45.9551 44.7216H74.0586C74.7646 44.7216 75.3359 45.2929 75.3359 45.999ZM45.9551 56.1992H71.5039C72.209 56.1992 72.7812 55.6269 72.7812 54.9218V53.6503C72.7812 52.9453 72.209 52.373 71.5039 52.373H45.9551C45.25 52.373 44.6777 52.9453 44.6777 53.6503V54.9218C44.6777 55.6269 45.25 56.1992 45.9551 56.1992ZM74.0586 60.0253H45.9551C45.25 60.0253 44.6777 60.5966 44.6777 61.3027V62.5732C44.6777 63.2792 45.25 63.8505 45.9551 63.8505H74.0586C74.7646 63.8505 75.3359 63.2792 75.3359 62.5732V61.3027C75.3359 60.5966 74.7646 60.0253 74.0586 60.0253ZM70.8223 75.7118H45.9551C45.25 75.7118 44.6777 76.2831 44.6777 76.9892V78.2597C44.6777 78.9658 45.25 79.537 45.9551 79.537H70.8223C71.5283 79.537 72.0996 78.9658 72.0996 78.2597V76.9892C72.0996 76.2831 71.5283 75.7118 70.8223 75.7118ZM45.9551 71.6308H63.8389C64.5449 71.6308 65.1172 71.0585 65.1172 70.3525V69.082C65.1172 68.3769 64.5449 67.8046 63.8389 67.8046H45.9551C45.25 67.8046 44.6777 68.3769 44.6777 69.082V70.3525C44.6777 71.0585 45.25 71.6308 45.9551 71.6308Z","fill","#DCDCDC"],["d","M48.5098 90.1191V90.1269C48.5098 91.1806 47.6553 92.0361 46.6006 92.0361H46.5869C45.5322 92.0361 44.6777 91.1806 44.6777 90.1269V90.1191C44.6777 89.0644 45.5322 88.2099 46.5869 88.2099H46.6006C47.6553 88.2099 48.5098 89.0644 48.5098 90.1191ZM52.5996 88.2099H52.585C51.5312 88.2099 50.6758 89.0644 50.6758 90.1191V90.1269C50.6758 91.1816 51.5312 92.0361 52.585 92.0361H52.5996C53.6533 92.0361 54.5088 91.1816 54.5088 90.1269V90.1191C54.5088 89.0644 53.6533 88.2099 52.5996 88.2099ZM58.5977 88.2099H58.584C57.5293 88.2099 56.6748 89.0644 56.6748 90.1191V90.1269C56.6748 91.1816 57.5293 92.0361 58.584 92.0361H58.5977C59.6523 92.0361 60.5068 91.1816 60.5068 90.1269V90.1191C60.5068 89.0644 59.6523 88.2099 58.5977 88.2099Z","fill","#D7D7D7"],["d","M29.3486 13.9854V105.044H22.7061V13.9854C22.7061 7.92871 27.624 3.01758 33.6914 3.01758H40.334C34.2666 3.01855 29.3486 7.92871 29.3486 13.9854Z","fill","#FAFAFA"],["d","M49.3008 3.24899C52.793 6.73532 53.6016 11.58 51.1074 14.0703C48.6123 16.5605 43.7598 15.7529 40.2676 12.2666C36.7754 8.78122 35.9668 3.93552 38.4609 1.44528C40.9551 -1.04495 45.8086 -0.237334 49.3008 3.24899Z","fill","#ECB700"],["d","M49.3007 3.249C49.872 3.81931 50.371 4.42673 50.7958 5.05368C51.0898 5.48728 51.1289 6.05368 50.8847 6.51658C50.8828 6.51853 50.8818 6.52146 50.8808 6.52439C49.2294 9.63669 44.3535 10.29 39.9892 7.9824C39.5644 7.75876 39.1611 7.51462 38.7792 7.25388C37.3564 6.28122 36.79 4.41697 37.498 2.84665C37.5019 2.83786 37.5058 2.82907 37.5097 2.82029C37.2832 3.37693 37.2802 3.874 37.5576 4.15036C38.0566 4.64841 39.2695 4.24509 40.2675 3.249C41.2656 2.2529 41.6699 1.04099 41.1708 0.542942C40.8945 0.267551 40.3974 0.269504 39.8398 0.49509C42.4882 -0.712918 46.373 0.326144 49.3007 3.249Z","fill","#F1CA50"],["d","M111.876 36.5156L110.241 44.2109C109.275 48.7558 105.257 52.0068 100.603 52.0068C97.9366 52.0068 95.7754 49.8496 95.7754 47.1875C95.7754 42.542 99.0323 38.5293 103.585 37.5654L111.292 35.9326C111.641 35.8584 111.95 36.168 111.876 36.5156ZM11.4746 72.2246L13.1104 79.9199C14.0762 84.4648 18.0948 87.7158 22.7491 87.7158C25.4141 87.7158 27.5752 85.5586 27.5752 82.8965C27.5752 78.251 24.3194 74.2383 19.7666 73.2744L12.0596 71.6416C11.711 71.5674 11.4014 71.8769 11.4746 72.2246Z","fill","#059B7E"],["d","M103.885 51.4434C103.035 51.7432 102.074 51.4717 101.539 50.7471C101.519 50.7187 101.498 50.6904 101.478 50.6621C100.905 49.8506 100.986 48.7539 101.665 48.0293C102.594 47.04 103.46 46.0254 104.194 45.0498L107.562 40.5771C107.636 40.4805 107.626 40.3457 107.54 40.2607C107.455 40.1758 107.32 40.166 107.224 40.2383L102.744 43.6016C102.332 43.9111 101.912 44.2432 101.491 44.5937C101.196 44.8398 100.755 44.5586 100.859 44.1885C101.634 41.4404 103.593 39.0781 106.351 37.8584L110.161 36.1719L111.292 35.9326C111.641 35.8594 111.949 36.168 111.876 36.5156L110.241 44.2109C109.513 47.6377 107.048 50.3271 103.885 51.4434ZM19.7666 73.2734L12.0596 71.6416C11.7109 71.5674 11.4014 71.877 11.4756 72.2246L11.7148 73.3535L13.4033 77.1572C14.626 79.9111 16.9912 81.8662 19.7451 82.6406C20.1152 82.7441 20.3975 82.3037 20.1504 82.0088C19.7998 81.5879 19.4658 81.1699 19.1562 80.7588L15.7881 76.2861C15.7158 76.1895 15.7256 76.0547 15.8105 75.9697C15.8955 75.8848 16.0303 75.875 16.1269 75.9473L20.6064 79.3105C21.584 80.0439 22.6006 80.9082 23.5918 81.835C24.3174 82.5127 25.416 82.5938 26.2285 82.0234C26.2578 82.0029 26.2861 81.9824 26.3144 81.9609C27.04 81.4277 27.3125 80.4678 27.0117 79.6201C25.8945 76.4619 23.2002 74.001 19.7666 73.2734Z","fill","#0AB59E"],["d","M95.7754 61.4277C87.3096 61.4277 80.4463 68.2792 80.4463 76.7314C80.4463 85.1835 87.3096 92.0351 95.7754 92.0351C104.241 92.0351 111.104 85.1835 111.104 76.7314C111.104 68.2792 104.241 61.4277 95.7754 61.4277ZM95.7754 84.3837C91.542 84.3837 88.1104 80.9579 88.1104 76.7324C88.1104 72.5058 91.542 69.08 95.7754 69.08C100.009 69.08 103.44 72.5058 103.44 76.7324C103.44 80.9579 100.009 84.3837 95.7754 84.3837Z","fill","#FAFAFA"],["d","M95.7754 66.5292C90.1318 66.5292 85.5557 71.0976 85.5557 76.7324C85.5557 82.3671 90.1318 86.9345 95.7754 86.9345C101.42 86.9345 105.995 82.3671 105.995 76.7324C105.995 71.0976 101.42 66.5292 95.7754 66.5292ZM95.7754 81.8329C92.9531 81.8329 90.666 79.5497 90.666 76.7314C90.666 73.914 92.9531 71.6308 95.7754 71.6308C98.5977 71.6308 100.885 73.914 100.885 76.7314C100.885 79.5497 98.5977 81.8329 95.7754 81.8329Z","fill","#FDDFA6"],["d","M31.3379 39.249C36.3271 44.2294 31.9043 49.5038 25.9179 55.4814C19.9316 61.4579 14.6484 65.872 9.65916 60.8915C4.66991 55.9111 5.47948 47.0292 11.4658 41.0527C17.4521 35.0751 26.3496 34.2685 31.3379 39.249Z","fill","#CC7556"],["d","M36.4648 61.1181C35.9121 62.1025 35.206 63.042 34.3486 63.8974C33.4922 64.7529 32.5508 65.458 31.5654 66.0097C30.0342 66.8672 28.0957 66.6562 26.8457 65.4248C26.8379 65.417 26.8291 65.4091 26.8213 65.4004L21.2617 59.8506C18.9209 61.3379 16.5273 61.4365 14.4013 59.3134C10.8672 55.7851 11.4404 49.4941 15.6806 45.2607C19.9209 41.0273 26.2236 40.455 29.7568 43.9834C31.8828 46.1064 31.7842 48.4951 30.2939 50.832L35.8545 56.3828C35.8623 56.3906 35.8701 56.3994 35.8789 56.4072C37.1123 57.6552 37.3242 59.5908 36.4648 61.1181Z","fill","#994122"],["d","M26.7969 47.3408C26.8047 47.3486 26.8135 47.3564 26.8223 47.3652L35.8545 56.3828L35.8789 56.4072C37.0694 57.6093 37.3643 59.4472 36.5655 60.9365C36.5557 60.955 36.5459 60.9736 36.5362 60.9912C36.1524 61.6963 35.5762 62.2714 34.8701 62.6543C34.8526 62.664 34.834 62.6738 34.8155 62.6836C33.3233 63.4814 31.4824 63.1875 30.2793 61.999C30.2705 61.9902 30.2627 61.9824 30.2539 61.9746L21.2217 52.956C21.2129 52.9482 21.2051 52.9394 21.1963 52.9316C20.0069 51.7304 19.711 49.8925 20.5098 48.4033C20.5196 48.3847 20.5303 48.3671 20.5401 48.3486C20.9229 47.6435 21.5 47.0673 22.2071 46.6845C22.2246 46.6738 22.2432 46.665 22.2617 46.6552C23.753 45.8574 25.5938 46.1523 26.7969 47.3408Z","fill","#CC7556"],["d","M31.9033 99.6874C31.9033 101.097 30.7598 102.238 29.3486 102.238C27.9375 102.238 26.793 101.097 26.793 99.6874C26.793 98.2792 27.9375 97.1367 29.3486 97.1367C30.7598 97.1367 31.9033 98.2792 31.9033 99.6874ZM34.458 18.0673C33.0469 18.0673 31.9033 19.2089 31.9033 20.6171C31.9033 22.0263 33.0469 23.1679 34.458 23.1679C35.8691 23.1679 37.0127 22.0263 37.0127 20.6171C37.0127 19.2089 35.8691 18.0673 34.458 18.0673ZM90.666 97.1367C89.2549 97.1367 88.1104 98.2792 88.1104 99.6874C88.1104 101.097 89.2549 102.238 90.666 102.238C92.0771 102.238 93.2207 101.097 93.2207 99.6874C93.2207 98.2792 92.0771 97.1367 90.666 97.1367Z","fill","#E43950"],["d","M98.3301 30.8203C98.3301 32.2285 97.1865 33.3711 95.7754 33.3711C94.3643 33.3711 93.2207 32.2285 93.2207 30.8203C93.2207 29.4111 94.3643 28.2695 95.7754 28.2695C97.1865 28.2695 98.3301 29.4111 98.3301 30.8203ZM116.215 63.9785C114.804 63.9785 113.66 65.1201 113.66 66.5293C113.66 67.9375 114.804 69.0801 116.215 69.0801C117.626 69.0801 118.77 67.9375 118.77 66.5293C118.77 65.1201 117.626 63.9785 116.215 63.9785ZM103.44 56.3262C102.029 56.3262 100.885 57.4687 100.885 58.8769C100.885 60.2861 102.029 61.4277 103.44 61.4277C104.852 61.4277 105.995 60.2861 105.995 58.8769C105.995 57.4687 104.852 56.3262 103.44 56.3262Z","fill","#86523E"],["d","M82.9404 0.532186C83.6348 -0.16215 84.7705 -0.184611 85.4668 0.508748C85.4717 0.512654 85.4756 0.517537 85.4795 0.521444C90.4688 5.50191 90.4688 13.5771 85.4795 18.5566C80.4912 23.5371 72.4024 23.5371 67.4141 18.5566C67.4092 18.5527 67.4053 18.5478 67.4014 18.5439C66.7071 17.8496 66.7295 16.7158 67.4248 16.0214L82.9404 0.532186Z","fill","#EF7280"],["d","M80.915 2.55273C81.4121 2.87012 81.8838 3.24414 82.3184 3.67773C85.5605 6.91504 85.5605 12.1641 82.3184 15.4014C79.0752 18.6387 73.8184 18.6387 70.5752 15.4014C70.1406 14.9678 69.7666 14.4971 69.4492 14.001L80.915 2.55273Z","fill","#E43950"],["d","M82.8633 11.2558C82.7217 11.7832 81.751 11.9814 80.6943 11.6982C79.6387 11.416 78.8965 10.7597 79.0381 10.2324C79.1797 9.70504 80.1504 9.5068 81.207 9.78903C82.2627 10.0722 83.0049 10.7285 82.8633 11.2558ZM77.1406 12.1259C76.6133 12.2675 76.4141 13.2373 76.6973 14.292C76.9805 15.3457 77.6377 16.0859 78.166 15.9453C78.6943 15.8037 78.8926 14.8349 78.6103 13.7802C78.3271 12.7256 77.6689 11.9853 77.1406 12.1259ZM72.4502 12.1318C71.6768 12.9033 71.3633 13.8427 71.75 14.2285C72.1367 14.6142 73.0762 14.3017 73.8496 13.5293C74.623 12.7578 74.9365 11.8193 74.5498 11.4326C74.1631 11.0468 73.2236 11.3593 72.4502 12.1318ZM81.1436 4.84958C80.7568 4.46383 79.8164 4.77731 79.0439 5.54879C78.2705 6.32125 77.957 7.25973 78.3437 7.64547C78.7305 8.03122 79.6709 7.71872 80.4434 6.94625C81.2168 6.17477 81.5303 5.23629 81.1436 4.84958Z","fill","#FD7C66"],["d","M83.3564 124.985C77.2881 126.943 70.8105 128 64.0889 128C42.2656 128 23.0537 116.848 11.8516 99.9423H77.375C78.7861 99.9423 79.9297 101.085 79.9297 102.493V117.032C79.9297 120.161 81.251 122.987 83.3564 124.985Z","fill","#FCFCFC"],["id","clipRecipeHelp"],["width","128","height","128","fill","white"],["d","M14.7499 1.75002H14.9999V8.25002H12.9999V3.50002C13.0005 3.03606 13.185 2.59124 13.5131 2.26316C13.8412 1.93509 14.286 1.75055 14.7499 1.75002ZM13.9999 13.25C13.9999 13.3826 14.0526 13.5098 14.1464 13.6036C14.2402 13.6973 14.3673 13.75 14.4999 13.75C14.6326 13.75 14.7597 13.6973 14.8535 13.6036C14.9473 13.5098 14.9999 13.3826 14.9999 13.25V8.75002H13.9999V13.25ZM1.99995 6.25002V8.25002H2.49995V6.25002H1.99995ZM7.99995 4.50003C7.30771 4.50003 6.63102 4.7053 6.05545 5.08988C5.47988 5.47447 5.03128 6.02109 4.76637 6.66063C4.50146 7.30017 4.43215 8.00391 4.5672 8.68284C4.70225 9.36177 5.03559 9.98541 5.52507 10.4749C6.01456 10.9644 6.6382 11.2977 7.31713 11.4328C7.99607 11.5678 8.6998 11.4985 9.33934 11.2336C9.97888 10.9687 10.5255 10.5201 10.9101 9.94452C11.2947 9.36895 11.4999 8.69226 11.4999 8.00002C11.4989 7.07209 11.1298 6.18246 10.4737 5.52631C9.81751 4.87016 8.92788 4.50108 7.99995 4.50003ZM1.74995 13.25C1.74995 13.3826 1.80263 13.5098 1.8964 13.6036C1.99016 13.6973 2.11734 13.75 2.24995 13.75C2.38256 13.75 2.50973 13.6973 2.6035 13.6036C2.69727 13.5098 2.74995 13.3826 2.74995 13.25V8.75002H1.74995V13.25ZM2.49995 4.50003V2.48421C2.49995 2.41791 2.47361 2.35432 2.42673 2.30744C2.37984 2.26055 2.31625 2.23421 2.24995 2.23421C2.18364 2.23421 2.12006 2.26055 2.07317 2.30744C2.02629 2.35432 1.99995 2.41791 1.99995 2.48421V4.50003C1.99995 4.56633 2.02629 4.62992 2.07317 4.6768C2.12006 4.72369 2.18364 4.75003 2.24995 4.75003C2.31625 4.75003 2.37984 4.72369 2.42673 4.6768C2.47361 4.62992 2.49995 4.56633 2.49995 4.50003ZM13.449 8.75002C13.2929 9.88353 12.7872 10.9401 12.0023 11.7727C11.2174 12.6053 10.1925 13.1723 9.07013 13.3949C7.94779 13.6175 6.78397 13.4846 5.74075 13.0146C4.69753 12.5446 3.82684 11.761 3.24995 10.7729V8.50002C3.24995 8.43372 3.22361 8.37013 3.17673 8.32325C3.12984 8.27636 3.06625 8.25002 2.99995 8.25002V5.7384C2.94546 5.74608 2.89051 5.74996 2.83548 5.75002H1.66436C1.50568 5.75004 1.34868 5.71763 1.20298 5.65477C1.05729 5.59192 0.925976 5.49995 0.817112 5.38451C0.708248 5.26907 0.624127 5.13259 0.569914 4.98347C0.515702 4.83434 0.492541 4.67571 0.501855 4.51731L0.695011 1.98421C0.696814 1.95124 0.705131 1.91896 0.71948 1.88922C0.73383 1.85948 0.753928 1.83288 0.778615 1.81095C0.803302 1.78902 0.832088 1.7722 0.863312 1.76146C0.894535 1.75072 0.927577 1.74627 0.960529 1.74837C0.993482 1.75047 1.02569 1.75907 1.0553 1.77369C1.08491 1.78831 1.11133 1.80864 1.13303 1.83353C1.15474 1.85841 1.1713 1.88734 1.18176 1.91866C1.19222 1.94998 1.19637 1.98306 1.19398 2.01599L1.00092 4.54787C0.995779 4.63816 1.00913 4.72855 1.04015 4.81351C1.07117 4.89846 1.11921 4.97618 1.18132 5.04192C1.24343 5.10766 1.31831 5.16002 1.40137 5.19581C1.48443 5.23159 1.57392 5.25004 1.66436 5.25003H2.83554C2.92607 5.25002 3.01565 5.23152 3.09877 5.19565C3.18189 5.15978 3.2568 5.1073 3.31891 5.04143C3.38102 4.97557 3.42901 4.8977 3.45994 4.81262C3.49086 4.72753 3.50408 4.63702 3.49876 4.54665L3.30579 2.01599C3.30219 1.95018 3.32473 1.8856 3.36851 1.83632C3.41228 1.78704 3.47375 1.75704 3.53953 1.75285C3.60531 1.74866 3.67009 1.77062 3.71976 1.81395C3.76943 1.85728 3.79998 1.91847 3.80476 1.98421L3.9806 4.24606C4.53903 3.64803 5.22386 3.18215 5.98518 2.88238C6.7465 2.58262 7.56512 2.45651 8.38136 2.51327C9.1976 2.57003 9.99089 2.80821 10.7034 3.21046C11.4159 3.6127 12.0297 4.16888 12.4999 4.83843V8.50002C12.4999 8.56633 12.5263 8.62992 12.5732 8.6768C12.6201 8.72369 12.6836 8.75002 12.7499 8.75002H13.449ZM11.9999 8.00002C11.9999 7.2089 11.7654 6.43554 11.3258 5.77774C10.8863 5.11995 10.2616 4.60726 9.53068 4.30451C8.79978 4.00176 7.99551 3.92254 7.21959 4.07688C6.44366 4.23123 5.73093 4.61219 5.17152 5.1716C4.61211 5.73101 4.23115 6.44374 4.07681 7.21966C3.92247 7.99559 4.00168 8.79985 4.30443 9.53076C4.60718 10.2617 5.11987 10.8864 5.77767 11.3259C6.43546 11.7654 7.20882 12 7.99995 12C9.06044 11.9988 10.0772 11.577 10.827 10.8271C11.5769 10.0772 11.9987 9.06052 11.9999 8.00002Z"],["viewBox","0 0 32 32","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.7425 8.06222H26.1582V2.21007C26.1582 1.67561 25.725 1.24255 25.1907 1.24255H6.80935C6.27502 1.24255 5.84184 1.67561 5.84184 2.21007V8.06222H2.25753C1.01279 8.06222 0 9.07488 0 10.3197V22.7329C0 23.9777 1.01279 24.9905 2.25753 24.9905H5.84184V29.7897C5.84184 30.3242 6.27502 30.7572 6.80935 30.7572H25.1905C25.7248 30.7572 26.158 30.3242 26.158 29.7897V24.9905H29.7423C30.9871 24.9905 31.9999 23.9777 31.9999 22.7329V10.3197C32 9.07501 30.9872 8.06222 29.7425 8.06222ZM7.77686 3.17758H24.223V8.06222H7.77686V3.17758ZM24.223 28.8222H7.77686V19.224H24.223V28.8222ZM30.065 22.7329C30.065 22.9077 29.9173 23.0554 29.7425 23.0554H26.1582V18.2564C26.1582 17.722 25.725 17.2889 25.1907 17.2889H6.80935C6.27502 17.2889 5.84184 17.722 5.84184 18.2564V23.0554H2.25753C2.08273 23.0554 1.93502 22.9077 1.93502 22.7329V10.3197C1.93502 10.1448 2.08273 9.99725 2.25753 9.99725H6.80935H25.1905H29.7423C29.9171 9.99725 30.0648 10.1448 30.0648 10.3197V22.7329H30.065Z"],["d","M25.1904 15.0192C25.9505 15.0192 26.5666 14.4031 26.5666 13.643C26.5666 12.883 25.9505 12.2668 25.1904 12.2668C24.4304 12.2668 23.8142 12.883 23.8142 13.643C23.8142 14.4031 24.4304 15.0192 25.1904 15.0192Z"],["d","M20.4018 21.1333H11.5982C11.0639 21.1333 10.6307 21.5664 10.6307 22.1008C10.6307 22.6353 11.0639 23.0683 11.5982 23.0683H20.4018C20.9361 23.0683 21.3693 22.6353 21.3693 22.1008C21.3693 21.5665 20.9362 21.1333 20.4018 21.1333Z"],["d","M20.4018 24.9775H11.5982C11.0639 24.9775 10.6307 25.4106 10.6307 25.9451C10.6307 26.4795 11.0639 26.9126 11.5982 26.9126H20.4018C20.9361 26.9126 21.3693 26.4795 21.3693 25.9451C21.3693 25.4106 20.9362 24.9775 20.4018 24.9775Z"],["viewBox","0 -192 512 512","xmlns","http://www.w3.org/2000/svg"],["d","m320 64c0 35.347656-28.652344 64-64 64s-64-28.652344-64-64 28.652344-64 64-64 64 28.652344 64 64zm0 0"],["d","m128 64c0 35.347656-28.652344 64-64 64s-64-28.652344-64-64 28.652344-64 64-64 64 28.652344 64 64zm0 0"],["d","m512 64c0 35.347656-28.652344 64-64 64s-64-28.652344-64-64 28.652344-64 64-64 64 28.652344 64 64zm0 0"],["width","279","height","243","viewBox","0 0 279 243","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","199","cy","80","r","80","fill","#E9F6FF"],["cx","47","cy","184","r","40","fill","#5AA9DF"],["cx","80.5","cy","68.5","r","40","stroke","#5AA9DF","stroke-dasharray","2 10"],["cx","216","cy","114","r","22.5","stroke","#5AA9DF","stroke-dasharray","2 10"],["filter","url(#filter0_bi)"],["d","M221.916 198H36.0845C38.1794 148.493 78.9777 109 129 109C179.022 109 219.821 148.493 221.916 198Z","fill","white","fill-opacity","0.6"],["filter","url(#filter1_bi)"],["d","M11 219.5C11 213.149 16.1487 208 22.5 208H236.5C242.851 208 248 213.149 248 219.5C248 225.851 242.851 231 236.5 231H22.5C16.1487 231 11 225.851 11 219.5Z","fill","white","fill-opacity","0.6"],["fill-rule","evenodd","clip-rule","evenodd","d","M147.85 95C149.151 91.9557 149.876 88.5688 149.876 85C149.876 71.7452 139.874 61 127.534 61C115.195 61 105.193 71.7452 105.193 85C105.193 88.6387 105.946 92.0882 107.295 95.1783C61.3702 104.98 26.1653 146.756 22.6335 198H37.5764C41.5855 148.132 80.5385 109 128 109C175.461 109 214.414 148.132 218.423 198H233.366C229.813 146.439 194.193 104.463 147.85 95ZM134.051 85C134.051 88.866 131.133 92 127.534 92C123.936 92 121.018 88.866 121.018 85C121.018 81.134 123.936 78 127.534 78C131.133 78 134.051 81.134 134.051 85Z","fill","#1177BC"],["x","6.5","y","204.5","width","243","height","32","rx","16","stroke","#1177BC","stroke-width","13","stroke-linecap","round","stroke-linejoin","round"],["d","M137.476 176.545C138.462 176.545 139.443 176.098 140.133 175.229C141.385 173.654 141.21 171.287 139.744 169.942C136.898 167.332 133.118 165.888 129.101 165.875C129.083 165.875 129.065 165.875 129.046 165.875C125.05 165.875 121.284 167.294 118.436 169.874C116.962 171.209 116.775 173.575 118.018 175.158C119.26 176.741 121.463 176.943 122.937 175.608C124.504 174.188 126.73 173.375 129.048 173.375H129.08C131.41 173.383 133.645 174.211 135.212 175.647C135.869 176.25 136.675 176.545 137.476 176.545Z","fill","#1177BC"],["d","M110.566 152H110.525C108.596 152 107.054 153.679 107.054 155.75C107.054 157.821 108.637 159.5 110.566 159.5C112.494 159.5 114.057 157.821 114.057 155.75C114.057 153.679 112.494 152 110.566 152Z","fill","#1177BC"],["d","M148.142 159.472C148.155 159.474 148.169 159.477 148.182 159.478C148.256 159.487 148.331 159.488 148.406 159.492C148.449 159.494 148.493 159.499 148.537 159.5H148.556C150.475 159.5 152.037 157.835 152.047 155.771C152.056 153.951 150.857 152.427 149.257 152.076C149.245 152.074 149.233 152.073 149.221 152.07C149.121 152.049 149.019 152.032 148.916 152.021C148.874 152.016 148.831 152.016 148.789 152.013C148.718 152.008 148.648 152.001 148.576 152H148.534C148.528 152 148.522 152 148.515 152C148.395 152 148.276 152.006 148.159 152.019C146.398 152.209 145.041 153.807 145.041 155.75C145.04 157.672 146.404 159.254 148.142 159.472Z","fill","#1177BC"],["d","M45.0983 102.566C45.8308 103.298 46.7908 103.664 47.7503 103.664C48.7098 103.664 49.6698 103.298 50.4023 102.566L53.3828 99.585L56.3632 102.566C57.0957 103.298 58.0558 103.664 59.0153 103.664C59.9748 103.664 60.9347 103.298 61.6672 102.566C63.1318 101.101 63.1318 98.7265 61.6672 97.2625L58.6862 94.2816L61.6672 91.3005C63.1318 89.836 63.1318 87.4615 61.6672 85.9975C60.2022 84.533 57.8282 84.533 56.3637 85.9975L53.3833 88.978L50.4028 85.9975C48.9378 84.533 46.5637 84.533 45.0992 85.9975C43.6347 87.462 43.6347 89.8365 45.0992 91.3005L48.0803 94.2816L45.0992 97.2625C43.6337 98.7265 43.6338 101.101 45.0983 102.566Z","fill","#1177BC"],["d","M194.142 96.9331L197.123 99.9141L194.142 102.895C192.677 104.36 192.677 106.734 194.142 108.198C194.874 108.93 195.834 109.297 196.794 109.297C197.753 109.297 198.713 108.931 199.446 108.198L202.426 105.218L205.407 108.198C206.139 108.93 207.099 109.297 208.059 109.297C209.018 109.297 209.978 108.931 210.711 108.198C212.175 106.734 212.175 104.359 210.711 102.895L207.73 99.9141L210.711 96.9331C212.175 95.4686 212.175 93.0941 210.711 91.6301C209.246 90.1656 206.872 90.1656 205.407 91.6301L202.427 94.6106L199.446 91.6301C197.981 90.1656 195.607 90.1656 194.143 91.6301C192.677 93.0941 192.677 95.4686 194.142 96.9331Z","fill","#1177BC"],["d","M75.5998 75.242C84.4888 75.242 91.7203 68.0105 91.7203 59.121C91.7203 50.2315 84.4888 43 75.5998 43C66.7108 43 59.4788 50.232 59.4788 59.121C59.4788 68.01 66.7108 75.242 75.5998 75.242ZM75.5998 50.5C80.3533 50.5 84.2203 54.367 84.2203 59.121C84.2203 63.875 80.3533 67.742 75.5998 67.742C70.8458 67.742 66.9788 63.875 66.9788 59.121C66.9788 54.367 70.8458 50.5 75.5998 50.5Z","fill","#1177BC"],["d","M179.73 85.1125C187.929 85.1125 194.599 78.442 194.599 70.243C194.599 62.044 187.929 55.3735 179.73 55.3735C171.531 55.3735 164.86 62.044 164.86 70.243C164.86 78.4425 171.53 85.1125 179.73 85.1125ZM179.73 62.8735C183.793 62.8735 187.099 66.1795 187.099 70.243C187.099 74.3065 183.793 77.6125 179.73 77.6125C175.666 77.6125 172.36 74.3065 172.36 70.243C172.36 66.1795 175.666 62.8735 179.73 62.8735Z","fill","#1177BC"],["id","filter0_bi","x","28.0845","y","101","width","201.831","height","105","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["flood-opacity","0","result","BackgroundImageFix"],["in","BackgroundImage","stdDeviation","4"],["in2","SourceAlpha","operator","in","result","effect1_backgroundBlur"],["mode","normal","in","SourceGraphic","in2","effect1_backgroundBlur","result","shape"],["in","SourceAlpha","type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0","result","hardAlpha"],["dy","4"],["stdDeviation","2"],["in2","hardAlpha","operator","arithmetic","k2","-1","k3","1"],["type","matrix","values","0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"],["mode","normal","in2","shape","result","effect2_innerShadow"],["id","filter1_bi","x","3","y","200","width","253","height","39","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["dy","3"],["d","M15.0661 1.80645H13.0835C12.9121 0.772355 12.0038 -0.0160968 10.9185 0.000258065C9.73275 0.0180968 8.79029 1.00616 8.79029 2.19203V10.2383C8.79029 10.3707 8.73991 10.4986 8.64797 10.5939C8.06733 11.1957 7.74639 11.9984 7.75836 12.8526C7.78297 14.6074 9.24191 16.0241 10.9967 15.9997C13.7939 15.9608 15.1739 12.5853 13.2567 10.5954C13.1643 10.4995 13.1129 10.3715 13.1129 10.2383V9.29032H13.7758C14.0538 9.29032 14.2929 9.07658 14.3058 8.7989C14.3196 8.50248 14.0836 8.25806 13.7903 8.25806H13.1129V6.06452H14.421C14.699 6.06452 14.9381 5.85077 14.951 5.5731C14.9648 5.27668 14.7288 5.03226 14.4355 5.03226H13.1129V2.83871H15.0806C15.374 2.83871 15.61 2.59429 15.5962 2.29787C15.5832 2.02019 15.3441 1.80645 15.0661 1.80645ZM10.8655 13.997C9.78113 13.9205 9.35033 12.5256 10.2305 11.856C10.3592 11.758 10.4355 11.6063 10.4355 11.4445V5.27255C10.4355 4.99455 10.6492 4.75542 10.9269 4.74252C11.2233 4.72871 11.4677 4.96474 11.4677 5.25806V11.438C11.4677 11.6001 11.5402 11.7558 11.6695 11.8536C12.6164 12.569 12.0469 14.0803 10.8655 13.997ZM1.82255 2.83871C1.03991 2.83871 0.403198 2.202 0.403198 1.41935C0.403198 0.63671 1.03991 0 1.82255 0C2.6052 0 3.24191 0.63671 3.24191 1.41935C3.24191 2.202 2.6052 2.83871 1.82255 2.83871ZM1.82255 1.03226C1.6091 1.03226 1.43546 1.2059 1.43546 1.41935C1.43546 1.63281 1.6091 1.80645 1.82255 1.80645C2.036 1.80645 2.20965 1.63281 2.20965 1.41935C2.20965 1.2059 2.036 1.03226 1.82255 1.03226ZM5.41933 7.16129C4.20091 7.16129 3.20965 6.17003 3.20965 4.95161V3.43548C3.20965 2.21706 4.20088 1.22581 5.41933 1.22581C6.08117 1.22581 6.70255 1.51881 7.12423 2.02971C7.30568 2.24955 7.27455 2.57484 7.05471 2.75629C6.83491 2.93774 6.50959 2.90661 6.32813 2.68677C5.62807 1.83855 4.24191 2.33361 4.24191 3.43548V4.95161C4.24191 6.05432 5.62884 6.54794 6.32813 5.70026C6.50959 5.48039 6.83488 5.44919 7.05471 5.63061C7.27459 5.81203 7.30578 6.13732 7.12436 6.35719C6.70278 6.86819 6.0813 7.16129 5.41933 7.16129Z"],["width","16","height","16","fill","none"],["viewBox","0 0 16 10","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0.416079 2.75106L6.67781 8.98175C7.4096 9.70971 8.59205 9.70971 9.32349 8.98175L15.5856 2.75106C15.9902 2.34819 16.1119 1.80685 15.8939 1.27841C15.6763 0.751018 15.1618 0.472323 14.5911 0.472323L1.41122 0.472324C0.839875 0.472324 0.325738 0.751019 0.108084 1.27876C-0.110266 1.80685 0.0114654 2.34785 0.416079 2.75106Z"],["width","152","height","157","viewBox","0 0 152 157","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M59.9006 157C91.9469 157 117.926 152.409 117.926 146.747C117.926 141.084 91.9469 136.493 59.9006 136.493C27.8542 136.493 1.87549 141.084 1.87549 146.747C1.87549 152.409 27.8542 157 59.9006 157Z","fill","#3F3D56"],["d","M95.167 113.446C126.486 113.446 151.876 88.0505 151.876 56.7232C151.876 25.3958 126.486 0 95.167 0C63.8478 0 38.4586 25.3958 38.4586 56.7232C38.4586 88.0505 63.8478 113.446 95.167 113.446Z","fill","#3F3D56"],["opacity","0.05","d","M95.167 103.55C121.022 103.55 141.982 82.5849 141.982 56.7232C141.982 30.8615 121.022 9.89639 95.167 9.89639C69.312 9.89639 48.3524 30.8615 48.3524 56.7232C48.3524 82.5849 69.312 103.55 95.167 103.55Z","fill","black"],["opacity","0.05","d","M95.167 95.1019C116.357 95.1019 133.536 77.9191 133.536 56.7232C133.536 35.5272 116.357 18.3445 95.167 18.3445C73.9766 18.3445 56.7983 35.5272 56.7983 56.7232C56.7983 77.9191 73.9766 95.1019 95.167 95.1019Z","fill","black"],["opacity","0.05","d","M95.167 84.24C110.36 84.24 122.677 71.9203 122.677 56.7232C122.677 41.5261 110.36 29.2064 95.167 29.2064C79.9738 29.2064 67.6573 41.5261 67.6573 56.7232C67.6573 71.9203 79.9738 84.24 95.167 84.24Z","fill","black"],["d","M38.9608 61.7996C38.9608 61.7996 34.5023 74.3525 36.4839 78.812C38.4654 83.2716 41.6028 87.566 41.6028 87.566C41.6028 87.566 40.4469 62.6254 38.9608 61.7996Z","fill","#D0CDE1"],["opacity","0.1","d","M38.9608 61.7996C38.9608 61.7996 34.5023 74.3525 36.4839 78.812C38.4654 83.2716 41.6028 87.566 41.6028 87.566C41.6028 87.566 40.4469 62.6254 38.9608 61.7996Z","fill","black"],["d","M42.0982 90.8694C42.0982 90.8694 41.7679 94.0076 41.6028 94.1728C41.4377 94.338 41.7679 94.6683 41.6028 95.1638C41.4377 95.6593 41.2726 96.32 41.6028 96.4851C41.9331 96.6503 39.7864 111.185 39.7864 111.185C39.7864 111.185 34.5024 118.122 36.649 129.024L37.3095 140.09C37.3095 140.09 42.4285 140.42 42.4285 138.603C42.4285 138.603 42.0982 136.456 42.0982 135.465C42.0982 134.474 42.9238 134.474 42.4285 133.979C41.9331 133.483 41.9331 133.153 41.9331 133.153C41.9331 133.153 42.7587 132.492 42.5936 132.327C42.4285 132.162 44.0797 120.435 44.0797 120.435C44.0797 120.435 45.8961 118.618 45.8961 117.627V116.636C45.8961 116.636 46.7217 114.489 46.7217 114.323C46.7217 114.158 51.1802 104.083 51.1802 104.083L52.9966 111.35L54.9781 121.756C54.9781 121.756 55.9688 131.171 57.9504 134.804C57.9504 134.804 61.418 146.697 61.418 146.366C61.418 146.036 67.1974 145.21 67.0323 143.724C66.8672 142.237 63.5647 121.426 63.5647 121.426L64.3903 90.5391L42.0982 90.8694Z","fill","#2F2E41"],["d","M37.6398 139.264C37.6398 139.264 33.1813 148.018 36.1536 148.348C39.1259 148.679 40.2818 148.679 41.6028 147.357C42.325 146.635 43.7875 145.666 44.965 144.936C45.6627 144.51 46.2263 143.896 46.5912 143.165C46.9561 142.433 47.1075 141.614 47.0281 140.8C46.941 139.992 46.6392 139.326 45.8961 139.264C43.9146 139.099 41.6028 137.282 41.6028 137.282L37.6398 139.264Z","fill","#2F2E41"],["d","M62.2437 145.706C62.2437 145.706 57.7853 154.46 60.7575 154.79C63.7298 155.12 64.8857 155.12 66.2067 153.799C66.9289 153.077 68.3914 152.107 69.5689 151.377C70.2666 150.951 70.8302 150.338 71.1951 149.606C71.56 148.875 71.7115 148.055 71.632 147.242C71.5449 146.433 71.2431 145.768 70.5 145.706C68.5185 145.541 66.2067 143.724 66.2067 143.724L62.2437 145.706Z","fill","#2F2E41"],["d","M57.5316 47.4739C61.3652 47.4739 64.4729 44.3653 64.4729 40.5308C64.4729 36.6962 61.3652 33.5876 57.5316 33.5876C53.6981 33.5876 50.5903 36.6962 50.5903 40.5308C50.5903 44.3653 53.6981 47.4739 57.5316 47.4739Z","fill","#FFB8B8"],["d","M53.0693 42.8121C53.0693 42.8121 48.1112 51.9373 47.7146 51.9373C47.3179 51.9373 56.6391 54.9129 56.6391 54.9129C56.6391 54.9129 59.2173 46.1844 59.614 45.3909L53.0693 42.8121Z","fill","#FFB8B8"],["d","M60.6749 52.7978C60.6749 52.7978 50.7673 47.3472 49.7766 47.5123C48.7858 47.6775 38.2177 56.927 38.3828 60.7259C38.548 64.5248 39.869 70.8013 39.869 70.8013C39.869 70.8013 40.3644 88.3092 41.3551 88.4744C42.3459 88.6396 41.19 91.6126 41.5202 91.6126C41.8505 91.6126 64.638 91.6126 64.8031 91.1171C64.9682 90.6216 60.6749 52.7978 60.6749 52.7978Z","fill","#D0CDE1"],["d","M66.2067 92.0256C66.2067 92.0256 69.3442 101.605 66.7021 101.275C64.0601 100.945 62.9042 93.0166 62.9042 93.0166L66.2067 92.0256Z","fill","#FFB8B8"],["d","M57.7852 52.2197C57.7852 52.2197 51.6755 53.5411 52.6663 61.7995C53.6571 70.058 55.4734 78.3165 55.4734 78.3165L61.5831 91.6952L62.2436 94.1728L66.7021 93.0166L63.3995 73.8569C63.3995 73.8569 62.2436 53.3759 60.7575 52.7152C59.8203 52.3156 58.8013 52.1457 57.7852 52.2197Z","fill","#D0CDE1"],["opacity","0.1","d","M54.0698 78.0688L61.6657 91.6125L55.2661 77.3411L54.0698 78.0688Z","fill","black"],["d","M64.4422 38.4863L64.4651 37.9558L65.5203 38.2185C65.509 38.0481 65.4609 37.8823 65.3792 37.7324C65.2976 37.5825 65.1844 37.4521 65.0475 37.3502L66.1714 37.2873C65.2283 35.9467 64.0233 34.8112 62.6292 33.9494C61.2351 33.0877 59.6808 32.5174 58.0603 32.2732C55.6291 31.9208 52.922 32.4308 51.2549 34.2356C50.4462 35.111 49.9381 36.2242 49.5767 37.3599C48.911 39.4517 48.7754 41.9452 50.1635 43.6455C51.5742 45.3735 54.0384 45.712 56.2586 45.9259C57.0398 46.0012 57.8585 46.0712 58.5824 45.768C58.6629 44.9374 58.5566 44.0994 58.2713 43.3153C58.1525 43.0726 58.0957 42.8041 58.106 42.5341C58.2047 41.8734 59.0857 41.7069 59.7475 41.7962C60.4094 41.8855 61.2052 42.022 61.6401 41.5151C61.9396 41.1659 61.922 40.6574 61.9617 40.1989C62.0697 38.9509 64.4308 38.748 64.4422 38.4863Z","fill","#2F2E41"],["d","M12.0322 145.336C16.499 145.336 20.12 141.714 20.12 137.246C20.12 132.778 16.499 129.156 12.0322 129.156C7.56548 129.156 3.94446 132.778 3.94446 137.246C3.94446 141.714 7.56548 145.336 12.0322 145.336Z","fill","#F9A826"],["d","M103.31 128.34C103.073 127.739 102.591 127.264 101.987 127.037C100.807 126.594 100.208 125.274 100.651 124.095C101.094 122.915 102.414 122.316 103.593 122.759C104.166 122.974 104.62 123.398 104.871 123.954C105.044 124.337 104.874 124.789 104.491 124.962C104.107 125.134 103.656 124.966 103.483 124.582C103.228 124.018 102.296 124.047 102.077 124.63C101.929 125.024 102.129 125.463 102.522 125.611C103.53 125.989 104.333 126.781 104.727 127.782C104.881 128.174 104.689 128.615 104.297 128.77C103.905 128.924 103.463 128.731 103.31 128.34Z","fill","#9DCC3D"],["d","M110.008 131.677C109.248 131.392 108.138 131.333 106.917 132.403C106.169 131.441 105.201 130.685 104.036 130.248C102.872 129.811 101.648 129.742 100.453 129.973C100.312 128.896 99.8398 127.858 98.5985 127.392C95.7093 126.307 90.5089 129.29 88.6341 134.282C86.7594 139.275 88.7113 144.943 91.6006 146.028C92.6663 146.428 93.7017 146.176 94.6912 145.301C95.4393 146.263 96.4079 147.02 97.5732 147.457C98.736 147.894 99.9603 147.962 101.155 147.732C101.322 149.046 101.943 149.912 103.01 150.312C105.899 151.397 111.1 148.415 112.975 143.422C114.849 138.43 112.897 132.762 110.008 131.677Z","fill","#FF9F40"],["d","M103.01 150.312C105.899 151.397 111.1 148.415 112.975 143.423C114.849 138.43 112.897 132.762 110.008 131.677C109.248 131.392 108.138 131.333 106.917 132.403C106.169 131.441 105.201 130.685 104.036 130.248L97.5732 147.457C98.736 147.894 99.9603 147.963 101.155 147.732C101.322 149.046 101.943 149.912 103.01 150.312Z","fill","#FF7F40"],["d","M108.72 128.441C108.71 128.133 108.515 127.862 108.227 127.753L105.374 126.682C105.185 126.611 104.976 126.618 104.792 126.702C103.098 127.471 101.844 129.014 101.437 130.831C101.354 131.204 101.56 131.578 101.912 131.71C101.93 131.717 101.947 131.722 101.965 131.727L104.868 132.587C105.065 132.646 105.277 132.623 105.456 132.522C105.636 132.422 105.767 132.254 105.82 132.055C106.166 130.766 107.06 129.711 108.274 129.16C108.555 129.032 108.731 128.749 108.72 128.441Z","fill","#CBE645"],["d","M105.456 132.522C105.636 132.422 105.767 132.253 105.82 132.055C106.166 130.766 107.06 129.711 108.274 129.16C108.555 129.033 108.731 128.749 108.72 128.441C108.71 128.133 108.515 127.862 108.227 127.753L105.374 126.682L103.328 132.131L104.868 132.587C105.065 132.646 105.277 132.623 105.456 132.522Z","fill","#9DCC3D"],["d","M105.73 130.07C105.199 129.871 104.668 129.834 104.144 129.958C103.832 129.52 103.408 129.198 102.877 128.999C100.049 127.937 94.909 130.832 92.9752 135.912C90.5817 142.2 94.173 148.533 97.4644 147.747C97.7765 148.185 98.2009 148.507 98.7316 148.706C101.39 149.704 106.651 147.077 108.617 141.837C110.536 136.721 108.574 131.138 105.73 130.07Z","fill","#FFBE40"],["d","M108.617 141.837C110.536 136.721 108.574 131.138 105.73 130.07C105.199 129.871 104.668 129.834 104.144 129.958L97.4644 147.747C97.7766 148.185 98.201 148.507 98.7316 148.706C101.39 149.704 106.651 147.077 108.617 141.837Z","fill","#FF9F40"],["d","M10.9205 132.11C10.5133 131.992 10.0798 132.001 9.67786 132.136C9.44175 132.215 9.18741 132.22 8.94832 132.151C8.70923 132.082 8.49658 131.943 8.33837 131.751C8.11886 131.483 7.83658 131.275 7.51675 131.143C7.19693 131.012 6.8495 130.962 6.50552 130.997C6.16154 131.033 5.83172 131.153 5.54552 131.347C5.25931 131.541 5.02564 131.803 4.86537 132.109L4.86343 132.113C4.80308 132.235 4.69814 132.33 4.57023 132.377C4.44232 132.424 4.30117 132.421 4.17583 132.367C3.90325 132.246 3.60798 132.185 3.3098 132.187C3.01161 132.19 2.71739 132.256 2.44684 132.381C2.17629 132.507 1.93565 132.688 1.74104 132.914C1.54643 133.14 1.40234 133.405 1.31842 133.691C1.2345 133.977 1.21268 134.278 1.25444 134.574C1.29619 134.869 1.40054 135.152 1.56051 135.403C1.72048 135.655 1.93237 135.87 2.182 136.033C2.43163 136.196 2.71322 136.304 3.00793 136.349C3.14556 136.369 3.27063 136.44 3.35768 136.548C3.44474 136.656 3.48723 136.794 3.47652 136.932L3.4761 136.937C3.4489 137.282 3.50752 137.628 3.64672 137.945C3.78592 138.261 4.00136 138.539 4.27381 138.752C4.54626 138.965 4.86723 139.107 5.20805 139.166C5.54888 139.224 5.89894 139.198 6.22698 139.088C6.46308 139.01 6.71742 139.005 6.95651 139.073C7.1956 139.142 7.40825 139.282 7.56647 139.474C7.85869 139.83 8.26016 140.079 8.70865 140.184C9.15714 140.289 9.6276 140.242 10.0471 140.052C10.2805 139.945 10.541 139.91 10.7945 139.953C11.0479 139.996 11.2825 140.114 11.4675 140.293C11.7131 140.53 12.0132 140.703 12.3415 140.797C13.951 141.261 18.2112 138.566 18.2112 138.566C18.2112 138.566 16.0347 134.019 14.4255 133.555C14.0974 133.46 13.7509 133.447 13.4167 133.518C13.1651 133.57 12.9034 133.546 12.666 133.448C12.4286 133.349 12.2264 133.181 12.086 132.966C11.8121 132.551 11.3986 132.247 10.9205 132.11Z","fill","#58853F"],["d","M10.61 127.617C10.2404 127.409 9.81622 127.319 9.39413 127.359C9.14635 127.382 8.89753 127.329 8.68041 127.207C8.46329 127.086 8.28806 126.901 8.17776 126.678C8.0249 126.368 7.79758 126.101 7.51611 125.9C7.23463 125.699 6.90777 125.571 6.56471 125.527C6.22166 125.483 5.87311 125.525 5.55019 125.649C5.22727 125.773 4.94004 125.974 4.71417 126.236L4.71145 126.239C4.62483 126.345 4.50116 126.413 4.36588 126.43C4.2306 126.446 4.09401 126.411 3.98421 126.33C3.74635 126.15 3.47281 126.023 3.1819 125.958C2.891 125.892 2.58944 125.89 2.29744 125.95C2.00543 126.01 1.72972 126.133 1.48875 126.308C1.24778 126.484 1.04712 126.709 0.900219 126.969C0.753313 127.228 0.663548 127.516 0.636935 127.813C0.610321 128.11 0.647474 128.409 0.745904 128.691C0.844335 128.972 1.00177 129.229 1.20767 129.445C1.41357 129.661 1.66318 129.83 1.93979 129.941C2.06938 129.992 2.17497 130.089 2.23506 130.215C2.29515 130.34 2.30523 130.484 2.26324 130.616L2.2617 130.621C2.15665 130.95 2.13486 131.301 2.19826 131.641C2.26166 131.981 2.40828 132.3 2.62503 132.569C2.84177 132.839 3.12189 133.05 3.44037 133.185C3.75885 133.32 4.10576 133.374 4.45013 133.342C4.69792 133.319 4.94675 133.372 5.16387 133.494C5.381 133.615 5.55625 133.8 5.66656 134.023C5.87004 134.436 6.2041 134.77 6.61696 134.974C7.02982 135.178 7.49844 135.24 7.95019 135.151C8.20198 135.099 8.46352 135.125 8.70054 135.224C8.93755 135.324 9.139 135.492 9.27849 135.708C9.46351 135.995 9.71625 136.233 10.0145 136.399C11.4758 137.217 16.238 135.564 16.238 135.564C16.238 135.564 15.1549 130.64 13.6935 129.822C13.3957 129.655 13.0613 129.564 12.7198 129.556C12.4628 129.55 12.2136 129.466 12.0049 129.316C11.7961 129.166 11.6375 128.957 11.5499 128.715C11.3777 128.249 11.0444 127.859 10.61 127.617Z","fill","#649441"],["d","M16.473 135.141L13.3669 133.418L12.4506 130.173L11.5183 130.437L12.1733 132.756L10.0845 131.597L9.16256 128.333L8.23032 128.596L8.89094 130.935L7.16673 129.979L6.40086 127.267L5.46863 127.531L5.97314 129.317L2.79727 127.556L2.32736 128.403L5.41949 130.118L3.75923 130.587L4.02249 131.519L6.62202 130.785L8.35969 131.748L6.11215 132.383L6.37541 133.315L9.56223 132.415L11.6674 133.583L9.40009 134.223L9.66341 135.156L12.8699 134.25L16.0031 135.988L16.473 135.141Z","fill","#72A64E"],["d","M18.4746 121.538L17.3467 125.471L15.4235 125.236L17.0323 121.362L18.4746 121.538Z","fill","#6A9C46"],["d","M15.5898 121.185L15.4235 125.236L17.3466 125.471L17.0322 121.362L15.5898 121.185Z","fill","#79AD54"],["d","M18.3976 126.871C18.4197 127.094 18.408 127.32 18.3628 127.54L16.705 135.646C16.6257 136.033 16.4033 136.377 16.0821 136.608C15.7609 136.839 15.3644 136.94 14.9717 136.892C14.579 136.844 14.2188 136.65 13.9628 136.348C13.7069 136.047 13.5739 135.66 13.5905 135.264L13.6921 132.846L13.733 131.875L13.7945 130.417L13.8354 129.447L13.8963 127.989L13.9373 127.019L13.9383 126.998C13.9622 126.433 14.1995 125.898 14.6023 125.5C15.005 125.103 15.5434 124.873 16.1088 124.857C16.6743 124.841 17.2248 125.04 17.6495 125.414C18.0742 125.787 18.3416 126.308 18.3976 126.871Z","fill","#F07800"],["d","M16.1471 127.277L16.0347 128.239L13.8964 127.989L13.9373 127.019L16.1471 127.277Z","fill","#E66B00"],["d","M13.8355 129.447L15.8518 129.681L15.7406 130.642L13.7945 130.417L13.8355 129.447Z","fill","#E66B00"],["d","M15.5571 132.084L15.4466 133.047L13.6921 132.846L13.733 131.875L15.5571 132.084Z","fill","#E66B00"],["d","M5.31001 135.982C5.28847 135.823 5.26892 135.662 5.25295 135.501C4.62123 129.112 8.64111 123.484 14.2316 122.931C19.8222 122.379 24.8663 127.11 25.498 133.499C25.514 133.661 25.5262 133.822 25.5362 133.982L27.9475 133.744C27.9366 133.583 27.9241 133.422 27.9081 133.261C27.1448 125.541 20.9149 119.837 13.9933 120.521C7.07176 121.206 2.0795 128.019 2.84283 135.739C2.85879 135.901 2.87803 136.061 2.89868 136.22L5.31001 135.982Z","fill","#8C5237"],["d","M14.5522 128.346C14.4293 127.941 14.1856 127.582 13.8535 127.318C13.6591 127.163 13.5162 126.953 13.4438 126.715C13.3713 126.477 13.3725 126.222 13.4474 125.985C13.5519 125.655 13.5732 125.305 13.5093 124.965C13.4454 124.625 13.2983 124.306 13.0811 124.037C12.864 123.768 12.5835 123.557 12.2649 123.423C11.9462 123.288 11.5992 123.235 11.2549 123.268L11.2508 123.268C11.1154 123.284 10.979 123.248 10.8697 123.166C10.7604 123.084 10.6866 122.964 10.6633 122.83C10.6162 122.535 10.5068 122.254 10.3423 122.006C10.1778 121.757 9.96209 121.546 9.70958 121.388C9.45707 121.229 9.17359 121.126 8.87813 121.086C8.58267 121.046 8.28205 121.07 7.99639 121.155C7.71073 121.24 7.44662 121.386 7.22175 121.582C6.99689 121.778 6.81645 122.019 6.69252 122.29C6.56859 122.562 6.50403 122.856 6.50316 123.154C6.50229 123.452 6.56514 123.747 6.68749 124.019C6.74622 124.145 6.75472 124.289 6.71125 124.421C6.66779 124.553 6.57563 124.663 6.45354 124.73L6.44921 124.732C6.14527 124.897 5.88692 125.135 5.69723 125.424C5.50755 125.713 5.39244 126.045 5.36217 126.39C5.33191 126.734 5.38745 127.081 5.52381 127.399C5.66018 127.716 5.87314 127.995 6.14366 128.211C6.33814 128.366 6.48105 128.577 6.5536 128.815C6.62614 129.053 6.62492 129.307 6.55008 129.544C6.41085 129.983 6.42025 130.456 6.57681 130.889C6.73337 131.322 7.02836 131.691 7.41608 131.939C7.63351 132.077 7.80447 132.276 7.90658 132.512C8.00869 132.748 8.03718 133.009 7.98832 133.262C7.923 133.597 7.94117 133.943 8.04122 134.27C8.52908 135.872 13.1091 137.977 13.1091 137.977C13.1091 137.977 15.7376 133.675 15.2497 132.073C15.1507 131.746 14.9728 131.448 14.7316 131.206C14.5504 131.024 14.4285 130.791 14.3818 130.538C14.3351 130.286 14.3658 130.025 14.4699 129.79C14.6687 129.334 14.6979 128.822 14.5522 128.346Z","fill","#79AD54"],["d","M24.4651 123.053L21.8666 127.169L20.1334 126.303L23.1652 122.403L24.4651 123.053Z","fill","#6A9C46"],["d","M21.8654 121.753L20.1335 126.303L21.8666 127.169L23.1653 122.403L21.8654 121.753Z","fill","#79AD54"],["d","M22.1312 129.458L17.8546 136.54C17.6497 136.878 17.3251 137.127 16.9454 137.236C16.5656 137.346 16.1585 137.309 15.8049 137.132C15.4512 136.956 15.177 136.653 15.0367 136.283C14.8963 135.914 14.9002 135.505 15.0474 135.138L15.9676 132.858L16.3316 131.955L16.876 130.606L17.2401 129.704L17.785 128.354L18.1437 127.466C18.1457 127.461 18.1471 127.457 18.1491 127.452C18.3181 127.041 18.6056 126.69 18.9751 126.443C19.3446 126.196 19.7792 126.065 20.2236 126.066C20.2541 126.066 20.2846 126.067 20.3152 126.069C20.6287 126.082 20.9358 126.162 21.2163 126.303L21.2169 126.303C21.4976 126.442 21.7457 126.64 21.9447 126.882C21.9647 126.906 21.9835 126.93 22.0017 126.955C22.271 127.311 22.4273 127.74 22.4504 128.186C22.4735 128.633 22.3623 129.076 22.1312 129.458Z","fill","#F98500"],["d","M20.1384 128.471L19.6967 129.333L17.785 128.354L18.1437 127.466C18.1457 127.461 18.1471 127.457 18.1491 127.452L20.1384 128.471Z","fill","#EB7206"],["d","M19.0561 130.638L18.6132 131.5L16.876 130.606L17.2401 129.704L19.0561 130.638Z","fill","#EB7206"],["d","M17.9743 132.805L17.5295 133.665L15.9675 132.858L16.3316 131.955L17.9743 132.805Z","fill","#EB7206"],["d","M22.1769 129.447L24.5871 129.209C24.8427 129.183 25.098 129.261 25.2967 129.424C25.4953 129.586 25.6212 129.822 25.6464 130.077L25.6941 130.559L21.3559 130.988L21.3082 130.506C21.2829 130.251 21.3603 129.995 21.5232 129.797C21.6861 129.598 21.9213 129.472 22.1769 129.447Z","fill","#79AD54"],["d","M25.488 127.389L25.3715 126.211C23.3672 126.409 22.0475 128.137 22.2405 130.09L22.4629 132.339L25.5141 132.037L25.3499 130.377L24.9242 129.722C24.0574 128.774 24.2369 127.513 25.488 127.389Z","fill","#79AD54"],["d","M21.517 137.3C21.233 137.332 20.9468 137.263 20.7088 137.104C20.4708 136.946 20.2962 136.709 20.2158 136.434L19.0762 132.309C18.808 131.338 19.5083 130.36 20.546 130.257C21.4733 130.166 22.2969 130.817 22.3854 131.713L22.7898 135.803C22.8639 136.553 22.2941 137.223 21.517 137.3Z","fill","#FCAC1F"],["d","M26.7721 136.78C25.9948 136.857 25.3049 136.311 25.2307 135.561L24.8263 131.471C24.7378 130.576 25.4179 129.776 26.3452 129.684C27.3829 129.581 28.2611 130.403 28.1882 131.408L27.8786 135.677C27.8535 135.962 27.7287 136.228 27.5263 136.43C27.3239 136.632 27.0569 136.756 26.7721 136.78Z","fill","#FCAC1F"],["d","M23.2648 129.988L23.6263 129.953C24.0639 129.909 24.5007 130.042 24.8407 130.32C25.1807 130.599 25.3961 131.002 25.4393 131.439L25.7974 135.061C25.8445 135.538 25.7002 136.014 25.3962 136.384C25.0922 136.755 24.6535 136.99 24.1765 137.037L24.1126 137.043C23.6355 137.09 23.1593 136.946 22.7886 136.642C22.4179 136.338 22.1831 135.899 22.136 135.422L21.7779 131.801C21.7347 131.364 21.8671 130.927 22.1459 130.587C22.4248 130.247 22.8272 130.032 23.2648 129.988Z","fill","#FFB531"],["d","M14.1097 131.465L13.2548 131.01L12.1339 133.113L11.4353 130.819L13.0119 127.861L12.1571 127.405L11.0362 129.508L10.4596 127.615L11.7578 125.18L10.9028 124.724L10.0604 126.304L9.18139 123.418L8.25475 123.701L9.13384 126.587L7.55342 125.745L7.09772 126.6L9.53288 127.897L10.1095 129.791L8.0067 128.67L7.55101 129.525L10.5086 131.101L11.2073 133.395L9.10445 132.275L8.64876 133.13L11.6064 134.706L12.6457 138.118L13.5723 137.836L12.5331 134.424L14.1097 131.465Z","fill","#89BA66"],["d","M28.1941 136.153L28.1635 137.13L28.1484 137.618L28.1178 138.594L28.0722 140.059L28.0422 141.035L27.9966 142.5L27.966 143.477L27.9503 143.982C27.921 144.922 27.5505 145.82 26.908 146.507C26.2655 147.195 25.3949 147.625 24.4585 147.717L9.05665 149.24C8.12021 149.334 7.18184 149.083 6.417 148.534C5.65217 147.986 5.11325 147.178 4.90104 146.261L4.78664 145.768L4.56539 144.817L4.23382 143.389L4.01318 142.438L3.6816 141.01L3.46036 140.059L3.35003 139.583L3.12878 138.631L28.1941 136.153Z","fill","#92563A"],["d","M28.1941 136.153L28.1635 137.13L28.1485 137.618L28.1179 138.594L28.0723 140.059L28.0423 141.035L27.9967 142.5L27.9661 143.477L27.9503 143.982C27.921 144.922 27.5506 145.82 26.9081 146.507C26.2656 147.195 25.3949 147.625 24.4586 147.717L9.0567 149.24C8.17159 149.328 7.28312 149.109 6.54138 148.618C12.9712 146.969 19.8991 143.305 24.5331 136.515L28.1941 136.153Z","fill","#8C5237"],["d","M29.521 134.805C29.5525 135.125 29.4558 135.444 29.2522 135.692C29.0486 135.94 28.7547 136.097 28.4351 136.129L2.88782 138.655C2.56822 138.687 2.24915 138.59 2.00081 138.386C1.75248 138.183 1.59521 137.889 1.56361 137.569C1.53201 137.25 1.62866 136.931 1.83231 136.682C2.03596 136.434 2.32992 136.277 2.64952 136.245L28.1968 133.719C28.3551 133.703 28.5149 133.719 28.6671 133.765C28.8193 133.811 28.9609 133.887 29.0839 133.988C29.2069 134.089 29.3088 134.213 29.3838 134.353C29.4588 134.493 29.5054 134.647 29.521 134.805Z","fill","#A8684A"],["d","M13.8763 139.029L17.7325 138.648L17.8279 139.612L13.9717 139.993L13.8763 139.029Z","fill","#78462F"],["d","M8.09204 139.601L11.9482 139.22L12.0436 140.184L8.18736 140.565L8.09204 139.601Z","fill","#78462F"],["d","M6.16394 139.791L6.25926 140.756L3.68164 141.01L3.46039 140.059L6.16394 139.791Z","fill","#78462F"],["d","M19.6606 138.457L23.5168 138.076L23.6122 139.04L19.756 139.421L19.6606 138.457Z","fill","#78462F"],["d","M28.1484 137.618L28.1178 138.594L25.5402 138.849L25.4449 137.885L28.1484 137.618Z","fill","#78462F"],["d","M14.1146 141.439L17.9708 141.058L18.0661 142.022L14.2099 142.403L14.1146 141.439Z","fill","#78462F"],["d","M8.33032 142.011L12.1865 141.63L12.2818 142.594L8.42564 142.975L8.33032 142.011Z","fill","#78462F"],["d","M6.40228 142.202L6.4976 143.166L4.23389 143.389L4.01324 142.438L6.40228 142.202Z","fill","#78462F"],["d","M19.8989 140.867L23.7551 140.486L23.8504 141.45L19.9942 141.831L19.8989 140.867Z","fill","#78462F"],["d","M28.0723 140.059L28.0423 141.035L25.7785 141.259L25.6832 140.295L28.0723 140.059Z","fill","#78462F"],["d","M14.3529 143.849L18.2091 143.468L18.3044 144.432L14.4482 144.813L14.3529 143.849Z","fill","#78462F"],["d","M8.5686 144.421L12.4248 144.04L12.5201 145.004L8.66392 145.385L8.5686 144.421Z","fill","#78462F"],["d","M6.64048 144.612L6.7358 145.576L4.78662 145.768L4.56537 144.817L6.64048 144.612Z","fill","#78462F"],["d","M20.1372 143.277L23.9934 142.896L24.0887 143.86L20.2325 144.241L20.1372 143.277Z","fill","#78462F"],["d","M27.9966 142.5L25.9215 142.705L26.0168 143.669L27.966 143.477L27.9966 142.5Z","fill","#78462F"],["d","M14.5912 146.259L18.4474 145.878L18.5427 146.842L14.6865 147.223L14.5912 146.259Z","fill","#78462F"],["d","M8.80695 146.831L12.6631 146.45L12.7585 147.414L8.90227 147.795L8.80695 146.831Z","fill","#78462F"],["d","M6.87885 147.022L6.97417 147.986L5.90347 148.092C5.64046 147.823 5.41797 147.517 5.24298 147.184L6.87885 147.022Z","fill","#78462F"],["d","M20.3755 145.687L24.2317 145.306L24.327 146.27L20.4708 146.651L20.3755 145.687Z","fill","#78462F"],["d","M27.7957 144.954C27.6893 145.315 27.531 145.658 27.3258 145.974L26.2551 146.079L26.1598 145.115L27.7957 144.954Z","fill","#78462F"],["d","M28.1941 136.153L28.1635 137.13L3.35003 139.583L3.12878 138.631L28.1941 136.153Z","fill","#8C5237"],["width","128","height","128","viewBox","0 0 128 128","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","64","cy","64","r","63.5"],["width","64","height","64","transform","translate(32 32)"],["d","M39.8797 55.457C41.8103 58.4437 43.9388 61.2977 46.2507 64H47.9797C47.7618 62.7512 47.452 61.5202 47.0527 60.317C45.5261 55.8537 42.8646 51.8644 39.3297 48.741L40.6717 47.259C44.4623 50.6117 47.3148 54.8935 48.9487 59.683C49.2127 60.47 49.4297 61.277 49.6227 62.092C49.7127 61.928 49.8057 61.766 49.8847 61.592C52.1357 56.592 51.0417 48.63 46.2577 45.868C45.1092 45.2752 43.8524 44.9214 42.5633 44.8281C41.2743 44.7348 39.9796 44.9038 38.7577 45.325C38.2002 45.4664 37.6777 45.7207 37.2225 46.0723C36.7674 46.4239 36.3893 46.8653 36.1117 47.369C35.5807 48.71 37.0387 51.064 39.8797 55.457Z"],["d","M62.9391 54.2789C62.8634 53.6755 62.7126 53.0839 62.4901 52.5179C60.9311 48.5619 56.3811 46.3569 53.6551 47.1689C52.7601 47.4707 51.9878 48.0559 51.4551 48.8359C53.2969 52.8481 53.5056 57.4195 52.0371 61.5829C52.0941 61.5129 52.1621 61.4509 52.2181 61.3829C54.3425 58.6357 55.6553 55.3487 56.0081 51.8939L57.9961 52.1119C57.6083 55.9415 56.1492 59.5844 53.7861 62.6229C53.4051 63.1049 52.9861 63.5579 52.5581 64.0029H57.1701L57.2531 63.9639C56.7286 61.9259 57.0326 59.7632 58.0985 57.9488C59.1645 56.1344 60.9056 54.8159 62.9411 54.2819L62.9391 54.2789Z"],["d","M81.2003 63.9998H91.2153C90.5783 63.077 89.6863 62.3597 88.6483 61.9358C87.9706 61.7072 87.2631 61.5792 86.5483 61.5558C85.6303 61.4878 84.5893 61.4098 84.1073 60.4468C83.6073 59.4368 84.2903 58.5858 84.8383 57.9008C85.3954 57.2956 85.8026 56.5681 86.0273 55.7768C86.5213 53.6218 86.5273 50.0048 84.5113 48.8708C84.0428 48.6317 83.5309 48.4893 83.0062 48.4522C82.4816 48.4151 81.9548 48.484 81.4573 48.6548C79.9565 49.1054 78.6821 50.1076 77.8903 51.4598C77.1113 52.9658 77.5663 54.6358 78.0063 56.2488C78.4463 57.8618 78.9063 59.5578 77.6943 60.7218C76.4633 61.9068 74.6653 61.4218 72.9243 60.9468C73.0715 61.9665 73.0082 63.0055 72.7383 63.9998H79.1673C79.4173 62.5838 79.6993 61.1658 80.0263 59.7708C80.5863 57.3868 81.2683 55.0008 82.0533 52.6798L83.9473 53.3198C83.1833 55.5808 82.5193 57.9058 81.9743 60.2288C81.6823 61.4728 81.4293 62.7368 81.2003 63.9998Z"],["d","M70.654 64.0002C70.8375 63.4828 70.9469 62.9421 70.979 62.3941L69.316 62.9482L68.684 61.0482L70.766 60.3541C70.4534 59.2669 69.8403 58.2899 68.9972 57.5356C68.1541 56.7813 67.1152 56.2803 66 56.0901V58.0001H64V56.0901C63.0433 56.2537 62.1405 56.6464 61.3687 57.2349C60.5968 57.8233 59.979 58.5899 59.568 59.4691L61.316 60.0521L60.684 61.9521L59.031 61.4001C59.0107 61.5995 59.0004 61.7998 59 62.0002C58.9987 62.6818 59.1157 63.3585 59.346 64.0002H70.654ZM64 60.0001H66V62.0002H64V60.0001Z"],["d","M43.6534 63.9998C42.5347 62.6371 41.4577 61.2318 40.4224 59.7838C39.5084 60.0881 38.6238 60.4743 37.7794 60.9378C37.0936 61.236 36.5356 61.7674 36.2044 62.4378C36.0004 62.9319 35.9461 63.4751 36.0484 63.9998H43.6534Z"],["d","M36.0186 66C36.2852 72.9803 39.2437 79.5864 44.2738 84.4335C49.304 89.2805 56.0151 91.9922 63.0006 92H65.0006C71.986 91.9922 78.6971 89.2805 83.7273 84.4335C88.7574 79.5864 91.7159 72.9803 91.9826 66H36.0186ZM52.5656 86.9C47.8351 84.6169 43.8682 81.0109 41.1456 76.519L42.8556 75.481C45.3782 79.6426 49.0532 82.9838 53.4356 85.1L52.5656 86.9ZM57.0006 88H55.0006V86H57.0006V88Z"],["d","M79 40V38H75C72.8783 38 70.8434 38.8429 69.3431 40.3431C67.8429 41.8434 67 43.8783 67 46V48H71C73.1217 48 75.1566 47.1571 76.6569 45.6569C78.1571 44.1566 79 42.1217 79 40Z"],["d","M60 42C61.1046 42 62 41.1046 62 40C62 38.8954 61.1046 38 60 38C58.8954 38 58 38.8954 58 40C58 41.1046 58.8954 42 60 42Z"],["d","M47 39C48.1046 39 49 38.1046 49 37C49 35.8954 48.1046 35 47 35C45.8954 35 45 35.8954 45 37C45 38.1046 45.8954 39 47 39Z"],["d","M82.5675 49.1194C80.7141 52.5068 77.1166 54.8096 72.9905 54.8096C68.4715 54.8096 64.5861 52.0474 62.9326 48.1233L30.8906 58.5846H91.3083L82.5675 49.1194Z"],["d","M28 84.3115C28 86.839 30.0487 88.8877 32.5762 88.8877H87.4238C89.9513 88.8877 92 86.839 92 84.3115V77.7011H28V84.3115Z"],["d","M92 62.221H28V72.8877H92V62.221Z"],["d","M72.9905 51.1733C77.007 51.1733 80.2632 47.9171 80.2632 43.9006C80.2632 40.9866 78.549 38.4744 76.0746 37.3139C76.4681 36.2426 76.9711 35.1045 77.6055 34.0189C79.2499 31.2055 81.7818 28.7491 85.6128 28.7491C86.6172 28.7491 87.431 27.9352 87.431 26.9309C87.431 25.9265 86.6172 25.1127 85.6128 25.1127C80.7025 25.1127 76.6933 27.8504 73.9815 33.0385C73.3706 34.2053 72.8666 35.4152 72.4438 36.6506C68.6826 36.9304 65.7178 40.0683 65.7178 43.9006C65.7178 47.9171 68.974 51.1733 72.9905 51.1733ZM68.6227 41.8346C69.1398 40.8029 69.9471 39.9612 70.9568 39.4014C71.8203 38.9217 72.9362 39.222 73.4286 40.1095C73.9156 40.9876 73.5985 42.0945 72.7204 42.5813C72.3755 42.7728 72.0889 43.0688 71.9025 43.416C71.8935 43.4322 71.8819 43.4472 71.8737 43.4637C71.5549 44.1001 70.9132 44.4679 70.2467 44.4679C68.9042 44.4681 68.0152 43.047 68.6227 41.8346Z"],["cx","64","cy","64","r","64"],["d","M72.9844 50.1088C73.0559 49.6716 73.0887 49.2561 73.0688 48.8719L75.8274 46.9943C76.8994 46.4646 77.9872 46.5364 78.5618 46.6344C78.6067 46.6427 80.2207 46.9779 81.1124 46.3707C82.2105 45.624 82.4989 44.1229 81.7484 43.0268C81.3209 42.3972 80.6524 42.0452 79.9509 41.9881C80.1553 41.3172 80.0738 40.5627 79.6483 39.9386C78.9018 38.8362 77.4007 38.5522 76.3024 39.3005C75.6888 39.7178 75.3229 40.8139 75.2081 41.8448C75.157 42.2372 74.8972 43.5828 73.8155 44.5585L71.169 46.3624C69.4272 45.8881 66.5898 46.2369 63.7456 47.0575C66.6574 47.6022 69.5608 48.5343 72.4076 49.8435L72.9844 50.1088Z"],["d","M37.3761 75.4477H59.3169C58.7081 74.8924 58.1594 74.2697 57.6875 73.5765C55.6223 70.5406 55.266 66.872 56.684 63.2453C57.9067 60.1192 60.3356 57.254 63.7074 54.9608C65.193 53.9497 66.9936 53.0233 68.9228 52.2383C66.3707 51.2458 63.6527 50.5316 60.8035 50.2228C58.8013 50.005 56.8367 49.8909 54.9367 49.8909C42.7396 49.8909 33.1877 54.6601 33.1877 66.948C33.1877 71.1366 35.2822 75.4477 37.3761 75.4477Z"],["d","M65.714 57.909C60.1777 61.6742 57.7195 67.284 60.636 71.5708C62.1463 73.7905 64.6402 74.8679 67.4623 74.8679C70.0902 74.8679 73.0029 73.9341 75.6722 72.1187C80.4168 68.8875 85.2271 61.0646 85.0041 56.5672L88.3378 54.3014C89.3639 53.7934 90.5628 53.6726 91.6409 53.8635C92.6059 54.0342 93.9177 54.0958 94.7269 53.5445C96.052 52.6404 96.3977 50.8305 95.4979 49.4992C94.9782 48.7423 94.1685 48.317 93.3219 48.2494C93.5673 47.4376 93.4734 46.5275 92.9558 45.7687C92.0496 44.4364 90.2369 44.096 88.9103 44.9996C88.17 45.5027 87.7281 46.8321 87.5873 48.0754C87.5279 48.5459 87.2129 50.1736 85.9061 51.358L82.7055 53.5361C82.0463 53.355 81.2556 53.2708 80.3752 53.2708C76.043 53.2711 69.5301 55.3118 65.714 57.909Z"],["d","M93.3869 71.058L88.1832 70.0173C88.181 69.9994 88.1794 69.9809 88.1772 69.9628C88.0439 68.7858 87.3846 67.0675 86.1201 65.1323C85.8139 65.7114 85.5163 66.229 85.2531 66.6638C83.1309 70.1715 80.3708 73.234 77.6787 75.0674C77.6067 75.1164 77.5334 75.162 77.4609 75.2103C82.8235 75.2103 87.411 75.2103 92.9759 75.2103C94.1336 75.2103 95.0722 74.2717 95.0722 73.114C95.0722 72.1143 94.3668 71.2539 93.3869 71.058Z"],["d","M93.7486 79.2515H34.0962C33.3752 79.2515 32.7048 79.6221 32.3209 80.2328C31.9374 80.8433 31.8946 81.6084 32.2075 82.2581L34.0813 86.1464C34.9568 87.9627 36.795 89.1174 38.8112 89.1174H89.0332C91.0494 89.1174 92.8877 87.9627 93.7633 86.1464L95.6371 82.2581C95.95 81.6086 95.9074 80.8436 95.5237 80.2328C95.1403 79.6219 94.4699 79.2515 93.7486 79.2515Z"],["d","M16.757 3L14.757 5H5V19H19V9.243L21 7.243V20C21 20.2652 20.8946 20.5196 20.7071 20.7071C20.5196 20.8946 20.2652 21 20 21H4C3.73478 21 3.48043 20.8946 3.29289 20.7071C3.10536 20.5196 3 20.2652 3 20V4C3 3.73478 3.10536 3.48043 3.29289 3.29289C3.48043 3.10536 3.73478 3 4 3H16.757ZM20.485 2.1L21.9 3.516L12.708 12.708L11.296 12.711L11.294 11.294L20.485 2.1Z"],["viewBox","0 0 64 64","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M34.6667 56V61.3333H29.3333V56H8.00001C7.29277 56 6.61449 55.7191 6.11439 55.219C5.61429 54.7189 5.33334 54.0406 5.33334 53.3333V10.6667C5.33334 9.95943 5.61429 9.28115 6.11439 8.78106C6.61449 8.28096 7.29277 8.00001 8.00001 8.00001H24C25.5136 7.99821 27.0101 8.31936 28.3897 8.942C29.7692 9.56464 31.0001 10.4745 32 11.6107C32.9999 10.4745 34.2308 9.56464 35.6104 8.942C36.9899 8.31936 38.4864 7.99821 40 8.00001H56C56.7073 8.00001 57.3855 8.28096 57.8856 8.78106C58.3857 9.28115 58.6667 9.95943 58.6667 10.6667V53.3333C58.6667 54.0406 58.3857 54.7189 57.8856 55.219C57.3855 55.7191 56.7073 56 56 56H34.6667ZM53.3333 50.6667V13.3333H40C38.5855 13.3333 37.229 13.8952 36.2288 14.8954C35.2286 15.8956 34.6667 17.2522 34.6667 18.6667V50.6667H53.3333ZM29.3333 50.6667V18.6667C29.3333 17.2522 28.7714 15.8956 27.7712 14.8954C26.7711 13.8952 25.4145 13.3333 24 13.3333H10.6667V50.6667H29.3333Z"],["d","M11 11V7H13V11H17V13H13V17H11V13H7V11H11ZM12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569 17.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84285 14.1217 4 12 4C9.87827 4 7.84344 4.84285 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34315 17.6569C7.84344 19.1571 9.87827 20 12 20Z"],["d","M15.6676 11.9985L10.0155 1.60859C9.10743 0.0798092 6.89378 0.077778 5.98446 1.60859L0.332715 11.9985C-0.595597 13.5606 0.528309 15.5388 2.34778 15.5388H13.652C15.47 15.5388 16.5959 13.5622 15.6676 11.9985ZM8 13.6638C7.48318 13.6638 7.0625 13.2431 7.0625 12.7263C7.0625 12.2095 7.48318 11.7888 8 11.7888C8.51681 11.7888 8.9375 12.2095 8.9375 12.7263C8.9375 13.2431 8.51681 13.6638 8 13.6638ZM8.9375 9.91381C8.9375 10.4306 8.51681 10.8513 8 10.8513C7.48318 10.8513 7.0625 10.4306 7.0625 9.91381V5.22631C7.0625 4.7095 7.48318 4.28881 8 4.28881C8.51681 4.28881 8.9375 4.7095 8.9375 5.22631V9.91381Z"],["d","M22.2349 0.0535024C21.9723 -0.0552476 21.6697 0.00484617 21.4686 0.20594L1.53749 20.137C1.26289 20.4115 1.26289 20.8567 1.53749 21.1313L4.20022 23.794C4.33752 23.9313 4.51747 24 4.69738 24C4.87729 24 5.05728 23.9313 5.19453 23.794L11.2548 17.7337L13.0548 18.5043C13.144 18.5425 13.238 18.561 13.3313 18.561C13.5141 18.561 13.6941 18.4897 13.8286 18.3551L16.438 15.7457C18.4235 13.7603 19.975 11.4382 21.0495 8.84416C22.124 6.25005 22.6688 3.5111 22.6688 0.703284C22.6689 0.418893 22.4976 0.162299 22.2349 0.0535024ZM4.69738 22.3025L3.02905 20.6342L6.29497 17.3682L7.9633 19.0366L4.69738 22.3025ZM8.95771 18.0422L7.28938 16.3738L8.42516 15.2381L10.0935 16.9064L8.95771 18.0422ZM19.7503 8.30608C18.7469 10.7287 17.2979 12.8972 15.4438 14.7514L13.1708 17.0243L11.4735 16.2977L9.41961 14.2437L21.1841 2.47914C21.006 4.48042 20.5259 6.43366 19.7503 8.30608Z"],["width","24","height","24","fill","white"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.67143 2H3C2.73478 2 2.48043 2.10536 2.29289 2.29289C2.10536 2.48043 2 2.73478 2 3V19C2 19.7956 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H19C19.7956 22 20.5587 21.6839 21.1213 21.1213C21.6839 20.5587 22 19.7956 22 19V15H18V13.5H16V20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V4H8.5V2.83333C8.5 2.544 8.5594 2.26079 8.67143 2ZM18 19V17H20V19C20 19.2652 19.8946 19.5196 19.7071 19.7071C19.5196 19.8946 19.2652 20 19 20C18.7348 20 18.4804 19.8946 18.2929 19.7071C18.1054 19.5196 18 19.2652 18 19Z","fill","white"],["d","M8.5 7H6V9H8.5V7Z","fill","white"],["d","M8.5 11H6V13H9.24688C9.20258 12.9625 9.15968 12.923 9.11833 12.8817C8.72242 12.4858 8.5 11.9488 8.5 11.3889V11Z","fill","white"],["d","M11 17V15H6V17H11Z","fill","white"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.8 1H14.2L13 2.22222H10.6C10.4409 2.22222 10.2883 2.28661 10.1757 2.40121C10.0632 2.51582 10 2.67126 10 2.83333V11.3889C10 11.551 10.0632 11.7064 10.1757 11.821C10.2883 11.9356 10.4409 12 10.6 12H21.4C21.5591 12 21.7117 11.9356 21.8243 11.821C21.9368 11.7064 22 11.551 22 11.3889V2.83333C22 2.67126 21.9368 2.51582 21.8243 2.40121C21.7117 2.28661 21.5591 2.22222 21.4 2.22222H19L17.8 1ZM17.3636 3L18.3455 4H19.8182V10H11.9636V4H13.4364L14.4182 3H17.3636Z","fill","white"],["fill-rule","evenodd","clip-rule","evenodd","d","M18.3455 7C18.3455 8.38071 17.2465 9.5 15.8909 9.5C14.5353 9.5 13.4364 8.38071 13.4364 7C13.4364 5.61929 14.5353 4.5 15.8909 4.5C17.2465 4.5 18.3455 5.61929 18.3455 7ZM15.8909 8C16.4332 8 16.8727 7.55228 16.8727 7C16.8727 6.44772 16.4332 6 15.8909 6C15.3487 6 14.9091 6.44772 14.9091 7C14.9091 7.55228 15.3487 8 15.8909 8Z","fill","white"],["width","25","height","24","viewBox","0 0 25 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19.5 2H17.5V5L14.5 5V7H17.5V10H19.5V7H22.5V5L19.5 5V2Z","fill","white"],["d","M12.5 6.37125H6.85996L6.10996 3.74625C6.03496 3.44625 5.73496 3.22125 5.43496 3.22125H3.25996C2.88496 3.22125 2.58496 3.52125 2.58496 3.89625C2.58496 4.27125 2.88496 4.57125 3.25996 4.57125H4.90996L7.68496 14.4713C7.68496 14.5463 7.75996 14.6963 7.83496 14.7713C7.88737 14.9809 8.01303 15.1173 8.16076 15.1804C8.22443 15.2076 8.29219 15.2213 8.35996 15.2213H18.335C18.56 15.2213 18.785 15.0713 18.86 14.8463L19.6263 12H17.555L17.2262 13.2213H9.41167L8.0522 8.37125H12.5V6.37125Z","fill","white"],["d","M18.0935 10L18.532 8.37125H17.5V7H14.5V6.37125H20.36C20.585 6.37125 20.735 6.44625 20.81 6.59625C20.9445 6.73083 20.9584 6.86542 20.9598 7L19.5 7V10H18.0935Z","fill","white"],["fill-rule","evenodd","clip-rule","evenodd","d","M17.2099 17.0963C17.4363 17.0963 17.6546 17.1407 17.8564 17.2213C18.5236 17.4875 19.0099 18.1477 19.0099 18.8963C19.0099 19.8713 18.1849 20.6963 17.2099 20.6963C16.2349 20.6963 15.4099 19.8713 15.4099 18.8963C15.4099 18.1477 15.8963 17.4875 16.5634 17.2213C16.7652 17.1407 16.9835 17.0963 17.2099 17.0963ZM17.4099 18.8963C17.4099 18.9812 17.3746 19.0287 17.3585 19.0448C17.3424 19.061 17.2949 19.0963 17.2099 19.0963C17.1249 19.0963 17.0775 19.061 17.0613 19.0448C17.0452 19.0287 17.0099 18.9812 17.0099 18.8963C17.0099 18.8113 17.0452 18.7638 17.0613 18.7477C17.0775 18.7315 17.1249 18.6963 17.2099 18.6963C17.2949 18.6963 17.3424 18.7315 17.3585 18.7477C17.3746 18.7638 17.4099 18.8113 17.4099 18.8963Z","fill","white"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.95991 17.0963C9.19305 17.0963 9.41583 17.1406 9.6203 17.2213C10.2877 17.4846 10.7599 18.1353 10.7599 18.8963C10.7599 19.8904 9.95402 20.6963 8.95991 20.6963C7.9658 20.6963 7.15991 19.8904 7.15991 18.8963C7.15991 18.1346 7.63294 17.4835 8.30123 17.2206C8.32065 17.2129 8.34023 17.2056 8.35996 17.1987C8.54761 17.1323 8.74955 17.0963 8.95991 17.0963ZM8.75991 18.8963C8.75991 18.7858 8.84946 18.6963 8.95991 18.6963C9.07037 18.6963 9.15991 18.7858 9.15991 18.8963C9.15991 19.0067 9.07037 19.0963 8.95991 19.0963C8.84946 19.0963 8.75991 19.0067 8.75991 18.8963Z","fill","white"],["width","65","height","4","viewBox","0 0 65 4","fill","none","xmlns","http://www.w3.org/2000/svg"],["x1","2.5","y1","2","x2","62.5","y2","2","stroke","#CCCCCC","stroke-width","4","stroke-linecap","round"],["width","48","height","48","viewBox","0 0 48 48","fill","none","xmlns","http://www.w3.org/2000/svg"],["filter","url(#filter0_b_2567_109244)"],["width","48","height","48","rx","24","fill-opacity","0.65"],["d","M19.752 17.439L30.26 23.569C30.3353 23.6131 30.3978 23.6761 30.4412 23.7518C30.4846 23.8275 30.5074 23.9132 30.5074 24.0005C30.5074 24.0878 30.4846 24.1735 30.4412 24.2492C30.3978 24.3249 30.3353 24.3879 30.26 24.432L19.752 30.562C19.6759 30.6064 19.5893 30.6299 19.5012 30.6301C19.4131 30.6304 19.3264 30.6073 19.2501 30.5632C19.1737 30.5191 19.1104 30.4557 19.0665 30.3793C19.0226 30.3028 18.9996 30.2161 19 30.128V17.871C19 17.783 19.0232 17.6966 19.0672 17.6204C19.1113 17.5443 19.1747 17.4811 19.2509 17.4373C19.3272 17.3935 19.4137 17.3706 19.5017 17.3709C19.5897 17.3712 19.676 17.3947 19.752 17.439Z","fill","white"],["id","filter0_b_2567_109244","x","-8","y","-8","width","64","height","64","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["in2","SourceAlpha","operator","in","result","effect1_backgroundBlur_2567_109244"],["mode","normal","in","SourceGraphic","in2","effect1_backgroundBlur_2567_109244","result","shape"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M13.2265 16L7.94672 10.7203L10.5866 8.08041L15.8663 13.3601L21.146 8.0804L23.7859 10.7203L18.5062 16L23.7859 21.2797L21.146 23.9196L15.8663 18.6399L10.5866 23.9196L7.94672 21.2797L13.2265 16Z","fill","#676767"],["fill-rule","evenodd","clip-rule","evenodd","d","M4 3.5C4 2.39543 4.89543 1.5 6 1.5H14.5C15.6046 1.5 16.5 2.39543 16.5 3.5V4.81867L17.8727 8.47909C17.9569 8.70364 18 8.94151 18 9.18133V20C18 21.1046 17.1046 22 16 22H4.5C3.39543 22 2.5 21.1046 2.5 20V9.18133C2.5 8.94151 2.54313 8.70364 2.62734 8.47909L4 4.81867V3.5ZM14.5 3.5H6V4.81867C6 4.964 5.98416 5.10863 5.95293 5.25H14.5471C14.5158 5.10863 14.5 4.964 14.5 4.81867V3.5ZM4.84925 8.25L5.41175 6.75H15.0882L15.6507 8.25L4.84925 8.25ZM4.5 9.75L16 9.75V18.093C15.5419 18.0057 15.0439 17.877 14.5439 17.6952C13.3931 17.2767 12.3041 16.604 11.6241 15.584C10.6424 14.1114 9.09795 13.8143 7.7959 13.5638L7.72944 13.551C6.54635 13.3231 5.45861 13.1084 4.5 12.3802V9.75ZM4.5 14.1428V20H16V19.6163C15.3897 19.5159 14.7123 19.3525 14.0312 19.1048C12.707 18.6233 11.296 17.796 10.376 16.416C9.77448 15.5137 8.85505 15.2955 7.44567 15.024L7.36096 15.0077C6.49286 14.8407 5.4852 14.647 4.5 14.1428Z","fill","black"],["d","M13.6324 22.8744C15.4922 22.8744 17 21.3369 17 19.4406C17 17.5442 15.4922 16.0068 13.6324 16.0068C11.8778 15.9273 10.1629 16.5444 8.86136 17.7237C8.5934 17.9225 8.37587 18.1814 8.22626 18.4796C8.07665 18.7778 7.99915 19.107 8.00001 19.4406C7.99915 19.7742 8.07665 20.1034 8.22626 20.4016C8.37587 20.6998 8.5934 20.9587 8.86136 21.1575C10.1629 22.3368 11.8778 22.9539 13.6324 22.8744","fill","white"],["d","M13.6324 22.8744C15.4922 22.8744 17 21.3369 17 19.4406C17 17.5442 15.4922 16.0068 13.6324 16.0068C11.8778 15.9273 10.1629 16.5444 8.86136 17.7237C8.5934 17.9225 8.37587 18.1814 8.22626 18.4796C8.07665 18.7778 7.99915 19.107 8.00001 19.4406C7.99915 19.7742 8.07665 20.1034 8.22626 20.4016C8.37587 20.6998 8.5934 20.9587 8.86136 21.1575C10.1629 22.3368 11.8778 22.9539 13.6324 22.8744","stroke","black","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.0068 19.6324C14.0068 21.4922 15.5442 23 17.4406 23C19.337 23 20.8744 21.4922 20.8744 19.6324C20.9539 17.8778 20.3368 16.1629 19.1575 14.8614C18.9587 14.5934 18.6998 14.3759 18.4016 14.2263C18.1034 14.0766 17.7742 13.9992 17.4406 14C17.107 13.9992 16.7778 14.0766 16.4796 14.2263C16.1814 14.3759 15.9225 14.5934 15.7237 14.8614C14.5444 16.1629 13.9273 17.8778 14.0068 19.6324","fill","white"],["d","M14.0068 19.6324C14.0068 21.4922 15.5442 23 17.4406 23C19.337 23 20.8744 21.4922 20.8744 19.6324C20.9539 17.8778 20.3368 16.1629 19.1575 14.8614C18.9587 14.5934 18.6998 14.3759 18.4016 14.2263C18.1034 14.0766 17.7742 13.9992 17.4406 14C17.107 13.9992 16.7778 14.0766 16.4796 14.2263C16.1814 14.3759 15.9225 14.5934 15.7237 14.8614C14.5444 16.1629 13.9273 17.8778 14.0068 19.6324","stroke","black","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.5","y","0.5","width","21","height","21","rx","4.5"],["d","M9.45051 15.3C9.25051 15.3 9.05051 15.2 8.95051 15.05L5.45051 11.35C5.20051 11.05 5.20051 10.6 5.50051 10.35C5.80051 10.1 6.20051 10.1 6.50051 10.4L9.45051 13.55L15.5005 6.95C15.7505 6.65 16.2005 6.65 16.5005 6.9C16.8005 7.15 16.8005 7.6 16.5505 7.9L10.0005 15.05C9.85051 15.2 9.65051 15.3 9.45051 15.3Z"],["d","M2.66659 12.6667H13.3333V8H14.6666V13.3333C14.6666 13.5101 14.5963 13.6797 14.4713 13.8047C14.3463 13.9298 14.1767 14 13.9999 14H1.99992C1.82311 14 1.65354 13.9298 1.52851 13.8047C1.40349 13.6797 1.33325 13.5101 1.33325 13.3333V8H2.66659V12.6667Z"],["d","M7.33325 2V6.66667H3.99992L7.99992 10.6667L11.9999 6.66667L8.66658 6.66667V2L7.33325 2Z"],["viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.244 6.79981L9.35632 2.34044C9.26608 2.28143 9.1606 2.25 9.05278 2.25C8.94496 2.25 8.83948 2.28143 8.74924 2.34044L6.14856 4.03425V3.22482C6.14856 3.07574 6.08934 2.93276 5.98393 2.82735C5.87851 2.72193 5.73554 2.66271 5.58646 2.66271H3.33803C3.18956 2.66465 3.04771 2.7245 2.94271 2.82949C2.83771 2.93449 2.77787 3.07634 2.77593 3.22482V6.22272L1.76414 6.90474C1.66004 6.96876 1.58001 7.06536 1.53646 7.17954C1.49292 7.29373 1.48831 7.4191 1.52334 7.53617C1.55838 7.65324 1.6311 7.75547 1.73021 7.82696C1.82932 7.89845 1.94927 7.93521 2.07142 7.93152C2.18072 7.93429 2.28815 7.90285 2.37871 7.84158L2.78342 7.57927V15.5537C2.78536 15.7022 2.84521 15.844 2.95021 15.949C3.0552 16.054 3.19705 16.1138 3.34553 16.1158H14.6626C14.8111 16.1138 14.9529 16.054 15.0579 15.949C15.1629 15.844 15.2228 15.7022 15.2247 15.5537V7.49682L15.6294 7.75914C15.6914 7.79949 15.7608 7.82724 15.8335 7.84079C15.9062 7.85434 15.9809 7.85344 16.0533 7.83813C16.1257 7.82282 16.1943 7.7934 16.2553 7.75155C16.3164 7.70971 16.3685 7.65626 16.4089 7.59425C16.4492 7.53225 16.477 7.4629 16.4905 7.39017C16.5041 7.31744 16.5032 7.24276 16.4879 7.17038C16.4726 7.098 16.4431 7.02935 16.4013 6.96834C16.3594 6.90732 16.306 6.85515 16.244 6.8148V6.79981ZM3.90763 3.78692H5.02435V4.76873L3.90763 5.51821V3.78692ZM10.0683 15.029H7.93981V12.4134H10.0683V15.029ZM14.1005 6.86726V14.9916H11.1925V11.8513C11.1925 11.7022 11.1333 11.5592 11.0279 11.4538C10.9225 11.3484 10.7795 11.2892 10.6304 11.2892H7.3777C7.22862 11.2892 7.08565 11.3484 6.98023 11.4538C6.87482 11.5592 6.8156 11.7022 6.8156 11.8513V14.9916H3.90763V6.84478L5.79631 5.61564C5.87449 5.5885 5.94602 5.54508 6.00616 5.48823L9.07152 3.47964L14.123 6.74735C14.1108 6.78631 14.1033 6.82655 14.1005 6.86726Z"],["viewBox","0 0 18 19","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.52217 3.5C4.46029 3.5 3.56734 4.28583 3.29895 5.33963H2.10141C1.94183 5.33891 1.78853 5.40683 1.6756 5.52804C1.56279 5.64939 1.49971 5.81396 1.50024 5.98542C1.50091 6.15617 1.56453 6.31945 1.67734 6.43964C1.79001 6.55984 1.94264 6.62705 2.10144 6.62633H3.29672C3.56323 7.68299 4.4583 8.47228 5.5222 8.47228C6.57538 8.47228 7.463 7.69836 7.73953 6.6578L15.9024 6.62635C16.0614 6.62606 16.2133 6.55785 16.3254 6.43707C16.4374 6.31615 16.5003 6.1523 16.5 5.98168C16.4996 5.8115 16.4366 5.64836 16.3246 5.52801C16.2125 5.40767 16.0608 5.33988 15.9023 5.3396L7.75581 5.37105C7.49785 4.30104 6.59486 3.5 5.52217 3.5ZM5.52217 4.78673C6.14605 4.78673 6.639 5.31521 6.639 5.98542C6.639 6.65577 6.14609 7.18543 5.52217 7.18543C4.89825 7.18543 4.40657 6.65581 4.40657 5.98542C4.40657 5.31503 4.89828 4.78673 5.52217 4.78673ZM10.1544 10.4675C9.07485 10.4675 8.1664 11.2673 7.89842 12.3397H2.10117C1.94212 12.3392 1.78935 12.4065 1.67669 12.5269C1.56389 12.6473 1.5004 12.8111 1.5 12.982C1.49973 13.1531 1.56295 13.3176 1.67589 13.4385C1.78869 13.5596 1.94173 13.6272 2.10119 13.6265H7.89947C8.16824 14.6987 9.07562 15.5 10.1542 15.5C11.2328 15.5 12.1402 14.6987 12.4089 13.6265H15.902C16.0609 13.6262 16.213 13.5581 16.3251 13.4372C16.4371 13.3163 16.4999 13.1526 16.4997 12.982C16.4993 12.8118 16.4363 12.6486 16.3243 12.5283C16.2122 12.4079 16.0605 12.3402 15.902 12.3397H12.4099C12.142 11.2673 11.2339 10.4675 10.1544 10.4675ZM10.1544 11.7542C10.7943 11.7542 11.3005 12.2943 11.3005 12.982C11.3005 13.6696 10.7943 14.2134 10.1544 14.2134C9.51445 14.2134 9.0083 13.6696 9.0083 12.982C9.0083 12.2944 9.51445 11.7542 10.1544 11.7542Z"],["viewBox","0 0 19 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.82526 0.599609C3.87421 0.599609 2.92516 1.00736 2.21659 1.71592C1.55942 2.3731 1.15461 3.25165 1.10554 4.13584C1.05141 5.09865 1.40657 6.01097 2.12133 6.77039L2.21659 6.86857C2.23714 6.89033 2.26786 6.91682 2.30103 6.93989L3.71523 7.94479C4.3932 8.42385 5.12745 8.93894 6.09605 9.61588L9.64851 12.0993L9.70993 12.1364C9.75156 12.1585 9.79457 12.1751 9.83902 12.1871L9.89016 12.198L14.6406 16.9482C14.9311 17.2387 15.3202 17.3996 15.7318 17.3996C16.1435 17.3996 16.5321 17.2389 16.8231 16.9484L17.4487 16.3233L17.5089 16.2597C18.0502 15.654 18.0301 14.7213 17.4488 14.1399L12.6983 9.38949L12.6873 9.33795C12.6695 9.27193 12.642 9.21015 12.603 9.15292L8.839 3.77232C8.34564 3.07121 7.92379 2.47641 7.44009 1.79907C7.41622 1.76668 7.39473 1.741 7.36966 1.71592C6.64354 0.989799 5.76067 0.599609 4.82526 0.599609ZM4.94247 1.44236C5.56582 1.47163 6.16007 1.73465 6.67924 2.21691L6.76536 2.2999L7.99177 4.02811C8.49603 4.74364 9.06419 5.55523 9.85239 6.68402L11.55 9.11252L10.8549 9.79203L3.13805 2.02546C3.63855 1.64914 4.23607 1.43961 4.82526 1.43961L4.94247 1.44236ZM2.5419 2.61724C2.18814 3.08105 1.97462 3.63522 1.94423 4.18268C1.902 4.93393 2.19085 5.64687 2.80025 6.26435L2.80014 6.26428L2.80512 6.26928L2.80025 6.26435L3.63319 6.85738C4.03378 7.14172 4.43633 7.42607 4.88066 7.73857L9.58742 11.031L10.2542 10.3792L2.5419 2.61724ZM10.345 11.4651L11.9839 9.86301L15.8095 13.6886L14.1636 15.2833L10.345 11.4651ZM14.7576 15.8773L15.2346 16.3542C15.3675 16.4871 15.5429 16.5596 15.7318 16.5596C15.921 16.5596 16.0962 16.4872 16.2296 16.3541L16.8549 15.7292C17.1289 15.4552 17.1289 15.008 16.8549 14.7339L16.4036 14.2826L14.7576 15.8773Z"]],template:function(e,t){if(1&e&&(Fo(0,SA,2,8,"div",0),Fo(1,NS,70,72,"ng-template",null,1,rl)),2&e){const e=Ho(2);jo("ngIf",""!==t.iconOverrideUrl)("ngIfElse",e)}},directives:[Zd,Kd,Yd,Xd,Gd],styles:['.cal-month-view[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]{text-align:center;font-weight:bolder}.cal-month-view[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%] .cal-cell[_ngcontent-%COMP%]{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}.cal-month-view[_ngcontent-%COMP%] .cal-days[_ngcontent-%COMP%]{border:1px solid;border-bottom:0}.cal-month-view[_ngcontent-%COMP%] .cal-cell-top[_ngcontent-%COMP%]{min-height:78px;flex:1}.cal-month-view[_ngcontent-%COMP%] .cal-cell-row[_ngcontent-%COMP%]{display:flex}.cal-month-view[_ngcontent-%COMP%] .cal-cell[_ngcontent-%COMP%]{float:left;flex:1;display:flex;flex-direction:column;align-items:stretch}.cal-month-view[_ngcontent-%COMP%] .cal-cell[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{pointer-events:all!important}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell[_ngcontent-%COMP%]{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view[_ngcontent-%COMP%] .cal-day-cell[_ngcontent-%COMP%]{display:block}}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell[_ngcontent-%COMP%]:not(:last-child){border-right:1px solid}.cal-month-view[_ngcontent-%COMP%] .cal-days[_ngcontent-%COMP%] .cal-cell-row[_ngcontent-%COMP%]{border-bottom:1px solid}.cal-month-view[_ngcontent-%COMP%] .cal-day-badge[_ngcontent-%COMP%]{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[_ngcontent-%COMP%] .cal-day-number[_ngcontent-%COMP%]{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px}.cal-month-view[_ngcontent-%COMP%] .cal-events[_ngcontent-%COMP%]{flex:1;align-items:flex-end;margin:3px;line-height:10px;display:flex;flex-wrap:wrap}.cal-month-view[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-in-month.cal-has-events[_ngcontent-%COMP%]{cursor:pointer}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-out-month[_ngcontent-%COMP%] .cal-day-number[_ngcontent-%COMP%]{opacity:.1;cursor:default}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-today[_ngcontent-%COMP%] .cal-day-number[_ngcontent-%COMP%]{font-size:1.9em}.cal-month-view[_ngcontent-%COMP%] .cal-open-day-events[_ngcontent-%COMP%]{padding:15px}.cal-month-view[_ngcontent-%COMP%] .cal-open-day-events[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{position:relative;top:2px}.cal-month-view[_ngcontent-%COMP%] .cal-out-month[_ngcontent-%COMP%] .cal-day-badge[_ngcontent-%COMP%], .cal-month-view[_ngcontent-%COMP%] .cal-out-month[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{opacity:.3}.cal-month-view[_ngcontent-%COMP%] .cal-draggable[_ngcontent-%COMP%]{cursor:move}.cal-month-view[_ngcontent-%COMP%] .cal-drag-active[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}.cal-month-view[_ngcontent-%COMP%] .cal-event-title[_ngcontent-%COMP%]{cursor:pointer}.cal-month-view[_ngcontent-%COMP%] .cal-event-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.cal-month-view[_ngcontent-%COMP%]{background-color:#fff}.cal-month-view[_ngcontent-%COMP%] .cal-cell-row[_ngcontent-%COMP%]:hover{background-color:#fafafa}.cal-month-view[_ngcontent-%COMP%] .cal-cell-row[_ngcontent-%COMP%] .cal-cell[_ngcontent-%COMP%]:hover, .cal-month-view[_ngcontent-%COMP%] .cal-cell.cal-has-events.cal-open[_ngcontent-%COMP%]{background-color:#ededed}.cal-month-view[_ngcontent-%COMP%] .cal-days[_ngcontent-%COMP%]{border-color:#e1e1e1}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell[_ngcontent-%COMP%]:not(:last-child){border-right-color:#e1e1e1}.cal-month-view[_ngcontent-%COMP%] .cal-days[_ngcontent-%COMP%] .cal-cell-row[_ngcontent-%COMP%]{border-bottom-color:#e1e1e1}.cal-month-view[_ngcontent-%COMP%] .cal-day-badge[_ngcontent-%COMP%]{background-color:#b94a48;color:#fff}.cal-month-view[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-weekend[_ngcontent-%COMP%] .cal-day-number[_ngcontent-%COMP%]{color:#8b0000}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-today[_ngcontent-%COMP%]{background-color:#e8fde7}.cal-month-view[_ngcontent-%COMP%] .cal-day-cell.cal-drag-over[_ngcontent-%COMP%]{background-color:#e0e0e0!important}.cal-month-view[_ngcontent-%COMP%] .cal-open-day-events[_ngcontent-%COMP%]{color:#fff;background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5)}.cal-week-view[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%]{display:flex;padding-left:70px;border:1px solid}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]{flex:1;text-align:center;padding:5px}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]:not(:last-child){border-right:1px solid}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]:first-child{border-left:1px solid}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;opacity:.5}.cal-week-view[_ngcontent-%COMP%] .cal-day-column[_ngcontent-%COMP%]{flex-grow:1;border-left:1px solid}.cal-week-view[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{font-size:12px;border:1px solid}.cal-week-view[_ngcontent-%COMP%] .cal-time-label-column[_ngcontent-%COMP%]{width:70px;height:100%}.cal-week-view[_ngcontent-%COMP%] .cal-current-time-marker[_ngcontent-%COMP%]{position:absolute;width:100%;height:2px;z-index:2}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%]{border-left:1px solid;border-right:1px solid;border-top:0;border-bottom:3px solid;padding-top:3px;position:relative}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-day-columns[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;position:absolute;top:0;z-index:0}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-events-row[_ngcontent-%COMP%]{position:relative;height:31px;margin-left:70px}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-event-container[_ngcontent-%COMP%]{display:inline-block;position:absolute}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-event-container.resize-active[_ngcontent-%COMP%]{z-index:1;pointer-events:none}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-starts-within-week[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{border-top-left-radius:5px;border-bottom-left-radius:5px}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-ends-within-week[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{border-top-right-radius:5px;border-bottom-right-radius:5px}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-time-label-column[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-size:14px}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-resize-handle[_ngcontent-%COMP%]{width:6px;height:100%;cursor:col-resize;position:absolute;top:0}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%] .cal-resize-handle.cal-resize-handle-after-end[_ngcontent-%COMP%]{right:0}.cal-week-view[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view[_ngcontent-%COMP%] .cal-drag-active[_ngcontent-%COMP%]{pointer-events:none;z-index:1}.cal-week-view[_ngcontent-%COMP%] .cal-drag-active[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%]{position:relative;border:1px solid;border-top:0;display:flex}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-day-columns[_ngcontent-%COMP%]{display:flex;flex-grow:1}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-day-column[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-events-container[_ngcontent-%COMP%]{position:relative}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-event-container[_ngcontent-%COMP%]{position:absolute;z-index:1}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-resize-handle[_ngcontent-%COMP%]{width:100%;height:4px;cursor:row-resize;position:absolute}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-resize-handle.cal-resize-handle-after-end[_ngcontent-%COMP%]{bottom:0}.cal-week-view[_ngcontent-%COMP%] .cal-hour-segment[_ngcontent-%COMP%]{position:relative}.cal-week-view[_ngcontent-%COMP%] .cal-hour-segment[_ngcontent-%COMP%]:after{content:"\\00a0"}.cal-week-view[_ngcontent-%COMP%] .cal-event-container[_ngcontent-%COMP%]:not(.cal-draggable){cursor:pointer}.cal-week-view[_ngcontent-%COMP%] .cal-draggable[_ngcontent-%COMP%]{cursor:move}.cal-week-view[_ngcontent-%COMP%] .cal-hour-segment[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] mwl-calendar-week-view-hour-segment[_ngcontent-%COMP%]{display:block}.cal-week-view[_ngcontent-%COMP%] .cal-hour[_ngcontent-%COMP%]:last-child [_ngcontent-%COMP%]:not(:last-child) .cal-hour-segment[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] .cal-hour[_ngcontent-%COMP%]:not(:last-child) .cal-hour-segment[_ngcontent-%COMP%]{border-bottom:thin dashed}.cal-week-view[_ngcontent-%COMP%] .cal-time[_ngcontent-%COMP%]{font-weight:700;padding-top:5px;width:70px;text-align:center}.cal-week-view[_ngcontent-%COMP%] .cal-hour-segment.cal-after-hour-start[_ngcontent-%COMP%] .cal-time[_ngcontent-%COMP%]{display:none}.cal-week-view[_ngcontent-%COMP%] .cal-starts-within-day[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view[_ngcontent-%COMP%] .cal-ends-within-day[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view[_ngcontent-%COMP%]{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%]{border-color:#e1e1e1;border-top:0}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]:not(:last-child){border-right-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]:first-child{border-left-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-drag-over[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] .cal-day-headers[_ngcontent-%COMP%] .cal-header[_ngcontent-%COMP%]:hover{background-color:#ededed}.cal-week-view[_ngcontent-%COMP%] .cal-day-column[_ngcontent-%COMP%]{border-left-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-event[_ngcontent-%COMP%]{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view[_ngcontent-%COMP%] .cal-all-day-events[_ngcontent-%COMP%]{border-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-header.cal-today[_ngcontent-%COMP%]{background-color:#e8fde7}.cal-week-view[_ngcontent-%COMP%] .cal-header.cal-weekend[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#8b0000}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%]{border-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-time-events[_ngcontent-%COMP%] .cal-day-columns[_ngcontent-%COMP%]:not(.cal-resize-active) .cal-hour-segment[_ngcontent-%COMP%]:hover{background-color:#ededed}.cal-week-view[_ngcontent-%COMP%] .cal-hour-odd[_ngcontent-%COMP%]{background-color:#fafafa}.cal-week-view[_ngcontent-%COMP%] .cal-drag-over[_ngcontent-%COMP%] .cal-hour-segment[_ngcontent-%COMP%]{background-color:#ededed}.cal-week-view[_ngcontent-%COMP%] .cal-hour[_ngcontent-%COMP%]:last-child [_ngcontent-%COMP%]:not(:last-child) .cal-hour-segment[_ngcontent-%COMP%], .cal-week-view[_ngcontent-%COMP%] .cal-hour[_ngcontent-%COMP%]:not(:last-child) .cal-hour-segment[_ngcontent-%COMP%]{border-bottom-color:#e1e1e1}.cal-week-view[_ngcontent-%COMP%] .cal-current-time-marker[_ngcontent-%COMP%]{background-color:#ea4334}.cal-day-view[_ngcontent-%COMP%] mwl-calendar-week-view-header[_ngcontent-%COMP%]{display:none}.cal-day-view[_ngcontent-%COMP%] .cal-events-container[_ngcontent-%COMP%]{margin-left:70px}.cal-day-view[_ngcontent-%COMP%] .cal-day-column[_ngcontent-%COMP%]{border-left:0}.cal-day-view[_ngcontent-%COMP%] .cal-current-time-marker[_ngcontent-%COMP%]{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip[_ngcontent-%COMP%]{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[_ngcontent-%COMP%]{padding:5px 0;margin-top:-3px}.cal-tooltip.cal-tooltip-top[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0}.cal-tooltip.cal-tooltip-right[_ngcontent-%COMP%]{padding:0 5px;margin-left:3px}.cal-tooltip.cal-tooltip-right[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0}.cal-tooltip.cal-tooltip-bottom[_ngcontent-%COMP%]{padding:5px 0;margin-top:3px}.cal-tooltip.cal-tooltip-bottom[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px}.cal-tooltip.cal-tooltip-left[_ngcontent-%COMP%]{padding:0 5px;margin-left:-3px}.cal-tooltip.cal-tooltip-left[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px}.cal-tooltip-inner[_ngcontent-%COMP%]{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem}.cal-tooltip-arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.cal-tooltip.cal-tooltip-top[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{border-top-color:#000}.cal-tooltip.cal-tooltip-right[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left[_ngcontent-%COMP%] .cal-tooltip-arrow[_ngcontent-%COMP%]{border-left-color:#000}.cal-tooltip-inner[_ngcontent-%COMP%]{color:#fff;background-color:#000}.m-button[_ngcontent-%COMP%], .m-button-grey[_ngcontent-%COMP%], .m-button-grey.reverse[_ngcontent-%COMP%], .m-button-primary[_ngcontent-%COMP%], .m-button-primary.reverse[_ngcontent-%COMP%], .m-button-secondary[_ngcontent-%COMP%], .m-button-secondary.reverse[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border-radius:var(--m-button-radius);padding:var(--m-button-padding);cursor:pointer;font-size:var(--m-button-text-size);line-height:var(--m-button-text-height);font-weight:var(--m-button-text-weight);outline:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.m-button-grey.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button-grey[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button-primary.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button-primary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button-secondary.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button-secondary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%], .m-button[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]{padding:0}.m-button-grey[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child, .m-button-primary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child, .m-button-secondary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child, .m-button[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child{margin-left:var(--m-button-gap)}.m-button-grey[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:first-child, .m-button-primary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:first-child, .m-button-secondary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:first-child, .m-button[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:first-child{margin-right:var(--m-button-gap)}.m-button-grey[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child:first-child, .m-button-primary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child:first-child, .m-button-secondary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child:first-child, .m-button[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]:last-child:first-child{margin:0}.m-button-primary[_ngcontent-%COMP%]{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-primary[_ngcontent-%COMP%]:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-primary)}}.m-button-primary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}.m-button-primary.reverse[_ngcontent-%COMP%]{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse[_ngcontent-%COMP%]:hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}}.m-button-primary.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-primary)}.m-button-secondary[_ngcontent-%COMP%]{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-secondary[_ngcontent-%COMP%]:hover{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-secondary)}}.m-button-secondary[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}.m-button-secondary.reverse[_ngcontent-%COMP%]{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse[_ngcontent-%COMP%]:hover{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}}.m-button-secondary.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-secondary)}.m-button-grey[_ngcontent-%COMP%]{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey[_ngcontent-%COMP%]:hover{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}}.m-button-grey[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-grey03)}.m-button-grey.reverse[_ngcontent-%COMP%]{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse[_ngcontent-%COMP%]:hover{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse[_ngcontent-%COMP%]:hover ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-grey03)}}.m-button-grey.reverse[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--m-color-white)}.m-input[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;max-width:320px;min-width:200px;border:1px solid var(--m-color-grey06);border-radius:5px;padding:8px 16px;margin-top:16px;outline:none}.m-input[_ngcontent-%COMP%]:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input[_ngcontent-%COMP%]{padding:8px}}.m-title-text-input[_ngcontent-%COMP%] .miam-text-input[_ngcontent-%COMP%]{max-width:565px}.miam-flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:auto;justify-content:space-between;align-items:center}.m-default-card[_ngcontent-%COMP%]{box-shadow:var(--m-shadow-small);background-color:var(--m-color-unpure-white);padding:16px;border-radius:8px}@media (max-width:1023px){.m-default-card[_ngcontent-%COMP%]{padding:8px;margin-bottom:8px}}#toast-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{opacity:.95!important}@media (min-width:1023px){#toast-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}[_ngcontent-%COMP%]:root{--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-white:var(--miam-color-white,#fafcfe);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-gap:var(--miam-button-gap,10px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-button-text-height:var(--miam-button-text-height,calc(1.5 * var(--m-button-text-size)));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-font-size-small:var(--miam-font-size-small,14px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-loader-size:var(--miam-loader-sizes,40px);--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756)}.m-title-text-input[_ngcontent-%COMP%]:focus-within [_ngcontent-%COMP%]:root .miam-text-input__label[_ngcontent-%COMP%], .m-title-text-input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root input[_ngcontent-%COMP%], .m-title-text-input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root label[_ngcontent-%COMP%]:not(.miam-text-input__label__top), [_ngcontent-%COMP%]:root .m-body-typo[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-h1-typo[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-input[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-input[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-small-typo[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-title-text-input[_ngcontent-%COMP%]:focus-within .miam-text-input__label[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-title-text-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-title-text-input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:not(.miam-text-input__label__top){font-family:Work Sans;font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);line-height:24px;color:var(--m-color-slate)}.m-title-text-input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root input[_ngcontent-%COMP%], .m-title-text-input[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root label[_ngcontent-%COMP%]:not(.miam-text-input__label__top), [_ngcontent-%COMP%]:root .m-h1-typo[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-title-text-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .m-title-text-input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:not(.miam-text-input__label__top){font-weight:700;font-size:40px;line-height:48px}[_ngcontent-%COMP%]:root .m-small-typo[_ngcontent-%COMP%]{font-size:var(--m-font-size-small);line-height:16px}@media print{[_ngcontent-%COMP%]:root *[_ngcontent-%COMP%]{transition:none!important;-webkit-transition:none!important;animation:none!important;-webkit-animation:none!important}[_ngcontent-%COMP%]:root .miam-not-printable[_ngcontent-%COMP%]{display:none}[_ngcontent-%COMP%]:root:last-child{page-break-after:auto}}[_ngcontent-%COMP%]:root .miam-print-only[_ngcontent-%COMP%]{display:none}@media print{[_ngcontent-%COMP%]:root .miam-print-only[_ngcontent-%COMP%]{display:block}}.icon-container[_ngcontent-%COMP%]{display:flex;justify-items:center;align-items:center;margin:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.icon-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto;width:-webkit-max-content;width:-moz-max-content;width:max-content}.icon-container[_ngcontent-%COMP%] .icon-container__icon[_ngcontent-%COMP%]{height:unset}'],changeDetection:0}),e})(),ZS=(()=>{class e{constructor(){}goToMiam(){document.location.href="https://miam.tech/fr/#contact"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-cors-overlay"]],decls:13,vars:0,consts:[[1,"cors-overlay-container"],[1,"title"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),fs(2," Hav"),Vo(3,"span"),fs(4,"i"),Zo(),fs(5,"ng "),Vo(6,"span"),fs(7," i"),Zo(),fs(8,"ssues ?"),Zo(),Vo(9,"p"),fs(10," You are trying to interact with Miam API whithout being granted access. Please contact us : "),Zo(),Vo(11,"a"),fs(12,"contact@miam.tech"),Zo(),Zo())},styles:[".cors-overlay-container[_ngcontent-%COMP%]{background:var(--m-color-primary);min-width:32rem;color:#fff;display:flex;font-weight:600;align-items:center;justify-content:center;flex-direction:column;padding:20px;border-radius:var(--m-border-radius);font-size:12px;margin:10px;text-align:center}.cors-overlay-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:25px;font-weight:700;margin-bottom:10px}.cors-overlay-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .cors-overlay-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--m-color-secondary)!important}.cors-overlay-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--m-color-ternary)!important}"]}),e})();class QS extends jf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class WS extends Vf{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,n=-1,r=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++n<r&&(e=t.shift()));if(this.active=!1,i){for(;++n<r&&(e=t.shift());)e.unsubscribe();throw i}}}const US=new WS(QS),YS=new Ze("cdk-dir-doc",{providedIn:"root",factory:function(){return et(Jl)}});let XS=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new Bc,e){const t=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||t;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)($e(YS,8))},e.\u0275prov=he({factory:function(){return new e($e(YS,8))},token:e,providedIn:"root"}),e})(),GS=(()=>{class e{constructor(e,t,i){this._ngZone=e,this._platform=t,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new b(t=>{this._globalSubscription||this._addGlobalListener();const i=e>0?this._scrolled.pipe(Fw(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Au()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Su(e=>!e||i.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,e)&&t.push(n)}),t}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(e,t){let i=t.nativeElement,n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)($e(Sl),$e(Yv),$e(Jl,8))},e.\u0275prov=he({factory:function(){return new e($e(Sl),$e(Yv),$e(Jl,8))},token:e,providedIn:"root"}),e})(),qS=(()=>{class e{constructor(e,t,i){this._platform=e,this._change=new A,this._changeListener=e=>{this._change.next(e)},this._document=i,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}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:t,height:i}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+t,height:i,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._getDocument(),t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Fw(e)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)($e(Yv),$e(Sl),$e(Jl,8))},e.\u0275prov=he({factory:function(){return new e($e(Yv),$e(Sl),$e(Jl,8))},token:e,providedIn:"root"}),e})(),JS=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)}}),e})();function KS(e,t){for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function $S(e,t){const i=t?"":"none";KS(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function eE(e,t){const i=e.style;i.position=t?"":"fixed",i.top=i.opacity=t?"":"0",i.left=t?"":"-999em"}function tE(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function iE(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function nE(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function rE(e,t,i){const{top:n,bottom:r,left:a,right:o}=e;return i>=n&&i<=r&&t>=a&&t<=o}function aE(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function oE(e,t,i,n){const{top:r,right:a,bottom:o,left:s,width:c,height:l}=e,d=c*t,u=l*t;return n>r-u&&n<o+u&&i>s-d&&i<a+d}class sE{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:nE(e)})})}handleScroll(e){const t=e.target,i=this.positions.get(t);if(!i)return null;const n=t===this._document?t.documentElement:t,r=i.scrollPosition;let a,o;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();a=e.top,o=e.left}else a=t.scrollTop,o=t.scrollLeft;const s=r.top-a,c=r.left-o;return this.positions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&aE(e.clientRect,s,c)}),r.top=a,r.left=o,{top:s,left:c}}}function cE(e){const t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r<i.length;r++)i[r].removeAttribute("id");return"canvas"===n?mE(e,t):"input"!==n&&"select"!==n&&"textarea"!==n||uE(e,t),lE("canvas",e,t,mE),lE("input, textarea, select",e,t,uE),t}function lE(e,t,i,n){const r=t.querySelectorAll(e);if(r.length){const t=i.querySelectorAll(e);for(let e=0;e<r.length;e++)n(r[e],t[e])}}let dE=0;function uE(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${dE++}`)}function mE(e,t){const i=t.getContext("2d");if(i)try{i.drawImage(e,0,0)}catch(ZB){}}const pE=Gv({passive:!0}),hE=Gv({passive:!1});class gE{constructor(e,t,i,n,r,a){this._config=t,this._document=i,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new A,this._pointerMoveSubscription=u.EMPTY,this._pointerUpSubscription=u.EMPTY,this._scrollSubscription=u.EMPTY,this._resizeSubscription=u.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new A,this.started=new A,this.released=new A,this.ended=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const i=e.target;return!!i&&(i===t||t.contains(i))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{e.preventDefault();const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),i=this._dropContainer;if(!t)return void this._endDragSequence(e);i&&(i.isDragging()||i.isReceiving())||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{const e=this._activeTransform;e.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e),this._parentPositions=new sE(i,r),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=Mv(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){return this._handles=e.map(e=>zv(e)),this._handles.forEach(e=>$S(e,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=zv(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,hE),t.addEventListener("touchstart",this._pointerDown,pE)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?zv(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&_E(this._rootElement),_E(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}enableHandle(e){this._disabledHandles.delete(e)}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&_E(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&_E(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){yE(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,n=e.parentNode,r=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(o,e),eE(e,!1),this._document.body.appendChild(n.replaceChild(a,e)),(i=this._document,i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body).appendChild(r),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;var i;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){t.stopPropagation();const i=this.isDragging(),n=yE(t),r=!n&&0!==t.button,a=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),i||r||o)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=nE(this._boundaryElement));const s=this._previewTemplate;this._pickupPositionInElement=s&&s.template&&!s.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){eE(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),n=this._getPointerPositionOnPage(e),r=this._getDragDistance(this._getPointerPositionOnPage(e)),a=t._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:r}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r}),t.drop(this,i,this._initialContainer,a,r,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:n}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=fE(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let n;if(i&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,r=e.viewContainer.createEmbeddedView(i,e.context);r.detectChanges(),n=bE(r,this._document),this._previewRef=r,e.matchSize?wE(n,t):n.style.transform=fE(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;n=cE(e),wE(n,e.getBoundingClientRect())}return KS(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),$S(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>n.classList.add(e)):n.classList.add(t)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=fE(e.left,e.top);const t=function(e){const t=getComputedStyle(e),i=iE(t,"transition-property"),n=i.find(e=>"transform"===e||"all"===e);if(!n)return 0;const r=i.indexOf(n),a=iE(t,"transition-duration"),o=iE(t,"transition-delay");return tE(a[r])+tE(o[r])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const i=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",i),e(),clearTimeout(n))},n=setTimeout(i,1.5*t);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=bE(this._placeholderRef,this._document)):i=cE(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,r=n?n.getBoundingClientRect():i,a=yE(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-o.left),y:r.top-i.top+(a.pageY-r.top-o.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=yE(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=n,t.y=r,t.matrixTransform(e.inverse())}}return{x:n,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,r=this._boundaryRect,a=this._previewRect,o=r.top+t,s=r.bottom-(a.height-t);i=vE(i,r.left+e,r.right-(a.width-e)),n=vE(n,o,s)}return{x:i,y:n}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-r.x),o=Math.abs(i-r.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,$S(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,hE),e.removeEventListener("touchstart",this._pointerDown,pE)}_applyRootElementTransform(e,t){const i=fE(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const r=i.left-n.left,a=n.right-i.right,o=i.top-n.top,s=n.bottom-i.bottom;i.width>n.width?(r>0&&(e+=r),a>0&&(e-=a)):e=0,i.height>n.height?(o>0&&(t+=o),s>0&&(t-=s)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:yE(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=e.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&aE(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function fE(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function vE(e,t,i){return Math.max(t,Math.min(i,e))}function _E(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function yE(e){return"t"===e.type[0]}function bE(e,t){const i=e.rootNodes;if(1===i.length&&i[0].nodeType===t.ELEMENT_NODE)return i[0];const n=t.createElement("div");return i.forEach(e=>n.appendChild(e)),n}function wE(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=fE(t.left,t.top)}function xE(e,t,i){const n=CE(t,e.length-1),r=CE(i,e.length-1);if(n===r)return;const a=e[n],o=r<n?-1:1;for(let s=n;s!==r;s+=o)e[s]=e[s+o];e[r]=a}function CE(e,t){return Math.max(0,Math.min(t,e))}class kE{constructor(e,t,i,n,r){this._dragDropRegistry=t,this._ngZone=n,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new A,this.entered=new A,this.exited=new A,this.dropped=new A,this.sorted=new A,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=u.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),Rb(0,US).pipe(Nv(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode;1===this._verticalScrollDirection?SE(e,-2):2===this._verticalScrollDirection&&SE(e,2),1===this._horizontalScrollDirection?EE(e,-2):2===this._horizontalScrollDirection&&EE(e,2)})},this.element=zv(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new sE(i,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const e=zv(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(e=>e._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(e,t,i,n){let r;this.start(),null==n?(r=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(e,t,i))):r=n;const a=this._activeDraggables,o=a.indexOf(e),s=e.getPlaceholderElement();let c=a[r];if(c===e&&(c=a[r+1]),o>-1&&a.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const t=c.getRootElement();t.parentElement.insertBefore(s,t),a.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,i)){const t=a[0].getRootElement();t.parentNode.insertBefore(s,t),a.unshift(e)}else zv(this.element).appendChild(s),a.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,n,r,a){this._reset(),null==a&&(a=i.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:r})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=zv(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?AE("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,n){if(this.sortingDisabled||!oE(this._clientRect,.05,t,i))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,i,n);if(-1===a&&r.length>0)return;const o="horizontal"===this._orientation,s=AE(r,t=>t.drag===e),c=r[a],l=c.clientRect,d=s>a?1:-1,u=this._getItemOffsetPx(r[s].clientRect,l,d),m=this._getSiblingOffsetPx(s,r,d),p=r.slice();xE(r,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:e}),r.forEach((t,i)=>{if(p[i]===t)return;const n=t.drag===e,r=n?u:m,a=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(a.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,aE(t.clientRect,0,r)):(a.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,aE(t.clientRect,r,0))}),this._previousSwap.overlaps=rE(l,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,n=0,r=0;if(this._parentPositions.positions.forEach((a,o)=>{o!==this._document&&a.clientRect&&!i&&oE(a.clientRect,.05,e,t)&&([n,r]=function(e,t,i,n){const r=DE(t,n),a=IE(t,i);let o=0,s=0;if(r){const t=e.scrollTop;1===r?t>0&&(o=1):e.scrollHeight-t>e.clientHeight&&(o=2)}if(a){const t=e.scrollLeft;1===a?t>0&&(s=1):e.scrollWidth-t>e.clientWidth&&(s=2)}return[o,s]}(o,a.clientRect,e,t),(n||r)&&(i=o))}),!n&&!r){const{width:a,height:o}=this._viewportRuler.getViewportSize(),s={width:a,height:o,top:0,right:a,bottom:o,left:0};n=DE(s,t),r=IE(s,e),i=window}!i||n===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=r,this._scrollNode=i,(n||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const e=zv(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:nE(t)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=zv(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const n="horizontal"===this._orientation,r=t[e].clientRect,a=t[e+-1*i];let o=r[n?"width":"height"]*i;if(a){const e=n?"left":"top",t=n?"right":"bottom";-1===i?o-=a.clientRect[e]-r[t]:o+=r[e]-a.clientRect[t]}return o}_getItemOffsetPx(e,t,i){const n="horizontal"===this._orientation;let r=n?t.left-e.left:t.top-e.top;return-1===i&&(r+=n?t.width-e.width:t.height-e.height),r}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const r=i[i.length-1].clientRect;return n?e>=r.right:t>=r.bottom}{const r=i[0].clientRect;return n?e<=r.left:t<=r.top}}_getItemIndexFromPointerPosition(e,t,i,n){const r="horizontal"===this._orientation;return AE(this._itemPositions,({drag:a,clientRect:o},s,c)=>{if(a===e)return c.length<2;if(n){const e=r?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return r?t>=Math.floor(o.left)&&t<Math.floor(o.right):i>=Math.floor(o.top)&&i<Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return rE(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(n=>n._canReceive(e,t,i))}_canReceive(e,t,i){if(!rE(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;const r=zv(this.element);return n===r||r.contains(n)}_startReceiving(e){const t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{aE(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=function(e){if(function(){if(null==Uv){const e="undefined"!=typeof document?document.head:null;Uv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Uv}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(zv(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}function AE(e,t){for(let i=0;i<e.length;i++)if(t(e[i],i,e))return i;return-1}function SE(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function EE(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function DE(e,t){const{top:i,bottom:n,height:r}=e,a=.05*r;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}function IE(e,t){const{left:i,right:n,width:r}=e,a=.05*r;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}const OE=Gv({passive:!1,capture:!0});let PE=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new A,this.pointerUp=new A,this.scroll=new A,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.size&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.size&&(e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,OE)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,OE)}startDragging(e,t){if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){const e=t.type.startsWith("touch");this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:OE}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:OE}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances.has(e)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)($e(Sl),$e(Jl))},e.\u0275prov=he({factory:function(){return new e($e(Sl),$e(Jl))},token:e,providedIn:"root"}),e})();const TE={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ME=(()=>{class e{constructor(e,t,i,n){this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(e,t=TE){return new gE(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new kE(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)($e(Jl),$e(Sl),$e(qS),$e(PE))},e.\u0275prov=he({factory:function(){return new e($e(Jl),$e(Sl),$e(qS),$e(PE))},token:e,providedIn:"root"}),e})();const LE=new Ze("CDK_DRAG_PARENT"),RE=new Ze("CdkDropListGroup");let zE=(()=>{class e{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Mv(e)}ngOnDestroy(){this._items.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[zs([{provide:RE,useExisting:e}])]}),e})();const FE=new Ze("CDK_DRAG_CONFIG");let HE=0;const BE=new Ze("CdkDropList");let jE=(()=>{class e{constructor(t,i,n,r,a,o,s){this.element=t,this._changeDetectorRef=n,this._dir=r,this._group=a,this._scrollDispatcher=o,this._destroyed=new A,this.connectedTo=[],this.id="cdk-drop-list-"+HE++,this.enterPredicate=()=>!0,this.dropped=new Bc,this.entered=new Bc,this.exited=new Bc,this.sorted=new Bc,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=(e,t)=>this.enterPredicate(e.data,t.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Mv(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(jv(this._dir.value),Nv(this._destroyed)).subscribe(e=>t.withDirection(e)),t.beforeStarted.subscribe(()=>{const i=Rv(this.connectedTo).map(t=>"string"==typeof t?e._dropLists.find(e=>e.id===t):t);if(this._group&&this._group._items.forEach(e=>{-1===i.indexOf(e)&&i.push(e)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(e=>e.getElementRef().nativeElement);this._dropListRef.withScrollableParents(e),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=Mv(this.sortingDisabled),t.autoScrollDisabled=Mv(this.autoScrollDisabled),t.connectedTo(i.filter(e=>e&&e!==this).map(e=>e._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:this,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:this,item:e.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(e=>{this.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:this,item:e.item.data})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:r,listOrientation:a}=e;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=a||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(ME),Bo($a),Bo(XS,8),Bo(RE,12),Bo(GS),Bo(FE,8))},e.\u0275dir=kt({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(bs("id",t.id),ds("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[zs([{provide:RE,useValue:void 0},{provide:BE,useExisting:e}])]}),e._dropLists=[],e})();const NE=new Ze("CdkDragHandle");let VE=(()=>{class e{constructor(e,t){this.element=e,this._stateChanges=new A,this._disabled=!1,this._parentDrag=t}get disabled(){return this._disabled}set disabled(e){this._disabled=Mv(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(LE,12))},e.\u0275dir=kt({type:e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[zs([{provide:NE,useExisting:e}])]}),e})();const ZE=new Ze("CdkDragPlaceholder");let QE=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(Bo(dc))},e.\u0275dir=kt({type:e,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[zs([{provide:ZE,useExisting:e}])]}),e})();const WE=new Ze("CdkDragPreview");let UE=(()=>{class e{constructor(e){this.templateRef=e,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(e){this._matchSize=Mv(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(dc))},e.\u0275dir=kt({type:e,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"},features:[zs([{provide:WE,useExisting:e}])]}),e})(),YE=(()=>{class e{constructor(e,t,i,n,r,a,o,s,c,l){this.element=e,this.dropContainer=t,this._document=i,this._ngZone=n,this._viewContainerRef=r,this._dir=o,this._changeDetectorRef=c,this._selfHandle=l,this._destroyed=new A,this.started=new Bc,this.released=new Bc,this.ended=new Bc,this.entered=new Bc,this.exited=new Bc,this.dropped=new Bc,this.moved=new b(e=>{const t=this._dragRef.moved.pipe(D(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=s.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,a&&this._assignDefaults(a),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Mv(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(cg(1),Nv(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(jv(this._handles),um(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),ug(e=>X(...e.map(e=>e._stateChanges.pipe(jv(e))))),Nv(this._destroyed)).subscribe(e=>{const t=this._dragRef,i=e.element.nativeElement;e.disabled?t.disableHandle(i):t.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?XE(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?XE(this.element.nativeElement,e):zv(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,r=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof i&&i?i:Lv(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(r),t&&e.withDirection(t.value)}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:i,constrainPosition:n,previewClass:r,boundaryElement:a,draggingDisabled:o,rootElementSelector:s}=e;this.disabled=null!=o&&o,this.dragStartDelay=i||0,t&&(this.lockAxis=t),n&&(this.constrainPosition=n),r&&(this.previewClass=r),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s)}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(BE,12),Bo(Jl),Bo(Sl),Bo(mc),Bo(FE,8),Bo(XS,8),Bo(ME),Bo($a),Bo(NE,10))},e.\u0275dir=kt({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var n;1&e&&($c(i,WE,!0),$c(i,ZE,!0),$c(i,NE,!0)),2&e&&(Jc(n=el())&&(t._previewTemplate=n.first),Jc(n=el())&&(t._placeholderTemplate=n.first),Jc(n=el())&&(t._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&ds("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[zs([{provide:LE,useExisting:e}]),Qt]}),e})();function XE(e,t){let i=e.parentElement;for(;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}let GE=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},providers:[ME],imports:[JS]}),e})(),qE=(()=>{class e{constructor(e,t,i,n){this._elementRef=e,this._platform=t,this._ngZone=i,this._destroyed=new A,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=t.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(e){this._minRows=Lv(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Lv(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Mv(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Jb(this._getWindow(),"resize").pipe(Fw(16),Nv(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=t.placeholder;t.classList.add(this._measuringClass),t.placeholder="",t.style.height=t.scrollHeight-4+"px",t.classList.remove(this._measuringClass),t.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:i}=e,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==e||e.setSelectionRange(t,i)}}return e.\u0275fac=function(t){return new(t||e)(Bo(js),Bo(Yv),Bo(Sl),Bo(Jl,8))},e.\u0275dir=kt({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&Jo("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),e})(),JE=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[Xv]]}),e})(),KE=(()=>{class e{constructor(e){this.el=e,this.maxSize="none"}ngAfterViewInit(){this.resize()}onKeyUp(){this.resize()}onFocus(){this.resize()}resize(){this.el.nativeElement.setAttribute("size","none"!==this.maxSize&&this.el.nativeElement.value.length>=+this.maxSize?this.maxSize:this.el.nativeElement.value?this.el.nativeElement.value.length:1)}}return e.\u0275fac=function(t){return new(t||e)(Bo(js))},e.\u0275dir=kt({type:e,selectors:[["","autoWidthInput",""]],hostBindings:function(e,t){1&e&&Jo("keyup",(function(){return t.onKeyUp()}))("focus",(function(){return t.onFocus()}))},inputs:{maxSize:"maxSize"}}),e})(),$E=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-loader"]],decls:1,vars:0,consts:[[1,"miam-loader"]],template:function(e,t){1&e&&Qo(0,"div",0)},styles:[".miam-loader{border:var(--m-loader-thickness) solid var(--m-color-grey);border-top:var(--m-loader-thickness) solid var(--m-color-ternary);border-radius:var(--m-border-radius-circle);width:var(--m-loader-size);height:var(--m-loader-size);-webkit-animation:miam-loader-spin .5s linear infinite;animation:miam-loader-spin .5s linear infinite}@-webkit-keyframes miam-loader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes miam-loader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"],encapsulation:2}),e})();const eD=["title"],tD=["confirmButtonText"],iD=["cancelButtonText"];function nD(e,t){1&e&&Yo(0)}function rD(e,t){if(1&e&&(Vo(0,"div",5),Vo(1,"span"),fs(2,"Used in "),Zo(),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),fs(6," meal"),Zo(),Zo()),2&e){const e=es(2);Dr(4),vs(e.recipesCount)}}function aD(e,t){1&e&&ns(0,0,["*ngIf","isAngularComponent else isWebC"])}function oD(e,t){1&e&&Qo(0,"slot",14)}function sD(e,t){1&e&&Yo(0)}function cD(e,t){if(1&e&&(Wo(0),Fo(1,sD,1,0,"ng-container",6),Uo()),2&e){const e=es(3);Dr(1),jo("ngTemplateOutlet",e.cancelButtonTextTemplateRef)}}function lD(e,t){1&e&&Qo(0,"ng-miam-loader")}function dD(e,t){if(1&e){const e=Xo();Vo(0,"button",15),Jo("click",(function(){return gi(e),es(2).onCancel()})),Fo(1,cD,2,1,"ng-container",0),Fo(2,lD,1,0,"ng-miam-loader",0),Zo()}if(2&e){const e=es(2);jo("disabled",e.cancelButtonDisabled),Dr(1),jo("ngIf",!e.cancelButtonIsLoading),Dr(1),jo("ngIf",e.cancelButtonIsLoading)}}function uD(e,t){1&e&&Yo(0)}function mD(e,t){if(1&e&&(Vo(0,"span"),Fo(1,uD,1,0,"ng-container",6),Zo()),2&e){const e=es(2);Dr(1),jo("ngTemplateOutlet",e.confirmButtonTextTemplateRef)}}function pD(e,t){1&e&&Qo(0,"ng-miam-loader")}const hD=function(e,t){return{"with-header":e,"without-header":t}};function gD(e,t){if(1&e){const e=Xo();Wo(0),Vo(1,"div",1),Jo("click",(function(){return gi(e),es().onClose()})),Zo(),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"div",5),Fo(6,nD,1,0,"ng-container",6),Zo(),Fo(7,rD,7,1,"div",7),Vo(8,"ng-miam-icon",8),Jo("click",(function(){return gi(e),es().onClose()})),Zo(),Zo(),Fo(9,aD,1,0,"ng-content",9),Fo(10,oD,1,0,"ng-template",null,10,rl),Vo(12,"div",11),Fo(13,dD,3,3,"button",12),Vo(14,"button",13),Jo("click",(function(){return gi(e),es().onConfirm()})),Fo(15,mD,2,1,"span",0),Fo(16,pD,1,0,"ng-miam-loader",0),Zo(),Zo(),Zo(),Zo(),Uo()}if(2&e){const e=Ho(11),t=es();Dr(2),jo("ngClass",Ac(12,hD,!t.noHeaderMode,t.noHeaderMode)),Dr(4),jo("ngTemplateOutlet",t.titleTemplateRef),Dr(1),jo("ngIf",!t.titleTemplateRef&&t.recipesCount),Dr(1),jo("width",24)("height",24)("iconName",t.icon.Cross),Dr(1),jo("ngIf",t.isAngularComponent)("ngIfElse",e),Dr(4),jo("ngIf",t.cancelButtonTextTemplateRef),Dr(1),jo("disabled",t.confirmButtonDisabled),Dr(1),jo("ngIf",!t.confirmButtonIsLoading),Dr(1),jo("ngIf",t.confirmButtonIsLoading)}}const fD=["*"];let vD=(()=>{class e{constructor(e,t,i){this.cdr=e,this.mediaMatcher=t,this.context=i,this.expandedChange=new Bc,this.close=new Bc,this.cancel=new Bc,this.confirm=new Bc,this.icon=Iv,this.scrollPosition=null,this.isMobile=!1,this.isMobile=this.mediaMatcher.matchMedia("(max-width: 1023px)").matches}ngOnChanges(){this.containerElement?this.handleContainerScroll():this.handlePageScroll()}onClose(){this.hide(),this.close.emit()}onCancel(){this.hide(),this.cancel.emit()}onConfirm(){this.hide(),this.confirm.emit()}hide(){this.expandedChange.emit(!1),this.cdr.detectChanges()}handlePageScroll(){this.isMobile?this.expanded?(this.context.globalScrollableElement.style.overflow="hidden",this.scrollPosition=window.scrollY,this.context.globalScrollableElement.style.position="fixed",this.context.globalScrollableElement.style.top=-this.scrollPosition+"px"):null!==this.scrollPosition&&(this.context.globalScrollableElement.style.overflow="initial",this.context.globalScrollableElement.style.position="initial",window.scrollTo(0,this.scrollPosition),this.scrollPosition=null):this.context.globalScrollableElement.style.overflow=this.expanded?"hidden":"initial"}handleContainerScroll(){this.isMobile?this.expanded?(this.containerElement.style.overflow="hidden",this.scrollPosition=window.scrollY,this.containerElement.style.position="fixed",this.containerElement.style.top=-this.scrollPosition+"px"):null!==this.scrollPosition&&(this.containerElement.style.overflow="initial",this.containerElement.style.position="initial",window.scrollTo(0,this.scrollPosition),this.scrollPosition=null):this.containerElement.style.overflow=this.expanded?"hidden":"initial"}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Kv),Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-modal"]],contentQueries:function(e,t,i){var n;1&e&&($c(i,eD,!0),$c(i,tD,!0),$c(i,iD,!0)),2&e&&(Jc(n=el())&&(t.titleTemplateRef=n.first),Jc(n=el())&&(t.confirmButtonTextTemplateRef=n.first),Jc(n=el())&&(t.cancelButtonTextTemplateRef=n.first))},inputs:{recipesCount:"recipesCount",expanded:"expanded",isAngularComponent:"isAngularComponent",confirmButtonIsLoading:"confirmButtonIsLoading",cancelButtonIsLoading:"cancelButtonIsLoading",confirmButtonDisabled:"confirmButtonDisabled",cancelButtonDisabled:"cancelButtonDisabled",noHeaderMode:"noHeaderMode",containerElement:"containerElement"},outputs:{expandedChange:"expandedChange",close:"close",cancel:"cancel",confirm:"confirm"},features:[Qt],ngContentSelectors:fD,decls:1,vars:1,consts:[[4,"ngIf"],[1,"miam-shadow-overlay",3,"click"],[1,"miam-modal",3,"ngClass"],[1,"miam-modal__container"],[1,"miam-modal__header"],[1,"miam-modal__title"],[4,"ngTemplateOutlet"],["class","miam-modal__title ",4,"ngIf"],["primaryColor","var(--m-color-grey-text-dark)",1,"miam-modal__close__icon",3,"width","height","iconName","click"],[4,"ngIf","ngIfElse"],["isWebC",""],[1,"miam-modal__actions"],["class","m-button-secondary",3,"disabled","click",4,"ngIf"],[1,"m-button-primary",3,"disabled","click"],["name","modal-content"],[1,"m-button-secondary",3,"disabled","click"]],template:function(e,t){1&e&&(is(),Fo(0,gD,17,15,"ng-container",0)),2&e&&jo("ngIf",t.expanded)},directives:[Zd,Hd,$d,VS,$E],styles:[".miam-shadow-overlay{position:fixed;background:var(--m-color-black);-webkit-animation-name:show;animation-name:show;-webkit-animation-duration:.3s;animation-duration:.3s;opacity:.6;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100vh;-webkit-tap-highlight-color:transparent}.miam-modal{z-index:var(--m-z-index-modal);position:fixed;height:100%;width:80%;max-width:1200px;top:0;right:0;-webkit-animation-name:open;animation-name:open;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:cubic-bezier(.75,0,.2,1);animation-timing-function:cubic-bezier(.75,0,.2,1);overflow-y:auto;overflow-x:hidden;background-color:var(--m-color-white)}@media print{.miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}}@-webkit-keyframes open{0%{right:-1200px}to{right:0}}@keyframes open{0%{right:-1200px}to{right:0}}.miam-modal.with-header .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--m-color-grey);color:var(--m-color-grey-text-dark)}.miam-modal.with-header .miam-modal__title{padding:20px;font-weight:700;overflow:hidden;color:var(--m-color-grey-text-dark);font-size:var(--m-font-size-large);text-overflow:ellipsis}.miam-modal.with-header .miam-modal__close__icon{height:40px;-webkit-tap-highlight-color:transparent}.miam-modal.without-header .miam-modal__close__icon{position:absolute;top:0;right:0;height:60px;display:flex;justify-items:center;z-index:var(--m-z-index-position-absolute-high);border-radius:var(--m-border-radius-circle)}.miam-modal .miam-modal__container{position:relative;height:100%;display:flex;flex-direction:column}.miam-modal .miam-modal__container .miam-modal__close__icon{margin:10px;cursor:pointer}@media print{.miam-modal .miam-modal__container .miam-modal__close__icon{display:none}}.miam-modal .miam-modal__container .miam-modal__actions{display:flex;align-items:center;justify-content:space-evenly;margin:20px}@-webkit-keyframes show{0%{opacity:0}to{opacity:.6}}@keyframes show{0%{opacity:0}to{opacity:.6}}@media (max-width:1022px){.miam-modal{overflow-x:hidden;overflow-y:hidden;position:fixed;bottom:0;top:100vh;width:100vw;top:unset;z-index:var(--m-z-index-modal);-webkit-animation-name:openBottomSheet;animation-name:openBottomSheet;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:cubic-bezier(.075,.82,.165,1);animation-timing-function:cubic-bezier(.075,.82,.165,1);max-width:100vw;right:0;left:0;background-color:var(--m-color-white)}.miam-modal.with-header .miam-modal__header{background-color:unset;align-items:center}.miam-modal.with-header .miam-modal__title{padding:0 0 0 16px}.miam-modal.with-header ng-miam-icon.miam-modal__close__icon .icon-container{height:unset!important;width:unset!important;border-radius:36px;border:1px solid var(--m-color-light-slate);display:grid;align-items:center}.miam-modal.with-header ng-miam-icon.miam-modal__close__icon .icon-container svg{width:24px!important;height:24px!important;fill:var(--m-color-white)}.miam-modal.without-header .miam-modal__close__icon{z-index:8;height:28px}.miam-modal .miam-modal__actions{position:fixed;bottom:0;right:0;left:0;z-index:8;background-color:var(--m-color-white);margin:0!important}.miam-modal .miam-modal__actions button{height:44px;font-size:12px;padding:5px;margin:16px 5px 5px 0}.miam-modal .miam-modal__actions button:first-of-type{margin:16px 5px 5px}@-webkit-keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}}"],encapsulation:2,changeDetection:0}),e})(),_D=(()=>{class e{transform(e){return e?(e=e.trim()).charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"capitalizeFirstLetter",type:e,pure:!0}),e})();function yD(e,t){1&e&&(Vo(0,"div",13),fs(1,"Ingredients"),Zo())}function bD(e,t){1&e&&(Vo(0,"div",13),fs(1,"Steps"),Zo())}function wD(e,t){1&e&&Qo(0,"div",27)}function xD(e,t){if(1&e&&(Vo(0,"div",28),Qo(1,"ng-miam-icon",29),Vo(2,"span",30),fs(3),Zo(),Zo()),2&e){const e=es().$implicit,t=es(3);var i=null;Dr(1),jo("iconName",t.icon.Grip),Dr(2),vs(null==e||null==(i=e.get("attributes"))?null:i.get("description").value)}}function CD(e,t){if(1&e){const e=Xo();Vo(0,"li",18),Wo(1,19),Wo(2,19),Vo(3,"div",20),Qo(4,"ng-miam-icon",21),Vo(5,"textarea",22,23),Jo("blur",(function(){gi(e);const i=t.index;return es(3).checkRow(i)})),Zo(),Zo(),Vo(7,"ng-miam-icon",24),Jo("click",(function(){gi(e);const i=t.index;return es(3).delete(i)})),Zo(),Fo(8,wD,1,0,"div",25),Fo(9,xD,4,2,"div",26),Uo(),Uo(),Zo()}if(2&e){const e=t.$implicit,i=es(3);Dr(1),jo("formGroup",e),Dr(1),jo("formGroup",null==e?null:e.get("attributes")),Dr(2),jo("iconName",i.icon.Grip),Dr(3),jo("iconName",i.icon.Trash)}}function kD(e,t){if(1&e&&(Wo(0),Fo(1,CD,10,4,"li",17),Uo()),2&e){const e=es(2);Dr(1),jo("ngForOf",e.list.controls)("ngForTrackBy",e.trackByIndex)}}function AD(e,t){1&e&&(Qo(0,"option",42),Mc(1,"capitalizeFirstLetter")),2&e&&jo("value",Lc(1,1,t.$implicit))}function SD(e,t){1&e&&Qo(0,"option",42),2&e&&jo("value",t.$implicit)}function ED(e,t){1&e&&(Vo(0,"label",47),fs(1,"Primordial"),Zo()),2&e&&rs("for","importance-id-primary"+es(3).index)}function DD(e,t){1&e&&(Vo(0,"label",47),fs(1,"Secondaire"),Zo()),2&e&&rs("for","importance-id-secondary"+es(3).index)}function ID(e,t){1&e&&(Vo(0,"label",47),fs(1,"Facultatif"),Zo()),2&e&&rs("for","importance-id-tertiary"+es(3).index)}function OD(e,t){if(1&e){const e=Xo();Vo(0,"div",45),Vo(1,"input",46),Jo("click",(function(){gi(e);const i=t.$implicit,n=es(2).index;return es(3).updateImportance(i,n)})),Zo(),Fo(2,ED,2,1,"label",40),Fo(3,DD,2,1,"label",40),Fo(4,ID,2,1,"label",40),Zo()}if(2&e){const e=t.$implicit,i=es(2),n=i.index,r=i.$implicit;Dr(1),jo("name","importance"+n)("id","importance-id-"+e+n)("value",e)("formControl",r.controls.attributes.controls.importance),Dr(1),jo("ngIf","primary"===e),Dr(1),jo("ngIf","secondary"===e),Dr(1),jo("ngIf","tertiary"===e)}}function PD(e,t){if(1&e&&(Vo(0,"div",43),Fo(1,OD,5,7,"div",44),Zo()),2&e){const e=es(4);Dr(1),jo("ngForOf",e.getImportances())}}const TD=function(e){return{clickable:e}};function MD(e,t){if(1&e&&Qo(0,"img",50),2&e){const e=es(2).$implicit,t=es(3);jo("ngClass",kc(2,TD,t.ingredientsPictures.editable))("src",e.controls.attributes.controls["picture-url"].value,cr)}}function LD(e,t){1&e&&Qo(0,"ng-miam-icon",51),2&e&&jo("iconName",es(5).icon.Picture)}function RD(e,t){if(1&e&&(Vo(0,"label",47),Fo(1,MD,1,4,"img",48),Fo(2,LD,1,1,"ng-miam-icon",49),Zo()),2&e){const e=es(),t=e.index,i=e.$implicit,n=es(3);as("for","ing-picture-",t,""),Dr(1),jo("ngIf",null==i.controls.attributes.controls["picture-url"]?null:i.controls.attributes.controls["picture-url"].value),Dr(1),jo("ngIf",!(null!=i.controls.attributes.controls["picture-url"]&&i.controls.attributes.controls["picture-url"].value)&&n.ingredientsPictures.editable)}}function zD(e,t){if(1&e){const e=Xo();Vo(0,"input",52),Jo("change",(function(t){gi(e);const i=es().$implicit;return es(3).uploadIngredientPicture(t.target.files,i.controls.attributes.controls["picture-url"])})),Zo()}2&e&&as("id","ing-picture-",es().index,"")}function FD(e,t){1&e&&Qo(0,"div",27)}function HD(e,t){if(1&e&&(Vo(0,"div",28),Qo(1,"ng-miam-icon",53),Vo(2,"span",54),fs(3),Mc(4,"capitalizeFirstLetter"),Zo(),Vo(5,"span",54),fs(6),Zo(),Vo(7,"span",54),fs(8),Zo(),Zo()),2&e){const e=es().$implicit,t=es(3);var i=null,n=null,r=null;Dr(1),jo("iconName",t.icon.Grip),Dr(2),vs(Lc(4,4,null==e||null==(i=e.get("attributes"))?null:i.get("name").value)),Dr(3),vs(null==e||null==(n=e.get("attributes"))?null:n.get("quantity").value),Dr(2),vs(null==e||null==(r=e.get("attributes"))?null:r.get("unit").value)}}function BD(e,t){if(1&e){const e=Xo();Vo(0,"li",18),Vo(1,"div",31),Vo(2,"div",32),Qo(3,"ng-miam-icon",21),Zo(),Vo(4,"div",33),Qo(5,"input",34),Mc(6,"async"),Mc(7,"capitalizeFirstLetter"),Vo(8,"datalist"),Fo(9,AD,2,3,"option",35),Zo(),Vo(10,"input",36),Jo("ngModelChange",(function(i){gi(e);const n=t.index;return es(3).updateQuantityValue(i,n)})),Zo(),Qo(11,"input",37),Mc(12,"async"),Vo(13,"datalist"),Fo(14,SD,1,1,"option",35),Zo(),Fo(15,PD,2,1,"div",38),Zo(),Zo(),Vo(16,"div",39),Fo(17,RD,3,3,"label",40),Fo(18,zD,1,1,"input",41),Vo(19,"ng-miam-icon",24),Jo("click",(function(){gi(e);const i=t.index;return es(3).delete(i)})),Zo(),Fo(20,FD,1,0,"div",25),Fo(21,HD,9,6,"div",26),Zo(),Zo()}if(2&e){const e=t.$implicit,i=t.index,n=es(3);Dr(1),jo("formGroupName",i),Dr(2),jo("iconName",n.icon.Grip),Dr(2),jo("ngClass",Lc(6,19,n.isIngredientReviewed(e.controls.attributes.controls.name.value))?"alert-success":"alert-danger")("ngModel",Lc(7,21,e.controls.attributes.controls.name.value))("formControl",e.controls.attributes.controls.name),Ro("list","miam-list-input-dropdown-ingredients-id"+i),Dr(3),Ro("id","miam-list-input-dropdown-ingredients-id"+i),Dr(1),jo("ngForOf",n.getFilteredNameFromIndex(i)),Dr(1),jo("ngModel",e.controls.attributes.controls.quantity.value)("formControl",e.controls.attributes.controls.quantity),Dr(1),jo("ngClass",Lc(12,23,n.isQuantityReviewed(e.controls.attributes.controls.unit.value))?"alert-success":"alert-danger")("formControl",e.controls.attributes.controls.unit),Ro("list","miam-list-input-dropdown-units-id"+i),Dr(2),Ro("id","miam-list-input-dropdown-units-id"+i),Dr(1),jo("ngForOf",n.getFilteredUnitsFromIndex(i)),Dr(1),jo("ngIf",n.getImportances().length>0),Dr(2),jo("ngIf",n.ingredientsPictures.visible),Dr(1),jo("ngIf",n.ingredientsPictures.visible&&n.ingredientsPictures.editable&&!n.bigImageWarning),Dr(1),jo("iconName",n.icon.Trash)}}function jD(e,t){if(1&e&&Fo(0,BD,22,25,"li",17),2&e){const e=es(2);jo("ngForOf",e.list.controls)("ngForTrackBy",e.trackByIndex)}}function ND(e,t){if(1&e){const e=Xo();Vo(0,"ul",14),Jo("cdkDropListDropped",(function(t){return gi(e),es().drop(t)})),Fo(1,kD,2,2,"ng-container",15),Fo(2,jD,1,2,"ng-template",null,16,rl),Zo()}if(2&e){const e=Ho(3),t=es();Dr(1),jo("ngIf",!t.ingredientMode)("ngIfElse",e)}}function VD(e,t){1&e&&(Vo(0,"span"),fs(1,"ingredients!"),Zo())}function ZD(e,t){1&e&&(Vo(0,"span"),fs(1,"steps!"),Zo())}function QD(e,t){if(1&e&&(Vo(0,"div",55),Qo(1,"ng-miam-icon",56),Vo(2,"span",57),Vo(3,"span"),fs(4,"Oops... it's empty, start adding "),Zo(),Fo(5,VD,2,0,"span",58),Fo(6,ZD,2,0,"span",58),Zo(),Zo()),2&e){const e=es();Dr(1),jo("width",152)("height",157)("iconName",e.icon.Empty),Dr(4),jo("ngIf",e.ingredientMode),Dr(1),jo("ngIf",!e.ingredientMode)}}function WD(e,t){if(1&e){const e=Xo();Vo(0,"textarea",59),Jo("keydown.enter",(function(){return gi(e),es().mousseDownOnButton=!0})),fs(1," "),Zo()}if(2&e){const e=es();jo("formControl",e.fillListInput),Ro("placeholder",e.placeholder)}}function UD(e,t){if(1&e){const e=Xo();Vo(0,"textarea",60),Jo("keydown.enter",(function(){return gi(e),es().mousseDownOnButton=!0})),fs(1," "),Zo()}2&e&&jo("formControl",es().fillListInput)}function YD(e,t){if(1&e){const e=Xo();Vo(0,"textarea",61),Jo("keydown.enter",(function(){return gi(e),es().mousseDownOnButton=!0})),fs(1," "),Zo()}2&e&&jo("formControl",es().fillListInput)}function XD(e,t){if(1&e&&(Vo(0,"div",62),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.instructions)}}function GD(e,t){1&e&&(Vo(0,"div",62),Vo(1,"span"),fs(2,"You can enter an ingredient or copy and paste a list of ingredients."),Zo(),Qo(3,"br"),Vo(4,"span"),fs(5,"One line corresponds to one ingredient."),Zo(),Zo())}function qD(e,t){1&e&&(Vo(0,"div",62),Vo(1,"span"),fs(2,"You can enter a step or copy and paste a list of steps."),Zo(),Qo(3,"br"),Vo(4,"span"),fs(5,"One line corresponds to one step."),Zo(),Zo())}function JD(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-modal",63),Jo("close",(function(){return gi(e),es().closeBigImageErrorModal()}))("confirm",(function(){return gi(e),es().closeBigImageErrorModal()})),Vo(1,"span",64),fs(2,"tradof#Votre image est trop lourde (la taille doit \xeatre inf\xe9rieure \xe0 500 Ko). Merci d\u2019en ajouter une plus l\xe9g\xe8re.#"),Zo(),Zo()}2&e&&jo("isAngularComponent",!0)("noHeaderMode",!1)("expanded",!0)}let KD=(()=>{class e{constructor(e,t,i){this.ingredientService=e,this.fb=t,this.cdr=i,this.placeholder="",this.ingredientMode=!1,this.isPersonal=!1,this.list=new Ey([]),this.ingredientsPictures={visible:!1,editable:!1},this.icon=Iv,this.bigImageWarning=!1,this.fillListInput=new Ay(""),this.deleteId=new Bc,this.orderHasChanged=new Bc,this.previousQuantities=[],this.maxSelectionNumber=5}delete(e){var t;(null===(t=this.list.controls[e].controls.id)||void 0===t?void 0:t.value)&&this.deleteId.emit(this.list.controls[e].controls.id.value),this.list.removeAt(e),this.list.markAsDirty(),this.cdr.detectChanges()}submit(){var e;const t=null===(e=this.fillListInput.value)||void 0===e?void 0:e.trimEnd().split("\n");t&&t.length>0&&(this.ingredientMode?this.ingredientService.formatIngredients(t).pipe(cg(1)).subscribe(e=>{e.forEach(e=>{e.attributes.quantity=parseFloat(e.attributes.quantity).toString(),this.list.push(this.fb.group({id:new Ay("-1"!==e.id?e.id:null),attributes:this.fb.group({quantity:new Ay(e.attributes.quantity,j_.required),unit:new Ay(e.attributes.unit,j_.required),name:new Ay(e.attributes.name,j_.required),importance:new Ay(e.attributes.importance,j_.nullValidator)})})),this.previousQuantities.push(e.attributes.quantity),this.list.markAsDirty()})}):t.forEach(e=>{e.trim()&&this.list.push(this.fb.group({attributes:this.fb.group({description:new Ay(e)})}))}),this.list.markAsDirty()),this.fillListInput.reset(),this.mousseDownOnButton=!1}checkRow(e){this.list.controls[e].get("attributes").get("description").value&&this.list.controls[e].get("attributes").get("description").value.trim()||(this.delete(e),this.cdr.detectChanges())}updateQuantityValue(e,t){Number.isNaN(+e)?(this.list.controls[t].controls.attributes.controls.quantity.value=this.previousQuantities[t],this.cdr.detectChanges()):this.previousQuantities[t]=e}drag(){this.hideErrors=!0,this.cdr.detectChanges()}drop(e){xE(this.list.controls,e.previousIndex,e.currentIndex),this.ingredientMode&&(this.previousQuantities=[],this.list.controls.forEach(e=>{this.previousQuantities.push(e.controls.attributes.controls.quantity.value)})),this.list.markAsDirty(),this.hideErrors=!1,this.orderHasChanged.emit()}isIngredientReviewed(e){return this.ingredientService.isReviewedName(e.toLowerCase())}isQuantityReviewed(e){return this.ingredientService.isReviewedUnit(e.toLowerCase())}trackByIndex(e,t){return t}uploadIngredientPicture(e,t){if(e[0]&&t)if(this.imageSizeCheck(e,262144)){const i=new FileReader;i.readAsDataURL(e[0]),i.onload=()=>{t.patchValue(i.result),this.list.markAsDirty(),this.cdr.detectChanges()}}else this.bigImageWarning=!0,this.cdr.detectChanges()}imageSizeCheck(e,t){return!e[0]||e[0].size<t}closeBigImageErrorModal(){this.bigImageWarning=!1,this.cdr.detectChanges()}getFilteredNameFromIndex(e){const t=this.list.controls[e].value.attributes.name.toLowerCase(),i=this.ingredientService.getReviewedNames();return this.filterPossibleSelectionFromInput(t,i)}getFilteredUnitsFromIndex(e){const t=this.list.controls[e].value.attributes.unit.toLowerCase(),i=this.ingredientService.getReviewedUnits();return this.filterPossibleSelectionFromInput(t,i)}filterPossibleSelectionFromInput(e,t){const i=[],n=e.toLowerCase();for(const r of t){const e=r.toLowerCase();if(e.includes(n)&&e!==n&&i.push(r),i.length>=this.maxSelectionNumber)break}return i}getImportances(){return["primary","secondary","tertiary"]}updateImportance(e,t){this.list.controls[t].controls.attributes.controls.importance.value=e,this.cdr.detectChanges(),this.list.markAsDirty()}}return e.\u0275fac=function(t){return new(t||e)(Bo(Xg),Bo(ub),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-input"]],inputs:{placeholder:"placeholder",instructions:"instructions",ingredientMode:"ingredientMode",isPersonal:"isPersonal",list:"list",ingredientsPictures:"ingredientsPictures"},outputs:{deleteId:"deleteId",orderHasChanged:"orderHasChanged"},decls:20,vars:12,consts:[[1,"miam-list-input"],[1,"miam-list-input__list",3,"formGroup"],["class","miam-list-input__list__label",4,"ngIf"],["class","miam-list-input__container m-default-card","cdkDropList","",3,"cdkDropListDropped",4,"ngIf","ngIfElse"],["hintPlaceholder",""],[1,"miam-list-input__actions"],["matInput","","class","m-input","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4",3,"formControl","keydown.enter",4,"ngIf"],["matInput","","class","m-input","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4","placeholder","Example:\\n500g flour\\n250g butter\\nolive oil\\n4 slices of ham",3,"formControl","keydown.enter",4,"ngIf"],["matInput","","class","m-input","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4","placeholder","Example:\\nRoughly chop celery and onion.\\nCut cauliflower into small florets.",3,"formControl","keydown.enter",4,"ngIf"],[1,"m-button-primary",3,"mousedown","mouseup"],[1,"miam-list-input__instructions__direction"],["class","miam-list-input__actions__instructions",4,"ngIf"],["title","tradof#Image trop volumineuse#","confirmButtonText","Fermer",3,"isAngularComponent","noHeaderMode","expanded","close","confirm",4,"ngIf"],[1,"miam-list-input__list__label"],["cdkDropList","",1,"miam-list-input__container","m-default-card",3,"cdkDropListDropped"],[4,"ngIf","ngIfElse"],["ingredientRow",""],["cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],["cdkDrag",""],[3,"formGroup"],[1,"miam-list-input__container__row","m-default-card"],["primaryColor","var(--m-color-grey05)","cdkDragHandle","",1,"miam-list-input__row__grip",3,"iconName"],["cdkTextareaAutosize","true","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","50","formControlName","description",1,"m-input",3,"blur"],["autosize","cdkTextareaAutosize"],["primaryColor","var(--m-color-grey05)",1,"miam-list-input__row__trash",3,"iconName","click"],["class","miam-list-input__row__placeholder",4,"cdkDragPlaceholder"],["class","miam-list-input__row__preview m-default-card",4,"cdkDragPreview"],[1,"miam-list-input__row__placeholder"],[1,"miam-list-input__row__preview","m-default-card"],["primaryColor","var(--m-color-grey05)","cdkDragHandle","",3,"iconName"],[1,"miam-list-input__preview__text","m-body-typo"],[1,"miam-list-input__container__row","m-default-card",3,"formGroupName"],[1,"miam-list-input__row__left"],[1,"miam-list-input__row__right"],[1,"m-input",3,"ngClass","ngModel","formControl"],[3,"value",4,"ngFor","ngForOf"],["maxSize","4","autoWidthInput","",1,"m-input",3,"ngModel","formControl","ngModelChange"],["maxSize","8","autoWidthInput","",1,"m-input",3,"ngClass","formControl"],["class","miam-list-input__importance",4,"ngIf"],[1,"miam-list-input__row__controls"],[3,"for",4,"ngIf"],["type","file","accept","image/jpeg, image/png, image/webp",3,"id","change",4,"ngIf"],[3,"value"],[1,"miam-list-input__importance"],["class","miam-list-input__importance__radio",4,"ngFor","ngForOf"],[1,"miam-list-input__importance__radio"],["type","radio",3,"name","id","value","formControl","click"],[3,"for"],["class","miam-list-input__row__picture",3,"ngClass","src",4,"ngIf"],["class","miam-list-input__row__trash","primaryColor","var(--m-color-grey05)",3,"iconName",4,"ngIf"],[1,"miam-list-input__row__picture",3,"ngClass","src"],["primaryColor","var(--m-color-grey05)",1,"miam-list-input__row__trash",3,"iconName"],["type","file","accept","image/jpeg, image/png, image/webp",3,"id","change"],["primaryColor","var(--m-color-grey-text-dark)","cdkDragHandle","",3,"iconName"],[1,"m-body-typo"],[1,"miam-list-input__placeholder","miam-list-input__container","m-default-card"],["primaryColor","var(--m-color-grey-text-dark)",3,"width","height","iconName"],[1,"miam-list-input__placeholder__hint","m-body-typo"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4",1,"m-input",3,"formControl","keydown.enter"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4","placeholder","Example:\\n500g flour\\n250g butter\\nolive oil\\n4 slices of ham",1,"m-input",3,"formControl","keydown.enter"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","4","cdkAutosizeMaxRows","4","placeholder","Example:\\nRoughly chop celery and onion.\\nCut cauliflower into small florets.",1,"m-input",3,"formControl","keydown.enter"],[1,"miam-list-input__actions__instructions"],["title","tradof#Image trop volumineuse#","confirmButtonText","Fermer",3,"isAngularComponent","noHeaderMode","expanded","close","confirm"],[1,"miam-list-input__picture__warning"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Vo(1,"div",1),Fo(2,yD,2,0,"div",2),Fo(3,bD,2,0,"div",2),Fo(4,ND,4,2,"ul",3),Zo(),Fo(5,QD,7,5,"ng-template",null,4,rl),Vo(7,"div",5),Fo(8,WD,2,2,"textarea",6),Fo(9,UD,2,1,"textarea",7),Fo(10,YD,2,1,"textarea",8),Vo(11,"button",9),Jo("mousedown",(function(){return t.mousseDownOnButton=!0}))("mouseup",(function(){return t.submit()})),Vo(12,"span"),fs(13,"Add "),Zo(),Vo(14,"span",10),fs(15,">>"),Zo(),Zo(),Fo(16,XD,2,1,"div",11),Fo(17,GD,6,0,"div",11),Fo(18,qD,6,0,"div",11),Zo(),Zo(),Fo(19,JD,3,3,"ng-miam-modal",12)),2&e){const e=Ho(6);Dr(1),jo("formGroup",t.list),Dr(1),jo("ngIf",t.ingredientMode),Dr(1),jo("ngIf",!t.ingredientMode),Dr(1),jo("ngIf",(null==t.list.controls?null:t.list.controls.length)>0)("ngIfElse",e),Dr(4),jo("ngIf",t.placeholder&&t.placeholder.length>0),Dr(1),jo("ngIf",!t.placeholder||t.placeholder.length<1&&t.ingredientMode),Dr(1),jo("ngIf",!t.placeholder||t.placeholder.length<1&&!t.ingredientMode),Dr(6),jo("ngIf",t.instructions),Dr(1),jo("ngIf",!t.instructions&&t.ingredientMode),Dr(1),jo("ngIf",!t.instructions&&!t.ingredientMode),Dr(1),jo("ngIf",t.bigImageWarning)}},directives:[L_,Zy,Zd,jE,Nd,YE,VS,VE,qE,E_,M_,qy,QE,UE,Wy,Hd,Ny,KE,iy,oy,q_,vD],pipes:[au,_D],styles:[".miam-list-input{padding:8px}@media (min-width:1024px){.miam-list-input{width:calc(100% - 16px)}}.miam-list-input .miam-list-input__list{position:relative;margin-top:50px}@media (min-width:1024px){.miam-list-input .miam-list-input__list{width:55%}}.miam-list-input .miam-list-input__list .miam-list-input__list__label{position:absolute;left:0;top:-33px;width:200px;padding:8px 24px;border-radius:8px 8px 0 0;background-color:var(--m-color-secondary-light);color:var(--m-color-secondary);font-weight:700;z-index:0}.miam-list-input .miam-list-input__list .miam-list-input__container{height:400px;z-index:1;position:inherit;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;margin-bottom:32px}@media (max-width:1023px){.miam-list-input .miam-list-input__list .miam-list-input__container{width:unset;height:55vh;margin-bottom:16px}}.miam-list-input .miam-list-input__list .miam-list-input__container::-webkit-scrollbar-button{height:20px}.miam-list-input .miam-list-input__list .miam-list-input__container::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-list-input .miam-list-input__list .miam-list-input__container::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-list-input .miam-list-input__list .miam-list-input__container::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-list-input .miam-list-input__list ul{display:flex;justify-content:flex-start;row-gap:8px}.miam-list-input .miam-list-input__list ul li{list-style:none;display:flex;align-items:center;-moz-column-gap:16px;column-gap:16px}@media (max-width:1023px){.miam-list-input .miam-list-input__list ul li{-moz-column-gap:0;column-gap:0}}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row{display:flex;flex-direction:row;align-items:center;gap:16px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex:1}@media (max-width:1023px){.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row{margin-right:4px}}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row textarea{max-width:unset;padding:inherit}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .m-input{min-width:unset;max-width:unset;margin:unset}@media (max-width:359px){.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .m-input{max-width:60vw}}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__left{display:flex;flex-direction:row;align-items:center}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__left .miam-list-input__row__grip{cursor:move}@media (max-width:1023px){.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__left .miam-list-input__row__grip{margin-left:4px}}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__left .m-input{width:200px;margin-left:8px;margin-right:8px}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right{display:flex;flex-direction:row;align-items:center;flex:1}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .m-input{margin-right:8px;width:80px}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .m-input:first-child{flex:1}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .m-input:last-child{text-align:right;margin-right:0}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .miam-list-input__importance{display:flex;flex-direction:column;gap:4px}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .miam-list-input__importance .miam-list-input__importance__radio{display:flex;flex-direction:row;line-height:24px}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .miam-list-input__importance .miam-list-input__importance__radio label{font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);color:var(--m-color-slate)}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .miam-list-input__importance .miam-list-input__importance__radio .ng-invalid+label{color:var(--m-color-danger)}@media (max-width:1023px){.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right{flex-wrap:wrap}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .m-input{flex:1;margin-bottom:8px;margin-right:4px}}@media (max-width:359px){.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right{max-width:60vw}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .m-input{max-width:58vw}}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .alert-success{background:var(--m-color-white);border:1px solid var(--m-color-success);box-shadow:0 0 4px var(--m-color-success);border-radius:8px}.miam-list-input .miam-list-input__list ul li .miam-list-input__container__row .miam-list-input__row__right .alert-danger{background:var(--m-color-white);border:1px solid var(--m-color-danger);box-shadow:0 0 4px var(--m-color-danger);border-radius:8px}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls{display:flex;justify-content:space-between;align-items:center;gap:8px}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls label{display:flex;width:50px;justify-content:center}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls label .miam-list-input__row__picture{width:50px;-webkit-tap-highlight-color:transparent}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls label .miam-list-input__row__picture.clickable{cursor:pointer}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls input{display:none}.miam-list-input .miam-list-input__list ul li .miam-list-input__row__controls .miam-list-input__row__trash{cursor:pointer;-webkit-tap-highlight-color:transparent}.miam-list-input .miam-list-input__list ul li textarea{flex:1;margin:0;max-width:none;outline:none;resize:none;border-radius:var(--m-border-radius);padding:5px}.miam-list-input .miam-list-input__list ul li textarea.warnning{background-color:var(--m-color-secondary-light);color:var(--m-color-secondary)}.miam-list-input .miam-list-input__list ul li textarea.error{background-color:var(--m-color-danger);color:var(--m-color-danger-text)}.miam-list-input .miam-list-input__list ul li textarea[cdktextareaautosize]{overflow:hidden}.miam-list-input .hint{flex:1;font-weight:600;border-radius:var(--m-border-radius);font-size:12px;padding-bottom:10px}.miam-list-input .hint.warnning{color:var(--m-color-secondary)}.miam-list-input .hint.error{color:var(--m-color-danger)}.miam-list-input .miam-list-input__placeholder{justify-content:center;align-items:center}.miam-list-input .miam-list-input__placeholder .miam-list-input__placeholder__hint{margin-top:40px;text-align:center;color:var(--m-color-secondary);opacity:.5}.miam-list-input .miam-list-input__actions{display:flex;justify-content:space-between;-moz-column-gap:32px;column-gap:32px}@media (min-width:1024px){.miam-list-input .miam-list-input__actions{width:calc(45% - 32px)}}@media (max-width:1023px){.miam-list-input .miam-list-input__actions{flex-direction:column}}.miam-list-input .miam-list-input__actions textarea{flex:1;resize:none;outline:none;margin-top:0}@media (max-width:1023px){.miam-list-input .miam-list-input__actions textarea{width:90vw}}.miam-list-input .miam-list-input__actions .miam-list-input__actions__instructions{width:400px;max-width:calc(98vw - 776px);padding:8px;position:absolute;top:315px;white-space:pre-line;color:var(--m-color-info-text);background-color:var(--m-color-info);border-radius:8px}@media (max-width:1023px){.miam-list-input .miam-list-input__actions .miam-list-input__actions__instructions{max-width:unset;width:unset;position:unset;margin-top:16px}}.miam-list-input .miam-list-input__actions .miam-list-input__instructions__direction{margin-left:4px}@media (max-width:1023px){.miam-list-input .miam-list-input__actions .miam-list-input__instructions__direction{display:none}}.miam-list-input .miam-list-input__actions button{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.miam-list-input__row__preview{display:flex;align-items:center;width:530px}@media (max-width:1023px){.miam-list-input__row__preview{width:80vw;flex-wrap:wrap}}.miam-list-input__row__preview .miam-list-input__preview__text{padding:5px}.miam-list-input__row__preview span:first-of-type{flex:1;flex-shrink:1;margin-left:8px}.miam-list-input__row__preview span:nth-of-type(2n){margin-right:8px}.miam-list-input__row__placeholder{background:var(--m-color-grey07);min-height:60px;border-radius:8px;margin-right:24px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cdk-drag-animating,.miam-list-input__row__placeholder,ul.cdk-drop-list-dragging li:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.miam-list-input__picture__warning{padding:10px;text-align:center;font-size:var(--m-font-size-medium)}"],encapsulation:2}),e})();var $D=function(e){return e[e.Picture=0]="Picture",e[e.Text=1]="Text",e[e.IconWithInfo=2]="IconWithInfo",e}({});function eI(e,t){if(1&e&&(Wo(0),Vo(1,"div",3),Qo(2,"ng-miam-icon",4),Zo(),Uo()),2&e){const e=es();Dr(2),jo("width",80)("height",64)("iconName",e.icon.Picture)}}function tI(e,t){1&e&&(Wo(0),Qo(1,"div",5),Qo(2,"div",6),Uo())}function iI(e,t){1&e&&(Wo(0),Vo(1,"div",7),Qo(2,"div",8),Qo(3,"div",9),Zo(),Uo())}function nI(e,t){1&e&&(Wo(0),Qo(1,"div",6),Uo())}let rI=(()=>{class e{constructor(){this.icon=Iv,this.skeleton=$D}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-skeleton"]],inputs:{type:"type"},decls:5,vars:4,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"card-image","pulsate"],["primaryColor","var(--m-color-grey-text-dark)",3,"width","height","iconName"],[1,"skeleton-title","text","pulsate"],[1,"skeleton-subtitle","text","pulsate"],[1,"centered-row"],[1,"dot","text","pulsate"],[1,"skeleton-small","text","pulsate"]],template:function(e,t){1&e&&(Wo(0,0),Fo(1,eI,3,3,"ng-container",1),Fo(2,tI,3,0,"ng-container",1),Fo(3,iI,4,0,"ng-container",1),Fo(4,nI,2,0,"ng-container",2),Uo()),2&e&&(jo("ngSwitch",t.type),Dr(1),jo("ngSwitchCase",t.skeleton.Picture),Dr(1),jo("ngSwitchCase",t.skeleton.Text),Dr(1),jo("ngSwitchCase",t.skeleton.IconWithInfo))},directives:[Yd,Xd,Gd,VS],styles:[".card-image[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:auto;width:100%;height:21rem;background:var(--m-color-grey);background-image:-webkit-linear-gradient(left,var(--m-color-grey),#edeef1 20%,var(--m-color-grey) 40%,var(--m-color-grey));background-repeat:no-repeat;background-size:800px 21rem}.pulsate[_ngcontent-%COMP%]{-webkit-animation-duration:1s;-webkit-animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;-webkit-animation-name:placeholderSkeleton;-webkit-animation-timing-function:linear}.skeleton-title[_ngcontent-%COMP%]{height:16px;width:150px;background-size:150px 16px}.text[_ngcontent-%COMP%]{background:#f6f7f8;background-image:-webkit-linear-gradient(left,#f6f7f8,#edeef1 20%,#f6f7f8 40%,#f6f7f8);background-repeat:no-repeat;border-radius:25px;margin:20px 10px}.skeleton-subtitle[_ngcontent-%COMP%]{height:12px;width:100px;background-size:100px 12px}.centered-row[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center}.dot[_ngcontent-%COMP%]{height:16px;width:16px;border-radius:50%;margin:5px}.skeleton-small[_ngcontent-%COMP%]{height:10px;width:50px;background-size:50px 10px;margin:0}@-webkit-keyframes placeholderSkeleton{0%{background-position:-468px 0}to{background-position:468px 0}}@-webkit-keyframes skeletonAnimate{0%{background-position:0 0}to{background-position:100% 0}}"]}),e})();const aI=["miamLeftOfSliderTrack"],oI=["miamSliderColored"],sI=["miamSliderHandle"];function cI(e,t){if(1&e&&Qo(0,"ng-miam-icon",10),2&e){const e=t.$implicit;jo("width",64)("height",32)("iconName",e)}}function lI(e,t){1&e&&Qo(0,"div",17)}function dI(e,t){1&e&&Qo(0,"div",18)}function uI(e,t){if(1&e){const e=Xo();Vo(0,"div",13,14),Jo("cdkDragMoved",(function(){return gi(e),es(2).colorTrack()})),Fo(2,lI,1,0,"div",15),Fo(3,dI,1,0,"div",16),Zo()}}function mI(e,t){if(1&e){const e=Xo();Vo(0,"span",11),Jo("cdkDropListDropped",(function(){gi(e);const i=t.index;return es().selectStepAt(i)}))("click",(function(){gi(e);const i=t.index;return es().selectStepAt(i)})),Fo(1,uI,4,0,"div",12),Zo()}if(2&e){const e=t.index,i=es();Dr(1),jo("ngIf",e==i.selectedIndex)}}const pI=function(e){return{selected:e}};function hI(e,t){if(1&e&&(Vo(0,"span",19),fs(1),Zo()),2&e){const e=t.$implicit,i=t.index,n=es();jo("ngClass",kc(2,pI,i===n.selectedIndex)),Dr(1),vs(e)}}let gI=(()=>{class e{constructor(e){this.cdr=e,this.selectedIndex=0,this.width=0,this.showPogress=!0}ngOnChanges(){var e;if(null===(e=this.formControl)||void 0===e?void 0:e.value){const e=this.formControl.value-1;this.selectedIndex=e>=0&&e<3?e:0,this.cdr.detectChanges(),this.colorTrack()}}colorTrack(){this.coloredTrack.nativeElement.style.width=`${this.getDistanceBetweenHandleAndTrackLeft()}px`,this.cdr.detectChanges()}getDistanceBetweenHandleAndTrackLeft(){const e=document.getElementsByClassName("miam-slider-input__track__preview")[0],t=this.trackLeft.nativeElement.getBoundingClientRect(),i=e?e.getBoundingClientRect():this.sliderHandle.nativeElement.getBoundingClientRect();return i.left+i.width/2-t.left}selectStepAt(e){e!==this.selectedIndex&&(this.selectedIndex=e,this.formControl.patchValue(e+1),this.formControl.markAsDirty(),this.cdr.detectChanges(),this.colorTrack())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-slider"]],viewQuery:function(e,t){var i;1&e&&(Kc(aI,!0),Kc(oI,!0),Kc(sI,!0)),2&e&&(Jc(i=el())&&(t.trackLeft=i.first),Jc(i=el())&&(t.coloredTrack=i.first),Jc(i=el())&&(t.sliderHandle=i.first))},inputs:{steps:"steps",icons:"icons",formControl:"formControl"},features:[Qt],decls:11,vars:3,consts:[[1,"miam-slider-input"],[1,"miam-slider-input__icon__row"],["primaryColor","var(--m-color-secondary)",3,"width","height","iconName",4,"ngFor","ngForOf"],["miamLeftOfSliderTrack",""],[1,"miam-slider-input__track__colored"],["miamSliderColored",""],["cdkDropListGroup","",1,"miam-slider-input__track"],["class","miam-slider-input__track__drop","cdkDropList","",3,"cdkDropListDropped","click",4,"ngFor","ngForOf"],[1,"miam-slider-input__label__row"],[3,"ngClass",4,"ngFor","ngForOf"],["primaryColor","var(--m-color-secondary)",3,"width","height","iconName"],["cdkDropList","",1,"miam-slider-input__track__drop",3,"cdkDropListDropped","click"],["class","miam-slider-input__track__thumb","cdkDragLockAxis","x","cdkDragBoundary",".miam-slider-input__track","cdkDrag","",3,"cdkDragMoved",4,"ngIf"],["cdkDragLockAxis","x","cdkDragBoundary",".miam-slider-input__track","cdkDrag","",1,"miam-slider-input__track__thumb",3,"cdkDragMoved"],["miamSliderHandle",""],["class","miam-slider-input__track__placeholder",4,"cdkDragPlaceholder"],["class","miam-slider-input__track__preview ",4,"cdkDragPreview"],[1,"miam-slider-input__track__placeholder"],[1,"miam-slider-input__track__preview"],[3,"ngClass"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Fo(2,cI,1,3,"ng-miam-icon",2),Zo(),Qo(3,"div",null,3),Qo(5,"div",4,5),Vo(7,"div",6),Fo(8,mI,2,1,"span",7),Zo(),Vo(9,"div",8),Fo(10,hI,2,4,"span",9),Zo(),Zo()),2&e&&(Dr(2),jo("ngForOf",t.icons),Dr(6),jo("ngForOf",t.steps),Dr(2),jo("ngForOf",t.steps))},directives:[Nd,zE,VS,jE,Zd,YE,QE,UE,Hd],styles:['.miam-slider-input .miam-slider-input__icon__row{display:inline-flex;flex-direction:row;justify-content:space-between;margin-top:16px;margin-bottom:24px;z-index:0;width:100%}.miam-slider-input .miam-slider-input__track__colored{background:var(--m-color-secondary);position:absolute;z-index:1}.miam-slider-input .miam-slider-input__track,.miam-slider-input .miam-slider-input__track__colored{align-items:center;border-radius:8px;box-shadow:inset 0 2px 2px -1px rgba(14,14,44,.15);cursor:pointer;display:flex;height:8px}.miam-slider-input .miam-slider-input__track{width:100%;background:#ecf1f4;position:relative;-webkit-tap-highlight-color:transparent}.miam-slider-input .miam-slider-input__track .miam-slider-input__track__drop{justify-content:center;display:flex;align-items:center;height:105px;flex:1;z-index:1}.miam-slider-input .miam-slider-input__track .miam-slider-input__track__drop .miam-slider-input__track__thumb{height:16px;width:16px;position:relative;background-color:var(--m-color-secondary);border-radius:var(--m-border-radius-circle);cursor:move}.miam-slider-input .miam-slider-input__track .miam-slider-input__track__drop .miam-slider-input__track__thumb:before{content:"";position:absolute;top:-4px;left:-4px;width:24px;height:24px;background-color:transparent;border-radius:var(--m-border-radius-circle);border:2px solid var(--m-color-secondary)}.miam-slider-input .miam-slider-input__track span:first-of-type{justify-content:flex-start}.miam-slider-input .miam-slider-input__track span:first-of-type .miam-slider-input__track__thumb{margin-left:24px}.miam-slider-input .miam-slider-input__track span:last-of-type{justify-content:flex-end}.miam-slider-input .miam-slider-input__track span:last-of-type .miam-slider-input__track__thumb{margin-right:24px}.miam-slider-input .miam-slider-input__track .miam-slider-input__track__progress{background-color:var(--m-color-secondary);border-radius:8px 0 0 8px;content:"";height:10px;left:-1px;position:absolute;top:-1px}.miam-slider-input .miam-slider-input__label__row{font-weight:500;font-size:14px;line-height:16px;font-weight:700;color:#acb0b9;display:inline-flex;flex-direction:row;justify-content:space-between;width:100%;margin-top:16px;z-index:0;text-transform:capitalize;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.miam-slider-input .miam-slider-input__label__row span{width:64px;text-align:center}.miam-slider-input .miam-slider-input__label__row span.selected{color:#4a4a68;font-weight:700}.miam-slider-input__track__preview{height:16px;width:16px;background-color:var(--m-color-secondary);border-radius:var(--m-border-radius-circle);position:relative;cursor:move}.miam-slider-input__track__preview:before{content:"";position:absolute;top:-4px;left:-4px;width:24px;height:24px;background-color:transparent;border-radius:var(--m-border-radius-circle);border:2px solid var(--m-color-secondary)}.miam-slider-input__track__placeholder{opacity:0}'],encapsulation:2,changeDetection:0}),e})();const fI=["title"];function vI(e,t){1&e&&Yo(0)}let _I=(()=>{class e{constructor(e){this.cdr=e,this.internFormGroup=new Sy({hours:new Ay("00"),minutes:new Ay("00")})}ngOnChanges(){if(this.formControl&&this.formControl.value){const e=Object(Tg.normalize)(Object(Tg.parse)(this.formControl.value));e.days&&(e.hours+=24*e.days),this.internFormGroup.patchValue({hours:this.formatTwoDigits(Math.min(e.hours,99)),minutes:this.formatTwoDigits(e.minutes)}),this.cdr.detectChanges()}}onBlur(){const e=this.autoCorrect(+this.internFormGroup.value.minutes),t=this.autoCorrect(+this.internFormGroup.value.hours);this.internFormGroup.patchValue({hours:this.formatTwoDigits(Math.min(Math.floor(+e/60)+ +t,99)),minutes:this.formatTwoDigits(+e%60)}),this.updateForm(),this.cdr.detectChanges()}autoCorrect(e){return isNaN(e)||e<0?0:e}formatTwoDigits(e){return e.toLocaleString("fr-FR",{minimumIntegerDigits:2,useGrouping:!1})}updateForm(){const e=this.internFormGroup.getRawValue(),t={hours:+e.hours,minutes:+e.minutes},i=Object(Tg.toString)(Object(Tg.normalize)(t));this.formControl.patchValue(i)}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-time-picker"]],contentQueries:function(e,t,i){var n;1&e&&$c(i,fI,!0),2&e&&Jc(n=el())&&(t.titleTemplateRef=n.first)},inputs:{icon:"icon",formControl:"formControl"},features:[Qt],decls:11,vars:5,consts:[[1,"miam-time-picker","m-default-card","m-small-typo"],[1,"miam-time-picker__label"],[4,"ngTemplateOutlet"],[1,"miam-time-picker__container",3,"formGroup"],["primaryColor","var( --m-color-light-slate)",3,"iconName"],["formControlName","hours","onClick","this.select();",1,"miam-time-picker__container__input",3,"maxLength","blur"],[1,"miam-time-picker__container__label"],["formControlName","minutes","onClick","this.select();",1,"miam-time-picker__container__input",3,"maxLength","blur"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Fo(2,vI,1,0,"ng-container",2),Zo(),Vo(3,"form",3),Qo(4,"ng-miam-icon",4),Vo(5,"input",5),Jo("blur",(function(){return t.onBlur()})),Zo(),Vo(6,"div",6),fs(7,"h"),Zo(),Vo(8,"input",7),Jo("blur",(function(){return t.onBlur()})),Zo(),Vo(9,"div",6),fs(10,"min"),Zo(),Zo(),Zo()),2&e&&(Dr(2),jo("ngTemplateOutlet",t.titleTemplateRef),Dr(1),jo("formGroup",t.internFormGroup),Dr(1),jo("iconName",t.icon),Dr(1),jo("maxLength",2),Dr(3),jo("maxLength",2))},directives:[$d,Hy,L_,Zy,VS,E_,M_,qy],styles:[".miam-time-picker{display:flex;flex-direction:column;align-items:flex-start;width:210px}.miam-time-picker .miam-time-picker__label{font-weight:700;color:var(--m-color-slate)}.miam-time-picker .miam-time-picker__container{display:flex;align-items:center;margin-top:16px}.miam-time-picker .miam-time-picker__container .miam-time-picker__container__input{border:none;outline:none;border-bottom:1px solid var(--m-color-hairlines);width:20px;height:20px;padding:0 0 4px}.miam-time-picker .miam-time-picker__container .miam-time-picker__container__label,.miam-time-picker .miam-time-picker__container ng-miam-icon{margin:0 8px}.miam-time-picker .miam-time-picker__container ng-miam-icon{margin-left:0}"],encapsulation:2,changeDetection:0}),e})();const yI=e=>{e.stopPropagation(),e.preventDefault()};let bI=(()=>{class e{transform(e,t){var i;return void 0===t||t>=(null===(i=null==e?void 0:e.split(" "))||void 0===i?void 0:i.length)?e:e.split(" ").slice(0,t).join(" ")+" ..."}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"ellipsis",type:e,pure:!0}),e})();const wI=["un peu","un petit peu"];let xI=(()=>{class e{constructor(){}transform(e,t){if(this.isUnitCountless(t))return t;const i=parseFloat(e);return i<1?(t=this.singularize(t),`${this.frac(i)} ${t||""}`):(1===i?t=this.singularize(t):i>1&&(t=this.pluralize(t)),Number.isInteger(i)?`${i} ${t||""}`:`${i.toFixed(2)} ${t||""}`)}frac(e,t=10){let i=0,n=1,r=1,a=1;for(;n<=t&&a<=t;){let o=(i+r)/(n+a);if(e==o)return n+a<=t?this.render_frac(e,i+r,n+a):a>n?this.render_frac(e,r,a):this.render_frac(e,i,n);e>o?(i+=r,n+=a):(r=i+r,a=n+a)}return n>t?this.render_frac(e,r,a):this.render_frac(e,i,n)}render_frac(e,t,i){return 0===t?`${e.toFixed(2)}`:`${t}/${i}`}pluralize(e){if(!e||e.length<=3)return e;const t=e.split(" ");return t[0]=t[0].replace(/(.*[^s])s*$/,"$1s"),t.join(" ")}singularize(e){if(!e||e.length<=3)return e;const t=e.split(" ");return t[0]=t[0].replace(/(.*[^s])s*$/,"$1"),t.join(" ")}isUnitCountless(e){return wI.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=At({name:"readableFloatNumber",type:e,pure:!0}),e})();class CI extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new CI,Gl||(Gl=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=AI||(AI=document.querySelector("base"),AI)?AI.getAttribute("href"):null;return null==t?null:(i=t,kI||(kI=document.createElement("a")),kI.setAttribute("href",i),"/"===kI.pathname.charAt(0)?kI.pathname:"/"+kI.pathname);var i}resetBaseElement(){AI=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Fd(document.cookie,e)}}let kI,AI=null;const SI=new Ze("TRANSITION_ID"),EI=[{provide:al,useFactory:function(e,t,i){return()=>{i.get(ol).donePromise.then(()=>{const i=ql();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>i.remove(e))})}},deps:[SI,Jl,fo],multi:!0}];class DI{static init(){var e;e=new DI,Hl=e}addToWindow(e){Re.getAngularTestability=(t,i=!0)=>{const n=e.findTestabilityInTree(t,i);if(null==n)throw new Error("Could not find testability for element.");return n},Re.getAllAngularTestabilities=()=>e.getAllTestabilities(),Re.getAllAngularRootElements=()=>e.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(e=>{const t=Re.getAllAngularTestabilities();let i=t.length,n=!1;const r=function(t){n=n||t,i--,0==i&&e(n)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,i){if(null==t)return null;const n=e.getTestability(t);return null!=n?n:i?ql().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const II=new Ze("EventManagerPlugins");let OI=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,i){return this._findPluginFor(t).addEventListener(e,t,i)}addGlobalEventListener(e,t,i){return this._findPluginFor(t).addGlobalEventListener(e,t,i)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const i=this._plugins;for(let n=0;n<i.length;n++){const t=i[n];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)($e(II),$e(Sl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class PI{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const n=ql().getGlobalEventTarget(this._doc,e);if(!n)throw new Error(`Unsupported event target ${n} for event ${t}`);return this.addEventListener(n,t,i)}}let TI=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),MI=(()=>{class e extends TI{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const i=this._doc.createElement("style");i.textContent=e,this._styleNodes.add(t.appendChild(i))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>ql().remove(e))}}return e.\u0275fac=function(t){return new(t||e)($e(Jl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const LI={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/"},RI=/%COMP%/g;function zI(e,t,i){for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?zI(e,r,i):(r=r.replace(RI,e),i.push(r))}return i}function FI(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let HI=(()=>{class e{constructor(e,t,i){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new BI(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ht.Emulated:{let i=this.rendererByCompId.get(t.id);return i||(i=new jI(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,i)),i.applyToHost(e),i}case ht.Native:case ht.ShadowDom:return new NI(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=zI(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)($e(OI),$e(MI),$e(sl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();class BI{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(LI[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,n){if(n){t=n+":"+t;const r=LI[n];r?e.setAttributeNS(r,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const n=LI[i];n?e.removeAttributeNS(n,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,n){n&Zs.DashCase?e.style.setProperty(t,i,n&Zs.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Zs.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,FI(i)):this.eventManager.addEventListener(e,t,FI(i))}}class jI extends BI{constructor(e,t,i,n){super(e),this.component=i;const r=zI(n+"-"+i.id,i.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(RI,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(RI,n+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class NI extends BI{constructor(e,t,i,n){super(e),this.sharedStylesHost=t,this.hostEl=i,this.component=n,this.shadowRoot=n.encapsulation===ht.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=zI(n.id,n.styles,[]);for(let a=0;a<r.length;a++){const e=document.createElement("style");e.textContent=r[a],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let VI=(()=>{class e extends PI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i){return e.addEventListener(t,i,!1),()=>this.removeEventListener(e,t,i)}removeEventListener(e,t,i){return e.removeEventListener(t,i)}}return e.\u0275fac=function(t){return new(t||e)($e(Jl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})();const ZI=["alt","control","meta","shift"],QI={"\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"},WI={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"},UI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let YI=(()=>{class e extends PI{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,n){const r=e.parseEventName(i),a=e.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ql().onAndCancel(t,r.domEventName,a))}static parseEventName(t){const i=t.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const r=e._normalizeKey(i.pop());let a="";if(ZI.forEach(e=>{const t=i.indexOf(e);t>-1&&(i.splice(t,1),a+=e+".")}),a+=r,0!=i.length||0===r.length)return null;const o={};return o.domEventName=n,o.fullKey=a,o}static getEventFullKey(e){let t="",i=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&WI.hasOwnProperty(t)&&(t=WI[t]))}return QI[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),ZI.forEach(n=>{n!=i&&(0,UI[n])(e)&&(t+=n+".")}),t+=i,t}static eventCallback(t,i,n){return r=>{e.getEventFullKey(r)===t&&n.runGuarded(()=>i(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)($e(Jl))},e.\u0275prov=he({token:e,factory:e.\u0275fac}),e})(),XI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({factory:function(){return $e(GI)},token:e,providedIn:"root"}),e})(),GI=(()=>{class e extends XI{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case or.NONE:return t;case or.HTML:return Tn(t,"HTML")?Pn(t):rr(this._doc,String(t));case or.STYLE:return Tn(t,"Style")?Pn(t):t;case or.SCRIPT:if(Tn(t,"Script"))return Pn(t);throw new Error("unsafe value used in a script context");case or.URL:return Mn(t),Tn(t,"URL")?Pn(t):Nn(String(t));case or.RESOURCE_URL:if(Tn(t,"ResourceURL"))return Pn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new Sn(e)}bypassSecurityTrustStyle(e){return new En(e)}bypassSecurityTrustScript(e){return new Dn(e)}bypassSecurityTrustUrl(e){return new In(e)}bypassSecurityTrustResourceUrl(e){return new On(e)}}return e.\u0275fac=function(t){return new(t||e)($e(Jl))},e.\u0275prov=he({factory:function(){return e=$e(Qe),new GI(e.get(Jl));var e},token:e,providedIn:"root"}),e})();const qI=jl(Ul,"browser",[{provide:ul,useValue:"browser"},{provide:dl,useValue:function(){CI.makeCurrent(),DI.init()},multi:!0},{provide:Jl,useFactory:function(){return function(e){Gt=e}(document),document},deps:[]}]),JI=[[],{provide:to,useValue:"root"},{provide:kn,useFactory:function(){return new kn},deps:[]},{provide:II,useClass:VI,multi:!0,deps:[Jl,Sl,ul]},{provide:II,useClass:YI,multi:!0,deps:[Jl]},[],{provide:HI,useClass:HI,deps:[OI,MI,sl]},{provide:Vs,useExisting:HI},{provide:TI,useExisting:MI},{provide:MI,useClass:MI,deps:[Jl]},{provide:Ll,useClass:Ll,deps:[Sl]},{provide:OI,useClass:OI,deps:[II,Sl]},[]];let KI=(()=>{class e{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(t){return{ngModule:e,providers:[{provide:sl,useValue:t.appId},{provide:SI,useExisting:sl},EI]}}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(e,12))},providers:JI,imports:[Cu,Xl]}),e})();"undefined"!=typeof window&&window;let $I=(()=>{class e{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo(XI))},e.\u0275pipe=At({name:"safe",type:e,pure:!0}),e})(),eO=(()=>{class e extends du{transform(e,t){return this.isToday(e)?"Aujourd'hui":this.isYesterday(e)?"Hier":this.isLastWeek(e)?super.transform(e,"EEEE")+" dernier":"Le "+super.transform(e,"dd MMMM yyyy")}isToday(e){const t=new Date;return this.isSameDay(t,e)}isYesterday(e){const t=dA(new Date,1);return this.isSameDay(t,e)}isSameDay(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}isLastWeek(e){const t=new Date;return function(e,t){Ok(2,arguments);var i=Pk(e).getTime(),n=Pk(t.start).getTime(),r=Pk(t.end).getTime();if(!(n<=r))throw new RangeError("Invalid interval");return i>=n&&i<=r}(new Date(e),{start:dA(aA(t),7),end:dA(Yk(t),7)})}}return e.\u0275fac=function(t){return tO(t||e)},e.\u0275pipe=At({name:"extendedDate",type:e,pure:!0}),e})();const tO=bn(eO),iO=["counterInput"];let nO=(()=>{class e{constructor(e,t){this.cdr=e,this.mediaMatcher=t,this.counter=1,this.minRange=1,this.maxRange=100,this.counterChange=new Bc,this.selected=new Bc,this.subscriptions=[],this.icon=Iv}ngOnChanges(){this.counterChanged||(this.counterChanged=new dm(this.counter),this.lastCount=this.counter,this.subscriptions.push(this.counterChanged.pipe(Qf(500)).subscribe(()=>{this.counterChanged.getValue()!=this.lastCount&&(this.counterChange.emit(this.counterChanged.getValue()),this.lastCount=this.counterChanged.getValue())})))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}increment(e){yI(e),this.counter<this.maxRange&&(this.counter++,this.counterChanged.next(this.counter),this.cdr.detectChanges())}decrement(e){yI(e),this.counter>this.minRange&&(this.counter--,this.counterChanged.next(this.counter),this.cdr.detectChanges())}prevent(e){yI(e)}updateValue(){if(this.cdr.detectChanges(),!Number.isInteger(+this.counter))return this.counter=this.counterChanged.value,void this.cdr.detectChanges();this.counter<this.minRange?this.counter=this.minRange:this.counter>this.maxRange&&(this.counter=this.maxRange),this.counterChanged.next(this.counter),this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Kv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-counter-input"]],viewQuery:function(e,t){var i;1&e&&Kc(iO,!0),2&e&&Jc(i=el())&&(t.counterInput=i.first)},inputs:{counter:"counter",minRange:"minRange",maxRange:"maxRange"},outputs:{counterChange:"counterChange",selected:"selected"},features:[Qt],decls:8,vars:9,consts:[[1,"miam-counter-input"],["primaryColor","var(--m-color-light-slate)",1,"miam-counter-input__icon",3,"width","height","iconName"],[1,"miam-counter-input__button","miam-counter-input__button__minus",3,"click"],["primaryColor","var(--m-color-secondary)",3,"width","height","iconName"],[1,"miam-counter-input__count","m-small-typo",3,"ngModel","maxLength","ngModelChange","click","focus"],["counterInput",""],[1,"miam-counter-input__button","miam-counter-input__button__plus",3,"click"],["primaryColor","var(--m-color-light-slate)",3,"iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Qo(1,"ng-miam-icon",1),Vo(2,"span",2),Jo("click",(function(e){return t.decrement(e)})),Qo(3,"ng-miam-icon",3),Zo(),Vo(4,"input",4,5),Jo("ngModelChange",(function(e){return t.counter=e}))("click",(function(e){return t.prevent(e)}))("focus",(function(){return t.selected.emit(!0)}))("ngModelChange",(function(){return t.updateValue()})),Zo(),Vo(6,"span",6),Jo("click",(function(e){return t.increment(e)})),Qo(7,"ng-miam-icon",7),Zo(),Zo()),2&e&&(Dr(1),jo("width",24)("height",24)("iconName",t.icon.Group),Dr(2),jo("width",12)("height",12)("iconName",t.icon.Minus),Dr(1),jo("ngModel",t.counter)("maxLength",3),Dr(3),jo("iconName",t.icon.Plus))},directives:[VS,E_,M_,Fy],styles:[".miam-counter-input{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;font-size:14px}.miam-counter-input .miam-counter-input__icon{width:24px;height:24px;margin-right:0}.miam-counter-input .miam-counter-input__button{margin:0 8px;height:24px;width:24px;border-radius:6px;cursor:pointer;display:flex;justify-content:center;align-items:center;-webkit-tap-highlight-color:transparent}.miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus{border:2px solid var(--m-color-secondary)}@media (min-width:1022px){.miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus:hover{background-color:var(--m-color-secondary)}.miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus:hover ng-miam-icon .icon-container svg path{fill:var(--m-color-unpure-white)}}.miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus{background-color:var(--m-color-hairlines)}@media (min-width:1022px){.miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus:hover{background-color:var(--m-color-light-slate)}.miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus:hover ng-miam-icon .icon-container svg path{fill:var(--m-color-hairlines)}}.miam-counter-input .miam-counter-input__count{padding:0;height:24px;width:40px;text-align:center;border-radius:6px;border:2px solid var(--m-color-primary);outline:none}.miam-counter-input .miam-counter-input__count:focus{border-color:none;box-shadow:none}"],encapsulation:2,changeDetection:0}),e})(),rO=(()=>{class e{constructor(e){this.analyticsService=e,this.originTrace={originPath:"",props:{}}}currentProps(){return{}}props(){return Object.assign(Object.assign({},this.originTrace.props),this.currentProps())}path(){return this.currentPath()?`${this.originTrace.originPath}/${this.currentPath()}`:this.originTrace.originPath}eventTrace(){return{originPath:this.path(),props:this.props()}}sendEvent(e){this.analyticsService.sendEventWhenReady(e,this.path(),this.props())}pageview(){this.sendEvent(this.analyticsService.EVENT_PAGEVIEW)}}return e.\u0275fac=function(t){return new(t||e)(Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],inputs:{originTrace:"originTrace"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),aO=(()=>{class e extends rO{constructor(e,t,i){super(t),this.recipeLikesService=e,this.analyticsService=t,this.cdr=i,this.primaryColor="var(--m-color-primary)",this.width=16,this.height=16,this.wasToggled=new Bc,this.icon=Iv,this.subscriptions=[]}ngOnChanges(){this.initRecipeLike()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.recipeLikesService.cleanUnobservedLikesIfNecessary.emit()}currentPath(){return""}initRecipeLike(){this.recipe&&this.subscriptions.push(this.recipeLikesService.getLike(this.recipe.id).subscribe(e=>{this.recipeLike=e,this.cdr.detectChanges()}))}toggleLike(e){yI(e),this.recipe&&(this.recipeLike.id?(this.recipeLike.toggle(),this.wasToggled.emit(this.recipeLike)):(this.recipeLike.addRelationship(this.recipe,"recipe"),this.recipeLike.isPast=!1),this.recipeLikesService.updateLike(this.recipe.id,this.recipeLike,this.eventTrace()),this.cdr.detectChanges())}}return e.\u0275fac=function(t){return new(t||e)(Bo(Gf),Bo(gg),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-like-button"]],inputs:{primaryColor:"primaryColor",width:"width",height:"height",recipe:"recipe"},outputs:{wasToggled:"wasToggled"},features:[yo,Qt],decls:3,vars:7,consts:[[1,"miam-like-button","m-button-primary","reverse",3,"click"],[3,"width","height","iconName"],[1,"full",3,"ngClass","width","height","iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Jo("click",(function(e){return t.toggleLike(e)})),Qo(1,"ng-miam-icon",1),Qo(2,"ng-miam-icon",2),Zo()),2&e&&(Dr(1),jo("width",t.width)("height",t.height)("iconName",t.icon.Heart),Dr(1),jo("ngClass",0==t.recipeLike.isPast?"active":"")("width",t.width)("height",t.height)("iconName",t.icon.HeartFull))},directives:[VS,Hd],styles:[".miam-like-button.m-button-primary.reverse{padding:8px;border-color:transparent;position:relative}.miam-like-button.m-button-primary.reverse ng-miam-icon{margin:0}.miam-like-button.m-button-primary.reverse ng-miam-icon.full{position:absolute}.miam-like-button.m-button-primary.reverse ng-miam-icon.full .icon-container{visibility:hidden;opacity:0;transition:visibility 0s,opacity .5s linear}.miam-like-button.m-button-primary.reverse ng-miam-icon.full.active .icon-container{visibility:visible;opacity:1}@media (min-width:1023px){.miam-like-button.m-button-primary.reverse:hover{background-color:#ececec}.miam-like-button.m-button-primary.reverse:hover .icon-container svg path{fill:var(--m-color-primary)}}"],encapsulation:2,changeDetection:0}),e})();function oO(e,t){1&e&&ns(0)}const sO=["*"];let cO=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tab-label"]],viewQuery:function(e,t){var i;1&e&&Kc(dc,!0),2&e&&Jc(i=el())&&(t.labelContent=i.first)},ngContentSelectors:sO,decls:1,vars:0,template:function(e,t){1&e&&(is(),Fo(0,oO,1,0,"ng-template"))},encapsulation:2}),e})();function lO(e,t){1&e&&ns(0)}const dO=["*"];let uO=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tab-body"]],viewQuery:function(e,t){var i;1&e&&Kc(dc,!0),2&e&&Jc(i=el())&&(t.bodyContent=i.first)},ngContentSelectors:dO,decls:1,vars:0,template:function(e,t){1&e&&(is(),Fo(0,lO,1,0,"ng-template"))},encapsulation:2}),e})();const mO=["*"];let pO=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tab-item"]],contentQueries:function(e,t,i){var n;1&e&&($c(i,uO,!0),$c(i,cO,!0)),2&e&&(Jc(n=el())&&(t.bodyComponent=n.first),Jc(n=el())&&(t.labelComponent=n.first))},inputs:{label:"label"},ngContentSelectors:mO,decls:1,vars:0,template:function(e,t){1&e&&(is(),ns(0))},encapsulation:2}),e})();function hO(e,t){1&e&&Yo(0)}function gO(e,t){if(1&e&&(Wo(0),Fo(1,hO,1,0,"ng-container",5),Uo()),2&e){const e=es().$implicit;Dr(1),jo("ngTemplateOutlet",e.labelComponent.labelContent)}}function fO(e,t){if(1&e&&(Wo(0),fs(1),Uo()),2&e){const e=es().$implicit;Dr(1),_s(" ",e.label," ")}}function vO(e,t){if(1&e){const e=Xo();Vo(0,"div",4),Jo("click",(function(){gi(e);const i=t.$implicit;return es().selectTab(i)})),Fo(1,gO,2,1,"ng-container",3),Fo(2,fO,2,1,"ng-container",3),Zo()}if(2&e){const e=t.$implicit;ds("active",es().activeTabItem===e),Dr(1),jo("ngIf",e.labelComponent),Dr(1),jo("ngIf",!e.labelComponent)}}function _O(e,t){1&e&&Yo(0)}function yO(e,t){if(1&e&&(Wo(0),Fo(1,_O,1,0,"ng-container",5),Uo()),2&e){const e=es();Dr(1),jo("ngTemplateOutlet",e.activeTabItem.bodyComponent.bodyContent)}}let bO=(()=>{class e{constructor(e){this.cdr=e}ngAfterContentInit(){this.tabItems$=this.tabs.changes.pipe(jv(this.tabs),D(e=>e.toArray()))}ngAfterContentChecked(){this.activeTabItem||Promise.resolve().then(()=>{this.activeTabItem=this.tabs.first,this.cdr.detectChanges()})}selectTab(e){this.activeTabItem!==e&&(this.activeTabItem=e,this.cdr.detectChanges())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tabs"]],contentQueries:function(e,t,i){var n;1&e&&$c(i,pO,!1),2&e&&Jc(n=el())&&(t.tabs=n)},decls:5,vars:4,consts:[["id","scrollbar-styled",1,"tabs-header"],["class","tab-label",3,"active","click",4,"ngFor","ngForOf"],[1,"tabs-body"],[4,"ngIf"],[1,"tab-label",3,"click"],[4,"ngTemplateOutlet"]],template:function(e,t){1&e&&(Vo(0,"div",0),Fo(1,vO,3,4,"div",1),Mc(2,"async"),Zo(),Vo(3,"div",2),Fo(4,yO,2,1,"ng-container",3),Zo()),2&e&&(Dr(1),jo("ngForOf",Lc(2,2,t.tabItems$)),Dr(3),jo("ngIf",t.activeTabItem&&t.activeTabItem.bodyComponent))},directives:[Nd,Zd,$d],pipes:[au],styles:[".tabs-header{font-size:var(--m-font-size-large);display:inline-flex;white-space:nowrap;overflow-x:auto;width:100%;padding:12px 0;margin-bottom:12px;font-weight:500;color:var(--m-color-grey-text-dark)}.active{color:var(--m-color-primary)}.tab-label{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0 10px;padding-right:15px}#scrollbar-styled::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.2);background-color:var(--m-color-grey);border-radius:10px}#scrollbar-styled::-webkit-scrollbar{height:10px;background-color:var(--m-color-grey)}#scrollbar-styled::-webkit-scrollbar-thumb{border-radius:10px;background-image:-webkit-gradient(linear,left top,right top,color-stop(.05,var(--m-color-primary-dark)),color-stop(.2,var(--m-color-primary)),color-stop(.96,var(--m-color-primary-light)))}"],encapsulation:3,changeDetection:0}),e})();const wO=function(e){return{colapse:e}};let xO=(()=>{class e{constructor(e){this.cdr=e,this.icon=Iv,this.deleteSIG=new Bc,this.deleteSIG=new Bc}ngOnChanges(){this.cdr.detectChanges()}remove(){this.deleteSIG.emit(),this.isInComfirmStep=!1,this.cdr.detectChanges()}cancel(e){yI(e),this.isInComfirmStep=!1,this.cdr.detectChanges()}toogleConfirmStep(e){this.isInComfirmStep=e,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-delete-confirm-button"]],outputs:{deleteSIG:"deleteSIG"},features:[Qt],decls:4,vars:9,consts:[[1,"miam-delete-confirm",3,"ngClass","click","blur"],[1,"miam-delete-confirm__text",3,"ngClass"],[3,"width","height","iconName","click"]],template:function(e,t){1&e&&(Vo(0,"button",0),Jo("click",(function(){return t.isInComfirmStep?t.remove():t.toogleConfirmStep(!0)}))("blur",(function(){return t.toogleConfirmStep(!1)})),Vo(1,"span",1),fs(2,"are you sure?"),Zo(),Vo(3,"ng-miam-icon",2),Jo("click",(function(e){return t.isInComfirmStep?t.cancel(e):""})),Zo(),Zo()),2&e&&(jo("ngClass",kc(5,wO,!t.isInComfirmStep)),Dr(1),jo("ngClass",kc(7,wO,!t.isInComfirmStep)),Dr(2),jo("width",24)("height",24)("iconName",t.isInComfirmStep?t.icon.Clear:t.icon.Trash))},directives:[Hd,VS],styles:[".miam-delete-confirm{border:1px solid var(--m-color-secondary);border-radius:var(--m-border-radius);display:flex;outline:none;align-items:center;background-color:var(--m-color-white);margin:6px 0}.miam-delete-confirm ng-miam-icon svg{fill:var(--m-color-secondary)}.miam-delete-confirm .miam-delete-confirm__text{color:var(--m-color-secondary);width:unset;height:unset;font-size:14px;overflow:hidden}.miam-delete-confirm .miam-delete-confirm__text:first-letter{text-transform:capitalize}.miam-delete-confirm .miam-delete-confirm__text.colapse{height:0;width:0}.miam-delete-confirm.colapse{border:none;padding:8px;margin:0;border-radius:var(--m-border-radius-circle)}.miam-delete-confirm.colapse ng-miam-icon svg{fill:var(--m-color-grey-text)}@media (min-width:1022px){.miam-delete-confirm:hover{background-color:var(--m-color-grey)}}"],encapsulation:2,changeDetection:0}),e})();function CO(e,t){1&e&&(Vo(0,"span"),fs(1,"per person"),Zo())}function kO(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(3);Dr(1),vs(e.guestsText)}}function AO(e,t){if(1&e&&(Vo(0,"div",7),Fo(1,CO,2,0,"span",8),Fo(2,kO,2,1,"span",8),Zo()),2&e){const e=es(2);Dr(1),jo("ngIf","par-personne"===e.guestsText),Dr(1),jo("ngIf","par-personne"!==e.guestsText)}}function SO(e,t){1&e&&(Vo(0,"div",7),fs(1,"per pers."),Zo())}function EO(e,t){if(1&e&&(Vo(0,"div",1),Vo(1,"div",2),Vo(2,"div",3),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),fs(6),Zo(),Vo(7,"span"),fs(8),Mc(9,"async"),Zo(),Zo(),Fo(10,AO,3,2,"div",4),Fo(11,SO,2,0,"ng-template",null,5,rl),Zo(),Vo(13,"div",6),Vo(14,"span"),fs(15,"Or"),Zo(),Vo(16,"span"),fs(17),Zo(),Vo(18,"span"),fs(19),Mc(20,"async"),Zo(),Zo(),Zo()),2&e){const e=Ho(12),t=es();Dr(4),_s("",t.integerPart,","),Dr(2),vs(t.decimalPart),Dr(2),_s(" ",Lc(9,7,t.currency)," "),Dr(2),jo("ngIf",t.guestsText)("ngIfElse",e),Dr(7),vs(t.total),Dr(2),vs(Lc(20,9,t.currency))}}let DO=(()=>{class e{constructor(e,t,i,n,r,a){this.recipesService=e,this.supplierService=t,this.posService=i,this.list=n,this.cdr=r,this.basketsService=a,this.loading=!0,this.currency=this.supplierService.supplier$.pipe(ig(e=>null==e),D(e=>e.currency)),this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.initPricing().subscribe())}ngOnChanges(e){this.list.recipeIsInList(this.recipe.id).subscribe(t=>{!t&&e.serves&&(this.loading=!0,this.onChangesSubscription&&this.onChangesSubscription.unsubscribe(),this.onChangesSubscription=this.fetchPricing().subscribe())})}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.onChangesSubscription&&this.onChangesSubscription.unsubscribe()}initPricing(){return tv([this.posService.pos$,this.basketsService.basketPreview$]).pipe(ig(e=>!e[0]||!e[1]),ug(e=>{this.pos=e[0];const t=e[1].find(e=>{var t,i,n;return e.isRecipe&&(null===(t=e.id)||void 0===t?void 0:t.toString())===(null===(n=null===(i=this.recipe)||void 0===i?void 0:i.id)||void 0===n?void 0:n.toString())});return t?this.extractPricing(t):this.pricing?(this.format(),Au(this.pricing)):this.fetchPricing()}))}fetchPricing(){return this.recipe&&this.pos&&this.serves?this.recipesService.getPricing(this.recipe.id,this.pos.id,this.serves).pipe(ig(e=>0===e.price),um(e=>{this.pricing=e,this.format(),this.loading=!1,this.cdr.detectChanges()})):Au(null)}extractPricing(e){return this.pricing=new av({price:parseFloat(e.price),serves:e.count,price_per_serve:parseFloat(e.price)/e.count}),this.format(),this.loading=!1,this.cdr.detectChanges(),Au(this.pricing)}format(){const e=this.pricing.price_per_serve.toFixed(2).toString().split(".");this.integerPart=e[0],this.decimalPart=2===e.length?e[1]:"00",this.total=this.pricing.price}}return e.\u0275fac=function(t){return new(t||e)(Bo(pv),Bo(rv),Bo(sv),Bo(Ag),Bo($a),Bo(Dv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-pricing"]],inputs:{recipe:"recipe",serves:"serves",guestsText:"guestsText"},features:[Qt],decls:1,vars:1,consts:[["class","miam-recipe-pricing",4,"ngIf"],[1,"miam-recipe-pricing"],[1,"miam-recipe-pricing__wrapper"],[1,"miam-recipe-pricing__wrapper__price"],["class","miam-recipe-pricing__wrapper__subline",4,"ngIf","ngIfElse"],["defaultGuestsText",""],[1,"miam-recipe-pricing__total"],[1,"miam-recipe-pricing__wrapper__subline"],[4,"ngIf"]],template:function(e,t){1&e&&Fo(0,EO,21,11,"div",0),2&e&&jo("ngIf",!t.loading)},directives:[Zd],pipes:[au],styles:[".miam-recipe-pricing,.miam-recipe-pricing .miam-recipe-pricing__wrapper{display:flex;flex-direction:column;align-items:center}.miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-weight:700;font-size:18px}.miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:12px;color:grey}.miam-recipe-pricing .miam-recipe-pricing__total{display:none;color:var(--m-color-grey04);font-weight:400;font-size:12px;line-height:16px}.miam-recipe-pricing .miam-recipe-pricing__total span{margin-right:4px}"],encapsulation:2,changeDetection:0}),e})();function IO(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.recipe.informationalSentence)}}function OO(e,t){1&e&&(Vo(0,"span"),fs(1," tradof#Cette recette vous est propos\xe9e par notre partenaire# "),Zo())}function PO(e,t){if(1&e){const e=Xo();Vo(0,"span",6),Jo("click",(function(){return gi(e),es().showAddon.emit()})),fs(1," En savoir plus "),Zo()}}function TO(e,t){if(1&e&&(Vo(0,"div",7),Qo(1,"img",8),Zo()),2&e){const e=es();Dr(1),rs("src",e.recipe.sponsorLogoUrl,cr)}}let MO=(()=>{class e{constructor(){this.showAddon=new Bc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-addon-link"]],inputs:{recipe:"recipe"},outputs:{showAddon:"showAddon"},decls:7,vars:4,consts:[[1,"miam-addon-link"],[1,"miam-addon-link__info"],[4,"ngIf","ngIfElse"],["sponsorsedLink",""],["class","miam-addon-link__link",3,"click",4,"ngIf"],["class","miam-addon-link__logo",4,"ngIf"],[1,"miam-addon-link__link",3,"click"],[1,"miam-addon-link__logo"],[3,"src"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Vo(1,"div",1),Fo(2,IO,2,1,"span",2),Fo(3,OO,2,0,"ng-template",null,3,rl),Fo(5,PO,2,0,"span",4),Zo(),Fo(6,TO,2,1,"div",5),Zo()),2&e){const e=Ho(4);Dr(2),jo("ngIf",t.recipe.informationalSentence)("ngIfElse",e),Dr(3),jo("ngIf",t.recipe.attributes["informational-page-html"]),Dr(1),jo("ngIf",null==t.recipe?null:t.recipe.sponsorLogoUrl)}},directives:[Zd],styles:[".miam-addon-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 16px;font-size:16px;margin-left:96px;background-color:var(--m-color-white)}@media (max-width:1023px){.miam-addon-link[_ngcontent-%COMP%]{margin-left:unset}}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%]{width:168px;height:64px;justify-content:center;display:flex;order:2;align-items:center;padding:0 16px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:8px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%] .miam-addon-link__link[_ngcontent-%COMP%]{margin-top:8px;color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent}"]}),e})();class LO{constructor(e){this.difficulty=null==e?void 0:e.difficulty,this.cost=null==e?void 0:e.cost,this.time=null==e?void 0:e.time,this.search=null==e?void 0:e.search,this.reviewed=null==e?void 0:e.reviewed,this.exclude_no_picture=null==e?void 0:e.exclude_no_picture,this.additionalFilters=null==e?void 0:e.additionalFilters}eventPath(){var e,t,i;let n="";const r=null===(e=this.additionalFilters)||void 0===e?void 0:e.filters.packages,a=!0===(null===(t=this.additionalFilters)||void 0===t?void 0:t.filters.liked),o=!0===(null===(i=this.additionalFilters)||void 0===i?void 0:i.filters.personal);return r?n+=`categories/${r}`:a?n+="liked":o&&(n+="personal"),n}copy(){return new LO(Object.assign({},this))}isEmpty(){var e;return this.selectableFiltersCount()<1&&""===this.search&&!(null===(e=this.additionalFilters)||void 0===e?void 0:e.filters)}selectableFiltersCount(){return[this.isFieldEmpty(this.difficulty),this.isFieldEmpty(this.cost),this.isFieldEmpty(this.time)].reduce((e,t)=>e+ +!t,0)}isFieldEmpty(e){if(!e)return!0;for(const t of e)if(t.value)return!1;return!0}}function RO(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es().$implicit;Dr(1),vs(e.text)}}function zO(e,t){1&e&&(Vo(0,"span"),fs(1,"Beginner chef"),Zo())}function FO(e,t){1&e&&(Vo(0,"span"),fs(1,"Intermediate chef"),Zo())}function HO(e,t){1&e&&(Vo(0,"span"),fs(1,"Top chef"),Zo())}function BO(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Vo(1,"input",14),Jo("ngModelChange",(function(i){return gi(e),t.$implicit.value=i}))("ngModelChange",(function(){return gi(e),es().filtersChanged()})),Zo(),Fo(2,RO,2,1,"span",12),Fo(3,zO,2,0,"span",12),Fo(4,FO,2,0,"span",12),Fo(5,HO,2,0,"span",12),Zo()}if(2&e){const e=t.$implicit;Dr(1),jo("ngModel",e.value),Dr(1),jo("ngIf",e.text),Dr(1),jo("ngIf",!e.text&&"1"===e.name),Dr(1),jo("ngIf",!e.text&&"2"===e.name),Dr(1),jo("ngIf",!e.text&&"3"===e.name)}}function jO(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es().$implicit;Dr(1),vs(e.text)}}function NO(e,t){1&e&&(Vo(0,"span"),fs(1,"Less than \u20ac5"),Zo())}function VO(e,t){1&e&&(Vo(0,"span"),fs(1,"Between \u20ac5 and \u20ac10"),Zo())}function ZO(e,t){1&e&&(Vo(0,"span"),fs(1,"More than \u20ac10"),Zo())}function QO(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Vo(1,"input",14),Jo("ngModelChange",(function(){return gi(e),es().uncheckFiltersOnChange("cost")}))("ngModelChange",(function(i){return gi(e),t.$implicit.value=i}))("ngModelChange",(function(){return gi(e),es().filtersChanged()})),Zo(),Fo(2,jO,2,1,"span",12),Fo(3,NO,2,0,"span",12),Fo(4,VO,2,0,"span",12),Fo(5,ZO,2,0,"span",12),Zo()}if(2&e){const e=t.$implicit;Dr(1),jo("ngModel",e.value),Dr(1),jo("ngIf",e.text),Dr(1),jo("ngIf",!e.text&&"0-5"===e.name),Dr(1),jo("ngIf",!e.text&&"5-10"===e.name),Dr(1),jo("ngIf",!e.text&&"10-1000"===e.name)}}function WO(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es().$implicit;Dr(1),vs(e.text)}}function UO(e,t){1&e&&(Vo(0,"span"),fs(1,"Less than 15 min"),Zo())}function YO(e,t){1&e&&(Vo(0,"span"),fs(1,"Less than 30 min"),Zo())}function XO(e,t){1&e&&(Vo(0,"span"),fs(1,"Less than 1 h"),Zo())}function GO(e,t){1&e&&(Vo(0,"span"),fs(1,"Less than 2 h"),Zo())}function qO(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Vo(1,"input",14),Jo("ngModelChange",(function(){return gi(e),es().uncheckFiltersOnChange("time")}))("ngModelChange",(function(i){return gi(e),t.$implicit.value=i}))("ngModelChange",(function(){return gi(e),es().filtersChanged()})),Zo(),Fo(2,WO,2,1,"span",12),Fo(3,UO,2,0,"span",12),Fo(4,YO,2,0,"span",12),Fo(5,XO,2,0,"span",12),Fo(6,GO,2,0,"span",12),Zo()}if(2&e){const e=t.$implicit;Dr(1),jo("ngModel",e.value),Dr(1),jo("ngIf",e.text),Dr(1),jo("ngIf",!e.text&&"15"===e.name),Dr(1),jo("ngIf",!e.text&&"30"===e.name),Dr(1),jo("ngIf",!e.text&&"60"===e.name),Dr(1),jo("ngIf",!e.text&&"120"===e.name)}}function JO(e,t){if(1&e){const e=Xo();Vo(0,"a",15),Jo("click",(function(){return gi(e),es().reset()})),fs(1,"Remove all filters"),Zo()}}function KO(e,t){1&e&&(Vo(0,"span"),fs(1,"I have children"),Zo())}function $O(e,t){1&e&&(Vo(0,"span"),fs(1,"I don't have children"),Zo())}function eP(e,t){if(1&e){const e=Xo();Vo(0,"div"),Qo(1,"div",8),Vo(2,"div",16),Vo(3,"div",6),fs(4,"Preferences"),Zo(),Vo(5,"div",13),Vo(6,"input",14),Jo("ngModelChange",(function(t){return gi(e),es().updateUserPreference("has_children",t)})),Zo(),Fo(7,KO,2,0,"span",12),Fo(8,$O,2,0,"span",12),Zo(),Zo(),Zo()}if(2&e){const e=es();Dr(6),jo("ngModel",e.hasChildren),Dr(1),jo("ngIf",e.hasChildren),Dr(1),jo("ngIf",!e.hasChildren)}}const tP=function(e,t){return{"filter-collapsed":e,right:t}},iP=function(e){return{"filter-collapsed":e}};let nP=(()=>{class e extends rO{constructor(e,t,i,n,r,a){super(a),this.cdr=e,this.mediaMatcher=t,this.usersService=i,this.context=n,this.recipesService=r,this.analyticsService=a,this.isFilterCollapsed=!0,this.position="left",this.filterChanged=new Bc,this.filterCollapsed=new Bc,this.preferencesChanged=new Bc,this.icon=Iv,this.filtersToDisplay=[],this.isMobile=!1,this.isLogged=!1,this.hasChildren=!1,this.subscriptions=[],this.isMobile=t.matchMedia("(max-width: 607px)").matches}ngOnInit(){this.setUserObservables()}currentPath(){return"preferences"}ngOnChanges(e){(e.filters||e.filterToRemove||e.isFilterCollapsed||e.position)&&(this.filterToRemove&&this.removeFilter(this.filterToRemove),void 0!==e.isFilterCollapsed&&this.isMobile&&(this.context.globalScrollableElement.style.overflow=this.isFilterCollapsed?"initial":"hidden"),this.recalculateRecipesCount(),this.cdr.detectChanges(),this.isFilterCollapsed||this.pageview())}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}filtersChanged(){this.recalculateRecipesCount()}reset(){this.filters.time.forEach(e=>e.value=!1),this.filters.cost.forEach(e=>e.value=!1),this.filters.difficulty.forEach(e=>e.value=!1),this.recalculateRecipesCount()}confirm(){this.toggleFilter(),this.filterChanged.emit(this.filters)}buildFiltersArray(){let e=[];return e=[...e,...this.getSelectedFilters(this.filters.cost),...this.getSelectedFilters(this.filters.difficulty),...this.getSelectedFilters(this.filters.time)],this.filters.additionalFilters&&""!==this.filters.additionalFilters.title&&(e=[this.filters.additionalFilters.title].concat(e)),e}getSelectedFilters(e){return e.filter(e=>e.value).map(e=>e.text)}removeFilter(e){var t;if(e===(null===(t=this.filters.additionalFilters)||void 0===t?void 0:t.title))this.filters.additionalFilters=void 0;else for(const i in this.filters)if(this.filters.hasOwnProperty(i)&&"additionalFilters"!==i)for(const t of this.filters[i])t.text===e&&(t.value=!1);this.filtersChanged(),this.cdr.detectChanges()}uncheckFiltersOnChange(e){this.filters[e].forEach(e=>e.value=!1)}toggleFilter(){this.isFilterCollapsed=!this.isFilterCollapsed,this.isMobile&&(this.context.globalScrollableElement.style.overflow=this.isFilterCollapsed?"initial":"hidden"),this.cdr.detectChanges(),this.filterCollapsed.emit()}updateUserPreference(e,t){this.subscriptions.push(this.usersService.setPreference(e,t).subscribe(()=>this.preferencesChanged.emit()))}areSomeFiltersSet(){return this.filters.difficulty.some(e=>e.value)||this.filters.cost.some(e=>e.value)||this.filters.time.some(e=>e.value)}setUserObservables(){this.subscriptions.push(this.usersService.isLogged$.subscribe(e=>{this.isLogged=e,this.cdr.detectChanges()})),this.subscriptions.push(this.usersService.hasPreference("has_children").subscribe(e=>{this.hasChildren=e,this.cdr.detectChanges()}))}recalculateRecipesCount(){this.subscriptions.push(this.recipesService.filterCount(this.filters).pipe(um(e=>{this.recipesCount=e,this.cdr.detectChanges()})).subscribe())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Kv),Bo(Ug),Bo(i_),Bo(pv),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-filters"]],inputs:{filters:"filters",filterToRemove:"filterToRemove",isFilterCollapsed:"isFilterCollapsed",position:"position"},outputs:{filterChanged:"filterChanged",filterCollapsed:"filterCollapsed",preferencesChanged:"preferencesChanged"},features:[yo,Qt],decls:32,vars:16,consts:[[1,"miam-recipe-filters",3,"ngClass"],[1,"miam-recipe-filters__toggle","m-button-primary","reverse",3,"click"],["width","24","height","24",3,"iconName"],[1,"miam-recipe-filters__content"],[1,"miam-recipe-filters__head"],[1,"miam-recipe-filters__container",3,"ngClass"],[1,"miam-recipe-filters__title"],["class","miam-recipe-filters__choice",4,"ngFor","ngForOf"],[1,"miam-recipe-filters__separator"],[1,"miam-recipe-filters__remove"],[3,"click",4,"ngIf"],[1,"m-button-primary","miam-recipe-filters__confirm",3,"click"],[4,"ngIf"],[1,"miam-recipe-filters__choice"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"click"],[1,"miam-recipe-filters__preferences"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Jo("click",(function(){return t.toggleFilter()})),Qo(2,"ng-miam-icon",2),Zo(),Vo(3,"div",3),Vo(4,"div",4),fs(5," Narrow down my selection "),Zo(),Vo(6,"div",5),Vo(7,"div"),Vo(8,"div",6),fs(9,"Difficulty"),Zo(),Fo(10,BO,6,5,"div",7),Zo(),Qo(11,"div",8),Vo(12,"div"),Vo(13,"div",6),fs(14,"Cost per person"),Zo(),Fo(15,QO,6,5,"div",7),Zo(),Qo(16,"div",8),Vo(17,"div"),Vo(18,"div",6),fs(19,"Preparation time"),Zo(),Fo(20,qO,7,6,"div",7),Zo(),Vo(21,"div",9),Fo(22,JO,2,0,"a",10),Zo(),Vo(23,"button",11),Jo("click",(function(){return t.confirm()})),Vo(24,"span"),fs(25,"See the "),Zo(),Vo(26,"span"),fs(27),Zo(),Vo(28,"span"),fs(29,"meal ideas"),Zo(),Zo(),Fo(30,eP,9,3,"div",12),Mc(31,"async"),Zo(),Zo(),Zo()),2&e&&(jo("ngClass",Ac(11,tP,t.isFilterCollapsed,"right"==t.position)),Dr(2),jo("iconName",t.icon.ChevronDown),Dr(4),jo("ngClass",kc(14,iP,t.isFilterCollapsed)),Dr(4),jo("ngForOf",t.filters.difficulty),Dr(5),jo("ngForOf",t.filters.cost),Dr(5),jo("ngForOf",t.filters.time),Dr(2),jo("ngIf",t.areSomeFiltersSet()),Dr(5),vs(void 0!==t.recipesCount?t.recipesCount+" ":""),Dr(3),jo("ngIf",t.isLogged&&Lc(31,9,t.usersService.preferencesActivated$)))},directives:[Hd,VS,Nd,Zd,k_,M_,Fy],pipes:[au],styles:['.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{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{min-height:78px;flex:1}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{float:left;flex:1;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;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}.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{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{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%;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{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;display:flex}.cal-week-view .cal-time-events .cal-day-columns{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:"\\00a0"}.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}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{display:flex;justify-content:center;align-items:center;border-radius:var(--m-button-radius);padding:var(--m-button-padding);cursor:pointer;font-size:var(--m-button-text-size);line-height:var(--m-button-text-height);font-weight:var(--m-button-text-weight);outline:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{display:flex;justify-content:space-between;align-items:center;max-width:320px;min-width:200px;border:1px solid var(--m-color-grey06);border-radius:5px;padding:8px 16px;margin-top:16px;outline:none}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{display:flex;flex-direction:row;margin:auto;justify-content:space-between;align-items:center}.m-default-card{box-shadow:var(--m-shadow-small);background-color:var(--m-color-unpure-white);padding:16px;border-radius:8px}@media (max-width:1023px){.m-default-card{padding:8px;margin-bottom:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-white:var(--miam-color-white,#fafcfe);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-gap:var(--miam-button-gap,10px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-button-text-height:var(--miam-button-text-height,calc(1.5 * var(--m-button-text-size)));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-font-size-small:var(--miam-font-size-small,14px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-loader-size:var(--miam-loader-sizes,40px);--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-family:Work Sans;font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);line-height:24px;color:var(--m-color-slate)}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-weight:700;font-size:40px;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{transition:none!important;-webkit-transition:none!important;animation:none!important;-webkit-animation:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-recipe-filters{position:absolute;top:0;left:0;z-index:calc(var(--m-z-index-modal-overlay) - 1)}.miam-recipe-filters.filter-collapsed{display:none}.miam-recipe-filters.right{left:unset;right:-1px;border-right:0;border-left:1px solid #ccc;box-shadow:0 -8px 28px 0 rgba(0,0,0,.07058823529411765)}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle{left:unset;right:320px;border-right:0!important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--m-border-radius-pill);border-top-left-radius:var(--m-border-radius-pill);padding:12px 4px 12px 12px}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(-90deg)}.miam-recipe-filters:not(.right) .m-button-primary.reverse.miam-recipe-filters__toggle{border-left:0!important}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle{position:absolute;left:320px;top:41px;padding:12px 12px 12px 4px;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--m-border-radius-pill);border-bottom-right-radius:var(--m-border-radius-pill)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle:hover ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-white)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path{fill:none}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-recipe-filters .miam-recipe-filters__content{overflow-y:auto;width:320px;height:100%;background-color:var(--m-color-white);border-right:1px solid #ccc;border-bottom:1px solid #ccc;box-shadow:0 8px 28px 0 rgba(0,0,0,.07058823529411765);padding:24px}.miam-recipe-filters .miam-recipe-filters__head{font-size:21px;line-height:24px;color:var(--m-color-primary);font-weight:700;margin-bottom:48px}.miam-recipe-filters .miam-recipe-filters__container{transition:opacity .25s cubic-bezier(0,0,.2,1);opacity:1}.miam-recipe-filters .miam-recipe-filters__container.filter-collapsed{transition:none;opacity:0}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details{position:-webkit-sticky;position:sticky;top:0;display:flex;flex-flow:row wrap;align-items:center;min-height:10vh;background-color:var(--m-color-grey);width:100%;margin-bottom:24px;padding-top:8px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail__title{padding:0 24px;margin-bottom:16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail{display:flex;align-items:center;margin:0 0 16px 8px;padding:8px 16px;border:1px solid var(--m-color-primary);border-radius:4px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail .miam-recipe-filter__detail__icon .icon-container{margin:0 0 0 16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__title{margin-bottom:16px;font-weight:700;font-size:16px;line-height:20px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice{margin-bottom:16px;display:flex;font-size:16px;line-height:20px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice:first-letter{text-transform:capitalize}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice input{height:20px;width:20px;margin:0 12px 0 0;cursor:pointer}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__separator{width:100%;height:1px;background-color:#e9e9e9;margin:24px 0}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__remove{margin:40px 0 24px;text-align:center;cursor:pointer}.miam-recipe-filters .miam-recipe-filters__container .m-button-primary.miam-recipe-filters__confirm{border-radius:0;width:100%;height:60px;font-size:16px;font-weight:700}@media (max-width:607px){.miam-recipe-filters{position:fixed;left:-1px!important;right:-1px!important;top:-1px;bottom:-1px;z-index:var(--m-z-index-modal)}.miam-recipe-filters .miam-recipe-filters__toggle{left:unset!important;right:8px!important;top:11px!important;z-index:calc(var(--m-z-index-modal) + 1px)}.miam-recipe-filters:not(.right) .miam-recipe-filters__toggle{transform:rotate(180deg)}.miam-recipe-filters .miam-recipe-filters__content{width:100%}}'],encapsulation:2,changeDetection:0}),e})();const rP=["placeholder"];function aP(e,t){1&e&&Yo(0)}function oP(e,t){if(1&e&&(Vo(0,"option",7),fs(1),Mc(2,"capitalizeFirstLetter"),Zo()),2&e){const e=t.$implicit,i=es();jo("ngValue",e),Dr(1),_s("",Lc(2,2,i.getNestedProperty(e,i.labelPath.split(".")))," ")}}let sP=(()=>{class e{constructor(){this.icon=Iv}getNestedProperty(e,t){return(null==t?void 0:t.length)>0?this.getNestedProperty(e[`${t.shift()}`],t):e}compareFn(e,t){return e===t||(null==e?void 0:e.id)===(null==t?void 0:t.id)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-select-input"]],contentQueries:function(e,t,i){var n;1&e&&$c(i,rP,!0),2&e&&Jc(n=el())&&(t.placeholderTemplateRef=n.first)},inputs:{formControl:"formControl",options:"options",labelPath:"labelPath"},decls:7,vars:6,consts:[[1,"miam-select","m-input"],[1,"m-small-typo",3,"compareWith","formControl","change"],["select",""],["value","null","disabled","",3,"selected"],[4,"ngTemplateOutlet"],[3,"ngValue",4,"ngFor","ngForOf"],["height","12","width","12","primaryColor","var(--m-color-primary)",3,"iconName"],[3,"ngValue"]],template:function(e,t){if(1&e){const e=Xo();Vo(0,"div",0),Vo(1,"select",1,2),Jo("change",(function(){return gi(e),Ho(2).blur()})),Vo(3,"option",3),Fo(4,aP,1,0,"ng-container",4),Zo(),Fo(5,oP,3,4,"option",5),Zo(),Qo(6,"ng-miam-icon",6),Zo()}2&e&&(Dr(1),jo("compareWith",t.compareFn)("formControl",t.formControl),Dr(2),jo("selected",!(null!=t.formControl&&t.formControl.value)),Dr(1),jo("ngTemplateOutlet",t.placeholderTemplateRef),Dr(1),jo("ngForOf",t.options),Dr(1),jo("iconName",t.icon.caretDown))},directives:[ty,M_,Ny,iy,oy,$d,Nd,VS],pipes:[_D],styles:[".miam-select:focus-within{border:1px solid var(--m-color-primary)}.miam-select:focus-within ng-miam-icon{transform:rotate(180deg)}.miam-select select{-webkit-appearance:none;-moz-appearance:none;width:100%;border:none;outline:none;background-color:var(--m-color-unpure-white);cursor:pointer;padding-bottom:4px}.miam-select ng-miam-icon{transition:.25s cubic-bezier(.075,.82,.165,1)}"],encapsulation:2,changeDetection:0}),e})(),cP=(()=>{class e{constructor(){}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[]]}),e})();const lP=["placeholder"];function dP(e,t){1&e&&Yo(0)}function uP(e,t){1&e&&Qo(0,"ng-miam-icon",5),2&e&&jo("iconName",es().icon)}const mP=function(e){return{"miam-text-input__label__top":e}};let pP=(()=>{class e{constructor(){this.uniqueId=Cg()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-text-input"]],contentQueries:function(e,t,i){var n;1&e&&$c(i,lP,!0),2&e&&Jc(n=el())&&(t.placeholderTemplateRef=n.first)},inputs:{icon:"icon",formControl:"formControl",disable:"disable"},decls:5,vars:9,consts:[[1,"miam-text-input","m-input"],["type","text",1,"miam-text-input__input",3,"id","ngModel","disabled"],[1,"miam-text-input__label",3,"for","ngClass"],[4,"ngTemplateOutlet"],["class","miam-text-input__icon","primaryColor","var(--m-color-primary)",3,"iconName",4,"ngIf"],["primaryColor","var(--m-color-primary)",1,"miam-text-input__icon",3,"iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Qo(1,"input",1),Vo(2,"label",2),Fo(3,dP,1,0,"ng-container",3),Zo(),Fo(4,uP,1,1,"ng-miam-icon",4),Zo()),2&e&&(Dr(1),jo("id",t.uniqueId)("ngModel",null==t.formControl?null:t.formControl.value)("disabled",t.disable),Dr(1),jo("for",t.uniqueId)("ngClass",kc(7,mP,null==t.formControl?null:t.formControl.value)),Dr(1),jo("ngTemplateOutlet",t.placeholderTemplateRef),Dr(1),jo("ngIf",t.icon))},directives:[E_,M_,Fy,Hd,$d,Zd,VS],styles:[".miam-text-input{position:relative}.miam-text-input .miam-text-input__label{position:absolute;transition:.1s linear;color:var(--m-color-light-slate);top:8px;left:16px;cursor:text}.miam-text-input .miam-text-input__label.miam-text-input__label__top,.miam-text-input:focus-within .miam-text-input__label{left:16px;top:-13px;transform:translate(0) scale(.8);background-color:var(--m-color-white);padding-right:4px}@media (max-width:1023px){.miam-text-input .miam-text-input__label.miam-text-input__label__top,.miam-text-input:focus-within .miam-text-input__label{padding-right:0;transform:none}}.miam-text-input .miam-text-input__input{border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;padding:0;flex:1;text-overflow:ellipsis}.miam-text-input .miam-text-input__input:focus{outline:0}@media (max-width:1023px){.miam-text-input:focus-within .miam-text-input__label{padding-right:0;font-family:initial}}"],encapsulation:2,changeDetection:0}),e})();const hP=function(e){return{"font-weight":e}};let gP=(()=>{class e{constructor(e,t,i){this.cdr=e,this.recipeTypeService=t,this.mediaMatcher=i,this.icon=Iv,this.isMobile=!1,this.choosedType=""}ngOnChanges(e){Object.keys(e).includes("formControl")&&(this.initTypeChooser(),this.cdr.detectChanges())}initTypeChooser(){this.isMobile=this.mediaMatcher.matchMedia("(min-width: 1023px)").matches,this.formControl.value?this.choosedType=this.formControl.value.attributes.name:this.choosedType&&(this.formControl.patchValue(this.recipeTypeService.getTypeByName(this.choosedType)),this.formControl.markAsDirty())}choosed(e){var t,i;null===(t=this.formControl)||void 0===t||t.markAsDirty(),null===(i=this.formControl)||void 0===i||i.patchValue(this.recipeTypeService.getTypeByName(e)),this.choosedType=e,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Hf),Bo(Kv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-type-chooser"]],inputs:{formControl:"formControl"},features:[Qt],decls:13,vars:24,consts:[[1,"recipe-type-chooser"],[1,"recipe-type-chooser__item"],[3,"height","width","iconName","primaryColor","secondaryColor","click"],[3,"ngStyle"],[3,"height","width","primaryColor","secondaryColor","iconName","click"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"ng-miam-icon",2),Jo("click",(function(){return t.choosed("entr\xe9e")})),Zo(),Vo(3,"span",3),fs(4,"A starter"),Zo(),Zo(),Vo(5,"div",1),Vo(6,"ng-miam-icon",4),Jo("click",(function(){return t.choosed("plat principal")})),Zo(),Vo(7,"span",3),fs(8,"A main meal"),Zo(),Zo(),Vo(9,"div",1),Vo(10,"ng-miam-icon",2),Jo("click",(function(){return t.choosed("dessert")})),Zo(),Vo(11,"span",3),fs(12,"A dessert"),Zo(),Zo(),Zo()),2&e&&(Dr(2),jo("height",t.isMobile?128:64)("width",t.isMobile?128:64)("iconName",t.icon.Starter)("primaryColor","entr\xe9e"===t.choosedType?"white":"var(--m-color-primary)")("secondaryColor","entr\xe9e"===t.choosedType?"var(--m-color-primary)":"transparent"),Dr(1),jo("ngStyle",kc(18,hP,"entr\xe9e"===t.choosedType?"bold":"normal")),Dr(3),jo("height",t.isMobile?128:64)("width",t.isMobile?128:64)("primaryColor","plat principal"===t.choosedType?"white":"var(--m-color-primary)")("secondaryColor","plat principal"===t.choosedType?"var(--m-color-primary)":"transparent")("iconName",t.icon.MainDish),Dr(1),jo("ngStyle",kc(20,hP,"plat principal"===t.choosedType?"bold":"normal")),Dr(3),jo("height",t.isMobile?128:64)("width",t.isMobile?128:64)("iconName",t.icon.Dessert)("primaryColor","dessert"===t.choosedType?"white":"var(--m-color-primary)")("secondaryColor","dessert"===t.choosedType?"var(--m-color-primary)":"transparent"),Dr(1),jo("ngStyle",kc(22,hP,"dessert"===t.choosedType?"bold":"normal")))},directives:[VS,Kd],styles:[".recipe-type-chooser{display:flex;justify-content:center;align-items:center;gap:128px}@media (max-width:1023px){.recipe-type-chooser{gap:0;justify-content:space-evenly;width:90vw}}.recipe-type-chooser .recipe-type-chooser__item{cursor:pointer;display:flex;flex-direction:column;gap:16px;color:var(--m-color-primary);justify-content:center;align-items:center;font-size:24px;line-height:32px;text-align:center;-webkit-tap-highlight-color:transparent}@media (max-width:1023px){.recipe-type-chooser .recipe-type-chooser__item{font-size:16px}}.recipe-type-chooser .recipe-type-chooser__item span:before{display:block;content:attr(title);font-weight:700;height:0;font-size:24px;overflow:hidden;visibility:hidden}@media (max-width:1023px){.recipe-type-chooser .recipe-type-chooser__item span:before{font-size:16px}}"],encapsulation:2,changeDetection:0}),e})(),fP=(()=>{class e{constructor(e){this.eRef=e,this.close=new Bc,this.actionTriggered=new Bc,this.icon=Iv}onclick(e){var t,i;!1===(null===(i=null===(t=this.eRef)||void 0===t?void 0:t.nativeElement)||void 0===i?void 0:i.contains(e.target))&&this.close.emit()}emit(e){this.actionTriggered.emit(e),this.close.emit()}}return e.\u0275fac=function(t){return new(t||e)(Bo(js))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-actions-popin"]],hostBindings:function(e,t){1&e&&Jo("click",(function(e){return t.onclick(e)}),!1,jt)},outputs:{close:"close",actionTriggered:"actionTriggered"},decls:10,vars:2,consts:[[1,"miam-actions-popin"],[1,"miam-actions-popin__actions"],[1,"miam-actions-popin__action",3,"click"],["primaryColor","var(--m-color-primary)",3,"iconName"],["primaryColor","var(--m-color-danger)",3,"iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),Jo("click",(function(){return t.emit("EDIT")})),Qo(3,"ng-miam-icon",3),Vo(4,"span"),fs(5,"Edit"),Zo(),Zo(),Vo(6,"div",2),Jo("click",(function(){return t.emit("DELETE")})),Qo(7,"ng-miam-icon",4),Vo(8,"span"),fs(9,"Delete"),Zo(),Zo(),Zo(),Zo()),2&e&&(Dr(3),jo("iconName",t.icon.Edit),Dr(4),jo("iconName",t.icon.Trash))},directives:[VS],styles:[".miam-actions-popin{position:absolute;top:108px;right:16px;border-radius:16px;background-color:var(--m-color-white);box-shadow:0 1px 16px rgba(0,0,0,.2);z-index:1}.miam-actions-popin .miam-actions-popin__actions{padding:12px}.miam-actions-popin .miam-actions-popin__actions .miam-actions-popin__action{margin:12px;display:flex;cursor:pointer;-webkit-tap-highlight-color:transparent}.miam-actions-popin .miam-actions-popin__actions .miam-actions-popin__action span{margin-left:18px}.miam-actions-popin .miam-actions-popin__actions .miam-actions-popin__action:last-of-type{color:var(--m-color-danger)}"],encapsulation:2,changeDetection:0}),e})(),vP=(()=>{class e{constructor(){this.clicked=new Bc,this.icon=Iv}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-card-create-recipe"]],outputs:{clicked:"clicked"},decls:7,vars:6,consts:[[1,"card-create-recipe"],[1,"card-create-recipe__icon"],["primaryColor","var(--m-color-primary)",3,"width","height","iconName"],[1,"card-create-recipe__button","m-button-primary",3,"click"],["primaryColor","var(--m-color-white)",3,"width","height","iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Qo(2,"ng-miam-icon",2),Zo(),Vo(3,"div",3),Jo("click",(function(){return t.clicked.emit()})),Vo(4,"span"),fs(5,"New recipe"),Zo(),Qo(6,"ng-miam-icon",4),Zo(),Zo()),2&e&&(Dr(2),jo("width",64)("height",64)("iconName",t.icon.RecipeBook),Dr(4),jo("width",24)("height",24)("iconName",t.icon.CircledPlus))},directives:[VS],styles:[".card-create-recipe{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:330px;height:304px;border-radius:16px;background-color:var(--m-color-primary-light);padding:66px 16px 58px}@media (max-width:1022px){.card-create-recipe{flex-direction:row;height:auto;padding:16px 32px;width:95%;margin:auto;max-width:344px}.card-create-recipe .card-create-recipe__icon{margin-right:36px}.card-create-recipe .card-create-recipe__icon .icon-container{height:40px!important;width:40px!important}}"],encapsulation:2,changeDetection:0}),e})();function _P(e,t){if(1&e&&(Vo(0,"div",6),Vo(1,"a",7),Vo(2,"span"),fs(3," tradof#Plus d'informations# "),Zo(),Zo(),Zo()),2&e){const e=es();Dr(1),jo("href",e.context.miam.router.recipeInfo,cr)}}let yP=(()=>{class e{constructor(e){this.context=e,this.icon=Iv}}return e.\u0275fac=function(t){return new(t||e)(Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-explain-banner"]],decls:15,vars:10,consts:[[1,"miam-explain-banner"],[1,"miam-explain-banner__steps"],[1,"miam-explain-banner__step"],[1,"miam-explain-banner__step__icon",3,"height","width","iconName"],[1,"miam-explain-banner__step__text"],["class","miam-explain-banner__info__link",4,"ngIf"],[1,"miam-explain-banner__info__link"],[3,"href"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),Qo(3,"ng-miam-icon",3),Vo(4,"span",4),fs(5,"I choose a meal idea that I like"),Zo(),Zo(),Vo(6,"div",2),Qo(7,"ng-miam-icon",3),Vo(8,"span",4),fs(9,"I select the number of people"),Zo(),Zo(),Vo(10,"div",2),Qo(11,"ng-miam-icon",3),Vo(12,"span",4),fs(13,"I add all the ingredients in 1 click"),Zo(),Zo(),Zo(),Fo(14,_P,4,1,"div",5),Zo()),2&e&&(Dr(3),jo("height",72)("width",72)("iconName",t.icon.ExplainStep1),Dr(4),jo("height",72)("width",72)("iconName",t.icon.ExplainStep2),Dr(4),jo("height",72)("width",72)("iconName",t.icon.ExplainStep3),Dr(3),jo("ngIf",""!==t.context.miam.router.recipeInfo))},directives:[VS,Zd],styles:['.miam-explain-banner{display:flex;flex-direction:column;background-color:#f6f6f6;height:200px;margin-bottom:30px;position:relative}@media (max-width:1023px){.miam-explain-banner{display:none}}.miam-explain-banner .miam-explain-banner__steps{display:flex;justify-content:space-around;align-items:center;height:100%}.miam-explain-banner .miam-explain-banner__steps:before{content:"";position:absolute;background:var(--m-color-white);width:100%;height:20px;top:0;left:0;border-radius:40%;transform:translatey(-50%)}.miam-explain-banner .miam-explain-banner__steps .miam-explain-banner__step{display:flex;flex-direction:row;max-width:322px;align-items:center}.miam-explain-banner .miam-explain-banner__steps .miam-explain-banner__step .miam-explain-banner__step__text{font-weight:900;font-size:20px;line-height:28px;color:var(--m-color-black);font-weight:700;margin-left:18px}.miam-explain-banner .miam-explain-banner__info__link{position:absolute;bottom:16px;width:100%;text-align:center}.miam-explain-banner .miam-explain-banner__info__link a{color:var(--m-color-primary);text-decoration:none}'],encapsulation:2,changeDetection:0}),e})(),bP=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[[cP,Cu,mb,pb,GE,JE]]}),e})();var wP=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,r=[],a=e.length;for(t=xv(t);++n<a;){var o=e[n];t(o,n,e)&&(i.push(o),r.push(n))}return Cf(e,r),i};function xP(e,t){1&e&&(Vo(0,"span",8),fs(1," Product(s) unavailable "),Zo())}function CP(e,t){1&e&&(Vo(0,"span",8),fs(1," Product(s) removed from cart "),Zo())}function kP(e,t){1&e&&(Vo(0,"span",8),fs(1," Already in your cupboards? "),Zo())}function AP(e,t){1&e&&(Vo(0,"span"),fs(1,"Add"),Zo())}function SP(e,t){1&e&&(Vo(0,"span"),fs(1," tradof#au panier#"),Zo())}function EP(e,t){1&e&&Qo(0,"ng-miam-loader")}const DP=function(e){return{loading:e}};function IP(e,t){if(1&e){const e=Xo();Vo(0,"button",13),Jo("click",(function(){gi(e);const t=es().$implicit;return es(2).addEntry(t)})),Fo(1,AP,2,0,"span",7),fs(2," \xa0 "),Fo(3,SP,2,0,"span",7),Fo(4,EP,1,0,"ng-miam-loader",7),Zo()}if(2&e){const e=es().$implicit,t=es(2);jo("ngClass",kc(4,DP,t.loading[e.id])),Dr(1),jo("ngIf",!t.loading[e.id]),Dr(2),jo("ngIf",!t.loading[e.id]&&!t.mobile),Dr(1),jo("ngIf",t.loading[e.id])}}function OP(e,t){if(1&e&&(Vo(0,"div",10),Vo(1,"div",11),Vo(2,"strong"),fs(3),Zo(),Zo(),Fo(4,IP,5,6,"button",12),Zo()),2&e){const e=t.$implicit,i=es(2);Dr(3),vs(e.entryName),Dr(1),jo("ngIf","removed"===i.cssClass||"oftenDeleted"===i.cssClass)}}function PP(e,t){if(1&e&&(Vo(0,"div"),Fo(1,OP,5,2,"div",9),Zo()),2&e){const e=es();Dr(1),jo("ngForOf",e.entries)}}const TP=function(e){return{"miam-basket-preview-disabled__chevron__down":e}},MP={unavailable:{cssClass:"unavailable"},removed:{cssClass:"removed"},oftenDeleted:{cssClass:"oftenDeleted"}};let LP=(()=>{class e{constructor(e){this.cdr=e,this.mode="unavailable",this.reduced=!1,this.alwaysExpanded=!1,this.entryAdded=new Bc,this.mobile=window.innerWidth<=768,this.icon=Iv,this.loading={}}ngOnInit(){MP[this.mode]&&(this.cssClass=MP[this.mode].cssClass)}ngOnChanges(){this.alwaysExpanded&&(this.reduced=!1)}onResize(e){this.mobile=window.innerWidth<=768,this.cdr.detectChanges()}toggleReduced(){this.alwaysExpanded||(this.reduced=!this.reduced,this.cdr.detectChanges())}addEntry(e){this.loading[e.id]=!0,this.cdr.detectChanges(),this.entryAdded.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-basket-preview-disabled"]],hostBindings:function(e,t){1&e&&Jo("resize",(function(e){return t.onResize(e)}),!1,Bt)},inputs:{entries:"entries",mode:"mode",reduced:"reduced",alwaysExpanded:"alwaysExpanded"},outputs:{entryAdded:"entryAdded"},features:[Qt],decls:11,vars:10,consts:[[1,"miam-basket-preview-disabled"],[1,"miam-basket-preview-disabled__header",3,"ngClass","click"],[1,"miam-basket-preview-disabled__header__caption"],["class","miam-basket-preview-disabled__header__caption__text",4,"ngIf"],[1,"miam-basket-preview-disabled__header__caption__number"],[1,"miam-basket-preview-disabled__header__chevron",3,"ngClass"],["height","32","width","32","primaryColor","#fff",3,"iconName"],[4,"ngIf"],[1,"miam-basket-preview-disabled__header__caption__text"],["class","miam-basket-preview-disabled__entry",4,"ngFor","ngForOf"],[1,"miam-basket-preview-disabled__entry"],[1,"text-muted"],["class","m-button-grey",3,"ngClass","click",4,"ngIf"],[1,"m-button-grey",3,"ngClass","click"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Jo("click",(function(){return t.toggleReduced()})),Vo(2,"span",2),Fo(3,xP,2,0,"span",3),Fo(4,CP,2,0,"span",3),Fo(5,kP,2,0,"span",3),Vo(6,"span",4),fs(7),Zo(),Zo(),Vo(8,"div",5),Qo(9,"ng-miam-icon",6),Zo(),Zo(),Fo(10,PP,2,1,"div",7),Zo()),2&e&&(Dr(1),jo("ngClass",t.cssClass),Dr(2),jo("ngIf","unavailable"===t.mode),Dr(1),jo("ngIf","removed"===t.mode),Dr(1),jo("ngIf","oftenDeleted"===t.mode),Dr(2),_s(" (",t.entries.length,") "),Dr(1),jo("ngClass",kc(8,TP,!t.reduced)),Dr(1),jo("iconName",t.icon.ChevronDown),Dr(1),jo("ngIf",!t.reduced))},directives:[Hd,Zd,VS,Nd,$E],styles:[":host{--unavailable-color:var(--miam-unavailable-color,#d04242);--oftenDeleted-color:var(--miam-oftenDeleted-color,#daa520);--removed-color:var(--miam-removed-color,#daa520)}.miam-basket-preview-disabled .miam-basket-preview-disabled__header{position:relative;border-radius:4px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;color:#fff;padding:2px 15px 2px 25px;margin-bottom:5px;width:100%;cursor:pointer;-webkit-tap-highlight-color:transparent}.miam-basket-preview-disabled .miam-basket-preview-disabled__header.unavailable{background-color:var(--unavailable-color)}.miam-basket-preview-disabled .miam-basket-preview-disabled__header.removed{background-color:var(--removed-color)}.miam-basket-preview-disabled .miam-basket-preview-disabled__header.oftenDeleted{background-color:var(--oftenDeleted-color)}.miam-basket-preview-disabled .miam-basket-preview-disabled__header .miam-basket-preview-disabled__header__chevron{cursor:pointer;transition-duration:.5s}.miam-basket-preview-disabled .miam-basket-preview-disabled__header .miam-basket-preview-disabled__header__chevron svg{width:18px}.miam-basket-preview-disabled .miam-basket-preview-disabled__header .miam-basket-preview-disabled__chevron__down{transform:rotate(-180deg)}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry{background-color:var(--m-color-grey);margin:0 0 5px 25px;padding:8px 10px;line-height:1.2;font-size:14px;display:flex;justify-content:space-between;align-items:center}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry .text-muted:first-letter{text-transform:capitalize}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry:last-child{border:none}@media (max-width:768px){.miam-basket-preview-disabled .miam-basket-preview-disabled__entry{padding:8px 15px}}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry .miam-loader{width:14px;height:14px;border-width:3px}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry .m-button-grey{transition:none}.miam-basket-preview-disabled .miam-basket-preview-disabled__entry .m-button-grey.loading{padding-top:10px;padding-bottom:10px}"],encapsulation:2}),e})();function RP(e,t){1&e&&Qo(0,"ng-miam-icon",26),2&e&&jo("iconName",es(2).icon.Trash)}function zP(e,t){1&e&&(Vo(0,"div",27),Qo(1,"ng-miam-loader"),Zo())}function FP(e,t){if(1&e){const e=Xo();Vo(0,"div",23),Jo("click",(function(t){return gi(e),es().removeLine(t)})),Fo(1,RP,1,1,"ng-miam-icon",24),Fo(2,zP,2,0,"ng-template",null,25,rl),Zo()}if(2&e){const e=Ho(3),t=es();Dr(1),jo("ngIf",!t.removing)("ngIfElse",e)}}function HP(e,t){if(1&e&&(Vo(0,"div"),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.line.description[0])}}function BP(e,t){if(1&e&&(Vo(0,"div"),fs(1),Vo(2,"span"),fs(3),Mc(4,"async"),Zo(),Vo(5,"span"),fs(6," /"),Zo(),Vo(7,"span"),fs(8," tradof#personne# "),Zo(),Zo()),2&e){const e=es();Dr(1),_s("",e.line.description[1]," "),Dr(2),vs(Lc(4,2,e.currency))}}function jP(e,t){1&e&&(Vo(0,"span"),fs(1,"Hide details"),Zo())}function NP(e,t){1&e&&(Vo(0,"span"),fs(1,"See details"),Zo())}function VP(e,t){if(1&e&&(Vo(0,"div",28),Fo(1,jP,2,0,"span",9),fs(2," \xa0 "),Fo(3,NP,2,0,"span",9),Zo()),2&e){const e=es();Dr(1),jo("ngIf",e.expanded),Dr(2),jo("ngIf",!e.expanded)}}function ZP(e,t){1&e&&(Vo(0,"div",28),fs(1," See the recipe "),Zo())}const QP=function(e){return{disable:e}};function WP(e,t){if(1&e){const e=Xo();Vo(0,"div",29),Jo("click",(function(){gi(e);const t=es();return t.changeProduct(t.line)})),Vo(1,"a",30),fs(2,"Change product"),Zo(),Zo()}if(2&e){const e=es();Dr(1),jo("ngClass",kc(1,QP,e.disableItemSelector))}}function UP(e,t){if(1&e&&(Vo(0,"div",31),Vo(1,"span",32),fs(2),Zo(),Zo()),2&e){const e=es();Dr(2),vs(e.line.inlineTag)}}function YP(e,t){if(1&e&&(Vo(0,"div",33),Vo(1,"span"),fs(2),Zo(),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),fs(6),Mc(7,"async"),Zo(),Zo()),2&e){const e=es();Dr(2),_s("",e.priceIntegerPart(),","),Dr(2),vs(e.priceDecimalPart()),Dr(2),_s(" ",Lc(7,3,e.currency),"")}}function XP(e,t){if(1&e&&(Qo(0,"ng-miam-recipe-pricing",34),Mc(1,"async")),2&e){const e=es();jo("recipe",Lc(1,2,e.recipesService.get(e.line.id)))("serves",e.line.count)}}function GP(e,t){1&e&&(Vo(0,"div",35),fs(1,"for"),Zo())}function qP(e,t){1&e&&(Vo(0,"span"),fs(1,"people"),Zo())}function JP(e,t){1&e&&(Vo(0,"span"),fs(1,"person"),Zo())}function KP(e,t){if(1&e&&(Vo(0,"div",36),Fo(1,qP,2,0,"span",9),Fo(2,JP,2,0,"span",9),Zo()),2&e){const e=es();Dr(1),jo("ngIf",e.line.count>1),Dr(1),jo("ngIf",!(e.line.count>1))}}function $P(e,t){if(1&e){const e=Xo();Vo(0,"div",37),Vo(1,"button",38),Jo("click",(function(t){return gi(e),es().toggleRecipeDisplay(t,!0)})),Qo(2,"ng-miam-icon",39),Zo(),Zo()}if(2&e){const e=es();Dr(2),jo("width",24)("height",24)("iconName",e.icon.Cart)}}function eT(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-basket-preview-line",47),Jo("removed",(function(t){return gi(e),es(3).deleteEntry(t.record)}))("replaceItem",(function(){gi(e);const t=es(3);return t.replaceItem.emit(t.line)})),Zo()}if(2&e){const e=t.$implicit,i=es(3);jo("line",e)("displayItemsUnitaryPrice",i.displayItemsUnitaryPrice)("originTrace",i.eventTrace())("blockStates",i.blockStates)}}function tT(e,t){if(1&e&&Qo(0,"ng-miam-basket-preview-disabled",48),2&e){const e=es(3);jo("entries",e.line.entries.notFound)("alwaysExpanded",e.itemsAlwaysExpanded)}}function iT(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-basket-preview-disabled",49),Jo("entryAdded",(function(t){return gi(e),es(3).addEntry(t)})),Zo()}if(2&e){const e=es(3);jo("entries",e.line.entries.oftenDeleted)("alwaysExpanded",e.itemsAlwaysExpanded)}}function nT(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-basket-preview-disabled",50),Jo("entryAdded",(function(t){return gi(e),es(3).addEntry(t)})),Zo()}if(2&e){const e=es(3);jo("entries",e.line.entries.removed)("alwaysExpanded",e.itemsAlwaysExpanded)("reduced",!0)}}function rT(e,t){if(1&e&&(Vo(0,"div"),Fo(1,eT,1,4,"ng-miam-basket-preview-line",43),Mc(2,"async"),Fo(3,tT,1,2,"ng-miam-basket-preview-disabled",44),Fo(4,iT,1,2,"ng-miam-basket-preview-disabled",45),Fo(5,nT,1,3,"ng-miam-basket-preview-disabled",46),Zo()),2&e){const e=es(2);Dr(1),jo("ngForOf",Lc(2,4,e.entriesLines$)),Dr(2),jo("ngIf",e.line.entries.notFound.length>0),Dr(1),jo("ngIf",e.line.entries.oftenDeleted.length>0),Dr(1),jo("ngIf",e.line.entries.removed.length>0)}}function aT(e,t){1&e&&(Vo(0,"div",51),Qo(1,"ng-miam-loader"),Vo(2,"div"),fs(3,"Calculation of ingredients..."),Zo(),Zo())}function oT(e,t){if(1&e&&(Vo(0,"div",40),Fo(1,rT,6,6,"div",41),Fo(2,aT,4,0,"ng-template",null,42,rl),Zo()),2&e){const e=Ho(3),t=es();Dr(1),jo("ngIf",!t.loading)("ngIfElse",e)}}const sT=function(e,t,i){return{clickable:e,expanded:t,elevate:i}};let cT=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o,s,c,l){super(r),this.cdr=e,this.recipesService=t,this.listsService=i,this.basketsService=n,this.analyticsService=r,this.posService=a,this.userService=o,this.contextService=s,this.elementRef=c,this.supplierService=l,this.displayTotalPricing=!0,this.recipesAlwaysExpanded=!1,this.itemsAlwaysExpanded=!1,this.displayItemsUnitaryPrice=!1,this.removed=new Bc,this.countChanged=new Bc,this.replaceItem=new Bc,this.showRecipe=new Bc,this.entriesLines$=new dm(null),this.expanded=!1,this.loading=!0,this.disableItemSelector=!1,this.selectItem=!1,this.icon=Iv,this.removing=!1,this.currency=this.supplierService.supplier$.pipe(ig(e=>null==e),D(e=>e.currency)),this.subscriptions=[]}ngOnInit(){this.uniqueLine&&(this.expanded=!0,this.buildEntriesLines())}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}currentPath(){return""}currentProps(){var e,t;return(null===(t=null===(e=this.line)||void 0===e?void 0:e.record)||void 0===t?void 0:t.entryName)?{entry_name:this.line.record.entryName}:{}}changeCount(e){this.line.count!==e&&(this.line.count=e,this.line.hasEntries()||this.line.displayMode?this.countChanged.emit(this.line):this.handleSublineCountChange(e))}handleSublineCountChange(e){0!==e?(this.line.record.attributes.quantity=e,this.line.record.updateTotalPrice(),this.sendEvent(this.analyticsService.EVENT_ENTRY_CHANGE_QUANTITY),this.subscriptions.push(this.line.record.save().pipe(ug(()=>this.basketsService.reloadBasket())).subscribe())):this.removed.emit(this.line)}toggleExpanded(e){this.line.hasEntries()&&!this.uniqueLine&&"input-container"!==e.target.parentElement.className&&"remove"!==e.target.parentElement.className&&"svg"!==e.target.parentElement.nodeName&&(this.expanded=!!this.recipesAlwaysExpanded||!this.expanded,this.cdr.detectChanges(),this.entriesLines$.value||this.buildEntriesLines())}deleteEntry(e){Object.assign(this.props(),{entry_name:e.entryName}),this.sendEvent(this.analyticsService.EVENT_ENTRY_DELETE),wP(this.line.entries.found,t=>t.id===e.id),this.buildEntriesLines();const t=e.relationships["groceries-entry"].data;t.attributes.status="deleted",this.subscriptions.push(t.save().pipe(ug(()=>this.basketsService.reloadBasket())).subscribe())}changeProduct(e){var t;null===(t=this.blockStates)||void 0===t||t.next({currentOpenLine:e.id,overlayOpen:!0,lineComponent:this}),this.selectItem=!0,this.cdr.detectChanges(),this.replaceItem.emit(e)}productChosen(e){var t;this.selectItem=!1,e&&(this.disableItemSelector=!0),null===(t=this.blockStates)||void 0===t||t.next({currentOpenLine:null,overlayOpen:!1,lineComponent:null}),this.cdr.detectChanges(),this.elementRef.nativeElement.scrollIntoView(!1)}buildEntriesLines(){const e=[...this.line.entries.found,...this.line.entries.notFound,...this.line.entries.oftenDeleted,...this.line.entries.removed];e.map(e=>{e.setItemsSelection(),e.updateTotalPrice()}),this.entriesLines$.next(e.filter(e=>this.line.entries.found.map(e=>e.id).includes(e.id)).map(e=>Vg.fromBasketEntry(e))),this.loading=!1,this.cdr.detectChanges()}addEntry(e){Object.assign(this.props(),{entry_name:e.entryName}),this.sendEvent(this.analyticsService.EVENT_ENTRY_ADD);const t=e.relationships["groceries-entry"].data;t.attributes.status="active",this.subscriptions.push(t.save().pipe(ug(()=>this.basketsService.reloadBasket())).subscribe())}trackByItemId(e,t){return t?t.record["selected-item-id"]+"-"+t.record.attributes.quantity:null}toggleRecipeDisplay(e,t=!1){this.line.isRecipe&&(t?Sg([this.userService.isLogged$.asObservable().pipe(cg(1)),this.posService.isPosValid().pipe(cg(1))]).subscribe(e=>{this.contextService.hookCallback(e[0],e[1])&&this.addRecipeActionOK()}):this.recipesService.display(this.line.id,{guests:this.line.count},this.eventTrace()),e.stopPropagation())}addRecipeActionOK(){const e=Object.assign(this.props(),{recipe_id:this.line.id});this.subscriptions.push(this.listsService.appendRecipeToList(this.line.id,this.line.count,{originPath:this.path(),props:e}).subscribe()),this.recipesService.display(this.line.id,{guests:this.line.count,previewMode:!0},this.eventTrace())}removeLine(e){this.removing=!0,this.cdr.detectChanges(),yI(e),this.removed.emit(this.line)}priceIntegerPart(){var e;const t=null===(e=this.priceToDisplay())||void 0===e?void 0:e.toString().split(".");return(null==t?void 0:t.length)>0?t[0]:"0"}priceDecimalPart(){var e;const t=null===(e=this.priceToDisplay())||void 0===e?void 0:e.toString().split(".");return 2===(null==t?void 0:t.length)?t[1]:"00"}priceToDisplay(){if(this.line.isRecipe||!this.displayItemsUnitaryPrice||null===this.line.price)return this.line.price;const e=this.line.record.attributes["basket-entries-items"].find(e=>e.item_id===this.line.record.attributes["selected-item-id"]);return e?parseFloat(e["unit-price"]).toFixed(2):"0.00"}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(Ag),Bo(Dv),Bo(gg),Bo(sv),Bo(Ug),Bo(i_),Bo(js),Bo(rv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-basket-preview-line"]],inputs:{line:"line",uniqueLine:"uniqueLine",blockStates:"blockStates",displayTotalPricing:"displayTotalPricing",recipesAlwaysExpanded:"recipesAlwaysExpanded",itemsAlwaysExpanded:"itemsAlwaysExpanded",displayItemsUnitaryPrice:"displayItemsUnitaryPrice"},outputs:{removed:"removed",countChanged:"countChanged",replaceItem:"replaceItem",showRecipe:"showRecipe"},features:[yo],decls:28,vars:25,consts:[[1,"miam-basket-preview-line",3,"id","ngClass","click"],[1,"miam-basket-preview-line__item"],[1,"miam-basket-preview-line__item__left"],["class","miam-basket-preview-line__item__remove",3,"click",4,"ngIf"],[1,"miam-basket-preview-line__item__picture"],[3,"src","click"],[1,"miam-basket-preview-line__item__details"],[1,"miam-basket-preview-line__item__title",3,"click"],[1,"miam-basket-preview-line__item__description"],[4,"ngIf"],[1,"miam-basket-preview-line__item__actions"],["class","miam-basket-preview-line__item__showDetails",4,"ngIf"],["class","miam-basket-preview-line__item__change",3,"click",4,"ngIf"],["class","miam-basket-preview-line__item__inlineTag__container",4,"ngIf"],[1,"miam-basket-preview-line__item__right"],["class","miam-basket-preview-line__item__price",4,"ngIf","ngIfElse"],["pricePerguest",""],[1,"miam-basket-preview-line__item__count"],["class","miam-basket-preview-line__item__count__for",4,"ngIf"],[3,"counter","minRange","counterChange"],["class","miam-basket-preview-line__item__count__people",4,"ngIf"],["class","miam-basket-preview-line__add__button",4,"ngIf"],["class","miam-basket-preview-lines",4,"ngIf"],[1,"miam-basket-preview-line__item__remove",3,"click"],["height","24","width","24","primaryColor","var(--m-color-grey-text-dark)",3,"iconName",4,"ngIf","ngIfElse"],["addLoader",""],["height","24","width","24","primaryColor","var(--m-color-grey-text-dark)",3,"iconName"],[1,"icon-container"],[1,"miam-basket-preview-line__item__showDetails"],[1,"miam-basket-preview-line__item__change",3,"click"],[1,"miam-basket-preview-line__item__change__link",3,"ngClass"],[1,"miam-basket-preview-line__item__inlineTag__container"],[1,"miam-basket-preview-line__item__inlineTag"],[1,"miam-basket-preview-line__item__price"],[3,"recipe","serves"],[1,"miam-basket-preview-line__item__count__for"],[1,"miam-basket-preview-line__item__count__people"],[1,"miam-basket-preview-line__add__button"],[1,"m-button-primary",3,"click"],["primaryColor","#fff",3,"width","height","iconName"],[1,"miam-basket-preview-lines"],[4,"ngIf","ngIfElse"],["loader",""],[3,"line","displayItemsUnitaryPrice","originTrace","blockStates","removed","replaceItem",4,"ngFor","ngForOf"],["mode","unavailable",3,"entries","alwaysExpanded",4,"ngIf"],["mode","oftenDeleted",3,"entries","alwaysExpanded","entryAdded",4,"ngIf"],["mode","removed",3,"entries","alwaysExpanded","reduced","entryAdded",4,"ngIf"],[3,"line","displayItemsUnitaryPrice","originTrace","blockStates","removed","replaceItem"],["mode","unavailable",3,"entries","alwaysExpanded"],["mode","oftenDeleted",3,"entries","alwaysExpanded","entryAdded"],["mode","removed",3,"entries","alwaysExpanded","reduced","entryAdded"],[1,"miam-basket-preview-line__loader-container"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Jo("click",(function(e){return t.line.displayMode?t.toggleRecipeDisplay(e):t.toggleExpanded(e)})),Vo(1,"div",1),Vo(2,"div",2),Fo(3,FP,4,2,"div",3),Vo(4,"div",4),Vo(5,"img",5),Jo("click",(function(e){return t.toggleRecipeDisplay(e)})),Zo(),Zo(),Vo(6,"div",6),Vo(7,"strong",7),Jo("click",(function(e){return t.toggleRecipeDisplay(e)})),fs(8),Mc(9,"capitalizeFirstLetter"),Zo(),Vo(10,"div",8),Fo(11,HP,2,1,"div",9),Fo(12,BP,9,4,"div",9),Zo(),Vo(13,"div",10),Fo(14,VP,4,2,"div",11),Fo(15,ZP,2,0,"div",11),Fo(16,WP,3,3,"div",12),Fo(17,UP,3,1,"div",13),Zo(),Zo(),Zo(),Vo(18,"div",14),Fo(19,YP,8,5,"div",15),Fo(20,XP,2,4,"ng-template",null,16,rl),Vo(22,"div",17),Fo(23,GP,2,0,"div",18),Vo(24,"ng-miam-counter-input",19),Jo("counterChange",(function(e){return t.changeCount(e)})),Zo(),Fo(25,KP,3,2,"div",20),Zo(),Fo(26,$P,3,3,"div",21),Zo(),Zo(),Zo(),Fo(27,oT,4,2,"div",22)),2&e){const e=Ho(21);rs("id",t.line.id),jo("ngClass",Sc(21,sT,t.line.hasEntries()||t.line.displayMode,t.expanded,t.selectItem)),Dr(3),jo("ngIf",!t.uniqueLine&&!t.line.displayMode),Dr(2),jo("src",t.line.picture,cr),Dr(3),_s(" ",Lc(9,19,t.line.title)," "),Dr(3),jo("ngIf",t.line.description.length>0),Dr(1),jo("ngIf",t.line.description.length>1),Dr(2),jo("ngIf",t.line.hasEntries()&&!t.uniqueLine),Dr(1),jo("ngIf",t.line.displayMode),Dr(1),jo("ngIf",!t.line.isRecipe&&(null==t.line||null==t.line.record||null==t.line.record.candidateItems?null:t.line.record.candidateItems.length)>0),Dr(1),jo("ngIf",t.line.inlineTag),Dr(2),jo("ngIf",t.displayTotalPricing||!t.line.isRecipe)("ngIfElse",e),Dr(4),jo("ngIf",t.line.isRecipe),Dr(1),jo("counter",t.line.count)("minRange",t.line.isRecipe?1:0),Dr(1),jo("ngIf",t.line.isRecipe),Dr(1),jo("ngIf",t.line.displayMode),Dr(1),jo("ngIf",t.expanded)}},directives:[Hd,Zd,nO,VS,$E,DO,Nd,e,LP],pipes:[_D,au],styles:[":root{--price-color:var(--miam-price-color,green);--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{display:flex;align-items:center;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin:0 30px 0 15px;align-self:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container{background-color:var(--m-color-grey);border-radius:12.5px;width:25px!important;height:25px!important;padding:6px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container .miam-loader,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container svg{cursor:pointer;color:var(--m-color-grey-text);border-top-color:var(--m-color-grey-text);width:13px;height:13px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{margin-right:25px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{font-size:var(--m-font-size-medium);display:inline-block}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{display:inline-block;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{font-size:16px;color:var(--m-color-grey-text)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:absolute;right:18px;margin:0;bottom:58px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;width:33%;position:absolute;top:16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{position:absolute;bottom:8px;left:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;position:relative;padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:relative;right:unset;margin-right:15px;bottom:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;width:72px;position:relative;top:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{position:relative;bottom:unset;flex-direction:column;gap:8px}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"],encapsulation:2,changeDetection:0}),e})();function lT(e,t){if(1&e){const e=Xo();Vo(0,"div",12),Jo("click",(function(){gi(e);const i=t.$implicit;return es().onSelectItem(i)})),Vo(1,"div",13),Qo(2,"ng-miam-icon",14),Qo(3,"img",15),Zo(),Vo(4,"div",13),Vo(5,"div",16),Vo(6,"div",6),fs(7),Zo(),Zo(),Zo(),Vo(8,"div",13),Vo(9,"div",7),Vo(10,"span"),fs(11),Zo(),Vo(12,"span"),fs(13),Zo(),Vo(14,"span"),fs(15),Mc(16,"async"),Zo(),Zo(),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es();Dr(2),jo("height",16)("width",16)("iconName",i.icon.Swap),Dr(1),jo("src",null==e||null==e.attributes?null:e.attributes.image,cr),Dr(4),ys(" ",null==e||null==e.attributes?null:e.attributes.name," | ",null==e?null:e.capacity," "),Dr(4),_s("",i.priceIntegerPart(null==e?null:e.attributes["unit-price"]),","),Dr(2),vs(i.priceDecimalPart(null==e?null:e.attributes["unit-price"])),Dr(2),_s(" ",Lc(16,9,i.currency),"")}}let dT=(()=>{class e extends rO{constructor(e,t,i,n){super(i),this.cdr=e,this.basketsService=t,this.analyticsService=i,this.supplierService=n,this.selected=new Bc,this.icon=Iv,this.currency=this.supplierService.supplier$.pipe(ig(e=>null==e),D(e=>e.currency))}ngOnInit(){this.initLine(),this.pageview()}onClose(){this.selected.emit()}currentPath(){return"replace-item"}currentProps(){return{entry_name:this.line.record.entryName}}onSelectItem(e){this.sendEvent(this.analyticsService.EVENT_ENTRY_REPLACE),this.line.record.selectItem(e.id),this.line.record.save().pipe(ug(()=>this.basketsService.reloadBasket())).subscribe(),this.selected.emit(this.line.id)}initLine(){this.currentItem=this.line.record.attributes["basket-entries-items"][0],this.items=this.line.record.relationships.items.data.filter(e=>e.id===this.currentItem.item_id)}priceIntegerPart(e){return e.split(".")[0]}priceDecimalPart(e){const t=e.split(".");return 2===(null==t?void 0:t.length)?(t[1]+"00").slice(0,2):"00"}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Dv),Bo(gg),Bo(rv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-replace-item"]],inputs:{line:"line"},outputs:{selected:"selected"},features:[yo],decls:24,vars:10,consts:[[1,"miam-replace-item"],[1,"m-button-secondary",3,"click"],["primaryColor","var(--m-color-primary)",3,"iconName"],[1,"miam-replace-item__selected"],["alt","Image non disponible",1,"miam-replace-item__selected__picture",3,"src"],[1,"miam-replace-item__selected__column"],[1,"miam-replace-item__description"],[1,"miam-replace-item__price"],[1,"miam-replace-item__choices"],[1,"miam-replace-item__choices__action"],[1,"miam-replace-item__choices__list"],["class","miam-replace-item__choice",3,"click",4,"ngFor","ngForOf"],[1,"miam-replace-item__choice",3,"click"],[1,"miam-replace-item__choice__column"],[1,"miam-replace-item__choice__swap",3,"height","width","iconName"],[3,"src"],[1,"miam-replace-item__choice__content"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"button",1),Jo("click",(function(){return t.onClose()})),Qo(2,"ng-miam-icon",2),Vo(3,"span"),fs(4,"Back"),Zo(),Zo(),Vo(5,"div",3),Qo(6,"img",4),Vo(7,"div",5),Vo(8,"div",6),fs(9),Zo(),Vo(10,"div",7),Vo(11,"span"),fs(12),Zo(),Vo(13,"span"),fs(14),Zo(),Vo(15,"span"),fs(16),Mc(17,"async"),Zo(),Zo(),Zo(),Zo(),Vo(18,"div",8),Vo(19,"div",9),Vo(20,"div"),fs(21,"Replace this article with:"),Zo(),Zo(),Vo(22,"div",10),Fo(23,lT,17,11,"div",11),Zo(),Zo(),Zo()),2&e&&(Dr(2),jo("iconName",t.icon.ChevronDown),Dr(4),jo("src",null==t.line||null==t.line.record||null==t.line.record.selectedItem||null==t.line.record.selectedItem.attributes?null:t.line.record.selectedItem.attributes.image,cr),Dr(3),ys(" ",null==t.line||null==t.line.record?null:t.line.record.selectedItem.attributes.name," | ",null==t.line||null==t.line.record?null:t.line.record.selectedItem.capacity," "),Dr(3),_s("",t.priceIntegerPart(null==t.line?null:t.line.price),","),Dr(2),vs(t.priceDecimalPart(null==t.line?null:t.line.price)),Dr(2),_s(" ",Lc(17,8,t.currency),""),Dr(7),jo("ngForOf",null==t.line||null==t.line.record?null:t.line.record.candidateItems))},directives:[VS,Nd],pipes:[au],styles:[".miam-replace-item{width:100%;background:var(--m-color-white);height:100%}.miam-replace-item button{max-width:150px;padding:16px;margin-left:16px}.miam-replace-item button ng-miam-icon{margin-left:0;padding-top:20px;height:16px;transform:rotate(90deg)}.miam-replace-item button ng-miam-icon svg path:first-of-type{fill:none}.miam-replace-item .miam-replace-item__selected{display:flex;align-items:center;margin:16px;padding:16px;border-radius:16px;border:1px solid var(--m-color-primary)}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__picture{height:70px;margin:8px}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__column{display:flex;flex-direction:column;width:100%;padding:10px}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__column .miam-replace-item__description{text-align:left}.miam-replace-item .miam-replace-item__choices{width:auto;position:relative;display:flex;flex-direction:column;margin:auto;padding-bottom:80px;min-width:100%}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices{min-width:unset}}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar{width:5px;height:7px;cursor:-webkit-grab}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action{display:flex;justify-content:space-between;align-items:center;top:0}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action{margin-left:16px}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action div{font-weight:700;font-size:16px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action .miam-replace-item__choices__close{border:none;padding:0}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list{display:flex;flex-wrap:wrap;gap:16px;padding:16px}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list{display:flex;width:90vw;margin:auto;justify-content:space-between;gap:0;padding:0}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice{display:flex;flex-direction:column;border:1px solid var(--m-color-hairlines);border-radius:var(--m-border-radius);cursor:pointer;width:160px;-webkit-tap-highlight-color:transparent}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice{width:40vw;margin-top:8px}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column{display:inline-flex;flex-direction:column;align-items:center;gap:8px;margin:8px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column .miam-replace-item__choice__content{display:flex;flex-direction:column;align-items:center}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__swap{border-radius:16px;padding:4px;transition:var(--m-default-transition);border:1px solid var(--m-color-secondary);background-color:var(--m-color-secondary)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__swap .icon-container svg{fill:var(--m-color-white)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover{background-color:var(--m-color-white)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover .miam-replace-item__choice__swap{color:var(--m-color-secondary);background-color:#fff;transform:scale(1.1)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover .miam-replace-item__choice__swap .icon-container svg{fill:var(--m-color-secondary)}.miam-replace-item .miam-replace-item__title{font-size:16px;display:inline-block;white-space:normal;font-weight:700}.miam-replace-item .miam-replace-item__title:first-letter{text-transform:capitalize}.miam-replace-item .miam-replace-item__description{font-size:14px;white-space:normal;text-align:center}.miam-replace-item .miam-replace-item__price{font-weight:700;font-size:20px;text-align:right}"],encapsulation:2,changeDetection:0}),e})();const uT=function(e){return{display:e}};function mT(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-basket-preview-line",12),Jo("removed",(function(t){return gi(e),es(4).removeRecipe(t)}))("countChanged",(function(t){return gi(e),es(4).updateRecipe(t)}))("replaceItem",(function(){gi(e),es(3);const t=Ho(1);return es().scrolltop(t)})),Zo()}if(2&e){const e=t.$implicit,i=es(4);jo("line",e)("blockStates",i.blockStates)("recipesAlwaysExpanded",i.recipesAlwaysExpanded)("itemsAlwaysExpanded",i.itemsAlwaysExpanded)("displayItemsUnitaryPrice",i.displayItemsUnitaryPrice)("originTrace",i.eventTrace())("ngStyle",kc(7,uT,null!=i.blockStates&&null!=i.blockStates.value&&i.blockStates.value.overlayOpen?"none":"block"))}}function pT(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-replace-item",13),Jo("selected",(function(t){gi(e);const i=es(4);return null==i.blockStates||null==i.blockStates.value?null:i.blockStates.value.lineComponent.productChosen(t)})),Zo()}if(2&e){const e=es(4);jo("line",null==e.blockStates||null==e.blockStates.value?null:e.blockStates.value.lineComponent.line)("originTrace",e.eventTrace())}}function hT(e,t){1&e&&(Vo(0,"p"),fs(1,'Navigate to the recipe page, then click "Order ingredients".'),Zo())}function gT(e,t){if(1&e&&(Vo(0,"div",14),Vo(1,"p"),Vo(2,"b"),fs(3,"You have not selected a meal yet."),Zo(),Zo(),Fo(4,hT,2,0,"p",15),Zo()),2&e){const e=es(4);Dr(4),jo("ngIf",e.showNotice)}}function fT(e,t){if(1&e&&(Vo(0,"div",8),Fo(1,mT,1,9,"ng-miam-basket-preview-line",9),Fo(2,pT,1,2,"ng-miam-replace-item",10),Fo(3,gT,5,1,"div",11),Mc(4,"async"),Zo()),2&e){const e=es(3);Dr(1),jo("ngForOf",e.lines),Dr(1),jo("ngIf",null==e.blockStates||null==e.blockStates.value?null:e.blockStates.value.overlayOpen),Dr(1),jo("ngIf",!(Lc(4,3,e.loading)||e.lines&&0!==e.lines.length))}}function vT(e,t){1&e&&(Vo(0,"span"),fs(1,"Loading meal..."),Zo())}function _T(e,t){1&e&&(Vo(0,"span"),fs(1,"Loading meals..."),Zo())}function yT(e,t){if(1&e&&(Vo(0,"div",16),Qo(1,"ng-miam-loader"),Vo(2,"div"),Fo(3,vT,2,0,"span",15),Fo(4,_T,2,0,"span",15),Zo(),Zo()),2&e){const e=es(3);Dr(3),jo("ngIf",e.recipeId),Dr(1),jo("ngIf",!e.recipeId)}}function bT(e,t){if(1&e&&(Wo(0),Fo(1,fT,5,5,"div",6),Fo(2,yT,5,2,"div",7),Mc(3,"async"),Uo()),2&e){const e=es(2);Dr(1),jo("ngIf",e.showLines),Dr(1),jo("ngIf",Lc(3,2,e.loading))}}function wT(e,t){if(1&e&&(Vo(0,"div",3,4),Fo(2,bT,4,4,"ng-container",5),Mc(3,"async"),Zo()),2&e){const e=es(),t=Ho(4);Dr(2),jo("ngIf",Lc(3,2,e.posService.isPosValid()))("ngIfElse",t)}}function xT(e,t){1&e&&Qo(0,"ng-miam-cors-overlay")}function CT(e,t){1&e&&(Vo(0,"div",17),Vo(1,"span"),fs(2,"Sorry, this store does not allow you to select meals."),Zo(),Qo(3,"br"),Vo(4,"span"),fs(5,"Please select another store"),Zo(),Zo())}let kT=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o){super(o),this.cdr=e,this.listsService=t,this.posService=i,this.contextService=n,this.basketsService=r,this.mediaMatcher=a,this.analyticsService=o,this.showNotice=!1,this.recipesAlwaysExpanded=!1,this.itemsAlwaysExpanded=!1,this.displayItemsUnitaryPrice=!1,this.statsUpdated=new Bc,this.guestCountChanged=new Bc,this.loading=new dm(!0),this.showLines=!0,this.corsIssues=!1,this.icon=Iv,this.isMobile=!1,this.subscriptions=[],this.linesHashes={},this.isMobile=this.mediaMatcher.matchMedia("(max-width: 1023px)").matches}ngOnInit(){this.blockStates=new dm({currentOpenLine:null,overlayOpen:!1,lineComponent:null}),this.subscriptions=[this.contextService.getCORSIssuesState().subscribe(e=>{this.corsIssues=e,this.cdr.detectChanges()}),this.blockStates.subscribe(e=>this.handelblockState(e)),this.listsService.takeFirstList().pipe(ug(e=>this.basketsService.basketPreview$.pipe(ig(t=>!t||t.length!==e.recipeInfos.length),um(e=>this.refreshPreview(e.reverse()))))).subscribe(()=>{this.loading.next(!1),this.cdr.detectChanges()}),this.basketsService.basketStats$.pipe(ig(e=>!e),um(e=>this.statsUpdated.emit(e))).subscribe(),this.posService.isPosValid().subscribe(()=>{this.cdr.detectChanges()})]}ngOnChanges(e){Object.keys(e).includes("recipeId")&&this.loading.next(!0),this.pageview()}ngAfterViewInit(){this.basketPreviewRecipeRows&&this.recipeId&&this.findAndFocusCurrentRecipe(this.basketPreviewRecipeRows.toArray()),this.subscriptions.push(this.basketPreviewRecipeRows.changes.subscribe(e=>{this.findAndFocusCurrentRecipe(e)}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}currentPath(){return"basket-preview"}currentProps(){return this.recipeId?{recipe_id:this.recipeId}:{}}toggleLines(){this.showLines=!this.showLines,this.cdr.detectChanges()}removeRecipe(e){this.listsService.removeRecipeFromList(e.id,this.eventTrace()).subscribe()}updateRecipe(e){this.listsService.updateRecipeGuests(e.id,e.count,this.eventTrace()).subscribe(),this.guestCountChanged.emit(e.count)}closeOverlay(){this.blockStates.getValue()&&this.blockStates.getValue().lineComponent&&this.blockStates.value.lineComponent.productChosen()}handelblockState(e){this.cdr.detectChanges()}refreshPreview(e){if(this.lines){const t=[];e.forEach(e=>{t.push(e.id);const i=this.lines.find(t=>t.id===e.id);if(i){Object.assign(i,e);const t=this.lineComponents.find(t=>t.line.id===e.id);t.cdr.markForCheck();const n=e.entries.found.sort(e=>parseInt(e.id,10)).map(e=>e.attributes["selected-item-id"]+"-"+e.attributes.quantity).join("/");n!==this.linesHashes[e.id]&&t.entriesLines$.value&&(t.buildEntriesLines(),this.linesHashes[e.id]=n)}else this.lines.push(e)}),wP(this.lines,e=>!t.includes(e.id))}else this.lines=e;this.cdr.detectChanges()}scrolltop(e){if(this.isMobile){const t=document.getElementsByClassName("miam-wrapper-preview")[0];return t?void(t.scrollTop=0):void e.scrollIntoView()}e.scrollIntoView()}findAndFocusCurrentRecipe(e){const t=e.find(e=>e.line.id===this.recipeId);t&&(t.expanded=!0,t.buildEntriesLines(),t.cdr.detectChanges(),t.elementRef.nativeElement.scrollIntoView())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Ag),Bo(sv),Bo(i_),Bo(Dv),Bo(Kv),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-basket-preview-block"]],viewQuery:function(e,t){var i;1&e&&(Kc(cT,!0),Kc(cT,!0)),2&e&&(Jc(i=el())&&(t.lineComponents=i),Jc(i=el())&&(t.basketPreviewRecipeRows=i))},inputs:{recipeId:"recipeId",showNotice:"showNotice",recipesAlwaysExpanded:"recipesAlwaysExpanded",itemsAlwaysExpanded:"itemsAlwaysExpanded",displayItemsUnitaryPrice:"displayItemsUnitaryPrice"},outputs:{statsUpdated:"statsUpdated",guestCountChanged:"guestCountChanged",loading:"loading"},features:[yo,Qt],decls:5,vars:2,consts:[["class","miam-basket-preview-block",4,"ngIf","ngIfElse"],["cors",""],["noPos",""],[1,"miam-basket-preview-block"],["previewBlockTop",""],[4,"ngIf","ngIfElse"],["class","miam-basket-preview-block__lines",4,"ngIf"],["class","miam-basket-preview-block__lines__loader",4,"ngIf"],[1,"miam-basket-preview-block__lines"],[3,"line","blockStates","recipesAlwaysExpanded","itemsAlwaysExpanded","displayItemsUnitaryPrice","originTrace","ngStyle","removed","countChanged","replaceItem",4,"ngFor","ngForOf"],[3,"line","originTrace","selected",4,"ngIf"],["class","miam-basket-preview-block__lines__not-found",4,"ngIf"],[3,"line","blockStates","recipesAlwaysExpanded","itemsAlwaysExpanded","displayItemsUnitaryPrice","originTrace","ngStyle","removed","countChanged","replaceItem"],[3,"line","originTrace","selected"],[1,"miam-basket-preview-block__lines__not-found"],[4,"ngIf"],[1,"miam-basket-preview-block__lines__loader"],[1,"miam-basket-preview-block__noPos"]],template:function(e,t){if(1&e&&(Fo(0,wT,4,4,"div",0),Fo(1,xT,1,0,"ng-template",null,1,rl),Fo(3,CT,6,0,"ng-template",null,2,rl)),2&e){const e=Ho(2);jo("ngIf",!t.corsIssues)("ngIfElse",e)}},directives:[Zd,Nd,cT,Kd,dT,$E,ZS],pipes:[au],styles:[":host ::-webkit-scrollbar{width:5px;height:7px;cursor:-webkit-grab}:host ::-webkit-scrollbar-track{background:var(--m-color-grey)}:host ::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-basket-preview-block{position:relative;height:100%}.miam-basket-preview-block .miam-basket-preview-block__recipe__link{right:300px;top:60px;color:var(--m-color-grey-text);text-decoration:underline;position:absolute;transition:var(--m-default-transition);cursor:pointer;-webkit-tap-highlight-color:transparent}@media (min-width:1022px){.miam-basket-preview-block .miam-basket-preview-block__recipe__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-block .miam-basket-preview-block__header{display:flex;justify-content:space-between;padding-bottom:10px;margin-bottom:0}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions{display:flex;align-items:center}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions .miam-basket-preview-block__header__empty-basket{margin-right:20px}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions .miam-basket-preview-block__header__empty-basket .fa-trash-alt{margin-right:8px;width:13px;margin-top:-1px}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions .miam-basket-preview-block__header__chevron{cursor:pointer;transition-duration:.5s}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions .miam-basket-preview-block__header__chevron svg{width:18px}.miam-basket-preview-block .miam-basket-preview-block__header .miam-basket-preview-block__header__actions .miam-basket-preview-block__chevron__down{transform:rotate(-180deg)}.miam-basket-preview-block .miam-basket-preview-block__lines{transition:height .3s}.miam-basket-preview-block .miam-basket-preview-block__lines .miam-basket-preview-block__lines__not-found{margin-top:15px;margin-left:20px}.miam-basket-preview-block .miam-basket-preview-block__lines .miam-basket-preview-block__lines__loader,.miam-basket-preview-block .miam-basket-preview-block__lines__loader{display:flex;flex-direction:column;justify-content:center;align-items:center}.miam-basket-preview-block .miam-basket-preview-block__lines__loader{padding:10px}.miam-basket-preview-block .miam-basket-preview-block__noPos{font-size:17px}"],encapsulation:2,changeDetection:0}),e})(),AT=(()=>{class e{constructor(e){const t={"basket-preview-block":kT,"basket-preview-line":cT,"basket-preview-disabled":LP};Object.keys(t).map(i=>{const n=`webc-miam-${i}`;if(!customElements.get(n)){const r=b_(t[i],{injector:e});customElements.define(n,r)}})}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(fo))},imports:[[Cu,mb,cP,bP]]}),e})();function ST(e,t){1&e&&Qo(0,"img",11),2&e&&jo("src",es().article.logo,cr)}let ET=(()=>{class e{showArticle(){window.open(this.article.url,"_blank")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-catalog-article-card"]],inputs:{article:"article"},decls:17,vars:10,consts:[[1,"miam-catalog-article-card",3,"click"],[1,"miam-catalog-card__picture"],[1,"miam-catalog-card__picture__gradient"],["loading","lazy",1,"miam-catalog-card__picture__img",3,"src"],["class","miam-catalog-card__picture__sponsor",3,"src",4,"ngIf"],[1,"miam-catalog-card__attributes"],[1,"miam-catalog-article-card__attributes__title"],[1,"miam-catalog-card__attributes__infos"],[1,"miam-catalog-card__attributes__info"],[1,"miam-catalog-card__info__label"],["target","_blank",3,"href"],[1,"miam-catalog-card__picture__sponsor",3,"src"]],template:function(e,t){1&e&&(Vo(0,"div",0),Jo("click",(function(){return t.showArticle()})),Vo(1,"div",1),Vo(2,"div",2),Qo(3,"img",3),Fo(4,ST,1,1,"img",4),Zo(),Zo(),Vo(5,"div",5),Vo(6,"h4",6),fs(7),Mc(8,"ellipsis"),Zo(),Vo(9,"div",7),Vo(10,"div",8),Vo(11,"span",9),fs(12),Mc(13,"date"),Zo(),Zo(),Vo(14,"div",8),Vo(15,"a",10),fs(16,"See product"),Zo(),Zo(),Zo(),Zo(),Zo()),2&e&&(Dr(3),jo("src",t.article.image,cr),Dr(1),jo("ngIf",t.article.logo),Dr(3),vs(Rc(8,5,t.article.title||"",12)),Dr(5),vs(Lc(13,8,t.article.date||"")),Dr(3),jo("href",t.article.url,cr))},directives:[Zd],pipes:[bI,du],styles:['.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{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{min-height:78px;flex:1}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{float:left;flex:1;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;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}.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{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{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%;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{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;display:flex}.cal-week-view .cal-time-events .cal-day-columns{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:"\\00a0"}.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}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{display:flex;justify-content:center;align-items:center;border-radius:var(--m-button-radius);padding:var(--m-button-padding);cursor:pointer;font-size:var(--m-button-text-size);line-height:var(--m-button-text-height);font-weight:var(--m-button-text-weight);outline:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{display:flex;justify-content:space-between;align-items:center;max-width:320px;min-width:200px;border:1px solid var(--m-color-grey06);border-radius:5px;padding:8px 16px;margin-top:16px;outline:none}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-article-card .miam-catalog-card__attributes,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{display:flex;flex-direction:row;margin:auto;justify-content:space-between;align-items:center}.m-default-card{box-shadow:var(--m-shadow-small);background-color:var(--m-color-unpure-white);padding:16px;border-radius:8px}@media (max-width:1023px){.m-default-card{padding:8px;margin-bottom:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-white:var(--miam-color-white,#fafcfe);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-gap:var(--miam-button-gap,10px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-button-text-height:var(--miam-button-text-height,calc(1.5 * var(--m-button-text-size)));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-font-size-small:var(--miam-font-size-small,14px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-loader-size:var(--miam-loader-sizes,40px);--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-family:Work Sans;font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);line-height:24px;color:var(--m-color-slate)}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-weight:700;font-size:40px;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{transition:none!important;-webkit-transition:none!important;animation:none!important;-webkit-animation:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-catalog-article-card{position:relative;width:100%;min-width:var(--m-catalog-card-minwidth);height:var(--m-catalog-card-height);display:flex;flex-direction:column;background-color:var(--m-catalog-card-bg-color);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);border:1px solid #ddd;cursor:pointer}@media (min-width:1023px){.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-article-card .miam-catalog-card__picture{cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative;-webkit-tap-highlight-color:transparent}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{position:absolute;height:calc(var(--m-catalog-card-picture-height) + 1px);width:calc(100% + 2px);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);left:-1px;top:-1px}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{width:100%;height:100%;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:var(--m-catalog-card-picture-height);-o-object-fit:cover;object-fit:cover;z-index:var(--m-z-index-position-absolute-low);transition:var(--m-default-transition)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{position:absolute;top:16px;left:16px;width:64px;height:48px;justify-content:flex-start;display:flex;order:2;align-items:flex-start}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{position:absolute;bottom:16px;right:16px;width:72px;height:48px;justify-content:flex-end;display:flex;order:2;align-items:flex-end}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain}.miam-catalog-article-card .miam-catalog-card__attributes{flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{display:flex;flex-direction:column;align-items:center;width:100%;padding:0 16px}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{margin:2px 0 0;font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);color:var(--m-catalog-card-details-color);width:100%;text-align:center}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.1)}.miam-catalog-article-card:hover .miam-catalog-card__attributes .miam-catalog-card__attributes__info a,.miam-catalog-article-card:hover .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{color:var(--m-color-primary)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{overflow:hidden}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{display:none}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transition:all .3s ease;position:relative}.miam-catalog-article-card .miam-catalog-card__attributes{align-items:center}.miam-catalog-article-card .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{text-align:center;font-weight:700;line-height:1.3;margin:0;max-height:50px;overflow:hidden;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{justify-content:space-between;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info a{transition:all .3s ease}'],encapsulation:2,changeDetection:0}),e})();class DT{constructor(e){this.callback=e}call(e,t){return t.subscribe(new IT(e,this.callback))}}class IT extends h{constructor(e,t){super(e),this.add(new u(t))}}let OT=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o,s,c,l){super(s),this.cdr=e,this.recipeService=t,this.recipeEventsService=i,this.groceriesListsService=n,this.userService=r,this.posService=a,this.contextService=o,this.analyticsService=s,this.element=c,this.toastr=l,this.headerText="",this.displayPricing=!0,this.displayAddedOnPicture=!0,this.hovered=!1,this.icon=Iv,this.skeleton=$D,this.isPriceDisplayed=!0,this.addButtonLoading=!1,this.analyticsEventSent=!1,this.sendShowEventsOnScroll=!0,this.subscriptions=[],this.hide=new Bc}onScroll(e){this.sendShowEventsOnScroll&&this.sendShowEvent(),this.displayPrice()}currentPath(){return""}currentProps(){var e;return{recipe_id:null===(e=this.recipe)||void 0===e?void 0:e.id}}ngAfterViewInit(){this.sendShowEvent(),this.displayPrice(),this.subscriptions.push(this.groceriesListsService.list$.subscribe(()=>this.cdr.detectChanges())),this.subscriptions.push(this.recipeService.reloadRecipes$.subscribe(e=>{e&&this.cdr.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}addRecipe(e=!0){this.toggleButtonLoader(!0),Sg([this.userService.isLogged$.asObservable().pipe(cg(1)),this.posService.isPosValid().pipe(cg(1))]).subscribe(t=>{this.contextService.hookCallback(t[0],t[1])?this.addRecipeActionOK(e):this.addRecipeActionKO()})}addRecipeActionOK(e){this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(t=>{const i=!t;i&&this.recipeEventsService.sendEvent(this.recipe,this.recipeEventsService.ACTION_ADDED),this.subscriptions.push(this.groceriesListsService.appendRecipeToList(this.recipe.id,this.recipe.modifiedGuests,this.eventTrace()).pipe(cg(1)).subscribe(e=>{this.toggleButtonLoader(!1),i&&this.recipeAddedToastText&&this.recipeAddedToastText.length>0&&this.toastr.info(this.recipeAddedToastText,null,{closeButton:!0,progressBar:!0})})),e&&this.recipeService.displayObject(this.recipe,{guests:+this.recipe.modifiedGuests,previewMode:!0,wasAdded:i},this.eventTrace())}))}addRecipeActionKO(){sessionStorage.setItem("_miam/cached-recipe",JSON.stringify(this.recipe)),this.toggleButtonLoader(!1)}toggleHelper(){this.recipeService.toggleHelper(),this.cdr.detectChanges()}openCalendar(e){yI(e)}shareRecipe(e){yI(e)}toggleButtonLoader(e){this.addButtonLoading=e,this.cdr.detectChanges()}initIngredientsString(){var e;this.ingredientsConcatName="",(null===(e=null==this?void 0:this.recipe)||void 0===e?void 0:e.relationships)&&this.recipe.relationships.ingredients.data.forEach((e,t)=>{this.ingredientsConcatName+=""+e.attributes.name,this.ingredientsConcatName+=t+1===this.recipe.relationships.ingredients.data.length?"":", "})}isInViewport(){const e=this.element.nativeElement.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}sendShowEvent(){if(!this.recipe)return!1;!this.analyticsEventSent&&this.isInViewport()&&(this.sendEvent(this.analyticsService.EVENT_RECIPE_SHOW),this.recipeEventsService.enqueueEvent(this.recipe,this.recipeEventsService.ACTION_SHOWN),this.analyticsEventSent=!0)}displayPrice(){!this.isPriceDisplayed&&this.isInViewport()&&(this.isPriceDisplayed=!0,this.cdr.detectChanges())}ingredientPicture(e){return e.picture||this.contextService.defaultIngredientPicture}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(qf),Bo(Ag),Bo(Ug),Bo(sv),Bo(i_),Bo(gg),Bo(js),Bo(r_))},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],hostBindings:function(e,t){1&e&&Jo("scroll",(function(){return t.onScroll()}),!1,Bt)},inputs:{headerText:"headerText",displayPricing:"displayPricing",displayAddedOnPicture:"displayAddedOnPicture",recipeAddedToastText:"recipeAddedToastText"},outputs:{hide:"hide"},features:[yo],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();function PT(e,t){if(1&e&&(Vo(0,"div",38),Qo(1,"ng-miam-icon",39),Zo()),2&e){const e=es(3);Dr(1),jo("iconName",e.icon.Video)("width",100)("height",100)}}function TT(e,t){if(1&e&&Qo(0,"ng-miam-like-button",40),2&e){const e=es(3);jo("recipe",e.recipe)("originTrace",e.eventTrace())}}function MT(e,t){if(1&e&&(Vo(0,"div",41),Qo(1,"img",42),Zo()),2&e){const e=es(3);Dr(1),jo("src",e.recipe.sponsorLogoUrl,cr)}}function LT(e,t){if(1&e&&(Vo(0,"div",43),Qo(1,"img",42),Zo()),2&e){const e=es(3);Dr(1),jo("src",e.recipe.filigraneLogoUrl,cr)}}function RT(e,t){if(1&e){const e=Xo();Vo(0,"div",31),Jo("click",(function(){return gi(e),es(2).openRecipe()})),Qo(1,"img",32),Fo(2,PT,2,3,"div",33),Vo(3,"div",34),Fo(4,TT,1,2,"ng-miam-like-button",35),Mc(5,"async"),Zo(),Fo(6,MT,2,1,"div",36),Fo(7,LT,2,1,"div",37),Zo()}if(2&e){const e=es(2);Dr(1),jo("src",null==e.recipe?null:e.recipe.attributes["media-url"],cr),Dr(1),jo("ngIf",e.contextService.videoRecipesEnabled&&(null==e.recipe?null:e.recipe.videoId)),Dr(2),jo("ngIf",Lc(5,5,e.userService.isLogged$)),Dr(2),jo("ngIf",e.recipe.sponsorLogoUrl),Dr(1),jo("ngIf",e.recipe.filigraneLogoUrl)}}function zT(e,t){1&e&&Qo(0,"ng-miam-skeleton",44),2&e&&jo("type",es(2).skeleton.Picture)}function FT(e,t){if(1&e){const e=Xo();Vo(0,"div"),Vo(1,"div",45),Jo("click",(function(){return gi(e),es(2).openRecipe()})),fs(2),Zo(),Zo()}if(2&e){const e=es(2);Dr(2),_s(" ",null==e.recipe?null:e.recipe.attributes.title," ")}}function HT(e,t){1&e&&Qo(0,"ng-miam-skeleton",44),2&e&&jo("type",es(2).skeleton.Text)}function BT(e,t){if(1&e&&(Vo(0,"div",46),Qo(1,"ng-miam-icon",47),Vo(2,"span",48),fs(3),Zo(),Zo()),2&e){const e=es(2);Dr(1),jo("width",20)("height",20)("iconName",e.icon.Time),Dr(2),vs(null==e.recipe?null:e.recipe.totalTime)}}function jT(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",53),Uo()),2&e){const e=es(3);Dr(1),jo("width",44)("height",20)("iconName",e.icon.DifficultyMedium)}}function NT(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",53),Uo()),2&e){const e=es(3);Dr(1),jo("width",67)("height",20)("iconName",e.icon.DifficultyHigh)}}function VT(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",53),Uo()),2&e){const e=es(3);Dr(1),jo("width",20)("height",20)("iconName",e.icon.DifficultyLow)}}function ZT(e,t){1&e&&(Wo(0),Vo(1,"span",48),fs(2,"Beginner chef"),Zo(),Uo())}function QT(e,t){1&e&&(Wo(0),Vo(1,"span",48),fs(2,"Intermediate chef"),Zo(),Uo())}function WT(e,t){1&e&&(Wo(0),Vo(1,"span",48),fs(2,"Top chef"),Zo(),Uo())}function UT(e,t){1&e&&(Wo(0),Vo(1,"span",48),fs(2,"Beginner chef"),Zo(),Uo())}const XT=function(e,t,i){return{easy:e,medium:t,hard:i}};function GT(e,t){if(1&e&&(Vo(0,"div",49),Wo(1,50),Fo(2,jT,2,3,"ng-container",51),Fo(3,NT,2,3,"ng-container",51),Fo(4,VT,2,3,"ng-container",52),Uo(),Wo(5,50),Fo(6,ZT,3,0,"ng-container",51),Fo(7,QT,3,0,"ng-container",51),Fo(8,WT,3,0,"ng-container",51),Fo(9,UT,3,0,"ng-container",52),Uo(),Zo()),2&e){const e=es(2);jo("ngClass",Sc(8,XT,1===(null==e.recipe?null:e.recipe.difficulty),2===(null==e.recipe?null:e.recipe.difficulty),3===(null==e.recipe?null:e.recipe.difficulty))),Dr(1),jo("ngSwitch",null==e.recipe?null:e.recipe.difficulty),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3),Dr(2),jo("ngSwitch",null==e.recipe?null:e.recipe.difficulty),Dr(1),jo("ngSwitchCase",1),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3)}}function qT(e,t){if(1&e&&(Vo(0,"div",54),Qo(1,"ng-miam-icon",55),Vo(2,"span",48),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),fs(6,"ingredients"),Zo(),Zo(),Zo()),2&e){const e=es(2);Dr(1),jo("iconName",e.icon.Ingredients),Dr(3),vs(null==e.recipe?null:e.recipe.ingredients.length)}}function JT(e,t){if(1&e&&Qo(0,"ng-miam-skeleton",44),2&e){const e=es(2);jo("type",null==e.skeleton?null:e.skeleton.IconWithInfo)}}function KT(e,t){if(1&e&&(Vo(0,"div",59),fs(1),Zo()),2&e){const e=es(3);Dr(1),_s(" + ",e.recipe.modifiedIngredients.length-2," ")}}function $T(e,t){if(1&e&&(Vo(0,"div",56),Vo(1,"div",57),Qo(2,"img",42),Zo(),Vo(3,"div",57),Qo(4,"img",42),Zo(),Fo(5,KT,2,1,"div",58),Zo()),2&e){const e=es(2);Dr(2),jo("src",e.ingredientPicture(e.recipe.modifiedIngredients[0]),cr),Dr(2),jo("src",e.ingredientPicture(e.recipe.modifiedIngredients[1]),cr),Dr(1),jo("ngIf",e.recipe.modifiedIngredients.length>2)}}function eM(e,t){if(1&e){const e=Xo();Vo(0,"div",60),Vo(1,"ng-miam-counter-input",61),Jo("counterChange",(function(t){return gi(e),es(2).updateGuests(t)})),Zo(),Zo()}if(2&e){const e=es(2);Dr(1),jo("counter",e.recipe.modifiedGuests)}}function tM(e,t){if(1&e&&Qo(0,"ng-miam-skeleton",44),2&e){const e=es(2);jo("type",null==e.skeleton?null:e.skeleton.IconWithInfo)}}function iM(e,t){if(1&e&&(Vo(0,"div",62),Qo(1,"ng-miam-recipe-pricing",63),Zo()),2&e){const e=es(2);Dr(1),jo("recipe",e.recipe)("serves",null==e.recipe?null:e.recipe.modifiedGuests)}}function nM(e,t){1&e&&(Vo(0,"span"),fs(1,"See details"),Zo())}function rM(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#'D\xe9couvrir l'id\xe9e repas#"),Zo())}function aM(e,t){if(1&e&&(Wo(0),Fo(1,rM,2,0,"span",27),Mc(2,"async"),Uo()),2&e){const e=es(2);Dr(1),jo("ngIf",!Lc(2,1,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function oM(e,t){1&e&&(Vo(0,"span"),fs(1,"Add ingredients"),Zo())}function sM(e,t){if(1&e&&(Fo(0,oM,2,0,"span",27),Mc(1,"async")),2&e){const e=es(2);jo("ngIf",!Lc(1,1,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function cM(e,t){if(1&e&&(Qo(0,"ng-miam-icon",64),Mc(1,"async")),2&e){const e=es(2);jo("width",24)("height",24)("iconName",Lc(1,3,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id))?e.icon.CheckList:e.icon.Cart)}}function lM(e,t){1&e&&Qo(0,"ng-miam-loader")}const dM=function(e,t){return{"in-basket":e,loading:t}};function uM(e,t){if(1&e){const e=Xo();Vo(0,"div",2),Vo(1,"div",3),Qo(2,"img",4),Zo(),Fo(3,RT,8,7,"div",5),Fo(4,zT,1,1,"ng-template",null,6,rl),Vo(6,"div",7),Fo(7,FT,3,1,"div",8),Fo(8,HT,1,1,"ng-template",null,9,rl),Vo(10,"div",10),Fo(11,BT,4,4,"div",11),Fo(12,GT,10,12,"div",12),Fo(13,qT,7,2,"div",13),Fo(14,JT,1,1,"ng-template",null,14,rl),Zo(),Vo(16,"div",15),Vo(17,"div",16),Vo(18,"div",17),Vo(19,"div",18),Jo("click",(function(){return gi(e),es().toggleHelper()})),Qo(20,"ng-miam-icon",19),Zo(),Fo(21,$T,6,3,"div",20),Zo(),Fo(22,eM,2,1,"div",21),Fo(23,tM,1,1,"ng-template",null,22,rl),Zo(),Vo(25,"div",23),Fo(26,iM,2,2,"div",24),Zo(),Zo(),Vo(27,"div",25),Vo(28,"button",26),Jo("click",(function(){return gi(e),es().clickPrimary()})),Mc(29,"async"),Vo(30,"span"),Fo(31,nM,2,0,"span",27),Mc(32,"async"),Fo(33,aM,3,3,"ng-container",8),Fo(34,sM,2,3,"ng-template",null,28,rl),Zo(),Fo(36,cM,2,5,"ng-miam-icon",29),Fo(37,lM,1,0,"ng-template",null,30,rl),Zo(),Zo(),Zo(),Zo()}if(2&e){const e=Ho(5),t=Ho(9),i=Ho(15),n=Ho(24),r=Ho(35),a=Ho(38),o=es();Dr(3),jo("ngIf",o.recipe)("ngIfElse",e),Dr(4),jo("ngIf",o.recipe)("ngIfElse",t),Dr(4),jo("ngIf",o.recipe)("ngIfElse",i),Dr(1),jo("ngIf",o.recipe)("ngIfElse",i),Dr(1),jo("ngIf",o.recipe)("ngIfElse",i),Dr(7),jo("width",24)("height",24)("iconName",o.icon.Help),Dr(1),jo("ngIf",o.contextService.displayIngredientPicturesOnRecipeCards&&(null==o.recipe||null==o.recipe.modifiedIngredients?null:o.recipe.modifiedIngredients.length)>1),Dr(1),jo("ngIf",o.recipe)("ngIfElse",n),Dr(4),jo("ngIf",o.recipe&&o.displayPricing),Dr(2),jo("disabled",!o.recipe)("ngClass",Ac(28,dM,Lc(29,24,o.groceriesListsService.recipeIsInList(null==o.recipe?null:o.recipe.id)),o.addButtonLoading)),Dr(3),jo("ngIf",Lc(32,26,o.groceriesListsService.recipeIsInList(null==o.recipe?null:o.recipe.id))),Dr(2),jo("ngIf",o.recipeService.suggestionsPrimaryButtonActions.display&&!o.recipeService.suggestionsPrimaryButtonActions.addToBasket||o.recipeService.recipesPrimaryButtonActions.display&&!o.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse",r),Dr(3),jo("ngIf",!o.addButtonLoading)("ngIfElse",a)}}function mM(e,t){1&e&&Qo(0,"ng-miam-cors-overlay")}let pM=(()=>{class e extends OT{constructor(e,t,i,n,r,a,o,s,c,l){super(e,t,i,n,r,a,o,s,c,l),this.analyticsService=s,this.element=c,this.toastr=l,this.removedFromFavorite=new Bc,this.displayed=new Bc,this.guestsChanged=new Bc,this.isloaded=!1,this.cardType="suggestion-card",this.primaryButtonClicked$=new Bc,this.subscriptions.push(this.recipeService.displayedRecipeChanged.subscribe(()=>this.cdr.detectChanges()))}ngOnChanges(){this.recipe?this.recipeWasLoaded():this.recipeId&&this.loadRecipe()}recipeWasLoaded(){var e;this.initIngredientsString(),(e=this.recipe).modifiedGuests||(e.modifiedGuests=+this.recipe.guests),this.isloaded=!0,this.cdr.detectChanges()}removeFromFavorite(){this.removedFromFavorite.emit(this.recipe)}openRecipe(){this.recipeService.displayObject(this.recipe,{guests:this.recipe.modifiedGuests},this.eventTrace()),this.displayed.emit()}updateGuests(e){this.recipe.modifiedGuests=e,this.recipeId&&this._updateBasket(),this.guestsChanged.emit(e),this.cdr.detectChanges()}_updateBasket(){this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipeId).subscribe(e=>{e&&this.addRecipe(!1)}))}clickPrimary(){this.addButtonLoading||this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{const t=!e;"suggestion-card"===this.cardType?this.recipeService.suggestionsPrimaryButtonActions.addToBasket?this.addRecipe(this.recipeService.suggestionsPrimaryButtonActions.display||!t):this.recipeService.suggestionsPrimaryButtonActions.display&&this.openRecipe():this.recipeService.recipesPrimaryButtonActions.addToBasket?this.addRecipe(this.recipeService.recipesPrimaryButtonActions.display||!t):this.recipeService.recipesPrimaryButtonActions.display&&this.openRecipe(),this.primaryButtonClicked$.emit(!e)}))}loadRecipe(){this.recipeService.get(this.recipeId,{include:["ingredients","recipe-steps","recipe-status","recipe-type","sponsors","tags"]}).pipe(ig(e=>e.is_loading),hm(e=>(this.hide.emit(),Au(e)))).subscribe(e=>{this.recipe=e,this.recipe&&this.recipeWasLoaded(),this.cdr.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(qf),Bo(Ag),Bo(Ug),Bo(sv),Bo(i_),Bo(gg),Bo(js),Bo(r_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-card"]],inputs:{recipeId:"recipeId",recipe:"recipe"},outputs:{removedFromFavorite:"removedFromFavorite",displayed:"displayed",guestsChanged:"guestsChanged"},features:[yo,Qt],decls:3,vars:1,consts:[["class","miam-recipe-card",4,"ngIf"],["cors",""],[1,"miam-recipe-card"],[1,"miam-recipe-card__bookmark"],["src","https://storage.googleapis.com/assets.miam.tech/generic/recipe-card/Bookmark.svg","alt","Id\xe9es repas"],["class","miam-recipe-card__picture",3,"click",4,"ngIf","ngIfElse"],["pictSkeleton",""],[1,"miam-recipe-card__attributes"],[4,"ngIf","ngIfElse"],["textSkeleton",""],[1,"miam-recipe-card__attributes__infos"],["class","miam-recipe-card__attributes__info recipe__total__time",4,"ngIf","ngIfElse"],["class","miam-recipe-card__attributes__info recipe__difficulty",3,"ngClass",4,"ngIf","ngIfElse"],["class","miam-recipe-card__attributes__info recipe__ingredients",4,"ngIf","ngIfElse"],["skeletonInfo",""],[1,"miam-recipe-card__attributes__control"],[1,"miam-recipe-card__control__left__col"],[1,"miam-recipe-card__left__col__custom"],[1,"miam-recipe-card__help",3,"click"],["primaryColor","var(--m-color-grey02)","secondaryColor","var(--m-color-grey07)",3,"width","height","iconName"],["class","miam-recipe-card__ingredients__pictures",4,"ngIf"],["class","miam-recipe-card__left__col__counter",4,"ngIf","ngIfElse"],["skeletoncounter",""],[1,"miam-recipe-card__control__right__col"],["class","miam-recipe-card__right__col__price",4,"ngIf"],[1,"miam-recipe-card__cta"],[1,"m-button-primary",3,"disabled","ngClass","click"],[4,"ngIf"],["originalCTA",""],["primaryColor","#fff",3,"width","height","iconName",4,"ngIf","ngIfElse"],["addLoader",""],[1,"miam-recipe-card__picture",3,"click"],["loading","lazy",3,"src"],["class","miam-recipe-card__picture__video",4,"ngIf"],[1,"miam-recipe-card__picture__actions"],["class","miam-recipe-card__actions__icon",3,"recipe","originTrace",4,"ngIf"],["class","miam-recipe-card__picture__sponsor",4,"ngIf"],["class","miam-recipe-card__picture__filigrane",4,"ngIf"],[1,"miam-recipe-card__picture__video"],["primaryColor","black",3,"iconName","width","height"],[1,"miam-recipe-card__actions__icon",3,"recipe","originTrace"],[1,"miam-recipe-card__picture__sponsor"],[3,"src"],[1,"miam-recipe-card__picture__filigrane"],[3,"type"],[1,"miam-recipe-card__attributes__title",3,"click"],[1,"miam-recipe-card__attributes__info","recipe__total__time"],[3,"width","height","iconName"],[1,"miam-recipe-card__info__label"],[1,"miam-recipe-card__attributes__info","recipe__difficulty",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["primaryColor","var(--m-color-black)",3,"width","height","iconName"],[1,"miam-recipe-card__attributes__info","recipe__ingredients"],[3,"iconName"],[1,"miam-recipe-card__ingredients__pictures"],[1,"miam-recipe-card__ingredients__picture"],["class","miam-recipe-card__ingredients__more",4,"ngIf"],[1,"miam-recipe-card__ingredients__more"],[1,"miam-recipe-card__left__col__counter"],[3,"counter","counterChange"],[1,"miam-recipe-card__right__col__price"],[3,"recipe","serves"],["primaryColor","#fff",3,"width","height","iconName"]],template:function(e,t){1&e&&(Fo(0,uM,39,31,"div",0),Fo(1,mM,1,0,"ng-template",null,1,rl)),2&e&&jo("ngIf",t.isloaded)},directives:[Zd,VS,Hd,aO,rI,Yd,Xd,Gd,nO,DO,$E,ZS],pipes:[au],styles:[".miam-recipe-card{border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);background-color:var(--m-color-white);width:320px;height:100%;min-height:440px;display:flex;flex-direction:column;position:relative}.miam-recipe-card .miam-recipe-card__bookmark{position:absolute;left:0;top:10px;z-index:1;filter:drop-shadow(0 6px 8px rgba(0,0,0,.1))}.miam-recipe-card .miam-recipe-card__picture{cursor:pointer;height:60%;position:relative;-webkit-tap-highlight-color:transparent}.miam-recipe-card .miam-recipe-card__picture img{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;z-index:var(--m-z-index-position-absolute-low);transition:var(--m-default-transition)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__video{position:absolute;top:calc(50% - 50px);left:calc(50% - 50px)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{display:flex;position:absolute;z-index:var(--m-z-index-position-absolute-high);top:20px;right:16px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions ng-miam-like-button.miam-recipe-card__actions__icon{margin:0 0 16px;-o-object-fit:contain;object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);width:-webkit-max-content;width:-moz-max-content;width:max-content;filter:drop-shadow(0 6px 8px rgba(0,0,0,.1))}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{position:absolute;top:16px;left:16px;width:64px;height:48px;justify-content:flex-start;display:flex;order:2;align-items:flex-start}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain;border-radius:0;position:unset;z-index:unset;transition:unset}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane{position:absolute;bottom:16px;right:16px;width:72px;height:48px;justify-content:flex-end;display:flex;order:2;align-items:flex-end}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain;border-radius:0;position:unset;z-index:unset;transition:unset}.miam-recipe-card .miam-recipe-card__attributes{display:flex;flex-direction:column;justify-content:space-around;flex:1 1;padding:8px 16px 16px;justify-content:space-between}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{cursor:pointer;line-height:30;-webkit-tap-highlight-color:transparent;font-weight:700;overflow:hidden;font-size:20px;font-weight:500;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;transition:var(--m-default-transition);line-height:1.5;letter-spacing:normal;text-align:center;color:var(--m-color-slate)}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title:hover{text-decoration:underline;color:var(--m-color-primary)}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{display:flex;flex-direction:column;align-items:center;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__total__time{border-right:1px solid #e9e9e9}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__ingredients{display:none;border-left:1px solid #e9e9e9}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info .miam-recipe-card__info__label{font-size:14px;margin-top:10px;text-transform:capitalize}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control{display:flex;align-items:center;justify-content:space-between}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{display:none;align-items:center}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom{display:flex;justify-content:flex-start;align-items:flex-end}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .icon-container{cursor:pointer}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__help,.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__ingredients__pictures{display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{display:flex;flex-direction:column;align-items:center;min-width:60px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{display:none;height:48px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta{display:flex;justify-content:center;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button{padding:12px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button .miam-loader{width:24px;height:24px;border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white)}@media (max-width:1023px){.miam-recipe-card{height:440px}.miam-recipe-card .miam-recipe-card__picture{height:55%}}"],encapsulation:2,changeDetection:0}),e})();const hM=["miamMoreActions"];function gM(e,t){if(1&e&&(Vo(0,"div",32),Qo(1,"img",33),Zo()),2&e){const e=es(2);Dr(1),jo("src",e.recipe.sponsorLogoUrl,cr)}}function fM(e,t){if(1&e&&(Vo(0,"div",34),Qo(1,"img",33),Zo()),2&e){const e=es(2);Dr(1),jo("src",e.recipe.filigraneLogoUrl,cr)}}function vM(e,t){if(1&e&&(Vo(0,"div",35),Qo(1,"ng-miam-icon",36),Zo()),2&e){const e=es(2);Dr(1),jo("iconName",e.icon.Video)("width",80)("height",80)}}function _M(e,t){1&e&&(Vo(0,"div",38),fs(1," Already added "),Zo())}function yM(e,t){if(1&e&&(Wo(0),Fo(1,_M,2,0,"div",37),Mc(2,"async"),Uo()),2&e){const e=es(2);Dr(1),jo("ngIf",Lc(2,1,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function bM(e,t){if(1&e){const e=Xo();Wo(0),Vo(1,"div",39),Jo("click",(function(){return gi(e),es(2).openRecipe()})),fs(2),Zo(),Uo()}if(2&e){const e=es(2);Dr(2),_s(" ",null==e.recipe?null:e.recipe.attributes.title," ")}}function wM(e,t){1&e&&Qo(0,"ng-miam-skeleton",40),2&e&&jo("type",es(2).skeleton.Text)}function xM(e,t){if(1&e&&Qo(0,"ng-miam-like-button",41),2&e){const e=es(2);jo("recipe",e.recipe)("originTrace",e.eventTrace())}}function CM(e,t){if(1&e){const e=Xo();Vo(0,"div",20),Jo("click",(function(){return gi(e),es().openRecipe()})),Vo(1,"div",21),Qo(2,"img",22),Fo(3,gM,2,1,"div",23),Fo(4,fM,2,1,"div",24),Zo(),Fo(5,vM,2,3,"div",25),Fo(6,yM,3,3,"ng-container",9),Fo(7,bM,3,1,"ng-container",10),Fo(8,wM,1,1,"ng-template",null,26,rl),Vo(10,"div",27),Fo(11,xM,1,2,"ng-miam-like-button",28),Mc(12,"async"),Vo(13,"div",29,30),Jo("click",(function(t){return gi(e),es().toggleMoreActions(t)})),Qo(15,"ng-miam-icon",31),Zo(),Zo(),Zo()}if(2&e){const e=Ho(9),t=es();Dr(2),jo("src",t.recipe.attributes["media-url"],cr),Dr(1),jo("ngIf",t.recipe.sponsorLogoUrl),Dr(1),jo("ngIf",t.recipe.filigraneLogoUrl),Dr(1),jo("ngIf",t.contextService.videoRecipesEnabled&&(null==t.recipe?null:t.recipe.videoId)),Dr(1),jo("ngIf",t.recipe&&t.displayAddedOnPicture),Dr(1),jo("ngIf",t.recipe)("ngIfElse",e),Dr(4),jo("ngIf",Lc(12,9,t.userService.isLogged$)),Dr(4),jo("iconName",t.actionsOpened?t.icon.Clear:t.icon.HorizontalDots)}}function kM(e,t){1&e&&Qo(0,"ng-miam-skeleton",40),2&e&&jo("type",es().skeleton.Picture)}function AM(e,t){if(1&e&&(Vo(0,"div",45),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s(" + ",e.recipe.modifiedIngredients.length-2," ")}}function SM(e,t){if(1&e&&(Vo(0,"div",42),Vo(1,"div",43),Qo(2,"img",33),Zo(),Vo(3,"div",43),Qo(4,"img",33),Zo(),Fo(5,AM,2,1,"div",44),Zo()),2&e){const e=es();Dr(2),jo("src",e.ingredientPicture(e.recipe.modifiedIngredients[0]),cr),Dr(2),jo("src",e.ingredientPicture(e.recipe.modifiedIngredients[1]),cr),Dr(1),jo("ngIf",e.recipe.modifiedIngredients.length>2)}}function EM(e,t){if(1&e&&Qo(0,"ng-miam-recipe-pricing",48),2&e){const e=es(2);jo("recipe",e.recipe)("serves",null==e.recipe?null:e.recipe.modifiedGuests)}}function DM(e,t){if(1&e&&(Vo(0,"div",46),Fo(1,EM,1,2,"ng-miam-recipe-pricing",47),Zo()),2&e){const e=es();Dr(1),jo("ngIf",e.isPriceDisplayed)}}function IM(e,t){1&e&&(Vo(0,"span"),fs(1,"See details"),Zo())}function OM(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#'D\xe9couvrir l'id\xe9e repas#"),Zo())}function PM(e,t){if(1&e&&(Wo(0),Fo(1,OM,2,0,"span",9),Mc(2,"async"),Uo()),2&e){const e=es();Dr(1),jo("ngIf",!Lc(2,1,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function TM(e,t){1&e&&(Vo(0,"span"),fs(1,"Add ingredients"),Zo())}function MM(e,t){if(1&e&&(Fo(0,TM,2,0,"span",9),Mc(1,"async")),2&e){const e=es();jo("ngIf",!Lc(1,1,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function LM(e,t){if(1&e&&(Qo(0,"ng-miam-icon",49),Mc(1,"async")),2&e){const e=es();jo("width",16)("height",16)("iconName",Lc(1,3,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id))?e.icon.CheckList:e.icon.Cart)}}function RM(e,t){1&e&&Qo(0,"ng-miam-loader")}function zM(e,t){if(1&e&&(Vo(0,"div",50),Qo(1,"ng-miam-icon",51),Vo(2,"span",52),fs(3),Zo(),Zo()),2&e){const e=es();Dr(1),jo("iconName",e.icon.Time),Dr(2),vs(null==e.recipe?null:e.recipe.totalTime)}}function FM(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",57),Uo()),2&e){const e=es(2);Dr(1),jo("width",39)("height",18)("iconName",e.icon.DifficultyMedium)}}function HM(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",57),Uo()),2&e){const e=es(2);Dr(1),jo("width",60)("height",18)("iconName",e.icon.DifficultyHigh)}}function BM(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",57),Uo()),2&e){const e=es(2);Dr(1),jo("width",18)("height",18)("iconName",e.icon.DifficultyLow)}}function jM(e,t){1&e&&(Wo(0),Vo(1,"span",52),fs(2,"Beginner chef"),Zo(),Uo())}function NM(e,t){1&e&&(Wo(0),Vo(1,"span",52),fs(2,"Intermediate chef"),Zo(),Uo())}function VM(e,t){1&e&&(Wo(0),Vo(1,"span",52),fs(2,"Top chef"),Zo(),Uo())}function ZM(e,t){1&e&&(Wo(0),Vo(1,"span",52),fs(2,"Beginner chef"),Zo(),Uo())}const QM=function(e,t,i){return{easy:e,medium:t,hard:i}};function WM(e,t){if(1&e&&(Vo(0,"div",53),Wo(1,54),Fo(2,FM,2,3,"ng-container",55),Fo(3,HM,2,3,"ng-container",55),Fo(4,BM,2,3,"ng-container",56),Uo(),Wo(5,54),Fo(6,jM,3,0,"ng-container",55),Fo(7,NM,3,0,"ng-container",55),Fo(8,VM,3,0,"ng-container",55),Fo(9,ZM,3,0,"ng-container",56),Uo(),Zo()),2&e){const e=es();jo("ngClass",Sc(8,QM,1===(null==e.recipe?null:e.recipe.difficulty),2===(null==e.recipe?null:e.recipe.difficulty),3===(null==e.recipe?null:e.recipe.difficulty))),Dr(1),jo("ngSwitch",null==e.recipe?null:e.recipe.difficulty),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3),Dr(2),jo("ngSwitch",null==e.recipe?null:e.recipe.difficulty),Dr(1),jo("ngSwitchCase",1),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3)}}function UM(e,t){if(1&e&&Qo(0,"ng-miam-skeleton",40),2&e){const e=es();jo("type",null==e.skeleton?null:e.skeleton.IconWithInfo)}}function YM(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-actions-popin",58),Jo("close",(function(){return gi(e),es().closeMoreActions()}))("actionTriggered",(function(t){return gi(e),es().actionTriggered.emit(t)})),Zo()}}function XM(e,t){1&e&&Qo(0,"ng-miam-cors-overlay")}const GM=function(e,t){return{loading:e,reverse:t}};let qM=(()=>{class e extends pM{constructor(e,t,i,n,r,a,o,s,c,l,d){super(e,t,i,n,r,a,o,s,l,d),this.mediaMatcher=c,this.element=l,this.toastr=d,this.eventsGroupId=Cg(),this.displayPricing=!1,this.displayAddedOnPicture=!1,this.actionTriggered=new Bc,this.isMobile=!1,this.cardType="catalog-card",this.actionsOpened=!1,this.isMobile=c.matchMedia("(max-width: 1022px)").matches,this.isPriceDisplayed=!1}ngOnInit(){this.subscriptions.push(this.groceriesListsService.list$.pipe(ig(e=>!e)).subscribe(()=>this.cdr.detectChanges())),this.recipe&&(this.recipe=this.recipe.shallowCopyWithEvents(this.recipeEventsService.ORIGIN_CATALOG,this.eventsGroupId),this.recipeEventsService.enqueueEvent(this.recipe,this.recipeEventsService.ACTION_PROPOSED))}ngAfterViewInit(){var e;this.moreActions.nativeElement.style.visibility="personal"===(null===(e=this.recipe.relationships["recipe-provider"])||void 0===e?void 0:e.data.id)?"visible":"hidden",this.isInViewport()&&(this.isPriceDisplayed=!0,this.cdr.detectChanges()),this.initIntersectionObserver(),super.ngAfterViewInit()}initIntersectionObserver(){this.observer=new IntersectionObserver(e=>{!0===e[0].isIntersecting&&(this.isPriceDisplayed=!0,this.cdr.detectChanges())},{threshold:.5}),this.observer.observe(this.element.nativeElement)}updateGuests(e){this.recipe.modifiedGuests=e,this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{e&&(this.addRecipe(!1),this.cdr.detectChanges())})),this.cdr.detectChanges()}toggleMoreActions(e){var t;e.preventDefault(),e.stopPropagation(),"personal"===(null===(t=this.recipe.relationships["recipe-provider"])||void 0===t?void 0:t.data.id)&&(this.actionsOpened=!this.actionsOpened,this.cdr.detectChanges())}closeMoreActions(){this.actionsOpened=!1,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(qf),Bo(Ag),Bo(Ug),Bo(sv),Bo(i_),Bo(gg),Bo(Kv),Bo(js),Bo(r_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-catalog-recipe-card"]],viewQuery:function(e,t){var i;1&e&&Kc(hM,!0),2&e&&Jc(i=el())&&(t.moreActions=i.first)},inputs:{displayPricing:"displayPricing",displayAddedOnPicture:"displayAddedOnPicture"},outputs:{actionTriggered:"actionTriggered"},features:[yo],decls:29,vars:23,consts:[[1,"miam-catalog-recipe-card"],[1,"miam-catalog-recipe-card__header"],["class","miam-catalog-card__picture",3,"click",4,"ngIf","ngIfElse"],["pictSkeleton",""],[1,"miam-catalog-card__attributes"],[1,"miam-catalog-recipe-card__attributes__control"],["class","miam-catalog-recipe-card__ingredients__pictures",4,"ngIf"],["class","miam-catalog-recipe-card__right__col__price",4,"ngIf"],[1,"m-button-primary",3,"disabled","ngClass","click"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["originalCTA",""],[3,"width","height","iconName",4,"ngIf","ngIfElse"],["addLoader",""],[1,"miam-catalog-card__attributes__infos"],["class","miam-catalog-card__attributes__info recipe__total__time",4,"ngIf","ngIfElse"],["class","miam-catalog-card__attributes__info recipe__difficulty",3,"ngClass",4,"ngIf"],["skeletonInfo",""],[3,"close","actionTriggered",4,"ngIf"],["cors",""],[1,"miam-catalog-card__picture",3,"click"],[1,"miam-catalog-card__picture__gradient"],["loading","lazy",1,"miam-catalog-card__picture__img",3,"src"],["class","miam-catalog-card__picture__sponsor",4,"ngIf"],["class","miam-catalog-card__picture__filigrane",4,"ngIf"],["class","miam-catalog-recipe-card__picture__video",4,"ngIf"],["textSkeleton",""],[1,"miam-catalog-recipe-card__picture__actions"],["width","17","height","17","class","miam-catalog-recipe-card__actions__icon",3,"recipe","originTrace",4,"ngIf"],[1,"miam-catalog-recipe-card__actions__icon",3,"click"],["miamMoreActions",""],["primaryColor","var(--m-color-primary)",3,"iconName"],[1,"miam-catalog-card__picture__sponsor"],[3,"src"],[1,"miam-catalog-card__picture__filigrane"],[1,"miam-catalog-recipe-card__picture__video"],["primaryColor","black",3,"iconName","width","height"],["class","miam-catalog-recipe-card__picture__tag",4,"ngIf"],[1,"miam-catalog-recipe-card__picture__tag"],[1,"miam-catalog-recipe-card__attributes__title",3,"click"],[3,"type"],["width","17","height","17",1,"miam-catalog-recipe-card__actions__icon",3,"recipe","originTrace"],[1,"miam-catalog-recipe-card__ingredients__pictures"],[1,"miam-catalog-recipe-card__ingredients__picture"],["class","miam-catalog-recipe-card__ingredients__more",4,"ngIf"],[1,"miam-catalog-recipe-card__ingredients__more"],[1,"miam-catalog-recipe-card__right__col__price"],[3,"recipe","serves",4,"ngIf"],[3,"recipe","serves"],[3,"width","height","iconName"],[1,"miam-catalog-card__attributes__info","recipe__total__time"],["width","18","height","18","primaryColor","var(--m-catalog-card-details-color)",3,"iconName"],[1,"miam-catalog-card__info__label"],[1,"miam-catalog-card__attributes__info","recipe__difficulty",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["primaryColor","var(--m-catalog-card-details-color)",3,"width","height","iconName"],[3,"close","actionTriggered"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"span"),fs(3),Zo(),Zo(),Fo(4,CM,16,11,"div",2),Fo(5,kM,1,1,"ng-template",null,3,rl),Vo(7,"div",4),Vo(8,"div",5),Fo(9,SM,6,3,"div",6),Fo(10,DM,2,1,"div",7),Vo(11,"button",8),Jo("click",(function(){return t.clickPrimary()})),Mc(12,"async"),Fo(13,IM,2,0,"span",9),Mc(14,"async"),Fo(15,PM,3,3,"ng-container",10),Fo(16,MM,2,3,"ng-template",null,11,rl),Fo(18,LM,2,5,"ng-miam-icon",12),Fo(19,RM,1,0,"ng-template",null,13,rl),Zo(),Zo(),Vo(21,"div",14),Fo(22,zM,4,2,"div",15),Fo(23,WM,10,12,"div",16),Fo(24,UM,1,1,"ng-template",null,17,rl),Zo(),Zo(),Fo(26,YM,1,0,"ng-miam-actions-popin",18),Zo(),Fo(27,XM,1,0,"ng-template",null,19,rl)),2&e){const e=Ho(6),i=Ho(17),n=Ho(20),r=Ho(25);Dr(3),_s(" ",t.headerText,""),Dr(1),jo("ngIf",t.recipe)("ngIfElse",e),Dr(5),jo("ngIf",t.contextService.displayIngredientPicturesOnRecipeCards&&(null==t.recipe||null==t.recipe.modifiedIngredients?null:t.recipe.modifiedIngredients.length)>1),Dr(1),jo("ngIf",t.recipe&&t.displayPricing),Dr(1),jo("disabled",!t.recipe)("ngClass",Ac(20,GM,t.addButtonLoading,Lc(12,16,t.groceriesListsService.recipeIsInList(null==t.recipe?null:t.recipe.id)))),Dr(2),jo("ngIf",Lc(14,18,t.groceriesListsService.recipeIsInList(null==t.recipe?null:t.recipe.id))),Dr(2),jo("ngIf",t.recipeService.recipesPrimaryButtonActions.display&&!t.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse",i),Dr(3),jo("ngIf",!t.addButtonLoading)("ngIfElse",n),Dr(4),jo("ngIf",t.recipe)("ngIfElse",r),Dr(1),jo("ngIf",t.recipe),Dr(3),jo("ngIf",t.actionsOpened)}},directives:[Zd,Hd,VS,rI,aO,DO,$E,Yd,Xd,Gd,fP,ZS],pipes:[au],styles:['.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{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{min-height:78px;flex:1}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{float:left;flex:1;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;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}.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{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{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%;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{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;display:flex}.cal-week-view .cal-time-events .cal-day-columns{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:"\\00a0"}.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}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{display:flex;justify-content:center;align-items:center;border-radius:var(--m-button-radius);padding:var(--m-button-padding);cursor:pointer;font-size:var(--m-button-text-size);line-height:var(--m-button-text-height);font-weight:var(--m-button-text-weight);outline:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{display:flex;justify-content:space-between;align-items:center;max-width:320px;min-width:200px;border:1px solid var(--m-color-grey06);border-radius:5px;padding:8px 16px;margin-top:16px;outline:none}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-recipe-card .miam-catalog-card__attributes,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{display:flex;flex-direction:row;margin:auto;justify-content:space-between;align-items:center}.m-default-card{box-shadow:var(--m-shadow-small);background-color:var(--m-color-unpure-white);padding:16px;border-radius:8px}@media (max-width:1023px){.m-default-card{padding:8px;margin-bottom:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-white:var(--miam-color-white,#fafcfe);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-gap:var(--miam-button-gap,10px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-button-text-height:var(--miam-button-text-height,calc(1.5 * var(--m-button-text-size)));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-font-size-small:var(--miam-font-size-small,14px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-loader-size:var(--miam-loader-sizes,40px);--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-family:Work Sans;font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);line-height:24px;color:var(--m-color-slate)}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-weight:700;font-size:40px;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{transition:none!important;-webkit-transition:none!important;animation:none!important;-webkit-animation:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}ng-miam-catalog-recipe-card{flex-grow:1;margin:calc(var(--m-catalog-cards-spacing)/2);max-width:calc(var(--m-catalog-card-minwidth) * 1.1)}.miam-catalog-recipe-card{position:relative;width:100%;min-width:var(--m-catalog-card-minwidth);height:var(--m-catalog-card-height);display:flex;flex-direction:column;background-color:var(--m-catalog-card-bg-color);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);border:1px solid #ddd}@media (min-width:1023px){.miam-catalog-recipe-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-recipe-card .miam-catalog-card__picture{cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative;-webkit-tap-highlight-color:transparent}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{position:absolute;height:calc(var(--m-catalog-card-picture-height) + 1px);width:calc(100% + 2px);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);left:-1px;top:-1px;overflow:hidden}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{position:relative;width:100%;height:100%;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:var(--m-catalog-card-picture-height);-o-object-fit:cover;object-fit:cover;z-index:var(--m-z-index-position-absolute-low);transition:var(--m-default-transition)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{position:absolute;top:16px;left:16px;width:64px;height:48px;justify-content:flex-start;display:flex;order:2;align-items:flex-start}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{position:absolute;bottom:16px;right:16px;width:72px;height:48px;justify-content:flex-end;display:flex;order:2;align-items:flex-end}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain}.miam-catalog-recipe-card .miam-catalog-card__attributes{flex:1 1;flex-direction:column-reverse;justify-content:flex-start;align-items:center;padding:12px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{display:flex;flex-direction:column;align-items:center;width:100%;padding:0 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{margin:2px 0 0;font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);color:var(--m-catalog-card-details-color);width:100%;text-align:center}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-recipe-card .miam-catalog-recipe-card__header{display:none}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__video{position:absolute;top:calc(50% - 50px);left:calc(50% - 40px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__tag{position:absolute;left:16px;top:16px;background-color:rgba(0,0,0,.6);color:var(--m-color-white);border-radius:5px;padding:8px;text-transform:uppercase;font-weight:500}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title{position:absolute;top:var(--m-catalog-card-picture-height);left:0;margin:12px 0;padding:0 16px;width:100%;display:-webkit-box;-webkit-tap-highlight-color:transparent;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--m-color-black);font-size:var(--m-catalog-card-title-size);line-height:var(--m-catalog-card-line-height);font-weight:700;letter-spacing:normal;overflow:hidden;text-overflow:ellipsis;transition:var(--m-default-transition);text-align:center;cursor:pointer}@media (min-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title:hover{text-decoration:underline}}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions{position:absolute;z-index:var(--m-z-index-position-absolute-high);top:16px;right:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{display:flex;align-items:center;justify-content:center;margin-top:12px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card__ingredients__pictures{display:none}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price{margin-right:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price .miam-recipe-pricing__wrapper__price{line-height:20px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control button.m-button-primary .miam-loader{width:16px;height:16px;margin-left:8px;border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white)}'],encapsulation:2,changeDetection:0}),e})();const JM=["categoryContent"],KM=["categoryCards"];function $M(e,t){1&e&&(Vo(0,"div",18),Qo(1,"ng-miam-loader"),Vo(2,"div"),fs(3," Loading results... "),Zo(),Zo())}function eL(e,t){if(1&e&&Qo(0,"ng-miam-catalog-recipe-card",19),2&e){const e=t.$implicit,i=es(2);jo("recipe",e)("displayPricing",i.displayPricing)("recipeAddedToastText",i.recipeAddedToastText)("originTrace",i.eventTrace())}}function tL(e,t){1&e&&Qo(0,"ng-miam-catalog-article-card",20),2&e&&jo("article",t.$implicit)}function iL(e,t){if(1&e){const e=Xo();Vo(0,"div",21),Jo("click",(function(){return gi(e),es(2).slideLeft()})),Qo(1,"ng-miam-icon",22),Zo()}if(2&e){const e=es(2);Dr(1),jo("iconName",e.icon.ChevronDown)}}function nL(e,t){if(1&e){const e=Xo();Vo(0,"div",23),Jo("click",(function(){return gi(e),es(2).slideRight()})),Qo(1,"ng-miam-icon",22),Zo()}if(2&e){const e=es(2);Dr(1),jo("iconName",e.icon.ChevronDown)}}const rL=function(e){return{transform:e}};function aL(e,t){if(1&e){const e=Xo();Vo(0,"div",1),Vo(1,"div",2),Vo(2,"div",3),Vo(3,"div",4),Jo("click",(function(){return gi(e),es().displayListMode()})),fs(4),Zo(),Vo(5,"div",5),fs(6),Zo(),Zo(),Vo(7,"div",6),Vo(8,"div",7),Jo("click",(function(){return gi(e),es().displayListMode()})),fs(9,"See all"),Zo(),Vo(10,"ng-miam-icon",8),Jo("click",(function(){return gi(e),es().displayListMode()})),Zo(),Zo(),Zo(),Vo(11,"div",9,10),Vo(13,"div",11,12),Fo(15,$M,4,0,"div",13),Mc(16,"async"),Fo(17,eL,1,4,"ng-miam-catalog-recipe-card",14),Fo(18,tL,1,1,"ng-miam-catalog-article-card",15),Zo(),Fo(19,iL,2,1,"div",16),Fo(20,nL,2,1,"div",17),Zo(),Zo()}if(2&e){const e=es();Dr(4),vs(e.title),Dr(2),vs(e.subtitle),Dr(4),jo("iconName",e.icon.ChevronDown),Dr(3),jo("ngStyle",kc(11,rL,"translateX(-"+e.xTranslation()+"px)")),Dr(2),jo("ngIf",Lc(16,9,e.loading)),Dr(2),jo("ngForOf",e.recipes),Dr(1),jo("ngForOf",e.articles),Dr(1),jo("ngIf",e.numberOfSections>1&&0!=e.currentSection),Dr(1),jo("ngIf",e.numberOfSections>1&&e.currentSection!=e.numberOfSections-1)}}let oL=(()=>{class e extends rO{constructor(e,t,i,n,r){super(r),this.recipesService=e,this.articlesService=t,this.context=i,this.cdr=n,this.analyticsService=r,this.title="",this.maxRecipeNumber=20,this.loading=new Bc(!0),this.recipes=[],this.articles=[],this.hide=!1,this.icon=Iv,this.cardsTotalSize=0,this.numberOfSections=1,this.currentSection=0,this.nbCardsInAnExtremeSection=0,this.nbCardsInAMiddleSection=0,this.categoryBandWidth=0,this.displayList=new Bc,this.subscriptions=[],this.recipes=[]}ngOnInit(){this.sendEvent(this.analyticsService.EVENT_CATEGORY_SHOW)}ngOnChanges(e){var t;this.subscriptions.push(Sg([this.loadRecipes(),this.loadArticles()]).pipe((t=()=>{0===this.recipes.length&&0===this.articles.length?this.hide=!0:(this.hide=!1,this.createSections()),this.loading.emit(!1),this.cdr.detectChanges()},e=>e.lift(new DT(t)))).subscribe())}currentPath(){return""}props(){var e,t;return{category_id:null===(t=null===(e=this.filters)||void 0===e?void 0:e.additionalFilters)||void 0===t?void 0:t.filters.packages}}loadRecipes(){return this.filters?this.recipesService.filter(this.filters,{number:1,size:this.maxRecipeNumber},this.modifiedGuests,!1).pipe(um(e=>this.recipes=e)):Au([])}loadArticles(){var e;return(null===(e=this.filters)||void 0===e?void 0:e.packages)&&this.context.articlesInCatalogEnabled?this.articlesService.all({remotefilter:this.filters,sort:["-date"]}).pipe(D(e=>(this.articles=e.data,this.articles))):Au([])}createSections(){this.cdr.detectChanges(),this.cardsTotalSize=this.categoryCards.nativeElement.scrollWidth,this.recalculateSections(),this.cdr.detectChanges()}recalculateSections(){this.categoryBandWidth=this.categoryContent.nativeElement.clientWidth,this.nbCardsInAnExtremeSection=Math.floor((this.categoryBandWidth-48)/346),this.nbCardsInAMiddleSection=Math.floor((this.categoryBandWidth-96)/346);const e=346*this.nbCardsInAnExtremeSection;this.numberOfSections=this.categoryBandWidth>=this.cardsTotalSize?1:2*e>=this.cardsTotalSize?2:2+(this.cardsTotalSize-2*e)/(346*this.nbCardsInAMiddleSection)}xTranslation(){return 0===this.currentSection?0:this.currentSection===this.numberOfSections-1?this.cardsTotalSize-this.categoryBandWidth+16:346*this.nbCardsInAnExtremeSection+(this.currentSection-1)*this.nbCardsInAMiddleSection*346-48}slideLeft(){this.currentSection=Math.max(this.currentSection-1,0),this.cdr.detectChanges(),this.sendEvents()}slideRight(){this.currentSection=Math.min(this.currentSection+1,this.numberOfSections-1),this.cdr.detectChanges(),this.sendEvents()}sendEvents(){setTimeout(()=>{this.recipeCards.forEach(e=>{e.sendShowEvent(),e.displayPrice()})},1e3)}updateWidth(){const e=this.nbCardsInAnExtremeSection,t=this.nbCardsInAMiddleSection,i=0===this.currentSection,n=this.currentSection===this.numberOfSections-1;this.recalculateSections(),this.currentSection=i?0:n?this.numberOfSections-1:(e-this.nbCardsInAnExtremeSection+this.currentSection*t)/this.nbCardsInAMiddleSection,this.cdr.detectChanges()}displayListMode(){this.displayList.emit({title:this.title,filters:this.filters.additionalFilters.filters})}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}}return e.\u0275fac=function(t){return new(t||e)(Bo(pv),Bo(n_),Bo(i_),Bo($a),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-catalog-category"]],viewQuery:function(e,t){var i;1&e&&(Kc(JM,!0),Kc(KM,!0),Kc(qM,!0)),2&e&&(Jc(i=el())&&(t.categoryContent=i.first),Jc(i=el())&&(t.categoryCards=i.first),Jc(i=el())&&(t.recipeCards=i))},inputs:{filters:"filters",title:"title",subtitle:"subtitle",maxRecipeNumber:"maxRecipeNumber",modifiedGuests:"modifiedGuests",displayPricing:"displayPricing",recipeAddedToastText:"recipeAddedToastText"},outputs:{displayList:"displayList",loading:"loading"},features:[yo,Qt],decls:1,vars:1,consts:[["class","miam-catalog-category",4,"ngIf"],[1,"miam-catalog-category"],[1,"miam-catalog-category__header"],[1,"miam-catalog-category__left"],[1,"miam-catalog-category__title",3,"click"],[1,"miam-catalog-category__subtitle"],[1,"miam-catalog-category__right"],[1,"miam-catalog-category__link",3,"click"],["height","20","width","20","primaryColor","var(--m-color-primary)",3,"iconName","click"],[1,"miam-catalog-category__content"],["categoryContent",""],[1,"miam-catalog-category__cards",3,"ngStyle"],["categoryCards",""],["class","miam-catalog-category__loader",4,"ngIf"],[3,"recipe","displayPricing","recipeAddedToastText","originTrace",4,"ngFor","ngForOf"],[3,"article",4,"ngFor","ngForOf"],["class","miam-catalog-category__slider__left",3,"click",4,"ngIf"],["class","miam-catalog-category__slider__right",3,"click",4,"ngIf"],[1,"miam-catalog-category__loader"],[3,"recipe","displayPricing","recipeAddedToastText","originTrace"],[3,"article"],[1,"miam-catalog-category__slider__left",3,"click"],["height","56","width","56","primaryColor","var(--m-color-white)",3,"iconName"],[1,"miam-catalog-category__slider__right",3,"click"]],template:function(e,t){1&e&&Fo(0,aL,21,13,"div",0),2&e&&jo("ngIf",!t.hide)},directives:[Zd,VS,Kd,Nd,$E,qM,ET],pipes:[au],styles:[".miam-catalog-category__slider{display:flex;position:absolute;justify-content:center;align-items:center;top:0;height:calc(100% - 28px);width:48px;margin:12px 0 16px;background-color:rgba(32,32,32,.3);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);cursor:pointer}@media (max-width:1022px){.miam-catalog-category__slider{display:none}}.miam-catalog-category{display:flex;flex-direction:column;margin-bottom:40px}.miam-catalog-category .miam-catalog-category__header{display:flex;flex-direction:row;align-items:flex-end;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{flex:1}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-bottom:4px;font-size:24px;line-height:34px;font-weight:700;color:var(--m-color-black);-webkit-tap-highlight-color:transparent;cursor:pointer}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__subtitle{color:var(--m-color-black);font-size:14px;line-height:22px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{display:flex;align-items:center}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link{font-size:16px;line-height:24px;color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right ng-miam-icon{margin-top:3px}.miam-catalog-category .miam-catalog-category__header .icon-container{transform:rotate(-90deg);margin-bottom:3px;cursor:pointer}.miam-catalog-category .miam-catalog-category__content{position:relative;overflow:hidden;padding:0;margin:calc(0px - var(--m-catalog-cards-spacing)/2);width:calc(100% + var(--m-catalog-cards-spacing));height:calc(var(--m-catalog-card-height) + var(--m-catalog-cards-spacing))}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__slider__left,.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__slider__right{display:none}@media (max-width:1095px){.miam-catalog-category .miam-catalog-category__content{overflow-x:auto}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap}}@media (max-width:607px){.miam-catalog-category .miam-catalog-category__header{flex-direction:column;align-items:flex-start;margin-bottom:8px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{margin-bottom:4px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{margin-bottom:0}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{align-self:flex-end}}"],encapsulation:2,changeDetection:0}),e})();function sL(e,t){if(1&e){const e=Xo();Vo(0,"a",17),Jo("click",(function(){return gi(e),es().returnButtonPressed.emit()})),fs(1,"Meal ideas"),Zo()}}function cL(e,t){if(1&e){const e=Xo();Vo(0,"a",17),Jo("click",(function(){return gi(e),es().returnButtonPressed.emit()})),fs(1),Zo()}if(2&e){const e=es();Dr(1),vs(e.homeLabel)}}function lL(e,t){1&e&&Qo(0,"ng-miam-icon",5),2&e&&jo("iconName",es().icon.ChevronDown)}function dL(e,t){1&e&&(Vo(0,"span"),fs(1,"Your search: "),Zo())}function uL(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(2);Dr(1),vs(e.searchTerm)}}function mL(e,t){1&e&&(Vo(0,"span"),fs(1,"My meal ideas"),Zo())}function pL(e,t){1&e&&(Vo(0,"span"),fs(1,"My personal notebook"),Zo())}function hL(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(2);Dr(1),vs(e.additionalFiltersTitle)}}function gL(e,t){1&e&&(Vo(0,"span"),fs(1,"Your selection"),Zo())}function fL(e,t){if(1&e&&(Vo(0,"a",18),Fo(1,dL,2,0,"span",19),Fo(2,uL,2,1,"span",19),Fo(3,mL,2,0,"span",19),Fo(4,pL,2,0,"span",19),Fo(5,hL,2,1,"span",19),Fo(6,gL,2,0,"span",19),Zo()),2&e){const e=es();Dr(1),jo("ngIf",e.isSearchPage()),Dr(1),jo("ngIf",e.isSearchPage()),Dr(1),jo("ngIf",e.isFavoritesPage()),Dr(1),jo("ngIf",e.isPersonalPage()),Dr(1),jo("ngIf",e.isCategoryPage()),Dr(1),jo("ngIf",e.isDefaultPage())}}function vL(e,t){1&e&&Qo(0,"img",22),2&e&&jo("src",es(2).titlePictureUrl,cr)}function _L(e,t){if(1&e&&(Vo(0,"div",20),Fo(1,vL,1,1,"img",21),Zo()),2&e){const e=es();Dr(1),jo("ngIf",e.titlePictureUrl&&e.titlePictureUrl.length>0)}}function yL(e,t){if(1&e){const e=Xo();Vo(0,"div",23),Vo(1,"input",24),Jo("ngModelChange",(function(t){return gi(e),es().searchString=t}))("keydown.enter",(function(){return gi(e),es().emitSearchString()}))("blur",(function(){return gi(e),es().emitSearchString()})),Zo(),Vo(2,"button",25),Vo(3,"ng-miam-icon",26),Jo("click",(function(){return gi(e),es().emitSearchString()})),Zo(),Zo(),Zo()}if(2&e){const e=es();Dr(1),jo("ngModel",e.searchString),Dr(2),jo("iconName",e.icon.Search)}}function bL(e,t){1&e&&(Vo(0,"span"),fs(1,"Filter"),Zo())}function wL(e,t){if(1&e&&(Vo(0,"div",30),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s(" ",e.filterBadgeCount," ")}}const xL=function(e,t){return{reverse:e,reduced:t}};function CL(e,t){if(1&e){const e=Xo();Vo(0,"button",27),Jo("click",(function(){return gi(e),es().filterButtonPressed.emit()})),Qo(1,"ng-miam-icon",28),Fo(2,bL,2,0,"span",19),Fo(3,wL,2,1,"div",29),Zo()}if(2&e){const e=es();jo("ngClass",Ac(4,xL,!e.reduced,e.reduced)),Dr(1),jo("iconName",e.icon.Filter),Dr(1),jo("ngIf",!e.reduced),Dr(1),jo("ngIf",e.filterBadgeCount&&e.filterBadgeCount>0)}}function kL(e,t){1&e&&(Vo(0,"span"),fs(1,"My meal ideas"),Zo())}const AL=function(e,t){return{"m-button-primary":e,reduced:t}};function SL(e,t){if(1&e){const e=Xo();Vo(0,"button",31),Jo("click",(function(){return gi(e),es().favoritesButtonPressed.emit()})),Qo(1,"ng-miam-icon",28),Fo(2,kL,2,0,"span",19),Zo()}if(2&e){const e=es();jo("ngClass",Ac(3,AL,e.reduced,e.reduced)),Dr(1),jo("iconName",e.icon.Heart),Dr(1),jo("ngIf",!e.reduced)}}function EL(e,t){1&e&&(Vo(0,"span"),fs(1,"My personal notebook"),Zo())}const DL=function(e){return{reduced:e}};function IL(e,t){if(1&e){const e=Xo();Vo(0,"button",32),Jo("click",(function(){return gi(e),es().personalButtonPressed.emit()})),Qo(1,"ng-miam-icon",28),Fo(2,EL,2,0,"span",19),Zo()}if(2&e){const e=es();jo("ngClass",kc(3,DL,e.reduced)),Dr(1),jo("iconName",e.icon.Cook),Dr(1),jo("ngIf",!e.reduced)}}const OL=function(e){return{searching:e}};let PL=(()=>{class e{constructor(e,t){this.cdr=e,this.context=t,this.pictureUrl="",this.searchBarHidden=!1,this.filterButtonHidden=!1,this.favoritesButtonHidden=!1,this.personalButtonHidden=!0,this.filterBadgeCount=0,this.returnButtonPressed=new Bc,this.filterButtonPressed=new Bc,this.favoritesButtonPressed=new Bc,this.personalButtonPressed=new Bc,this.searchStringChanged=new Bc,this.icon=Iv,this.searchString="",this.searching=!1}ngOnChanges(){this.reduced=!this.pictureUrl||this.pictureUrl.length<1,this.cdr.detectChanges()}resetSearchString(){this.searchString="",this.cdr.detectChanges()}emitSearchString(){this.searching=!this.searching,this.cdr.detectChanges(),this.searchStringChanged.emit(this.searchString)}isSearchPage(){return!this.home&&this.searchTerm&&this.searchTerm.length>0}isFavoritesPage(){return!this.home&&!this.isSearchPage()&&"Mes id\xe9es repas"===this.additionalFiltersTitle}isPersonalPage(){return!this.home&&!this.isSearchPage()&&"Mon carnet perso"===this.additionalFiltersTitle}isCategoryPage(){var e;return!this.home&&!this.isSearchPage()&&!this.isFavoritesPage()&&!this.isPersonalPage()&&(null===(e=this.additionalFiltersTitle)||void 0===e?void 0:e.length)>0}isDefaultPage(){return!(this.home||this.isSearchPage()||this.isFavoritesPage()||this.isPersonalPage()||this.isCategoryPage())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-catalog-header"]],inputs:{home:"home",searchTerm:"searchTerm",additionalFiltersTitle:"additionalFiltersTitle",homeLabel:"homeLabel",pictureUrl:"pictureUrl",titlePictureUrl:"titlePictureUrl",searchBarHidden:"searchBarHidden",filterButtonHidden:"filterButtonHidden",favoritesButtonHidden:"favoritesButtonHidden",personalButtonHidden:"personalButtonHidden",filterBadgeCount:"filterBadgeCount"},outputs:{returnButtonPressed:"returnButtonPressed",filterButtonPressed:"filterButtonPressed",favoritesButtonPressed:"favoritesButtonPressed",personalButtonPressed:"personalButtonPressed",searchStringChanged:"searchStringChanged"},features:[Qt],decls:18,vars:20,consts:[[1,"miam-catalog-header",3,"ngClass"],[1,"miam-catalog-header__content"],[1,"miam-catalog-header__nav"],["href","/"],["width","18","height","18",3,"iconName","primaryColor"],["width","24","height","24",1,"chevron-right",3,"iconName"],["href","javascript:void(0)",3,"click",4,"ngIf"],["class","chevron-right","width","24","height","24",3,"iconName",4,"ngIf"],["href","javascript:void(0)",4,"ngIf"],[1,"miam-catalog-header__title-and-search"],["class","miam-catalog-header__title",4,"ngIf"],[1,"miam-catalog-header__search-and-filters",3,"ngClass"],["class","miam-catalog-header__searchbar",4,"ngIf"],[1,"miam-catalog-header__controls"],["class","miam-catalog-header__controls__filter m-button-primary",3,"ngClass","click",4,"ngIf"],["class","miam-catalog-header__controls__favorites",3,"ngClass","click",4,"ngIf"],["class","miam-catalog-header__controls_personnal",3,"ngClass","click",4,"ngIf"],["href","javascript:void(0)",3,"click"],["href","javascript:void(0)"],[4,"ngIf"],[1,"miam-catalog-header__title"],[3,"src",4,"ngIf"],[3,"src"],[1,"miam-catalog-header__searchbar"],["type","text","placeholder","Chercher un ingr\xe9dient ou un repas",1,"miam-catalog-header__searchbar__input",3,"ngModel","ngModelChange","keydown.enter","blur"],[1,"miam-catalog-header__searchbar__button","m-button-primary"],["width","20","height","20",1,"miam-catalog-header__searchbar__icon",3,"iconName","click"],[1,"miam-catalog-header__controls__filter","m-button-primary",3,"ngClass","click"],["width","18","height","18",3,"iconName"],["class","miam-catalog-header__controls__filter-badge",4,"ngIf"],[1,"miam-catalog-header__controls__filter-badge"],[1,"miam-catalog-header__controls__favorites",3,"ngClass","click"],[1,"miam-catalog-header__controls_personnal",3,"ngClass","click"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"a",3),Qo(4,"ng-miam-icon",4),Zo(),Qo(5,"ng-miam-icon",5),Fo(6,sL,2,0,"a",6),Fo(7,cL,2,1,"a",6),Fo(8,lL,1,1,"ng-miam-icon",7),Fo(9,fL,7,6,"a",8),Zo(),Vo(10,"div",9),Fo(11,_L,2,1,"div",10),Vo(12,"div",11),Fo(13,yL,4,2,"div",12),Vo(14,"div",13),Fo(15,CL,4,7,"button",14),Fo(16,SL,3,6,"button",15),Fo(17,IL,3,5,"button",16),Zo(),Zo(),Zo(),Zo(),Zo()),2&e&&(ls("background-image","url("+t.pictureUrl+")"),jo("ngClass",kc(16,DL,t.reduced)),Dr(4),jo("iconName",t.icon.Home)("primaryColor",t.reduced?"var(--m-catalog-header-reduced-text-color)":"var(--m-catalog-header-text-color)"),Dr(1),jo("iconName",t.icon.ChevronDown),Dr(1),jo("ngIf",!t.homeLabel),Dr(1),jo("ngIf",t.homeLabel),Dr(1),jo("ngIf",!t.home),Dr(1),jo("ngIf",!t.home),Dr(2),jo("ngIf",!t.reduced),Dr(1),jo("ngClass",kc(18,OL,t.searching)),Dr(1),jo("ngIf",!t.searchBarHidden),Dr(2),jo("ngIf",!t.filterButtonHidden),Dr(1),jo("ngIf",!t.favoritesButtonHidden),Dr(1),jo("ngIf",!t.personalButtonHidden))},directives:[Hd,VS,Zd,E_,M_,Fy],styles:['.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{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{min-height:78px;flex:1}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{float:left;flex:1;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;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}.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{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{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%;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{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;display:flex}.cal-week-view .cal-time-events .cal-day-columns{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:"\\00a0"}.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}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites.reverse:not(.m-button-primary),.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary),.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal.reverse:not(.m-button-primary),.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary){display:flex;justify-content:center;align-items:center;border-radius:var(--m-button-radius);padding:var(--m-button-padding);cursor:pointer;font-size:var(--m-button-text-size);line-height:var(--m-button-text-height);font-weight:var(--m-button-text-weight);outline:0;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites.reverse:not(.m-button-primary) ng-miam-icon,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal.reverse:not(.m-button-primary) ng-miam-icon,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon:last-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon:first-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon:last-child:first-child,.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{color:var(--m-color-secondary);background-color:var(--m-color-white);border:1px solid var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{color:var(--m-color-white);background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{color:var(--m-color-white);background-color:var(--m-color-grey03);border:1px solid var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{color:var(--m-color-grey03);background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{display:flex;justify-content:space-between;align-items:center;max-width:320px;min-width:200px;border:1px solid var(--m-color-grey06);border-radius:5px;padding:8px 16px;margin-top:16px;outline:none}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{display:flex;flex-direction:row;margin:auto;justify-content:space-between;align-items:center}.m-default-card{box-shadow:var(--m-shadow-small);background-color:var(--m-color-unpure-white);padding:16px;border-radius:8px}@media (max-width:1023px){.m-default-card{padding:8px;margin-bottom:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-white:var(--miam-color-white,#fafcfe);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-gap:var(--miam-button-gap,10px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-button-text-height:var(--miam-button-text-height,calc(1.5 * var(--m-button-text-size)));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-font-size-small:var(--miam-font-size-small,14px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-loader-size:var(--miam-loader-sizes,40px);--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-family:Work Sans;font-style:normal;font-weight:500;font-size:var(--m-font-size-medium);line-height:24px;color:var(--m-color-slate)}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-weight:700;font-size:40px;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{transition:none!important;-webkit-transition:none!important;animation:none!important;-webkit-animation:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-catalog-header{position:relative;width:100%;background-size:cover;padding:32px 24px 24px 40px}.miam-catalog-header.reduced{background-image:none!important;background-color:var(--m-catalog-header-reduced-bg-color);padding:24px}.miam-catalog-header.reduced .miam-catalog-header__content{flex-direction:row;justify-content:space-between;align-items:center}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__nav{margin-bottom:0;color:var(--m-catalog-header-reduced-text-color)}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__nav .chevron-right .icon-container svg path:last-child{fill:var(--m-catalog-header-reduced-text-color)}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__nav a{color:var(--m-catalog-header-reduced-text-color)}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search{width:auto;flex-grow:1;margin-left:24px}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters{justify-content:flex-end}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar{flex-grow:1;width:unset;max-width:400px}.miam-catalog-header .miam-catalog-header__content{display:flex;flex-direction:column;align-items:flex-start;width:100%;height:100%}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__nav{display:flex;align-items:center;color:var(--m-catalog-header-text-color);font-weight:700;margin-bottom:24px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__nav .chevron-right{transform:rotate(-90deg)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__nav .chevron-right .icon-container svg path:last-child{fill:var(--m-catalog-header-text-color)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__nav a{color:var(--m-catalog-header-text-color)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__nav>*{margin-right:4px;text-align:center}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__title-and-search{width:100%}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__title{display:flex;font-size:28px;line-height:42px;color:var(--m-catalog-header-text-color);font-weight:700;margin-bottom:24px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters{display:flex;align-items:center;justify-content:space-between;width:100%}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar{background:var(--m-color-white);border:1px solid #ddd;border-radius:var(--m-border-radius-pill);height:45px;width:400px;display:flex;align-items:center;padding:0 2px 0 20px;font-size:14px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar .miam-catalog-header__searchbar__input{border:transparent;background:transparent;flex:1}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar .miam-catalog-header__searchbar__input:focus{outline:transparent}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar button.miam-catalog-header__searchbar__button{padding:10px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__searchbar button.miam-catalog-header__searchbar__button:hover{border-color:transparent}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls{display:flex}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button{margin-left:8px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button span{white-space:nowrap}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__filter{border-color:transparent;font-weight:700;position:relative}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__filter.reduced ng-miam-icon{margin:0}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__filter .miam-catalog-header__controls__filter-badge{position:absolute;height:18px;width:18px;right:-4px;top:-4px;display:flex;justify-content:center;align-items:center;background-color:var(--m-catalog-redpoint-color);color:var(--m-catalog-redpoint-text-color);border-radius:var(--m-border-radius-circle);font-size:12px;line-height:18px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary){color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);font-weight:700}@media (min-width:1023px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary):hover{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary):hover ng-miam-icon svg path{fill:var(--m-color-white)}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon svg path{fill:var(--m-color-primary)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary).reverse{color:var(--m-color-white);background-color:var(--m-color-primary);border:1px solid var(--m-color-white)}@media (min-width:1023px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary).reverse:hover{color:var(--m-color-primary);background-color:var(--m-color-white);border:1px solid var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary).reverse:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary).reverse ng-miam-icon svg path{fill:var(--m-color-white)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) img{filter:invert(33%) sepia(25%) saturate(5002%) hue-rotate(184deg) brightness(91%) contrast(87%)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary):hover{border-color:transparent;color:var(--m-color-white);font-weight:700}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary):hover img{filter:invert(95%) sepia(100%) saturate(0) hue-rotate(248deg) brightness(106%) contrast(103%)}@media (max-width:767px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary){border-radius:var(--m-border-radius-circle);padding:10px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) span{display:none}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary) ng-miam-icon:first-child{margin:0}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary):hover{background-color:var(--m-color-primary)!important}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls_personnal:not(.m-button-primary).reduced{padding:10px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary){color:var(--m-catalog-alt-button-text-color);background-color:var(--m-catalog-alt-button-color);border:1px solid var(--m-catalog-alt-button-text-color);font-weight:700}@media (min-width:1023px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary):hover{color:var(--m-catalog-alt-button-color);background-color:var(--m-catalog-alt-button-text-color);border:1px solid var(--m-catalog-alt-button-color);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary):hover ng-miam-icon svg path{fill:var(--m-catalog-alt-button-color)}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon svg path{fill:var(--m-catalog-alt-button-text-color)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary).reverse{color:var(--m-catalog-alt-button-color);background-color:var(--m-catalog-alt-button-text-color);border:1px solid var(--m-catalog-alt-button-color)}@media (min-width:1023px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary).reverse:hover{color:var(--m-catalog-alt-button-text-color);background-color:var(--m-catalog-alt-button-color);border:1px solid var(--m-catalog-alt-button-text-color);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary).reverse:hover ng-miam-icon svg path{fill:var(--m-catalog-alt-button-text-color)}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary).reverse ng-miam-icon svg path{fill:var(--m-catalog-alt-button-color)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary):hover{border-color:transparent;color:var(--m-catalog-alt-button-text-color-reverse)}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary):hover ng-miam-icon svg path{fill:var(--m-catalog-alt-button-text-color-reverse)}@media (max-width:767px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary){border-radius:var(--m-border-radius-circle);padding:10px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) span{display:none}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.miam-catalog-header__controls__favorites:not(.m-button-primary) ng-miam-icon:first-child{margin:0}}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.reduced{padding:10px;border-color:initial}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__search-and-filters .miam-catalog-header__controls>button.reduced img{filter:invert(95%) sepia(100%) saturate(0) hue-rotate(248deg) brightness(106%) contrast(103%)}@media (max-width:767px){.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__controls .miam-catalog-header__controls__filter{border-radius:var(--m-border-radius-circle);padding:10px}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__controls .miam-catalog-header__controls__filter span{display:none}.miam-catalog-header .miam-catalog-header__content .miam-catalog-header__controls .miam-catalog-header__controls__filter ng-miam-icon{margin-right:0!important}.miam-catalog-header.reduced .miam-catalog-header__nav{display:none}}@media (max-width:607px){.miam-catalog-header.reduced,.miam-catalog-header:not(.reduced){background-image:none!important;background-color:var(--m-catalog-header-reduced-bg-color);padding:16px 12px}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__nav,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__nav{display:none}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search{margin-left:0}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__title,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__title{justify-content:center;margin-bottom:16px}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters{justify-content:center}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters:not(.searching) .miam-catalog-header__searchbar,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters:not(.searching) .miam-catalog-header__searchbar{height:42px;width:42px;max-width:42px;padding:0;border:0}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters.searching .miam-catalog-header__controls,.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters:not(.searching) .miam-catalog-header__searchbar input.miam-catalog-header__searchbar__input,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters.searching .miam-catalog-header__controls,.miam-catalog-header:not(.reduced) .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters:not(.searching) .miam-catalog-header__searchbar input.miam-catalog-header__searchbar__input{display:none}.miam-catalog-header.reduced .miam-catalog-header__content .miam-catalog-header__title-and-search .miam-catalog-header__search-and-filters{justify-content:flex-end}}'],encapsulation:2,changeDetection:0}),e})();var TL=function(e,t,i,n){if(!Tm(e))return e;for(var r=-1,a=(t=ff(t,e)).length,o=a-1,s=e;null!=s&&++r<a;){var c=vf(t[r]),l=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=o){var d=s[c];void 0===(l=n?n(d,c,s):void 0)&&(l=Tm(d)?d:Cp(t[r+1])?[]:{})}rh(s,c,l),s=s[c]}return e},ML=Rf((function(e,t){return null==e?{}:function(e,t){return function(e,t,i){for(var n=-1,r=t.length,a={};++n<r;){var o=t[n],s=_f(e,o);i(0,o)&&TL(a,ff(o,e),s)}return a}(e,t,(function(t,i){return wv(e,i)}))}(e,t)}));function LL(e,t){if(1&e&&(Vo(0,"div"),Vo(1,"span"),fs(2,"for"),Zo(),Vo(3,"span"),fs(4),Zo(),Zo()),2&e){const e=es(3);Dr(4),_s('"',e.filters.search,'"')}}function RL(e,t){if(1&e&&(Vo(0,"div"),Vo(1,"div",12),Vo(2,"span"),fs(3,"Sorry, no quotes found"),Zo(),Fo(4,LL,5,1,"div",13),Zo(),Vo(5,"div",14),fs(6,"Please change your search terms or set filters"),Zo(),Zo()),2&e){const e=es(2);Dr(4),jo("ngIf",e.isSearching())}}function zL(e,t){1&e&&(Vo(0,"div"),Vo(1,"span",12),fs(2,"Sorry, you don't have any saved meal ideas yet"),Zo(),Zo())}function FL(e,t){if(1&e&&(Fo(0,zL,3,0,"div",9),Mc(1,"async")),2&e){es();const e=Ho(6);jo("ngIf",Lc(1,2,es().userService.isLogged$))("ngIfElse",e)}}function HL(e,t){1&e&&(Vo(0,"span",12),fs(1,"Sorry, you must be logged in to access the content of this page."),Zo())}function BL(e,t){if(1&e&&(Vo(0,"div",7),Qo(1,"ng-miam-icon",8),Fo(2,RL,7,1,"div",9),Fo(3,FL,2,4,"ng-template",null,10,rl),Fo(5,HL,2,0,"ng-template",null,11,rl),Zo()),2&e){const e=Ho(4),t=es();Dr(1),jo("width",279)("height",243)("iconName",t.icon.NoRecipeFound),Dr(1),jo("ngIf",t.isFiltering())("ngIfElse",e)}}function jL(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-card-create-recipe",15),Jo("clicked",(function(){return gi(e),es().recipeActionTriggered.emit({action:"CREATE",recipe:null})})),Zo()}}function NL(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-catalog-recipe-card",16),Jo("actionTriggered",(function(i){gi(e);const n=t.$implicit;return es().recipeActionTriggered.emit({action:i,recipe:n})})),Zo()}if(2&e){const e=t.$implicit,i=es();jo("recipe",e)("originTrace",i.eventTrace())("displayPricing",i.displayPricing)("recipeAddedToastText",i.recipeAddedToastText)}}function VL(e,t){1&e&&Qo(0,"ng-miam-catalog-article-card",17),2&e&&jo("article",t.$implicit)}function ZL(e,t){1&e&&(Vo(0,"div",18),Qo(1,"ng-miam-loader"),Vo(2,"div"),fs(3," Loading results... "),Zo(),Zo())}let QL=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o){super(o),this.recipesService=e,this.recipeLikesService=t,this.articlesService=i,this.userService=n,this.context=r,this.cdr=a,this.analyticsService=o,this.insertCreateCard=!1,this.randomMode=!1,this.retrievedRecipes=new Bc,this.filterRemoved=new Bc,this.recipeActionTriggered=new Bc,this.loading=new dm(!0),this.currentRecipes=[],this.lastPage=0,this.icon=Iv,this.noMoreRecipes=!1,this.noMoreArticles=!1,this.filtersToDisplay=[],this.articles=[],this.subscriptions=[],this.currentRecipes=[],this.filters=new LO({search:""})}ngOnInit(){this.bottomAnchor=document.getElementById("miam-catalog-list__anchor"),this.initLoadOnScroll()}ngOnChanges(){this.filtersToDisplay=this.buildFiltersArray(),this.reloadPage(),this.filters.search&&this.sendEvent(this.analyticsService.EVENT_SEARCH),this.pageview()}currentPath(){return this.filters.eventPath()}props(){var e,t;return(null===(e=this.filters)||void 0===e?void 0:e.search)?{search_term:null===(t=this.filters)||void 0===t?void 0:t.search}:{}}initLoadOnScroll(){this.intersectionObserver=new IntersectionObserver(([e])=>{this.autoloadContentIfNecessary()},{}),this.mutationObserver=new MutationObserver(()=>{this.autoloadContentIfNecessary()}),this.intersectionObserver.observe(this.bottomAnchor),this.mutationObserver.observe(document.getElementsByClassName("miam-catalog-list__cards")[0],{attributes:!0,childList:!0,subtree:!1})}anchorIsOnScreen(){const e=window.innerHeight||document.documentElement.clientHeight,t=this.bottomAnchor.getBoundingClientRect();return t.top<=e&&t.bottom>=0}autoloadContentIfNecessary(){this.loading.pipe(cg(1),Su(e=>!e)).subscribe(()=>{this.anchorIsOnScreen()&&(this.currentRecipes.length>0&&!this.noMoreRecipes||this.articles.length>0&&!this.noMoreArticles)&&this.loadMore(this.lastPage>2)})}loadMore(e=!0){e&&this.loading.next(!0),this.lastPage++,this.loadContent()}loadRecipesPage(e){if(this.noMoreRecipes)return Au([]);const t=this.filters.copy();return this.recipesService.filter(t,{size:20,number:e},null,this.randomMode).pipe(ug(i=>this.processResults(i,t,e)))}processResults(e,t,i){return JSON.stringify(t)===JSON.stringify(this.filters)?(this.currentRecipes=1===i?e:[...this.currentRecipes,...e],this.currentRecipes.forEach(e=>{this.modifiedGuests&&parseInt(this.modifiedGuests,10)>0&&(e.modifiedGuests=parseInt(this.modifiedGuests,10))}),this.noMoreRecipes=0===e.length,this.retrievedRecipes.emit(this.currentRecipes),Au(this.currentRecipes)):(console.debug("Filtering aborted : "+JSON.stringify(t)+"and"+JSON.stringify(this.filters)+"are different"),Au([]))}removeFilter(e){this.filterRemoved.emit(e)}buildFiltersArray(){let e=[];return e=[...e,...this.getSelectedFilters(this.filters.cost),...this.getSelectedFilters(this.filters.difficulty),...this.getSelectedFilters(this.filters.time)],this.filters.additionalFilters&&""!==this.filters.additionalFilters.title&&(e=[this.filters.additionalFilters.title].concat(e)),e}getSelectedFilters(e){return e?e.filter(e=>e.value).map(e=>e.text):[]}reloadPage(){this.loading.next(!0),this.lastPage=1,this.noMoreRecipes=!1,this.noMoreArticles=!1,this.currentRecipes=[],this.articles=[],this.cdr.detectChanges(),this.loadContent()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}loadArticles(e){if(!this.context.articlesInCatalogEnabled||this.noMoreArticles||!this.filters.packages)return Au([]);const t=ML(this.filters,"packages","search");return this.articlesService.all({remotefilter:t,page:{size:20,number:e},sort:["-date"]}).pipe(D(t=>(this.articles=1===e?t.data:[...this.articles,...t.data],this.noMoreArticles=0===t.data.length,this.articles)))}loadContent(){this.subscriptions.push(Sg([this.loadRecipesPage(this.lastPage),this.loadArticles(this.lastPage)]).subscribe(()=>{this.loading.next(!1),this.cdr.detectChanges()}))}isSearching(){return this.filters.search&&""!==this.filters.search}isFieldEmpty(e){for(const t of e)if(t.value)return!1;return!0}isFiltering(){return this.isSearching()||!this.isFieldEmpty(this.filters.difficulty)||!this.isFieldEmpty(this.filters.cost)||!this.isFieldEmpty(this.filters.time)}}return e.\u0275fac=function(t){return new(t||e)(Bo(pv),Bo(Gf),Bo(n_),Bo(Ug),Bo(i_),Bo($a),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-catalog-list"]],viewQuery:function(e,t){var i;1&e&&Kc(qM,!0),2&e&&Jc(i=el())&&(t.recipeCards=i)},inputs:{filters:"filters",insertCreateCard:"insertCreateCard",randomMode:"randomMode",modifiedGuests:"modifiedGuests",displayPricing:"displayPricing",recipeAddedToastText:"recipeAddedToastText"},outputs:{retrievedRecipes:"retrievedRecipes",filterRemoved:"filterRemoved",recipeActionTriggered:"recipeActionTriggered",loading:"loading"},features:[yo,Qt],decls:9,vars:9,consts:[[1,"miam-catalog-list__cards"],["class","miam-catalog-list__notFound",4,"ngIf"],["class","miam-catalog-list__card",3,"clicked",4,"ngIf"],[3,"recipe","originTrace","displayPricing","recipeAddedToastText","actionTriggered",4,"ngFor","ngForOf"],[3,"article",4,"ngFor","ngForOf"],["class","miam-catalog-list__loader",4,"ngIf"],["id","miam-catalog-list__anchor"],[1,"miam-catalog-list__notFound"],[1,"miam-catalog-list__notFound__icon",3,"width","height","iconName"],[4,"ngIf","ngIfElse"],["notFiltering",""],["notLogged",""],[1,"miam-catalog-list__notFound__title1"],[4,"ngIf"],[1,"miam-catalog-list__notFound__title2"],[1,"miam-catalog-list__card",3,"clicked"],[3,"recipe","originTrace","displayPricing","recipeAddedToastText","actionTriggered"],[3,"article"],[1,"miam-catalog-list__loader"]],template:function(e,t){1&e&&(Vo(0,"div",0),Fo(1,BL,7,5,"div",1),Mc(2,"async"),Fo(3,jL,1,0,"ng-miam-card-create-recipe",2),Fo(4,NL,1,4,"ng-miam-catalog-recipe-card",3),Fo(5,VL,1,1,"ng-miam-catalog-article-card",4),Fo(6,ZL,4,0,"div",5),Mc(7,"async"),Qo(8,"div",6),Zo()),2&e&&(Dr(1),jo("ngIf",!Lc(2,5,t.loading)&&0===t.currentRecipes.length&&0===t.articles.length),Dr(2),jo("ngIf",t.insertCreateCard&&0!==t.currentRecipes.length),Dr(1),jo("ngForOf",t.currentRecipes),Dr(1),jo("ngForOf",t.articles),Dr(1),jo("ngIf",Lc(7,7,t.loading)))},directives:[Zd,Nd,VS,vP,qM,ET,$E],pipes:[au],styles:[".miam-catalog-list__cards{display:flex;justify-content:center;flex-flow:row wrap;position:relative;right:0;top:0;margin:calc(0px - var(--m-catalog-cards-spacing)/2);width:calc(100% + var(--m-catalog-cards-spacing))}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"],encapsulation:2,changeDetection:0}),e})();const WL=["buttonText"],UL=["fileInput"];function YL(e,t){if(1&e){const e=Xo();Vo(0,"input",8,9),Jo("change",(function(t){return gi(e),es().uploadFile(t.target.files)})),Zo()}}function XL(e,t){if(1&e){const e=Xo();Vo(0,"input",12,9),Jo("change",(function(t){return gi(e),es(2).fileSelected(t)})),Zo()}}function GL(e,t){if(1&e&&(Fo(0,XL,2,0,"input",10),Vo(1,"figure"),Qo(2,"img",11),Zo()),2&e){const e=es();jo("ngIf",!e.bigImageWarning),Dr(2),jo("src",e.imageUrl||"https://storage.googleapis.com/assets.miam.tech/generic/personal-recipes/default_img_personal_recipe.jpg",cr)}}function qL(e,t){1&e&&Yo(0)}function JL(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Jo("click",(function(){return gi(e),es().openExplorer()})),fs(1," If you do not change the photo, the default will be applied "),Zo()}}const KL=function(e,t){return{"image-container-mode":e,"dragover-mode":t}};let $L=(()=>{class e{constructor(e){this.cdr=e,this.maxSize=2097152,this.bigImageWarning=!1,this.onFileDropped=new Bc,this.bigFileDropped=new Bc,this.icon=Iv}ngOnChanges(){this.imageUrl&&!this.previousImageUrl&&""!==this.imageUrl&&(this.previousImageUrl=this.imageUrl),""===this.imageUrl&&(this.imageUrl=this.previousImageUrl,this.formControl.patchValue(this.imageUrl),this.onFileDropped.emit()),this.cdr.detectChanges()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.isDragover=!0,this.cdr.detectChanges()}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.isDragover=!1,this.cdr.detectChanges()}onDrop(e){e.preventDefault(),e.stopPropagation(),this.isDragover=!1,this.uploadFile(e.dataTransfer.files)}fileSelected(e){e.preventDefault(),e.stopPropagation(),this.uploadFile(e.target.files)}uploadFile(e){if(!this.imageSizeCheck(e))return this.imageUrl=this.previousImageUrl===this.imageUrl?null:this.previousImageUrl,this.formControl.patchValue(this.imageUrl),this.previousImageUrl=this.imageUrl,void this.bigFileDropped.emit();if(e[0])if(this.photoMode){const t=new FileReader;t.readAsDataURL(e[0]),t.onload=i=>{this.imageUrl=t.result,this.previousImageUrl=this.imageUrl,this.formControl.patchValue(this.imageUrl),this.onFileDropped.emit(e),this.cdr.detectChanges()}}else this.onFileDropped.emit(e)}imageSizeCheck(e){return!e[0]||e[0].size<this.maxSize}openExplorer(){this.fileInput.nativeElement.click()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-drag-drop-input"]],contentQueries:function(e,t,i){var n;1&e&&$c(i,WL,!0),2&e&&Jc(n=el())&&(t.buttonTextTemplateRef=n.first)},viewQuery:function(e,t){var i;1&e&&Kc(UL,!0),2&e&&Jc(i=el())&&(t.fileInput=i.first)},inputs:{photoMode:"photoMode",formControl:"formControl",imageUrl:"imageUrl",maxSize:"maxSize",bigImageWarning:"bigImageWarning"},outputs:{onFileDropped:"onFileDropped",bigFileDropped:"bigFileDropped"},features:[Qt],decls:10,vars:9,consts:[[1,"miam-uploader",3,"ngClass"],["multiple","multiple","type","file",3,"change",4,"ngIf","ngIfElse"],["photoInput",""],[1,"m-button-secondary",3,"click"],[4,"ngTemplateOutlet"],["primaryColor","var(--m-color-white)",3,"iconName"],["class","miam-uploader__default__photo",3,"click",4,"ngIf"],[1,"miam-uploader__drop__overlay",3,"dragover","dragleave","drop","click"],["multiple","multiple","type","file",3,"change"],["fileInput",""],["accept","image/jpeg, image/png, image/webp","type","file",3,"change",4,"ngIf"],[3,"src"],["accept","image/jpeg, image/png, image/webp","type","file",3,"change"],[1,"miam-uploader__default__photo",3,"click"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Fo(1,YL,2,0,"input",1),Fo(2,GL,3,2,"ng-template",null,2,rl),Vo(4,"div",3),Jo("click",(function(){return t.openExplorer()})),Vo(5,"span"),Fo(6,qL,1,0,"ng-container",4),Zo(),Qo(7,"ng-miam-icon",5),Zo(),Fo(8,JL,2,0,"div",6),Vo(9,"div",7),Jo("dragover",(function(e){return t.onDragOver(e)}))("dragleave",(function(e){return t.onDragLeave(e)}))("drop",(function(e){return t.onDrop(e)}))("click",(function(){return t.openExplorer()})),Zo(),Zo()),2&e){const e=Ho(3);jo("ngClass",Ac(6,KL,t.imageUrl,t.isDragover&&!t.imageUrl)),Dr(1),jo("ngIf",!t.photoMode&&!t.bigImageWarning)("ngIfElse",e),Dr(5),jo("ngTemplateOutlet",t.buttonTextTemplateRef),Dr(1),jo("iconName",t.icon.CloudUpload),Dr(1),jo("ngIf",t.photoMode&&!t.imageUrl)}},directives:[Hd,Zd,$d,VS],styles:[".miam-uploader{display:flex;position:relative;justify-content:flex-end;flex-direction:column;height:300px;width:330px;margin:20px auto;border:1px dashed var(--m-color-light-slate);border-radius:var(--m-border-radius);align-items:center;transition:background-color .5s ease}@media (min-width:1022px){.miam-uploader:hover{cursor:pointer;background-color:var(--m-color-primary-light);opacity:.8}}.miam-uploader.dragover-mode{background-color:var(--m-color-primary-light);opacity:.8}.miam-uploader.image-container-mode{border:none;height:300px}.miam-uploader figure{width:100%;overflow:hidden;border-radius:var(--m-border-radius);margin:0}.miam-uploader figure img{display:block;height:300px;width:100%;-o-object-fit:cover;object-fit:cover}.miam-uploader .miam-uploader__drop__overlay{position:absolute;-webkit-tap-highlight-color:transparent;background:linear-gradient(180deg,rgba(0,0,0,.1) 50.52%,rgba(32,32,32,.85) 84.37%);top:0;left:0;right:0;bottom:0;z-index:1}.miam-uploader .miam-uploader__default__photo{position:absolute;z-index:2;color:var(--m-color-white);bottom:32px;left:40px;right:40px;font-size:16px;text-align:center;-webkit-tap-highlight-color:transparent}.miam-uploader input{display:none}.miam-uploader .m-button-secondary{position:absolute;z-index:2;margin-bottom:110px}"],encapsulation:2,changeDetection:0}),e})();function eR(e,t){if(1&e&&(Vo(0,"span",15),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s("",e.pos.attributes.distance.toFixed(1)," Km")}}function tR(e,t){1&e&&(Vo(0,"div",16),fs(1,"Drive"),Zo())}function iR(e,t){1&e&&(Vo(0,"div",16),fs(1,"Delivered to your home"),Zo())}function nR(e,t){if(1&e&&(Vo(0,"div",17),Vo(1,"div",18),Vo(2,"div",19),fs(3,"Products available"),Zo(),Vo(4,"div",20),Qo(5,"div",21),Qo(6,"div",22),Zo(),Zo(),Vo(7,"div",23),Vo(8,"strong"),fs(9),Zo(),fs(10),Zo(),Zo()),2&e){const e=es(2);Dr(6),ls("width",e.gaugeSize)("background-color",e.gaugeColor),Dr(3),vs(e.completion.found),Dr(1),_s("/",e.completion.total," ")}}function rR(e,t){1&e&&(Vo(0,"div",17),fs(1,"Calculating..."),Zo())}function aR(e,t){if(1&e){const e=Xo();Vo(0,"div",1),Jo("click",(function(){gi(e);const t=es();return t.select.emit(t.pos)})),Vo(1,"div",2),Vo(2,"div",3),Qo(3,"img",4),Zo(),Vo(4,"div",5),Vo(5,"div",6),Vo(6,"div",7),Vo(7,"strong"),fs(8),Zo(),Zo(),Fo(9,eR,2,1,"span",8),Zo(),Vo(10,"div",9),fs(11),Zo(),Vo(12,"div",10),Fo(13,tR,2,0,"div",11),Fo(14,iR,2,0,"div",11),Zo(),Zo(),Zo(),Vo(15,"div",12),Vo(16,"div",13),fs(17),Zo(),Fo(18,nR,11,6,"div",14),Fo(19,rR,2,0,"div",14),Zo(),Zo()}if(2&e){const e=es();Dr(3),jo("src",e.pos.relationships.supplier.data.logo,cr),Dr(5),vs(e.pos.attributes.name),Dr(1),jo("ngIf",e.pos.attributes.distance),Dr(2),_s(" ",e.pos.references," r\xe9f\xe9rences "),Dr(2),jo("ngIf",e.pos.driveEnabled),Dr(1),jo("ngIf",e.pos.deliveryEnabled),Dr(3),_s(" ",e.hoverText," "),Dr(1),jo("ngIf",(null==e.completion?null:e.completion.total)>0),Dr(1),jo("ngIf",!e.completion)}}let oR=(()=>{class e{constructor(e,t,i){this.cdr=e,this.listsService=t,this.basketsService=i,this.selected=!1,this.select=new Bc,this.subscriptions=[]}ngOnInit(){let e;e=this.selected?this.basketsService.basket$.pipe(ig(e=>!e)):this.listsService.list$.pipe(ig(e=>!e),ug(e=>this.basketsService.fetchForListAndPos(e.id,this.pos.id))),this.subscriptions.push(e.subscribe(e=>{this.calculateGauge(e)}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}calculateGauge(e){if(!e.completion)return null;this.completion=e.completion;const t=this.completion.found/(this.completion.total||1);this.gaugeSize=125*t+"px",this.gaugeColor=t>=.85?"#40b6aa":t>=.6?"#f6a825":"#ef7612",this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Ag),Bo(Dv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-pos-card"]],inputs:{pos:"pos",selected:"selected",hoverText:"hoverText"},outputs:{select:"select"},decls:1,vars:1,consts:[["class","pos-card",3,"click",4,"ngIf"],[1,"pos-card",3,"click"],[1,"left-section"],[1,"logo"],[3,"src"],[1,"details"],[1,"title-distance"],[1,"title"],["class","distance",4,"ngIf"],[1,"catalogue"],[1,"delivery-options"],["class","option",4,"ngIf"],[1,"right-section"],[1,"hover-text"],["class","availability",4,"ngIf"],[1,"distance"],[1,"option"],[1,"availability"],[1,"gauge-wrapper"],[1,"caption"],[1,"gauge"],[1,"empty"],[1,"full"],[1,"ratio"]],template:function(e,t){1&e&&Fo(0,aR,20,9,"div",0),2&e&&jo("ngIf",t.pos)},directives:[Zd],styles:[".pos-card{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--m-color-grey);padding:15px 20px;border-radius:var(--m-border-radius);cursor:pointer;box-shadow:none;transition:var(--m-default-transition)}@media (min-width:1022px){.pos-card:hover{box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey)}.pos-card:hover .right-section .hover-text{color:var(--m-color-primary);transition:var(--m-default-transition)}}.pos-card .left-section{display:flex;align-items:center}.pos-card .left-section .logo{margin-right:20px;width:100px;min-width:100px}.pos-card .left-section .logo img{width:100%}.pos-card .left-section .details{display:flex;flex-direction:column}.pos-card .left-section .details .title-distance{display:flex;align-items:center}.pos-card .left-section .details .title-distance .title{margin-right:10px;font-size:14px}.pos-card .left-section .details .title-distance .distance{font-size:12px;border:1px solid var(--m-color-grey-text);border-radius:var(--m-border-radius);padding:6px 8px;white-space:nowrap}.pos-card .left-section .details .catalogue{margin-top:5px;margin-bottom:10px;font-size:12px}.pos-card .left-section .details .delivery-options{display:flex;font-size:12px}.pos-card .left-section .details .delivery-options .option{margin-right:10px;background-color:var(--m-color-grey);border-radius:var(--m-border-radius);padding:6px 8px}.pos-card .right-section{display:flex;align-items:center;justify-content:flex-end;width:320px;position:relative;margin-left:10px}.pos-card .right-section .hover-text{color:var(--m-color-grey-text-dark);text-decoration:underline;position:absolute;left:0}.pos-card .right-section .availability{margin-left:15px;font-size:12px}.pos-card .right-section .availability .gauge-wrapper{display:flex;flex-direction:column;align-items:center}.pos-card .right-section .availability .gauge-wrapper .caption{margin-bottom:5px;text-align:center}.pos-card .right-section .availability .gauge-wrapper .gauge{position:relative;width:125px;height:15px}.pos-card .right-section .availability .gauge-wrapper .gauge .empty,.pos-card .right-section .availability .gauge-wrapper .gauge .full{height:15px;border-radius:var(--m-border-radius);position:absolute}.pos-card .right-section .availability .gauge-wrapper .gauge .empty{background-color:var(--m-color-grey);width:inherit}.pos-card .right-section .availability .ratio{display:flex;justify-content:center;align-items:center;margin-top:10px;font-size:14px}"],encapsulation:2,changeDetection:0}),e})();const sR=["selectedPosCard"];function cR(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-pos-card",10),Jo("select",(function(){return gi(e),es(3).startReplace()})),Zo()}2&e&&jo("pos",es(3).selectedPos)("selected",!0)}function lR(e,t){if(1&e){const e=Xo();Vo(0,"button",21),Jo("click",(function(){return gi(e),es(4).endReplace()})),fs(1,"Cancel"),Zo()}}function dR(e,t){if(1&e&&(Vo(0,"div",22),Vo(1,"p"),Qo(2,"b",23),Zo(),Vo(3,"p"),fs(4,"Please enter a different address or postal code."),Zo(),Zo()),2&e){const e=es(4);Dr(2),jo("innerHTML",e.sorryCaption,sr)}}function uR(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-pos-card",25),Jo("select",(function(t){return gi(e),es(5).replace(t)})),Zo()}2&e&&jo("pos",t.$implicit)}function mR(e,t){1&e&&Fo(0,uR,1,1,"ng-miam-pos-card",24),2&e&&jo("ngForOf",es(4).candidatePos)}function pR(e,t){1&e&&(Vo(0,"div",26),Qo(1,"ng-miam-loader"),Vo(2,"div"),fs(3,"Searching for stores..."),Zo(),Zo())}function hR(e,t){if(1&e){const e=Xo();Vo(0,"div"),Vo(1,"div",11),Vo(2,"h4"),fs(3,"Search for a store near me:"),Zo(),Vo(4,"div"),Fo(5,lR,2,0,"button",12),Zo(),Zo(),Vo(6,"div",13),Vo(7,"div",14),Vo(8,"input",15),Jo("ngModelChange",(function(t){return gi(e),es(3).address=t}))("click",(function(t){return gi(e),t.target.select()})),Zo(),Zo(),Vo(9,"button",16),Jo("click",(function(){return gi(e),es(3).searchAddress()})),Qo(10,"ng-miam-icon",17),Zo(),Zo(),Fo(11,dR,5,1,"div",18),Fo(12,mR,1,1,"ng-template",null,19,rl),Fo(14,pR,4,0,"div",20),Zo()}if(2&e){const e=Ho(13),t=es(3);Dr(5),jo("ngIf",t.selectedPos),Dr(3),jo("ngModel",t.address),Dr(2),jo("iconName",t.icon.Search),Dr(1),jo("ngIf",t.candidatePos&&0===t.candidatePos.length)("ngIfElse",e),Dr(3),jo("ngIf",t.loading)}}function gR(e,t){if(1&e&&(Vo(0,"div",7),Fo(1,cR,1,2,"ng-miam-pos-card",8),Fo(2,hR,15,6,"div",9),Zo()),2&e){const e=es(2);Dr(1),jo("ngIf",e.selectedPos&&!e.replacing),Dr(1),jo("ngIf",e.replacing)}}const fR=function(e){return{down:e}};function vR(e,t){if(1&e){const e=Xo();Wo(0),Vo(1,"h3",2),Vo(2,"div",3),Jo("click",(function(){return gi(e),es().toggle()})),fs(3),Zo(),Vo(4,"div",4),Jo("click",(function(){return gi(e),es().toggle()})),Qo(5,"ng-miam-icon",5),Zo(),Zo(),Fo(6,gR,3,2,"div",6),Uo()}if(2&e){const e=es();Dr(3),vs(e.blockTitle),Dr(1),jo("ngClass",kc(4,fR,!e.expand)),Dr(1),jo("iconName",e.icon.ChevronDown),Dr(1),jo("ngIf",e.expand)}}function _R(e,t){1&e&&Qo(0,"ng-miam-cors-overlay")}let yR=(()=>{class e{constructor(e,t,i,n){this.cdr=e,this.contextService=t,this.posService=i,this.analyticsService=n,this.blockTitle="Mon magasin",this.expand=!0,this.loading=!1,this.replacing=!0,this.corsIssues=!1,this.icon=Iv}ngOnInit(){this.subscriptions=[this.contextService.getCORSIssuesState().subscribe(e=>{this.corsIssues=e,this.cdr.detectChanges()}),this.posService.pos$.pipe(ig(e=>!e),um(e=>{this.selectedPos=e,this.endReplace()})).subscribe()]}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}toggle(){this.expand=!this.expand,this.expand?this.show():this.hide()}show(){this.expand=!0,this.cdr.detectChanges()}hide(){this.expand=!1,this.cdr.detectChanges()}startReplace(){this.replacing=!0,this.cdr.detectChanges();const e=document.getElementById("address-input");e.focus(),this.address&&e.setSelectionRange(0,this.address.length)}replace(e){this.subscriptions.push(this.posService.loadPos(e.id).subscribe(()=>this.cdr.detectChanges())),this.endReplace()}endReplace(){this.replacing=!1,this.cdr.detectChanges()}searchAddress(){if(!this.address)return null;this.candidatePos=null,this.loading=!0,this.cdr.detectChanges(),this.posService.all({include:["supplier"],remotefilter:{address:this.address}}).pipe(ig(e=>e.is_loading),um(e=>{this.candidatePos=e.data,this.sorryCaption=`D\xe9sol\xe9, nous n'avons d\xe9tect\xe9 aucun magasin \xe0 proximit\xe9 de <i>${this.address}</i>.`,this.loading=!1,this.cdr.detectChanges()})).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(i_),Bo(sv),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-pos-selection"]],viewQuery:function(e,t){var i;1&e&&Kc(sR,!0),2&e&&Jc(i=el())&&(t.selectedPosCard=i.first)},hostBindings:function(e,t){1&e&&Jo("keydown.enter",(function(){return t.searchAddress()}),!1,jt)},inputs:{blockTitle:"blockTitle"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["cors",""],[1,"block-title"],[1,"text",3,"click"],[1,"chevron",3,"ngClass","click"],["height","32","width","32",3,"iconName"],["class","pos-selection",4,"ngIf"],[1,"pos-selection"],["hoverText","Changer de magasin",3,"pos","selected","select",4,"ngIf"],[4,"ngIf"],["hoverText","Changer de magasin",3,"pos","selected","select"],[1,"subtitle"],["class","m-button-grey",3,"click",4,"ngIf"],[1,"search"],[1,"input-frame"],["id","address-input","type","text","placeholder","Entrez votre code postal ou votre adresse...",3,"ngModel","ngModelChange","click"],[1,"address-button","m-button-secondary",3,"click"],["primaryColor","var(--m-color-secondary)",3,"iconName"],["class","not-found",4,"ngIf","ngIfElse"],["found",""],["class","loader-container",4,"ngIf"],[1,"m-button-grey",3,"click"],[1,"not-found"],[3,"innerHTML"],["hoverText","Choisir ce magasin",3,"pos","select",4,"ngFor","ngForOf"],["hoverText","Choisir ce magasin",3,"pos","select"],[1,"loader-container"]],template:function(e,t){if(1&e&&(Fo(0,vR,7,6,"ng-container",0),Fo(1,_R,1,0,"ng-template",null,1,rl)),2&e){const e=Ho(2);jo("ngIf",!t.corsIssues)("ngIfElse",e)}},directives:[Zd,Hd,VS,oR,E_,M_,Fy,Nd,$E,ZS],styles:[".block-title{display:flex;justify-content:space-between;padding-bottom:10px;margin-bottom:0}.block-title .text{cursor:pointer}.block-title .chevron{cursor:pointer;transition-duration:.5s}.block-title .chevron svg{width:18px}.block-title .down{transform:rotate(-180deg)}.pos-selection .subtitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.pos-selection .subtitle h4{margin:0}.pos-selection .search{display:flex;margin-bottom:15px}.pos-selection .search .input-frame{flex:auto;border:1px solid var(--m-color-secondary);margin-right:10px;padding:5px;border-radius:var(--m-border-radius-pill)}.pos-selection .search .input-frame input#address-input{width:100%;border:none;outline:none}.pos-selection .search button.address-button{width:35px;padding:7px}.pos-selection .search button.address-button svg.fa-search{width:100%;height:100%}.pos-selection ng-miam-pos-card .pos-card{margin-bottom:10px}.pos-selection .not-found{margin-left:20px}.pos-selection .miam-loader-container{display:flex;flex-direction:column;justify-content:center;align-items:center}"],encapsulation:2,changeDetection:0}),e})();function bR(e,t){1&e&&Qo(0,"div",11)}function wR(e,t){if(1&e&&(Vo(0,"div",12),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.recipesCount)}}function xR(e,t){1&e&&Qo(0,"ng-miam-basket-preview-block",15),2&e&&jo("showNotice",!0)}function CR(e,t){if(1&e&&(Vo(0,"div",13),Qo(1,"ng-miam-pos-selection"),Fo(2,xR,1,1,"ng-miam-basket-preview-block",14),Zo()),2&e){const e=es();Dr(2),jo("ngIf",e.pos)}}function kR(e,t){1&e&&(Vo(0,"span"),fs(1,"Check out"),Zo())}function AR(e,t){1&e&&Qo(0,"ng-miam-loader")}function SR(e,t){if(1&e){const e=Xo();Vo(0,"div",16),Vo(1,"div",17),Vo(2,"div"),Vo(3,"span"),fs(4,"You will be redirected to the website of "),Zo(),Vo(5,"b"),fs(6),Zo(),fs(7,". "),Zo(),Vo(8,"h3",18),Vo(9,"div"),fs(10,"Total"),Zo(),Vo(11,"div",19),fs(12),Vo(13,"span"),fs(14),Mc(15,"async"),Zo(),Zo(),Zo(),Zo(),Vo(16,"button",20),Jo("click",(function(){return gi(e),es().order()})),Fo(17,kR,2,0,"span",21),Fo(18,AR,1,0,"ng-miam-loader",21),Zo(),Zo()}if(2&e){const e=es();Dr(6),vs(e.pos.relationships.supplier.data.attributes.name),Dr(6),_s("",e.basketStats.totalPrice.toFixed(2)," "),Dr(2),_s(" ",Lc(15,7,e.currency),""),Dr(2),ds("enabled",!e.loading),Dr(1),jo("ngIf",!e.loading),Dr(1),jo("ngIf",e.loading)}}const ER=function(e){return{expand:e}};let DR=(()=>{class e{constructor(e,t,i,n,r,a,o){this.cdr=e,this.listsService=t,this.posService=i,this.basketsService=n,this.analyticsService=r,this.context=a,this.supplierService=o,this.expand=!1,this.jiggle=!1,this.valid=!1,this.loading=!1,this.currency=this.supplierService.supplier$.pipe(ig(e=>null==e),D(e=>e.currency)),this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.listsService.list$.pipe(ig(e=>!e),um(e=>{e.attributes["recipes-infos"]&&e.attributes["recipes-infos"].length>0?(this.recipesCount!==e.attributes["recipes-infos"].length&&(this.doJiggle(),0===this.recipesCount&&1===e.attributes["recipes-infos"].length&&this.show()),this.recipesCount=e.attributes["recipes-infos"].length):this.recipesCount=0,this.assessValid()})).subscribe()),this.subscriptions.push(this.posService.pos$.pipe(ig(e=>!e),um(e=>{this.pos=e,this.assessValid()})).subscribe()),this.subscriptions.push(this.basketsService.basketStats$.pipe(ig(e=>!e),um(e=>{this.basketStats=e,this.cdr.detectChanges()})).subscribe())}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}onKeydownHandler(e){this.hide()}clickout(e){const t=document.getElementById("miam-drawer-overlay");e.target===t&&this.hide()}toggleExpand(){this.expand=!this.expand,this.expand?this.show():this.hide()}order(){this.loading||(this.loading=!0,this.cdr.detectChanges(),this.subscriptions.push(this.basketsService.confirmBasket(0).subscribe(e=>{e.redirectUrl?window.location.assign(e.redirectUrl):console.error("Basket not available on supplier Website"),this.loading=!1,this.cdr.detectChanges()})))}show(){this.expand=!0,this.context.globalScrollableElement.style.overflow="hidden",this.cdr.detectChanges()}hide(){this.expand=!1,this.context.globalScrollableElement.style.overflow="initial",this.cdr.detectChanges()}doJiggle(){this.jiggle=!0,this.cdr.detectChanges(),setTimeout(()=>{this.jiggle=!1,this.cdr.detectChanges()},500)}assessValid(){this.valid=this.pos&&this.recipesCount&&this.recipesCount>0,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Ag),Bo(sv),Bo(Dv),Bo(gg),Bo(i_),Bo(rv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-drawer"]],hostBindings:function(e,t){1&e&&Jo("keydown.escape",(function(e){return t.onKeydownHandler(e)}),!1,jt)("click",(function(e){return t.clickout(e)}),!1,jt)},decls:12,vars:12,consts:[["id","miam-drawer-overlay",4,"ngIf"],["id","miam-drawer-stamp",3,"ngClass","click"],["src","data:image/png;base64,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",1,"miam-logo"],["class","recipes-count",4,"ngIf"],["id","miam-drawer",3,"ngClass"],[1,"top"],["src","https://miam.tech/fr/assets/images/miam-logo.svg",1,"miam-logo"],[1,"miam-slogan"],[1,"body-wrapper"],["class","body",4,"ngIf"],["class","bottom",4,"ngIf"],["id","miam-drawer-overlay"],[1,"recipes-count"],[1,"body"],[3,"showNotice",4,"ngIf"],[3,"showNotice"],[1,"bottom"],[1,"total"],[1,"total-subline"],[1,"price"],[1,"m-button-primary","order-button",3,"click"],[4,"ngIf"]],template:function(e,t){1&e&&(Fo(0,bR,1,0,"div",0),Vo(1,"div",1),Jo("click",(function(){return t.toggleExpand()})),Qo(2,"img",2),Fo(3,wR,2,1,"div",3),Zo(),Vo(4,"div",4),Vo(5,"div",5),Qo(6,"img",6),Vo(7,"span",7),fs(8,"Choose your recipes, we'll do the shopping"),Zo(),Zo(),Vo(9,"div",8),Fo(10,CR,3,1,"div",9),Fo(11,SR,19,9,"div",10),Zo(),Zo()),2&e&&(jo("ngIf",t.expand),Dr(1),jo("ngClass",kc(8,ER,t.expand)),Dr(1),ds("jiggle",t.jiggle),Dr(1),jo("ngIf",t.recipesCount&&t.recipesCount>0),Dr(1),jo("ngClass",kc(10,ER,t.expand)),Dr(6),jo("ngIf",t.expand),Dr(1),jo("ngIf",t.valid))},directives:[Zd,Hd,yR,kT,$E],pipes:[au],styles:[":root{--m-price-color:var(--miam-price-color,green)}#miam-drawer-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--m-color-black);opacity:.7;z-index:var(--m-z-index-drawer-overlay)}#miam-drawer-stamp{position:fixed;top:250px;right:-29px;padding:6px 16px;transform:rotate(-90deg);background-color:var(--m-color-primary);box-shadow:-1px -1px 10px -3px #333;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);border:1px solid var(--m-color-primary);transition:background 66ms linear,right .5s;cursor:pointer;z-index:var(--m-z-index-drawer-container)}#miam-drawer-stamp.expand{right:771px}@media (min-width:1022px){#miam-drawer-stamp:hover{background:var(--m-color-primary-dark)}}#miam-drawer-stamp .miam-logo{width:65px}#miam-drawer-stamp .miam-logo.jiggle{-webkit-animation:jiggle .25s ease-in-out infinite;animation:jiggle .25s ease-in-out infinite}#miam-drawer-stamp .recipes-count{position:absolute;right:-12px;bottom:25px;transform:rotate(90deg);background-color:var(--m-color-secondary);height:23px;width:23px;border-radius:var(--m-border-radius-circle);color:#fff;font-weight:700;display:flex;justify-content:center;align-items:center;box-shadow:-1px -1px 10px -3px #333;border:1px solid var(--m-color-secondary-dark)}#miam-drawer{position:fixed;top:0;right:-800px;height:100%;width:800px;background-color:#fff;transition:right .5s;border-left:4px solid var(--m-color-primary);z-index:var(--m-z-index-drawer-container)}#miam-drawer.expand{right:0}#miam-drawer .top{padding:10px 15px;box-shadow:0 1px 10px -5px var(--m-color-grey-text);align-items:center}#miam-drawer .top .miam-logo{width:120px}#miam-drawer .top .miam-slogan{margin-left:70px;font-size:20px;font-style:italic}#miam-drawer .body-wrapper{display:flex;flex-direction:column;justify-content:space-between;height:calc(100% - 70px)}#miam-drawer .body{padding:0 15px;overflow:auto}#miam-drawer .bottom{padding:20px;background-color:#fff;box-shadow:0 -1px 10px -5px var(--m-color-grey-text);z-index:var(--m-z-index-position-absolute-high);display:flex;justify-content:space-between;align-items:flex-end}#miam-drawer .bottom .total{flex-grow:1;text-align:left}#miam-drawer .bottom .total .total-subline{display:flex;flex-direction:row;justify-content:space-between;margin:5px 0 0}#miam-drawer .bottom .total .total-subline .price{font-weight:700;color:var(--price-color)}#miam-drawer .bottom .order-button{margin-left:40px;width:277px;height:44px}#miam-drawer .bottom .order-button ng-miam-loader .miam-loader{width:30px;height:30px}"],encapsulation:2,changeDetection:0}),e})();function IR(e,t){1&e&&Qo(0,"ng-miam-icon",8),2&e&&jo("iconName",es(2).icon.ListScanner)}function OR(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(3);Dr(1),vs(e.mobileText)}}function PR(e,t){1&e&&(Vo(0,"span"),fs(1,"Scan my list"),Zo())}function TR(e,t){if(1&e&&(Vo(0,"div",9),Fo(1,OR,2,1,"span",7),Fo(2,PR,2,0,"span",7),Zo()),2&e){const e=es(2);Dr(1),jo("ngIf",e.mobileText),Dr(1),jo("ngIf",!e.mobileText)}}function MR(e,t){1&e&&Qo(0,"ng-miam-loader")}function LR(e,t){if(1&e){const e=Xo();Vo(0,"div"),Vo(1,"input",3),Jo("change",(function(t){return gi(e),es().sendFile(t)})),Zo(),Vo(2,"label",4),Fo(3,IR,1,1,"ng-miam-icon",5),Fo(4,TR,3,2,"div",6),Fo(5,MR,1,0,"ng-miam-loader",7),Zo(),Zo()}if(2&e){const e=es();Dr(1),jo("disabled",e.loading),Dr(2),jo("ngIf",!e.loading),Dr(1),jo("ngIf",!e.loading),Dr(1),jo("ngIf",e.loading)}}function RR(e,t){1&e&&Qo(0,"ng-miam-icon",8),2&e&&jo("iconName",es(2).icon.Upload)}function zR(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(3);Dr(1),vs(e.desktopText)}}function FR(e,t){1&e&&(Vo(0,"span"),fs(1,"Import my list"),Zo())}function HR(e,t){if(1&e&&(Vo(0,"div",9),Fo(1,zR,2,1,"span",7),Fo(2,FR,2,0,"span",7),Zo()),2&e){const e=es(2);Dr(1),jo("ngIf",e.desktopText),Dr(1),jo("ngIf",!e.desktopText)}}function BR(e,t){1&e&&Qo(0,"ng-miam-loader")}function jR(e,t){if(1&e){const e=Xo();Vo(0,"input",10),Jo("change",(function(t){return gi(e),es().sendFile(t)})),Zo(),Vo(1,"label",11),Fo(2,RR,1,1,"ng-miam-icon",5),Fo(3,HR,3,2,"div",6),Fo(4,BR,1,0,"ng-miam-loader",7),Zo()}if(2&e){const e=es();jo("disabled",e.loading),Dr(2),jo("ngIf",!e.loading),Dr(1),jo("ngIf",!e.loading),Dr(1),jo("ngIf",e.loading)}}const NR=function(e){return{overlay:e}};let VR=(()=>{class e{constructor(e,t,i){this.cdr=e,this.mediaMatcher=t,this.listsService=i,this.disableIngredientsMatching=!1,this.entriesAdded=new Bc,this.icon=Iv,this.loading=!1,this.isMobile=!1,this.isMobile=this.mediaMatcher.matchMedia("(max-width: 1023px)").matches}sendFile(e){const t=e.target.files.item(0);t&&(this.loading=!0,this.cdr.detectChanges(),this.listsService.takeFirstList().subscribe(i=>{const n=i.entries.data;this.listsService.addEntriesFromPicture(t,["groceries-entries"],this.disableIngredientsMatching).subscribe(e=>{const t=e.entries.data.filter(e=>-1===n.findIndex(t=>t.id===e.id));this.loading=!1,this.entriesAdded.emit(t),this.cdr.detectChanges()}),e.target.value=null,this.cdr.detectChanges()}))}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Kv),Bo(Ag))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-scan-files-inputs"]],inputs:{overlay:"overlay",disableIngredientsMatching:"disableIngredientsMatching",desktopText:"desktopText",mobileText:"mobileText"},outputs:{entriesAdded:"entriesAdded"},decls:4,vars:5,consts:[[1,"miam-list-scan__files-inputs",3,"ngClass"],[4,"ngIf","ngIfElse"],["desktop",""],["type","file","name","photo","id","photo","accept","image/*","capture","environment",1,"inputfile",3,"disabled","change"],["for","photo",1,"m-button","m-button-primary","miam-list-scan__files-inputs__label__photo"],["width","16","height","16",3,"iconName",4,"ngIf"],["class","button-label",4,"ngIf"],[4,"ngIf"],["width","16","height","16",3,"iconName"],[1,"button-label"],["type","file","name","file","id","file","accept","image/*,application/pdf",1,"inputfile",3,"disabled","change"],["for","file",1,"m-button","m-button-secondary","miam-list-scan__files-inputs__label__file"]],template:function(e,t){if(1&e&&(Vo(0,"div",0),Fo(1,LR,6,4,"div",1),Fo(2,jR,5,4,"ng-template",null,2,rl),Zo()),2&e){const e=Ho(3);jo("ngClass",kc(3,NR,t.overlay)),Dr(1),jo("ngIf",1==t.isMobile)("ngIfElse",e)}},directives:[Hd,Zd,VS,$E],styles:[".miam-list-scan__files-inputs{position:relative;display:inline-block}.miam-list-scan__files-inputs.overlay{position:fixed;bottom:20px;right:20px}.miam-list-scan__files-inputs .inputfile{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo{min-width:0;max-height:50px;font-style:normal;font-weight:600;font-size:14px;line-height:16px}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file ng-miam-icon,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo ng-miam-icon,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label ng-miam-icon{margin:0}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label .button-label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file .button-label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo .button-label{margin-left:10px}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo .miam-loader{border-top-color:var(--m-color-primary)}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file{background-color:var(--m-color-white);color:var(--m-color-black)}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file ng-miam-icon svg path{fill:var(--m-color-black)}"],encapsulation:2,changeDetection:0}),e})();function ZR(e,t){1&e&&Qo(0,"ng-miam-icon",9),2&e&&jo("iconName",es().icon.ListScanner)}const QR=function(e){return{reduced:e}};function WR(e,t){if(1&e&&(Vo(0,"div",10),fs(1,"Scan my shopping list"),Zo()),2&e){const e=es();jo("ngClass",kc(1,QR,"true"==e.reduced))}}function UR(e,t){1&e&&Qo(0,"ng-miam-loader")}const YR=function(e){return{overlay:e}};let XR=(()=>{class e{constructor(e,t){this.cdr=e,this.listsService=t,this.entriesAdded=new Bc,this.icon=Iv,this.reduced=localStorage.getItem("_miam/listScanner/button-reduced")||"false",this.loading=!1}toggleReduce(e){this.reduced=e,localStorage.setItem("_miam/listScanner/button-reduced",this.reduced),this.cdr.detectChanges()}sendFile(e){const t=e.target.files.item(0);t&&(this.loading=!0,this.cdr.detectChanges(),this.listsService.addEntriesFromPicture(t,["groceries-entries"]).subscribe(e=>{const t=e.entries.data.filter(e=>!e.recipesIds||0===e.recipesIds.length);this.loading=!1,this.entriesAdded.emit(t)}))}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Ag))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-scan-overlay-button"]],inputs:{overlay:"overlay"},outputs:{entriesAdded:"entriesAdded"},decls:9,vars:10,consts:[[1,"miam-list-scan__overlay-button",3,"ngClass"],["type","file","name","file","id","file","accept","image/*","capture","environment",1,"inputfile",3,"disabled","change"],["for","file",1,"m-button","m-button-primary","miam-list-scan__overlay-button__label",3,"click"],["width","24",3,"iconName",4,"ngIf"],["class","button-label",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"miam-list-scan__overlay-button__reduce",3,"ngClass","click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.91957 12L5.95977 8.0402L7.93967 6.0603L11.8995 10.0201L15.8593 6.0603L17.8392 8.0402L13.8794 12L17.8392 15.9598L15.8593 17.9397L11.8995 13.9799L7.93967 17.9397L5.95977 15.9598L9.91957 12Z","fill","#676767"],["width","24",3,"iconName"],[1,"button-label",3,"ngClass"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"input",1),Jo("change",(function(e){return t.sendFile(e)})),Zo(),Vo(2,"label",2),Jo("click",(function(){return t.toggleReduce("false")})),Fo(3,ZR,1,1,"ng-miam-icon",3),Fo(4,WR,2,3,"div",4),Fo(5,UR,1,0,"ng-miam-loader",5),Zo(),Vo(6,"div",6),Jo("click",(function(){return t.toggleReduce("true")})),ji(),Vo(7,"svg",7),Qo(8,"path",8),Zo(),Zo(),Zo()),2&e&&(jo("ngClass",kc(6,YR,t.overlay)),Dr(1),jo("disabled",t.loading),Dr(2),jo("ngIf",!t.loading),Dr(1),jo("ngIf",!t.loading),Dr(1),jo("ngIf",t.loading),Dr(1),jo("ngClass",kc(8,QR,"true"==t.reduced)))},directives:[Hd,Zd,VS,$E],styles:[".miam-list-scan__overlay-button[_ngcontent-%COMP%]{position:relative;display:inline-block}.miam-list-scan__overlay-button.overlay[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%]{min-width:0;max-height:50px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]{margin:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label[_ngcontent-%COMP%]{margin-left:10px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label.reduced[_ngcontent-%COMP%]{display:none}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce[_ngcontent-%COMP%]{position:absolute;top:-9px;right:-8px;width:24px;height:24px;display:flex;justify-content:center;align-items:center;font-size:16px;border-radius:12px;background-color:#fff;font-weight:700;box-shadow:0 2px 5px rgba(0,0,0,.25);cursor:pointer}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce.reduced[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),e})();function GR(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.title)}}function qR(e,t){1&e&&(Vo(0,"span"),fs(1,"Scan results"),Zo())}function JR(e,t){if(1&e){const e=Xo();Vo(0,"div",10),Vo(1,"div",11),Jo("click",(function(){gi(e);const i=t.$implicit;return es().deleteEntry(i)})),Qo(2,"ng-miam-icon",12),Zo(),Vo(3,"div",13),Vo(4,"div",14),Vo(5,"span"),fs(6,"Name"),Zo(),Zo(),Vo(7,"input",15),Jo("ngModelChange",(function(i){return gi(e),t.$implicit.name=i})),Zo(),Zo(),Vo(8,"div",16),Vo(9,"div",14),fs(10,"Quantity"),Zo(),Vo(11,"input",17),Jo("ngModelChange",(function(i){return gi(e),t.$implicit.volume=i})),Zo(),Zo(),Vo(12,"div",18),Vo(13,"div",14),fs(14,"Unit"),Zo(),Vo(15,"input",15),Jo("ngModelChange",(function(i){return gi(e),t.$implicit.unit=i})),Zo(),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es();Dr(2),jo("iconName",i.icon.Trash),Dr(5),jo("ngModel",e.name),Dr(4),jo("ngModel",e.volume),Dr(4),jo("ngModel",e.unit)}}let KR=(()=>{class e{constructor(e,t){this.cdr=e,this.basketsService=t,this.entries=[],this.closed=new Bc,this.cancelled=new Bc,this.confirmed=new Bc,this.icon=Iv,this.subscriptions=[]}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}deleteEntry(e){this.entries.splice(this.entries.indexOf(e),1),this.cdr.detectChanges(),e.delete()}cancel(){this.cancelled.emit()}confirm(){if(0===this.entries.length)return this.closed.emit();this.subscriptions.push(Sg(this.entries.map(e=>(e.status="active",e.save()))).pipe(ug(()=>this.basketsService.reloadBasket())).subscribe(()=>this.confirmed.emit()))}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Dv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-scan-ingredients-list"]],inputs:{entries:"entries",title:"title"},outputs:{closed:"closed",cancelled:"cancelled",confirmed:"confirmed"},decls:15,vars:5,consts:[[1,"miam-list-scan__ingredients-list"],[1,"miam-list-scan__ingredients-list__header"],["width","24","height","24",3,"iconName","click"],[4,"ngIf"],[1,"miam-list-scan__ingredients-list__content"],["class","miam-list-scan__ingredients-list__entry",4,"ngFor","ngForOf"],[1,"miam-list-scan__ingredients-list__controls"],[1,"m-button-grey",3,"click"],[1,"m-button-primary",3,"click"],["width","24","height","24",3,"iconName"],[1,"miam-list-scan__ingredients-list__entry"],[1,"miam-list-scan__ingredients-list__entry__delete",3,"click"],["primaryColor","var(--m-color-grey-text)",3,"iconName"],[1,"miam-list-scan__ingredients-list__entry__name"],[1,"entry-label"],["type","text",3,"ngModel","ngModelChange"],[1,"miam-list-scan__ingredients-list__entry__quantity"],["type","number",3,"ngModel","ngModelChange"],[1,"miam-list-scan__ingredients-list__entry__unit"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"ng-miam-icon",2),Jo("click",(function(){return t.cancel()})),Zo(),Vo(3,"h3"),Fo(4,GR,2,1,"span",3),Fo(5,qR,2,0,"span",3),Zo(),Zo(),Vo(6,"div",4),Fo(7,JR,16,4,"div",5),Zo(),Vo(8,"div",6),Vo(9,"button",7),Jo("click",(function(){return t.cancel()})),fs(10,"Cancel"),Zo(),Vo(11,"button",8),Jo("click",(function(){return t.confirm()})),Qo(12,"ng-miam-icon",9),Vo(13,"span"),fs(14,"Put in cart"),Zo(),Zo(),Zo(),Zo()),2&e&&(Dr(2),jo("iconName",t.icon.ArrowDown),Dr(2),jo("ngIf",t.title),Dr(1),jo("ngIf",!t.title),Dr(2),jo("ngForOf",t.entries),Dr(5),jo("iconName",t.icon.CartPlus))},directives:[VS,Zd,Nd,E_,M_,Fy,Y_],styles:[".miam-list-scan__ingredients-list{position:relative;display:flex;flex-direction:column;width:100%;height:100%;border-top-left-radius:35px;border-top-right-radius:35px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header{position:-webkit-sticky;position:sticky;top:0;left:0;right:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:24px 16px;border-bottom:1px solid #d6d6d6;background-color:var(--m-color-white)}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header h3{margin:0}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header ng-miam-icon{transform:rotate(90deg);margin-right:16px;cursor:pointer}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content{width:100%;flex:1;overflow-y:auto}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry{margin-bottom:8px;display:flex;width:100%;padding:16px;border-bottom:1px solid #d6d6d6}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry:last-child{border-bottom:unset}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>*{display:flex;flex-direction:column;flex:1}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:first-child{display:flex;justify-content:center;padding-top:12px;cursor:pointer}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:nth-child(2){flex:6;margin-right:8px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:last-child{flex:2;margin-left:8px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>* .entry-label{font-size:11px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>* input{width:100%;border:1px solid #d3d3d3;border-radius:4px;padding:8px;color:var(--m-color-grey-text-dark)}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry.overlay>:first-child{align-items:flex-start}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls{position:-webkit-sticky;position:sticky;bottom:0;left:0;right:0;display:flex;width:100%}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls>button{flex:1;height:50px;padding:13px 8px;border:none;border-radius:0}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls>button:first-child{border-top:1px solid #d3d3d3}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls ng-miam-icon{margin-left:0;margin-right:6px}"],encapsulation:2,changeDetection:0}),e})();function $R(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.replaceItemTitle)}}function ez(e,t){1&e&&(Vo(0,"span"),fs(1,"Replace product"),Zo())}function tz(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es();Dr(1),vs(e.title)}}function iz(e,t){1&e&&(Vo(0,"span"),fs(1,"Products added"),Zo())}function nz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-basket-preview-line",13),Jo("removed",(function(t){return gi(e),es(2).deleteEntry(t)}))("replaceItem",(function(){gi(e);const t=es().$implicit;return es().toggleReplacing(t)})),Zo()}if(2&e){const e=es().$implicit,t=es();jo("line",e)("originTrace",t.eventTrace())}}function rz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-replace-item",14),Jo("selected",(function(){gi(e);const t=es().$implicit;return es().toggleReplacing(t)})),Zo()}if(2&e){const e=es().$implicit,t=es();jo("line",e)("originTrace",t.eventTrace())}}function az(e,t){if(1&e&&(Vo(0,"div"),Fo(1,nz,1,2,"ng-miam-basket-preview-line",11),Fo(2,rz,1,2,"ng-miam-replace-item",12),Zo()),2&e){const e=t.$implicit;Dr(1),jo("ngIf",!e.replacing),Dr(1),jo("ngIf",e.replacing)}}function oz(e,t){1&e&&Qo(0,"ng-miam-basket-preview-disabled",15),2&e&&jo("entries",es().unavailable)}function sz(e,t){1&e&&Qo(0,"ng-miam-loader")}function cz(e,t){1&e&&(Vo(0,"span"),fs(1,"Cancel"),Zo())}const lz=function(e){return{replacing:e}};let dz=(()=>{class e extends rO{constructor(e,t,i){super(i),this.cdr=e,this.basketsService=t,this.analyticsService=i,this.entries=[],this.closed=new Bc,this.cancelled=new Bc,this.removedEntries=new Bc,this.icon=Iv,this.lines=[],this.unavailable=[],this.replaceItemCurrentLine=void 0,this.removeEntriesLoading=!1,this.subscriptions=[]}ngOnInit(){const e=this.entries.map(e=>e.id.toString());this.subscriptions.push(this.basketsService.basketPreview$.pipe(ig(e=>!e),ug(()=>this.basketsService.basketEntries())).subscribe(t=>{this.lines=t.filter(t=>e.includes(t.groceriesEntry.id)&&"active"===t.groceriesEntryStatus&&t.selectedItem).map(e=>Vg.fromBasketEntry(e)),this.unavailable=t.filter(t=>e.includes(t.groceriesEntry.id)&&("active"!==t.groceriesEntryStatus||!t.selectedItem)),this.cdr.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}currentPath(){return"list-scan"}close(){this.closed.emit()}cancel(){this.cancelled.emit()}removeEntries(){if(this.removeEntriesLoading=!0,this.cdr.detectChanges(),0===this.entries.length)return this.removeEntriesLoading=!1,this.removedEntries.emit();this.subscriptions.push(Sg(this.entries.map(e=>e.delete())).pipe(ug(()=>this.basketsService.reloadBasket())).subscribe(()=>{this.removeEntriesLoading=!1,this.removedEntries.emit()}))}deleteEntry(e){this.lines.splice(this.lines.indexOf(e),1),this.cdr.detectChanges();const t=e.record.groceriesEntry;this.entries.splice(this.entries.indexOf(t),1),this.subscriptions.push(t.delete().pipe(ug(()=>this.basketsService.reloadBasket())).subscribe())}toggleReplacing(e){e.record.updateTotalPrice(),e.replacing=!e.replacing,this.replaceItemCurrentLine=e.replacing?e:void 0,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Dv),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-scan-basket-preview"]],inputs:{entries:"entries",title:"title",replaceItemTitle:"replaceItemTitle"},outputs:{closed:"closed",cancelled:"cancelled",removedEntries:"removedEntries"},features:[yo],decls:19,vars:13,consts:[[1,"miam-list-scan__basket-preview"],[1,"miam-list-scan__basket-preview__header"],["width","24","height","24",3,"iconName","click"],[4,"ngIf"],[1,"miam-list-scan__basket-preview__content",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"entries",4,"ngIf"],[1,"miam-list-scan__basket-preview__controls"],[1,"m-button-secondary",3,"click"],[1,"m-button-primary",3,"click"],["width","24","height","24",3,"iconName"],[3,"line","originTrace","removed","replaceItem",4,"ngIf"],[3,"line","originTrace","selected",4,"ngIf"],[3,"line","originTrace","removed","replaceItem"],[3,"line","originTrace","selected"],[3,"entries"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"ng-miam-icon",2),Jo("click",(function(){return t.replaceItemCurrentLine?t.toggleReplacing(t.replaceItemCurrentLine):t.cancel()})),Zo(),Vo(3,"h3"),Fo(4,$R,2,1,"span",3),Fo(5,ez,2,0,"span",3),Fo(6,tz,2,1,"span",3),Fo(7,iz,2,0,"span",3),Zo(),Zo(),Vo(8,"div",4),Fo(9,az,3,2,"div",5),Fo(10,oz,1,1,"ng-miam-basket-preview-disabled",6),Zo(),Vo(11,"div",7),Vo(12,"button",8),Jo("click",(function(){return t.removeEntries()})),Fo(13,sz,1,0,"ng-miam-loader",3),Fo(14,cz,2,0,"span",3),Zo(),Vo(15,"button",9),Jo("click",(function(){return t.close()})),Qo(16,"ng-miam-icon",10),Vo(17,"span"),fs(18,"Add to cart"),Zo(),Zo(),Zo(),Zo()),2&e&&(Dr(2),jo("iconName",t.icon.ArrowDown),Dr(2),jo("ngIf",t.replaceItemCurrentLine&&t.replaceItemTitle),Dr(1),jo("ngIf",t.replaceItemCurrentLine&&!t.replaceItemTitle),Dr(1),jo("ngIf",!t.replaceItemCurrentLine&&t.title),Dr(1),jo("ngIf",!t.replaceItemCurrentLine&&!t.title),Dr(1),jo("ngClass",kc(11,lz,t.replaceItemCurrentLine)),Dr(1),jo("ngForOf",t.lines),Dr(1),jo("ngIf",t.unavailable.length>0),Dr(3),jo("ngIf",t.removeEntriesLoading),Dr(1),jo("ngIf",!t.removeEntriesLoading),Dr(2),jo("iconName",t.icon.Cart))},directives:[VS,Zd,Hd,Nd,cT,dT,LP,$E],styles:[".miam-list-scan__basket-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;border-top-left-radius:35px;border-top-right-radius:35px}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header{position:-webkit-sticky;position:sticky;top:0;left:0;right:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:24px 16px;border-bottom:1px solid #d6d6d6;background-color:var(--m-color-white)}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header h3{margin:0}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header ng-miam-icon{transform:rotate(90deg);margin-right:16px;cursor:pointer}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__content{width:100%;flex:1;overflow-y:auto}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls{position:-webkit-sticky;position:sticky;bottom:0;left:0;right:0;display:flex;width:100%}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls>button{flex:1;height:50px;padding:13px 8px;border:none;border-radius:0}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls>button:first-child{border-top:1px solid #d3d3d3}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls ng-miam-icon{margin-left:0;margin-right:6px}"],encapsulation:2,changeDetection:0}),e})();function uz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-scan-files-inputs",10),Jo("entriesAdded",(function(t){return gi(e),es().showIngredients(t)})),Zo()}if(2&e){const e=es();jo("disableIngredientsMatching",e.disableIngredientsMatching)("desktopText",e.ctaDesktopText)("mobileText",e.ctaMobileText)}}function mz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-scan-overlay-button",11),Jo("entriesAdded",(function(t){return gi(e),es().showIngredients(t)})),Zo()}2&e&&jo("overlay",es().overlay)}function pz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-scan-ingredients-list",12),Jo("closed",(function(){return gi(e),es().hideIngredients()}))("cancelled",(function(){return gi(e),es().cancel()}))("confirmed",(function(){return gi(e),es().showBasketPreview()})),Zo()}if(2&e){const e=es();jo("entries",e.entries)("title",e.scanResultsTitle)}}function hz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-scan-basket-preview",13),Jo("closed",(function(){return gi(e),es().hideBasketPreview(!0)}))("cancelled",(function(){return gi(e),es().returnToIngredients()}))("removedEntries",(function(){return gi(e),es().hideBasketPreview(!1)})),Zo()}if(2&e){const e=es();jo("entries",e.entries)("title",e.productMatchingTitle)("replaceItemTitle",e.replaceItemTitle)}}function gz(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Souhaitez-vous vraiment abandonner votre liste ?#"),Zo())}function fz(e,t){1&e&&(Vo(0,"span"),fs(1,"Cancel"),Zo())}function vz(e,t){1&e&&(Vo(0,"span"),fs(1,"Cancel"),Zo())}let _z=(()=>{class e{constructor(e,t){this.cdr=e,this.basketsService=t,this.floatingButton=!1,this.overlay=!0,this.disableIngredientsMatching=!1,this.confirmed=new Bc,this.entries=[],this.ingredientsShown=!1,this.basketPreviewShown=!1,this.cancelConfirmationShown=!1,this.subscriptions=[]}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}showIngredients(e){this.entries=e,this.ingredientsShown=!0,this.cdr.detectChanges()}hideIngredients(){this.ingredientsShown=!1,this.cdr.detectChanges()}returnToIngredients(){this.basketPreviewShown=!1,this.ingredientsShown=!0,this.cdr.detectChanges()}showBasketPreview(){this.basketPreviewShown=!0,this.hideIngredients()}hideBasketPreview(e=!0){this.basketPreviewShown=!1,this.cdr.detectChanges(),e&&this.confirmed.emit()}cancel(){this.elementToStopScrolling=document.getElementsByClassName("miam-list-scan__content")[0],this.cancelConfirmationShown=!0,this.cdr.detectChanges()}closeCancelConfirmationModal(){this.cancelConfirmationShown=!1,this.cdr.detectChanges()}cancelAndRemove(){if(0===this.entries.length)return this.ingredientsShown=!1,this.basketPreviewShown=!1,void this.cdr.detectChanges();this.subscriptions.push(Sg(this.entries.map(e=>e.delete())).pipe(ug(()=>this.basketsService.reloadBasket())).subscribe(()=>{this.ingredientsShown=!1,this.basketPreviewShown=!1,this.cdr.detectChanges()}))}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Dv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-list-scan"]],inputs:{floatingButton:"floatingButton",overlay:"overlay",disableIngredientsMatching:"disableIngredientsMatching",productMatchingTitle:"productMatchingTitle",replaceItemTitle:"replaceItemTitle",ctaDesktopText:"ctaDesktopText",ctaMobileText:"ctaMobileText",scanResultsTitle:"scanResultsTitle"},outputs:{confirmed:"confirmed"},decls:13,vars:12,consts:[[1,"miam-list-scan"],[3,"disableIngredientsMatching","desktopText","mobileText","entriesAdded",4,"ngIf"],[3,"overlay","entriesAdded",4,"ngIf"],[1,"miam-list-scan__result",3,"isAngularComponent","noHeaderMode","expanded","expandedChange","close"],["class","miam-list-scan__content",3,"entries","title","closed","cancelled","confirmed",4,"ngIf"],["class","miam-list-scan__content",3,"entries","title","replaceItemTitle","closed","cancelled","removedEntries",4,"ngIf"],[1,"miam-list-scan__confirmation",3,"isAngularComponent","expanded","noHeaderMode","containerElement","expandedChange","close","cancel","confirm"],["title",""],["cancelButtonText",""],["confirmButtonText",""],[3,"disableIngredientsMatching","desktopText","mobileText","entriesAdded"],[3,"overlay","entriesAdded"],[1,"miam-list-scan__content",3,"entries","title","closed","cancelled","confirmed"],[1,"miam-list-scan__content",3,"entries","title","replaceItemTitle","closed","cancelled","removedEntries"]],template:function(e,t){1&e&&(Vo(0,"div",0),Fo(1,uz,1,3,"ng-miam-list-scan-files-inputs",1),Fo(2,mz,1,1,"ng-miam-list-scan-overlay-button",2),Vo(3,"ng-miam-modal",3),Jo("expandedChange",(function(e){return t.ingredientsShown||(t.basketPreviewShown=e)}))("close",(function(){return t.cancel()})),Fo(4,pz,1,2,"ng-miam-list-scan-ingredients-list",4),Fo(5,hz,1,3,"ng-miam-list-scan-basket-preview",5),Zo(),Vo(6,"ng-miam-modal",6),Jo("expandedChange",(function(e){return t.cancelConfirmationShown=e}))("close",(function(){return t.closeCancelConfirmationModal()}))("cancel",(function(){return t.closeCancelConfirmationModal()}))("confirm",(function(){return t.cancelAndRemove()})),Fo(7,gz,2,0,"ng-template",null,7,rl),Fo(9,fz,2,0,"ng-template",null,8,rl),Fo(11,vz,2,0,"ng-template",null,9,rl),Zo(),Zo()),2&e&&(Dr(1),jo("ngIf",!t.floatingButton),Dr(1),jo("ngIf",t.floatingButton),Dr(1),jo("isAngularComponent",!0)("noHeaderMode",!0)("expanded",t.ingredientsShown||t.basketPreviewShown)("noHeaderMode",!0),Dr(1),jo("ngIf",t.ingredientsShown),Dr(1),jo("ngIf",t.basketPreviewShown),Dr(1),jo("isAngularComponent",!0)("expanded",t.cancelConfirmationShown)("noHeaderMode",!1)("containerElement",t.elementToStopScrolling))},directives:[Zd,vD,VR,XR,KR,dz],styles:[".miam-list-scan .miam-list-scan__content{height:100%}.miam-list-scan__result .miam-modal{max-width:600px}.miam-list-scan__result .miam-modal .miam-modal__container .miam-modal__actions{display:none}.miam-list-scan__confirmation .miam-shadow-overlay{z-index:var(--m-z-index-modal)}.miam-list-scan__confirmation .miam-modal{height:auto;width:auto;top:50%;right:50%;transform:translateX(50%) translateY(-50%);-webkit-animation-name:unset;animation-name:unset}.miam-list-scan__confirmation .miam-modal .miam-modal__title{color:var(--m-color-black)}@media (max-width:1023px){.miam-list-scan__confirmation .miam-modal{height:132px;width:100%;transform:translateY(-50%);-webkit-animation-name:unset;animation-name:unset}}"],encapsulation:2,changeDetection:0}),e})(),yz=(()=>{class e{constructor(e){if(!customElements.get("webc-miam-list-scan")){const t=b_(_z,{injector:e});customElements.define("webc-miam-list-scan",t)}}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(fo))},imports:[[Cu,mb,bP,AT]]}),e})(),bz=(()=>{class e{constructor(e,t,i){this.cdr=e,this.recipesService=t,this.listsService=i,this.text="Order with Miam",this.openOnSave=!1,this.saved=new Bc,this.error=new Bc,this.loading=!1,this.loadingAnimT=550}createRecipe(){let e;this.setLoading(!0),e=this.recipe?this.recipesService.getOrCreate(this.recipe,this.openOnSave):this.recipesService.createFromUrl(this.source,document.location.href).pipe(ug(e=>this.listsService.appendRecipeToList(e.id,e.modifiedGuests,{originPath:"",props:{recipe_id:e.id}}))),e.pipe(hm(e=>(this.error.emit(e),e)),um(e=>{this.saved.emit(e),this.setLoading(!1)})).subscribe()}setLoading(e){clearTimeout(this.loadingT),e?(this.loading=!0,this.cdr.detectChanges()):this.loadingT=setTimeout(()=>{this.loading=e,this.cdr.detectChanges()},this.loadingAnimT)}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(Ag))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-order-button"]],inputs:{recipe:"recipe",source:"source",text:"text",openOnSave:"openOnSave"},outputs:{saved:"saved",error:"error"},decls:4,vars:3,consts:[[1,"m-button-primary","order-button",3,"click"],[1,"text"],["src","data:image/png;base64,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",1,"miam-logo"]],template:function(e,t){1&e&&(Vo(0,"div",0),Jo("click",(function(){return t.createRecipe()})),Vo(1,"div",1),fs(2),Zo(),Qo(3,"img",2),Zo()),2&e&&(ds("loading",t.loading),Dr(2),vs(t.text))},styles:['@import url("https://fonts.googleapis.com/css?family=Lato&display=swap");.order-button[_ngcontent-%COMP%]{transition:background 66ms linear;position:relative;text-transform:uppercase;width:375px!important}.order-button[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{vertical-align:middle}.order-button[_ngcontent-%COMP%] .miam-logo[_ngcontent-%COMP%]{width:50px;height:auto;position:relative;margin-top:-2px;margin-left:10px}.order-button[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:inline-block}.order-button[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{position:absolute;left:0;top:0;right:0;bottom:0;z-index:var(--m-z-index-position-absolute-high);background:var(--m-color-primary);text-transform:uppercase;line-height:40px}.order-button.loading[_ngcontent-%COMP%]{pointer-events:none!important;background:var(--m-color-primary-dark);color:var(--m-color-grey)}.order-button.loading[_ngcontent-%COMP%] .miam-logo[_ngcontent-%COMP%]{opacity:.8}.order-button.loading[_ngcontent-%COMP%]:before{content:"";display:block;background-color:hsla(0,0%,100%,.4);position:absolute;top:0;bottom:0;width:100%;height:100%;transform:translateX(0);-webkit-animation:loading-placeholder .6s ease-in-out infinite;animation:loading-placeholder .6s ease-in-out infinite}@-webkit-keyframes loading-placeholder{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes loading-placeholder{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}'],changeDetection:0}),e})();class wz extends zh{constructor(){super(...arguments),this.attributes={"event-date":""},this.relationships={calendar:new Lh,recipe:new Lh},this.allDay=!0,this.draggable=!0}get recipe(){return this.relationships.recipe&&this.relationships.recipe.data}get start(){return new Date(this.attributes["event-date"])}set start(e){this.attributes["event-date"]=e.toString()}get title(){return this.recipe.title}}let xz=(()=>{class e extends eg{constructor(){super(),this.resource=wz,this.type="calendar-events",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Cz=function(e){return{event:e}};function kz(e,t){if(1&e&&(Vo(0,"div",3),Qo(1,"img",4),fs(2),Zo()),2&e){const e=t.$implicit;jo("dropData",kc(3,Cz,e)),Dr(1),jo("src",null==e.recipe?null:e.recipe.attributes["media-url"],cr),Dr(1),_s(" ",e.title," ")}}let Az=(()=>{class e{constructor(e,t,i){this.cdr=e,this.recipesService=t,this.calendarEventsService=i,this.events=[]}ngOnInit(){this.recipesService.all().pipe(ig(e=>e.is_loading)).subscribe(e=>{e.data.forEach(e=>{const t=this.calendarEventsService.new();t.addRelationship(e,"recipe"),this.events.push(t)}),this.cdr.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(xz))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-planner-side-menu"]],decls:18,vars:1,consts:[[1,"planner-side-menu"],[1,"events-list"],["class","event","mwlDraggable","",3,"dropData",4,"ngFor","ngForOf"],["mwlDraggable","",1,"event",3,"dropData"],[3,"src"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"ng-miam-tabs"),Vo(2,"ng-miam-tab-item"),Vo(3,"ng-miam-tab-label"),fs(4,"Des recettes"),Zo(),Vo(5,"ng-miam-tab-body"),Vo(6,"div",1),Fo(7,kz,3,5,"div",2),Zo(),Zo(),Zo(),Vo(8,"ng-miam-tab-item"),Vo(9,"ng-miam-tab-label"),fs(10,"Pas des recettes"),Zo(),Vo(11,"ng-miam-tab-body"),fs(12," Oups... Pas de recettes par ici \xaf\\_(\u30c4)_/\xaf "),Zo(),Zo(),Vo(13,"ng-miam-tab-item"),Vo(14,"ng-miam-tab-label"),fs(15,"Rien"),Zo(),Vo(16,"ng-miam-tab-body"),fs(17," Y a rien ici "),Zo(),Zo(),Zo(),Zo()),2&e&&(Dr(7),jo("ngForOf",t.events))},directives:[bO,pO,cO,uO,Nd,Pw],styles:[".planner-side-menu{height:100%;width:100%;background-color:var(--m-color-white);border-right:3px solid var(--m-color-primary-dark)}.events-list .event img{max-width:80px;-o-object-fit:contain;object-fit:contain}"],encapsulation:2,changeDetection:0}),e})(),Sz=(()=>{class e{constructor(e,t,i){this.calendarEventsService=e,this.recipesService=t,this.cdr=i,this.viewDate=new Date,this.events=[],this.refresh=new A,this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.recipesService.all().pipe(ig(e=>e.is_loading)).subscribe(e=>{e.data.forEach(e=>{const t=this.calendarEventsService.new();t.addRelationship(e,"recipe"),t.start=new Date,this.events.push(t)}),this.refresh.next(),this.cdr.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}eventDropped(e,t){if(e.attributes["event-date"])this.moveEvent(e,t);else{const i=this.calendarEventsService.new();i.addRelationship(e.recipe,"recipe"),this.events.push(i),this.moveEvent(i,t)}}moveEvent(e,t){e.start=t,this.events=[...this.events],this.refresh.next(),this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo(xz),Bo(pv),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-planner-calendar"]],decls:2,vars:3,consts:[[1,"planner-calendar"],[3,"viewDate","events","refresh","eventTimesChanged"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"mwl-calendar-week-view",1),Jo("eventTimesChanged",(function(e){return t.eventDropped(e.event,e.newStart)})),Zo(),Zo()),2&e&&(Dr(1),jo("viewDate",t.viewDate)("events",t.events)("refresh",t.refresh))},directives:[_k],styles:[".planner-calendar{height:100%;width:100%;background-color:var(--m-color-grey)}.cal-week-view .cal-time-events,.cal-week-view .cal-time-label-column{display:none!important}.cal-week-view .cal-day-headers{padding-left:0!important}.cal-week-view .cal-events-row{margin-left:0!important}"],encapsulation:2,changeDetection:0}),e})(),Ez=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-planner"]],decls:5,vars:0,consts:[[1,"planner"],[1,"side-menu"],[1,"calendar"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Qo(2,"ng-miam-planner-side-menu"),Zo(),Vo(3,"div",2),Qo(4,"ng-miam-planner-calendar"),Zo(),Zo())},directives:[Az,Sz],styles:[".planner{height:190vh;width:100%;display:inline-flex;flex-direction:row}.side-menu{height:100%;width:25%}.calendar{height:100%;width:75%}"],encapsulation:2,changeDetection:0}),e})();const Dz=["miamCatalogTopAnchor"];function Iz(e,t){if(1&e){const e=Xo();Vo(0,"div",11),Jo("click",(function(){return gi(e),es(2).toggleMyMealDrawer()})),Qo(1,"ng-miam-icon",12),Vo(2,"span",13),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),fs(6," meal"),Zo(),Zo(),Qo(7,"ng-miam-icon",14),Zo()}if(2&e){const e=es(2);Dr(1),jo("iconName",e.icon.Cart),Dr(3),vs(e.recipeCount),Dr(3),jo("iconName",e.icon.ChevronDown)}}function Oz(e,t){1&e&&(Vo(0,"span"),fs(1,"Your search: "),Zo())}function Pz(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(3);Dr(1),vs(e.filters.search)}}function Tz(e,t){1&e&&(Vo(0,"span"),fs(1,"My meal ideas"),Zo())}function Mz(e,t){1&e&&(Vo(0,"span"),fs(1,"My personal notebook"),Zo())}function Lz(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(3);Dr(1),vs(e.filters.additionalFilters.title)}}function Rz(e,t){1&e&&(Vo(0,"span"),fs(1,"Your selection"),Zo())}function zz(e,t){if(1&e){const e=Xo();Vo(0,"div",21),Jo("click",(function(){return gi(e),es(3).manageRecipeAction({action:"CREATE",recipe:null})})),Qo(1,"ng-miam-icon",22),Vo(2,"span"),fs(3,"Add a meal idea"),Zo(),Zo()}if(2&e){const e=es(3);Dr(1),jo("iconName",e.icon.Plus)}}function Fz(e,t){if(1&e){const e=Xo();Vo(0,"div",15),Vo(1,"div",16),Vo(2,"ng-miam-icon",17),Jo("click",(function(){return gi(e),es(2).returnToHomePage()})),Zo(),Fo(3,Oz,2,0,"span",18),Fo(4,Pz,2,1,"span",18),Fo(5,Tz,2,0,"span",18),Fo(6,Mz,2,0,"span",18),Fo(7,Lz,2,1,"span",18),Fo(8,Rz,2,0,"span",18),Zo(),Fo(9,zz,4,1,"div",19),Mc(10,"async"),Vo(11,"ng-miam-catalog-list",20),Jo("filterRemoved",(function(t){return gi(e),es(2).removeFilter(t)}))("recipeActionTriggered",(function(t){return gi(e),es(2).manageRecipeAction(t)})),Zo(),Zo()}if(2&e){const e=es(2);Dr(2),jo("iconName",e.icon.ArrowDown),Dr(1),jo("ngIf",e.isSearchPage()),Dr(1),jo("ngIf",e.isSearchPage()),Dr(1),jo("ngIf",e.isFavoritesPage()),Dr(1),jo("ngIf",e.isPersonalPage()),Dr(1),jo("ngIf",e.isCategoryPage()),Dr(1),jo("ngIf",e.isDefaultPage()),Dr(1),jo("ngIf",Lc(10,12,e.canDisplayCreationButton())),Dr(2),jo("filters",e.filters)("originTrace",e.eventTrace())("displayPricing",e.displayPricing)("recipeAddedToastText",e.recipeAddedToastText)}}function Hz(e,t){1&e&&(Vo(0,"div",28),Qo(1,"ng-miam-explain-banner"),Zo())}function Bz(e,t){if(1&e){const e=Xo();Wo(0),Vo(1,"ng-miam-catalog-category",26),Jo("displayList",(function(t){return gi(e),es(4).categoryTitleClicked(t)})),Zo(),Fo(2,Hz,2,0,"div",27),Uo()}if(2&e){const e=t.$implicit,i=t.index,n=es(4);Dr(1),jo("title",e.title)("subtitle",e.subtitle)("filters",e.filters)("displayPricing",n.displayPricing)("originTrace",n.eventTrace())("recipeAddedToastText",n.recipeAddedToastText),Dr(1),jo("ngIf",0===i)}}function jz(e,t){if(1&e&&(Vo(0,"div",24),Fo(1,Bz,3,7,"ng-container",25),Zo()),2&e){const e=es(3);Dr(1),jo("ngForOf",e.categories)}}function Nz(e,t){1&e&&Fo(0,jz,2,1,"div",23),2&e&&jo("ngIf",es(2).categories.length>0)}function Vz(e,t){if(1&e){const e=Xo();Vo(0,"div",4),Vo(1,"div",5),Vo(2,"ng-miam-catalog-header",6),Jo("returnButtonPressed",(function(){return gi(e),es().returnToHomePage()}))("filterButtonPressed",(function(){return gi(e),es().onFilterCollapsed()}))("searchStringChanged",(function(t){return gi(e),es().updateSearch(t)}))("personalButtonPressed",(function(){return gi(e),es().setPersonalFilter()}))("favoritesButtonPressed",(function(){return gi(e),es().setFavoritesFilter()})),Mc(3,"async"),Zo(),Fo(4,Iz,8,3,"div",7),Fo(5,Fz,12,14,"div",8),Zo(),Vo(6,"ng-miam-recipe-filters",9),Jo("filterChanged",(function(t){return gi(e),es().updateFilters(t)}))("filterCollapsed",(function(){return gi(e),es().onFilterCollapsed()}))("preferencesChanged",(function(){return gi(e),es().reloadPackages()})),Zo(),Fo(7,Nz,1,1,"ng-template",null,10,rl),Zo()}if(2&e){const e=Ho(8),t=es();Dr(2),jo("home",t.displayHomePage)("searchTerm",null==t.filters?null:t.filters.search)("additionalFiltersTitle",null==t.filters||null==t.filters.additionalFilters?null:t.filters.additionalFilters.title)("homeLabel",t.homeLabel)("pictureUrl",t.displayHomePage?t.headerPictureUrl:null)("titlePictureUrl",t.displayHomePage?t.homeTitlePictureUrl:null)("favoritesButtonHidden",t.isFavoritesPage())("personalButtonHidden",Lc(3,17,t.contextService.disablePersonalRecipe$))("filterBadgeCount",t.filters.selectableFiltersCount()),Dr(2),jo("ngIf",t.recipeCount>0),Dr(1),jo("ngIf",!t.displayHomePage())("ngIfElse",e),Dr(1),jo("filters",t.filters)("isFilterCollapsed",t.isFilterCollapsed)("filterToRemove",t.filterToRemove)("position",t.filtersPosition)("originTrace",t.eventTrace())}}function Zz(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-recipe-stepper",29),Jo("recipeChange",(function(){return gi(e),es().leaveCreatePage()}))("canceled",(function(){return gi(e),es().leaveCreatePage()})),Zo()}if(2&e){const e=es();jo("recipe",e.recipeToUpdate)("originTrace",e.eventTrace())}}let Qz=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o,s,c,l,d,u){super(c),this.cdr=e,this.recipeTypesService=t,this.sponsorService=i,this.supplierService=n,this.packageService=r,this.recipesService=a,this.mediaMatcher=o,this.usersService=s,this.analyticsService=c,this.groceriesListService=l,this.basketsService=d,this.contextService=u,this.headerPictureUrl="https://storage.googleapis.com/assets.miam.tech/generic/images/default-catalog-picture.png",this.homeTitlePictureUrl="https://storage.googleapis.com/assets.miam.tech/generic/images/default-catalog-title.png",this.initialRoute="",this.filtersPosition="left",this.displayPricing=!1,this.isFilterCollapsed=!0,this.icon=Iv,this.categories=[],this.creatingRecipe=!1,this.isMobile=!1,this.showUserFeedback=!1,this.recipeCount=0,this.totalPrice=0,this.isMyMealClose=!0,this.subscriptions=[],this.isMobile=o.matchMedia("(max-width: 1022px)").matches}ngOnInit(){this.pageview(),this.initFilters(),this.subscriptions=[this.supplierService.supplier$.asObservable().pipe(ig(e=>void 0===e||null==e),cg(1),ug(e=>(this.supplierId=e.id,this.loadPackages()))).subscribe(),this.basketsService.basketStats$.pipe(ig(e=>!e)).subscribe(e=>{this.recipeCount=e.recipesCount,this.totalPrice=e.totalPrice,this.cdr.detectChanges()}),this.assessShowUserFeedback()],this.setDirectAccess(this.initialRoute)}ngAfterViewInit(){this.openFeaturesFromURL(),this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}currentPath(){return"miam/recipes"}openFeaturesFromURL(){const e=new URLSearchParams(window.location.search);"true"===e.get("openBasket")&&this.toggleMyMealDrawer(),"true"===e.get("personalCatalog")&&this.setPersonalFilter()}displayHomePage(){return this.filters.isEmpty()}initFilters(){this.filters=new LO({difficulty:this.recipesService.difficultyLevels.map(e=>({name:e.value.toString(),text:e.label,value:!1})),cost:[{name:"0-5",value:!1},{name:"5-10",value:!1},{name:"10-1000",value:!1}],time:[{name:"15",value:!1},{name:"30",value:!1},{name:"60",value:!1},{name:"120",value:!1}]}),this.customFilters&&Object.assign(this.filters,this.customFilters),this.catalogHeader&&this.catalogHeader.resetSearchString(),this.filters.search="",this.filters.additionalFilters=null}updateFilters(e){console.log("updateFilters"),this.filters=e.copy(),this.filterToRemove=void 0,this.returnToTop(),this.cdr.detectChanges()}updateSearch(e){if(e!==this.filters.search){const t=Object.assign(this.filters,{search:e});this.updateFilters(t)}}categoryTitleClicked(e){const t=Object.assign(this.filters,{additionalFilters:{filters:e.filters,title:e.title}});this.updateFilters(t)}setFavoritesFilter(){const e=Object.assign(this.filters,{additionalFilters:{filters:{liked:!0},title:"Mes id\xe9es repas"}});this.updateFilters(e)}setPersonalFilter(){const e=Object.assign(this.filters,{additionalFilters:{filters:{personal:!0,active:"true,false"},title:"Mon carnet perso"}});this.updateFilters(e)}removeFilter(e){throw new Error("This function is broken, use has been commentated, repair it if you want to use it again")}returnToTop(){this.topAnchor&&this.topAnchor.nativeElement.scrollIntoView()}returnToHomePage(){this.pageview(),this.initFilters(),this.cdr.detectChanges()}onFilterCollapsed(){this.isFilterCollapsed=!this.isFilterCollapsed,this.cdr.detectChanges(),this.categoriesComp.forEach(e=>{e.updateWidth()})}goToCreatePage(e=null){this.creatingRecipe=!0,this.recipeToUpdate=e,this.cdr.detectChanges(),this.returnToTop()}leaveCreatePage(){this.creatingRecipe=!1,this.returnToTop(),this.cdr.detectChanges()}manageRecipeAction(e){var t,i;switch(e.action){case"CREATE":this.goToCreatePage();break;case"EDIT":this.goToCreatePage(e.recipe);break;case"DELETE":(null===(t=e.recipe)||void 0===t?void 0:t.id)&&"personal"===(null===(i=e.recipe.relationships["recipe-provider"])||void 0===i?void 0:i.data.id)&&this.subscriptions.push(this.recipesService.delete(e.recipe.id).subscribe(()=>{Object.assign(this.props(),{recipeId:e.recipe.id}),this.sendEvent(this.analyticsService.EVENT_PERSONAL_RECIPE_DELETE),this.cdr.detectChanges()}))}}reloadPackages(){this.subscriptions.push(this.loadPackages().subscribe())}isSearchPage(){return!this.displayHomePage()&&this.filters.search&&this.filters.search.length>0}isFavoritesPage(){var e,t;return!this.displayHomePage()&&!this.isSearchPage()&&"Mes id\xe9es repas"===(null===(t=null===(e=this.filters)||void 0===e?void 0:e.additionalFilters)||void 0===t?void 0:t.title)}isPersonalPage(){var e,t;return!this.displayHomePage()&&!this.isSearchPage()&&"Mon carnet perso"===(null===(t=null===(e=this.filters)||void 0===e?void 0:e.additionalFilters)||void 0===t?void 0:t.title)}isCategoryPage(){var e,t,i;return!this.displayHomePage()&&!this.isSearchPage()&&!this.isFavoritesPage()&&!this.isPersonalPage()&&(null===(i=null===(t=null===(e=this.filters)||void 0===e?void 0:e.additionalFilters)||void 0===t?void 0:t.title)||void 0===i?void 0:i.length)>0}isDefaultPage(){return!(this.displayHomePage()||this.isSearchPage()||this.isFavoritesPage()||this.isPersonalPage()||this.isCategoryPage())}canDisplayCreationButton(){return this.usersService.isLogged$.asObservable().pipe(D(e=>e&&this.isPersonalPage()))}toggleMyMealDrawer(){this.recipesService.openBasket(this.eventTrace())}loadPackages(){return this.packageService.categories_for([this.supplierId]).pipe(ig(e=>e.is_loading),um(e=>{this.initCategories(e),this.selectCategoryFromUrl(),this.cdr.detectChanges()}))}initCategories(e){this.categories=e.data.map(e=>({key:e.title.trim().toLowerCase().replace(/[^a-zA-Z0-9 -]/,"").replace(/\s/g,"-"),title:e.title,subtitle:e.subtitle,filters:{additionalFilters:{filters:{packages:e.id},title:""}}}))}selectCategoryFromUrl(){const e=new URLSearchParams(window.location.search);if("favorites"===e.get("catalogCategory"))return this.setFavoritesFilter();const t=this.categories.find(t=>t.key===e.get("catalogCategory"));return t?this.categoryTitleClicked({title:t.title,filters:t.filters.additionalFilters.filters}):void 0}assessShowUserFeedback(){return tv([this.usersService.isLogged$,this.usersService.preferenceDefined("has_children"),this.usersService.preferencesActivated$]).subscribe(e=>{this.showUserFeedback=e[0]&&!e[1]&&e[2],this.cdr.detectChanges()})}setDirectAccess(e){if(""!==this.initialRoute)switch(this.initialRoute){case"mes-repas":this.toggleMyMealDrawer();break;case"mes-recettes-personnelles":this.setPersonalFilter();break;case"recettes-favorites":this.setFavoritesFilter()}}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Hf),Bo(ov),Bo(rv),Bo(lv),Bo(pv),Bo(Kv),Bo(Ug),Bo(gg),Bo(Ag),Bo(Dv),Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-catalog"]],viewQuery:function(e,t){var i;1&e&&(Kc(PL,!0),Kc(Dz,!0),Kc(oL,!0)),2&e&&(Jc(i=el())&&(t.catalogHeader=i.first),Jc(i=el())&&(t.topAnchor=i.first),Jc(i=el())&&(t.categoriesComp=i))},inputs:{headerPictureUrl:"headerPictureUrl",homeTitlePictureUrl:"homeTitlePictureUrl",initialRoute:"initialRoute",filtersPosition:"filtersPosition",homeLabel:"homeLabel",displayPricing:"displayPricing",recipeAddedToastText:"recipeAddedToastText",customFilters:"customFilters"},features:[yo],decls:5,vars:2,consts:[[1,"miam-catalog-anchor"],["miamCatalogTopAnchor",""],["class","miam-recipe-catalog",4,"ngIf","ngIfElse"],["creationPage",""],[1,"miam-recipe-catalog"],[1,"miam-recipe-catalog__content"],[3,"home","searchTerm","additionalFiltersTitle","homeLabel","pictureUrl","titlePictureUrl","favoritesButtonHidden","personalButtonHidden","filterBadgeCount","returnButtonPressed","filterButtonPressed","searchStringChanged","personalButtonPressed","favoritesButtonPressed"],["class","miam-recipe-catalog__content__myMeal__button",3,"click",4,"ngIf"],["class","miam-recipe-catalog__list",4,"ngIf","ngIfElse"],[3,"filters","isFilterCollapsed","filterToRemove","position","originTrace","filterChanged","filterCollapsed","preferencesChanged"],["categoriesComponents",""],[1,"miam-recipe-catalog__content__myMeal__button",3,"click"],["primaryColor","var(--m-color-white)",1,"miam-recipe-catalog__myMeal__first__icon",3,"iconName"],[1,"miam-recipe-catalog__myMeal__button__text"],["primaryColor","var(--m-color-white)",1,"miam-recipe-catalog__myMeal__second__icon",3,"iconName"],[1,"miam-recipe-catalog__list"],[1,"miam-recipe-catalog__content__title"],["width","24","height","24",3,"iconName","click"],[4,"ngIf"],["class","miam-recipe-catalog__list__create___button",3,"click",4,"ngIf"],[3,"filters","originTrace","displayPricing","recipeAddedToastText","filterRemoved","recipeActionTriggered"],[1,"miam-recipe-catalog__list__create___button",3,"click"],["width","24","height","24","primaryColor","var(--m-color-primary)",3,"iconName"],["class","miam-recipe-catalog__categories",4,"ngIf"],[1,"miam-recipe-catalog__categories"],[4,"ngFor","ngForOf"],[3,"title","subtitle","filters","displayPricing","originTrace","recipeAddedToastText","displayList"],["class","miam-recipe-catalog__explain_banner",4,"ngIf"],[1,"miam-recipe-catalog__explain_banner"],[3,"recipe","originTrace","recipeChange","canceled"]],template:function(e,t){if(1&e&&(Qo(0,"div",0,1),Fo(2,Vz,9,19,"div",2),Fo(3,Zz,1,2,"ng-template",null,3,rl)),2&e){const e=Ho(4);Dr(2),jo("ngIf",!t.creatingRecipe)("ngIfElse",e)}},styles:[".miam-recipe-catalog{display:flex;justify-content:space-between}.miam-recipe-catalog,.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{font-size:24px;line-height:34px;margin-bottom:24px;font-weight:700;display:flex;align-items:center}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon{margin-right:20px;cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;width:100%;padding:32px 24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{width:100%;padding:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__list__create___button{display:flex;align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;padding:4px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;cursor:pointer;color:var(--miam-color-primary)}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{background:var(--m-color-primary);width:200px;height:50px;display:flex;justify-content:space-around;align-items:center;border-radius:0 0 20px 20px;position:absolute;cursor:pointer;right:50px;left:unset}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{font-weight:700;color:var(--m-color-white)}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{right:8px;left:8px;bottom:0;border-radius:20px 20px 0 0;position:fixed;width:auto;z-index:2}}"],encapsulation:2,changeDetection:0}),e})();function Wz(e,t){1&e&&Qo(0,"img",7),2&e&&rs("src",es().recipe.sponsorLogoUrl,cr)}let Uz=(()=>{class e{constructor(){this.icon=Iv,this.hideAddon=new Bc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-addon"]],inputs:{recipe:"recipe"},outputs:{hideAddon:"hideAddon"},decls:10,vars:5,consts:[[1,"recipe-addon"],[1,"recipe-addon__header"],[1,"m-button-secondary",3,"click"],["primaryColor","var(--m-color-primary)",3,"iconName"],[3,"src",4,"ngIf"],[1,"recipe-addon__content"],["frameBorder","0",1,"recipe-addon__content__iframe",3,"src"],[3,"src"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"button",2),Jo("click",(function(){return t.hideAddon.emit()})),Qo(3,"ng-miam-icon",3),Vo(4,"span"),fs(5,"Back"),Zo(),Zo(),Fo(6,Wz,1,1,"img",4),Zo(),Vo(7,"div",5),Qo(8,"iframe",6),Mc(9,"safe"),Zo(),Zo()),2&e&&(Dr(3),jo("iconName",t.icon.ChevronDown),Dr(3),jo("ngIf",null==t.recipe?null:t.recipe.sponsorLogoUrl),Dr(2),jo("src",Lc(9,3,null==t.recipe?null:t.recipe.attributes["informational-page-html"]),lr))},directives:[VS,Zd],pipes:[$I],styles:[".recipe-addon{height:100%;width:100%;display:flex;flex-direction:column}.recipe-addon .recipe-addon__header{padding:26px 80px 26px 16px;width:100%;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 28px rgba(0,0,0,.07)}@media (max-width:1023px){.recipe-addon .recipe-addon__header{padding:16px 80px 16px 16px}}.recipe-addon .recipe-addon__header button{max-width:150px;padding:0;color:var(--m-color-black);font-weight:700;font-size:19px;background-color:transparent;border:none}.recipe-addon .recipe-addon__header button ng-miam-icon{margin:0;height:16px;transform:rotate(90deg) scale(1.5)}.recipe-addon .recipe-addon__header button ng-miam-icon svg path{fill:var(--m-color-black)}.recipe-addon .recipe-addon__header button ng-miam-icon svg path:first-of-type{fill:transparent}.recipe-addon .recipe-addon__header button:hover{background-color:transparent;border:none}.recipe-addon .recipe-addon__header button:hover ng-miam-icon svg path{fill:var(--m-color-black)}.recipe-addon .recipe-addon__header button:hover ng-miam-icon svg path:first-of-type{fill:transparent}.recipe-addon .recipe-addon__header button span{margin-left:8px}.recipe-addon .recipe-addon__header img{height:25px}.recipe-addon .recipe-addon__content{flex:1 1;width:calc(100% - 8px);height:100%;padding-top:16px;overflow-x:hidden;overflow-y:auto;margin-right:8px}.recipe-addon .recipe-addon__content::-webkit-scrollbar-button{height:20px}.recipe-addon .recipe-addon__content::-webkit-scrollbar-track{background:var(--m-color-grey)}.recipe-addon .recipe-addon__content::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.recipe-addon .recipe-addon__content::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.recipe-addon .recipe-addon__content .recipe-addon__content__iframe{height:calc(100vh - 98px);width:100%}"],encapsulation:2,changeDetection:0}),e})();function Yz(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",13),Uo()),2&e){const e=es();Dr(1),jo("width",52)("height",24)("iconName",e.icon.DifficultyMedium)}}function Xz(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",13),Uo()),2&e){const e=es();Dr(1),jo("width",80)("height",24)("iconName",e.icon.DifficultyHigh)}}function Gz(e,t){if(1&e&&(Wo(0),Qo(1,"ng-miam-icon",13),Uo()),2&e){const e=es();Dr(1),jo("width",24)("height",24)("iconName",e.icon.DifficultyLow)}}function qz(e,t){1&e&&(Wo(0),Vo(1,"span",14),fs(2,"Beginner chef"),Zo(),Uo())}function Jz(e,t){1&e&&(Wo(0),Vo(1,"span",14),fs(2,"Intermediate chef"),Zo(),Uo())}function Kz(e,t){1&e&&(Wo(0),Vo(1,"span",14),fs(2,"Top chef"),Zo(),Uo())}function $z(e,t){1&e&&(Wo(0),Vo(1,"span",14),fs(2,"Beginner chef"),Zo(),Uo())}function eF(e,t){if(1&e&&(Vo(0,"div",6),Qo(1,"ng-miam-icon",7),Vo(2,"div",8),Vo(3,"span"),fs(4,"Cook: "),Zo(),Vo(5,"span"),fs(6),Zo(),Zo(),Zo()),2&e){const e=es();Dr(1),jo("width",24)("height",24)("iconName",e.icon.Hot),Dr(5),vs(null==e.recipe?null:e.recipe.cookingTime)}}function tF(e,t){if(1&e&&(Vo(0,"div",17),Qo(1,"ng-miam-icon",7),Vo(2,"div",8),Vo(3,"span"),fs(4,"Preparation: "),Zo(),Vo(5,"span"),fs(6),Zo(),Zo(),Zo()),2&e){const e=es(2);Dr(1),jo("width",24)("height",24)("iconName",e.icon.Preparation),Dr(5),vs(null==e.recipe?null:e.recipe.preparationTime)}}function iF(e,t){if(1&e&&(Vo(0,"div",17),Qo(1,"ng-miam-icon",7),Vo(2,"div",8),Vo(3,"span"),fs(4,"Cook: "),Zo(),Vo(5,"span"),fs(6),Zo(),Zo(),Zo()),2&e){const e=es(2);Dr(1),jo("width",24)("height",24)("iconName",e.icon.Hot),Dr(5),vs(null==e.recipe?null:e.recipe.cookingTime)}}function nF(e,t){if(1&e&&(Vo(0,"div",17),Qo(1,"ng-miam-icon",7),Vo(2,"div",8),Vo(3,"span"),fs(4,"Rest: "),Zo(),Vo(5,"span"),fs(6),Zo(),Zo(),Zo()),2&e){const e=es(2);Dr(1),jo("width",24)("height",24)("iconName",e.icon.Wait),Dr(5),vs(null==e.recipe?null:e.recipe.restingTime)}}function rF(e,t){if(1&e&&(Vo(0,"div",15),Fo(1,tF,7,4,"div",16),Fo(2,iF,7,4,"div",16),Fo(3,nF,7,4,"div",16),Zo()),2&e){const e=es();Dr(1),jo("ngIf","-"!==(null==e.recipe?null:e.recipe.preparationTime)),Dr(1),jo("ngIf","-"!==(null==e.recipe?null:e.recipe.cookingTime)),Dr(1),jo("ngIf","-"!==(null==e.recipe?null:e.recipe.restingTime))}}function aF(e,t){1&e&&Qo(0,"img",23),2&e&&jo("src",es().$implicit.attributes.icon,cr)}function oF(e,t){if(1&e&&(Vo(0,"div",20),Fo(1,aF,1,1,"img",21),Vo(2,"span",22),fs(3),Zo(),Zo()),2&e){const e=t.$implicit,i=es(2);jo("ngClass",i.tagClass(e)),Dr(1),jo("ngIf",i.displayTagsIcons),Dr(2),_s(" ",e.name," ")}}function sF(e,t){if(1&e&&(Vo(0,"div",18),Fo(1,oF,4,3,"div",19),Zo()),2&e){const e=es();Dr(1),jo("ngForOf",e.tags)}}let cF=(()=>{class e{constructor(e,t){this.cdr=e,this.recipesService=t,this.displayTags=!1,this.displayTagsIcons=!1,this.reduced=!1,this.icon=Iv,this.tags=[],this.tagTypeOrder=["meal_type","ingredient_category","diet","equipment"],this.showAdditionalInfos=!1}ngOnChanges(){this.orderTags()}orderTags(){this.tags=[],this.tagTypeOrder.forEach(e=>{this.tags=[...this.tags,...this.recipe.relationships.tags.data.filter(t=>t.tagType===e)]}),this.cdr.detectChanges()}tagClass(e){return{[e.tagType]:!0}}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-details-infos"]],inputs:{recipe:"recipe",displayTags:"displayTags",displayTagsIcons:"displayTagsIcons",reduced:"reduced"},features:[Qt],decls:23,vars:14,consts:[[1,"miam-recipe-details-infos"],[1,"miam-recipe-details-infos__main"],[1,"miam-recipe-details-infos__difficulty"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"miam-recipe-details-infos__time","miam-recipe-details-infos__time__total"],["primaryColor","var(--m-color-black)",3,"width","height","iconName"],[1,"miam-recipe-details-infos__time__text"],["class","miam-recipe-details-infos__time miam-recipe-details-infos__time__total",4,"ngIf"],[1,"miam-recipe-details-infos__additional"],["class","miam-recipe-details-infos__times",4,"ngIf"],["class","miam-recipe-details__tags",4,"ngIf"],[3,"width","height","iconName"],[1,"miam-recipe-card__info__label"],[1,"miam-recipe-details-infos__times"],["class","miam-recipe-details-infos__time",4,"ngIf"],[1,"miam-recipe-details-infos__time"],[1,"miam-recipe-details__tags"],["class","miam-recipe-details__tag",3,"ngClass",4,"ngFor","ngForOf"],[1,"miam-recipe-details__tag",3,"ngClass"],["class","miam-recipe-details__tag__icon",3,"src",4,"ngIf"],[1,"miam-recipe-details__tag__name"],[1,"miam-recipe-details__tag__icon",3,"src"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),Wo(3,3),Fo(4,Yz,2,3,"ng-container",4),Fo(5,Xz,2,3,"ng-container",4),Fo(6,Gz,2,3,"ng-container",5),Uo(),Wo(7,3),Fo(8,qz,3,0,"ng-container",4),Fo(9,Jz,3,0,"ng-container",4),Fo(10,Kz,3,0,"ng-container",4),Fo(11,$z,3,0,"ng-container",5),Uo(),Zo(),Vo(12,"div",6),Qo(13,"ng-miam-icon",7),Vo(14,"div",8),Vo(15,"span"),fs(16," Total time: "),Zo(),Vo(17,"span"),fs(18),Zo(),Zo(),Zo(),Fo(19,eF,7,4,"div",9),Zo(),Vo(20,"div",10),Fo(21,rF,4,3,"div",11),Fo(22,sF,2,1,"div",12),Zo(),Zo()),2&e&&(Dr(3),jo("ngSwitch",null==t.recipe?null:t.recipe.difficulty),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3),Dr(2),jo("ngSwitch",null==t.recipe?null:t.recipe.difficulty),Dr(1),jo("ngSwitchCase",1),Dr(1),jo("ngSwitchCase",2),Dr(1),jo("ngSwitchCase",3),Dr(3),jo("width",24)("height",24)("iconName",t.icon.Time),Dr(5),vs(null==t.recipe?null:t.recipe.totalTime),Dr(1),jo("ngIf",t.reduced&&"-"!==(null==t.recipe?null:t.recipe.cookingTime)),Dr(2),jo("ngIf",!t.reduced),Dr(1),jo("ngIf",t.displayTags&&t.tags.length))},directives:[Yd,Xd,Gd,VS,Zd,Nd,Hd],styles:[".miam-recipe-details-infos{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px 16px;background-color:var(--m-color-white)}@media (min-width:1023px) and (max-height:804px){.miam-recipe-details-infos{padding:17px 24px}}.miam-recipe-details-infos .miam-recipe-details-infos__time{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:120px;padding:0 8px}.miam-recipe-details-infos .miam-recipe-details-infos__time .miam-recipe-details-infos__time__text span{font-size:16px}.miam-recipe-details-infos .miam-recipe-details-infos__time .miam-recipe-details-infos__time__text span:last-child{font-weight:700}.miam-recipe-details-infos .miam-recipe-details-infos__time ng-miam-icon{margin-bottom:8px}.miam-recipe-details-infos .miam-recipe-details-infos__main{display:flex;flex-direction:row;justify-content:center;align-items:center}.miam-recipe-details-infos .miam-recipe-details-infos__main .miam-recipe-details-infos__difficulty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:120px;padding:0 8px}.miam-recipe-details-infos .miam-recipe-details-infos__main .miam-recipe-details-infos__difficulty ng-miam-icon{margin-bottom:8px}.miam-recipe-details-infos .miam-recipe-details-infos__main .miam-recipe-details-infos__time__total .miam-recipe-details-infos__time__text span:first-child{display:none}.miam-recipe-details-infos .miam-recipe-details-infos__main .miam-recipe-details-infos__time__total .miam-recipe-details-infos__time__text span:last-child{font-weight:400}.miam-recipe-details-infos .miam-recipe-details-infos__additional{align-items:center;display:flex;justify-content:center;flex-direction:column;width:100%;overflow:hidden;transition:var(--m-default-transition);margin-top:24px;max-height:150px}@media print{.miam-recipe-details-infos .miam-recipe-details-infos__additional{max-height:150px;margin-top:24px;opacity:1}}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details-infos__times{display:flex;justify-content:center;align-items:center;width:100%}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details-infos__times .miam-recipe-details-infos__time{flex:1;max-width:172px}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details-infos__times .miam-recipe-details-infos__time ng-miam-icon{display:none}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags{width:100%;display:flex;justify-content:center;flex-wrap:wrap;margin-top:20px}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag{display:flex;padding:8px;margin:4px;background-color:var(--m-color-grey05);border-radius:4px}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag .miam-recipe-details__tag__icon{height:16px;width:16px}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag .miam-recipe-details__tag__name{font-size:13px;line-height:16px}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-details-infos .miam-recipe-details-infos__additional .miam-recipe-details__tags .miam-recipe-details__tag.diet{background-color:var(--m-color-tag-diet)}"],encapsulation:2,changeDetection:0}),e})();function lF(e,t){1&e&&(Vo(0,"span"),fs(1,"ingredients"),Zo())}function dF(e,t){1&e&&(Vo(0,"span"),fs(1,"ingredient"),Zo())}function uF(e,t){if(1&e&&(Vo(0,"div"),Qo(1,"img",11),Zo()),2&e){const e=es().$implicit,t=es();Dr(1),jo("src",t.ingredientPicture(e),cr)}}const mF=function(e){return{checked:e}};function pF(e,t){if(1&e&&(Vo(0,"div",9),Fo(1,uF,2,1,"div",3),Vo(2,"div"),fs(3),Mc(4,"capitalizeFirstLetter"),Zo(),Vo(5,"div",10),fs(6),Mc(7,"readableFloatNumber"),Zo(),Zo()),2&e){const e=t.$implicit,i=t.index,n=es();jo("ngClass",kc(9,mF,n.ingredientsChecked[i])),Dr(1),jo("ngIf",n.ingredientsPictures),Dr(2),_s(" ",Lc(4,4,e.name),""),Dr(3),_s(" ",Rc(7,6,e.qty,e.unit)," ")}}let hF=(()=>{class e{constructor(e,t){this.cdr=e,this.contextService=t,this.ingredientsPictures=!1,this.guestsUpdated=new Bc,this.ingredientsChecked={}}updateGuests(e){this.recipe.modifiedGuests=e,this.guestsUpdated.emit(),this.cdr.detectChanges()}ingredientPicture(e){return e.picture||this.contextService.defaultIngredientPicture}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-details-ingredients"]],inputs:{recipe:"recipe",ingredientsPictures:"ingredientsPictures"},outputs:{guestsUpdated:"guestsUpdated"},decls:19,vars:6,consts:[[1,"miam-recipe-details-ingredients"],[1,"miam-recipe-details-ingredients__header"],[1,"miam-recipe-details-ingredients__header__title"],[4,"ngIf"],[1,"miam-recipe-details-ingredients__counter"],[3,"counter","counterChange"],[1,"miam-recipe-details-ingredients__counter__print"],[1,"miam-recipe-details-ingredients__list"],["class","miam-recipe-details-ingredients__row",3,"ngClass",4,"ngFor","ngForOf"],[1,"miam-recipe-details-ingredients__row",3,"ngClass"],[1,"miam-recipe-details-ingredients__row__qty"],[1,"miam-recipe-details-ingredients__row__picture",3,"src"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"span",2),Vo(3,"span"),fs(4),Zo(),Vo(5,"span"),Fo(6,lF,2,0,"span",3),Fo(7,dF,2,0,"span",3),Zo(),Zo(),Vo(8,"div",4),Vo(9,"ng-miam-counter-input",5),Jo("counterChange",(function(e){return t.updateGuests(e)})),Zo(),Vo(10,"span",6),Vo(11,"span"),fs(12,"For"),Zo(),Vo(13,"span"),fs(14),Zo(),Vo(15,"span"),fs(16,"people"),Zo(),Zo(),Zo(),Zo(),Vo(17,"div",7),Fo(18,pF,8,11,"div",8),Zo(),Zo()),2&e&&(Dr(4),_s(" ",null==t.recipe?null:t.recipe.modifiedIngredients.length," "),Dr(2),jo("ngIf",(null==t.recipe?null:t.recipe.modifiedIngredients.length)>1),Dr(1),jo("ngIf",!((null==t.recipe?null:t.recipe.modifiedIngredients.length)>1)),Dr(2),jo("counter",(null==t.recipe?null:t.recipe.modifiedGuests)||t.recipe.guests),Dr(5),vs(null==t.recipe?null:t.recipe.modifiedGuests),Dr(4),jo("ngForOf",null==t.recipe?null:t.recipe.modifiedIngredients))},directives:[Zd,nO,Nd,Hd],pipes:[_D,xI],styles:[".miam-recipe-details-ingredients{display:flex;flex-direction:column}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--m-color-grey07)}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__header__title{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter{display:flex;align-items:center}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:none}@media print{.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:block}}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__list{display:flex;flex-direction:column;background-color:var(--m-color-primary-light);border-radius:8px;padding:4px 16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row{display:flex;justify-content:space-between;color:var(--m-color-black);padding:12px 0;font-size:16px;line-height:20px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row .miam-recipe-details-ingredients__row__qty{font-weight:700}"],encapsulation:2,changeDetection:0}),e})();function gF(e,t){if(1&e&&(Vo(0,"div",9),Vo(1,"span"),fs(2),Zo(),Zo()),2&e){const e=es().index;Dr(2),_s(" ",e+1," ")}}function fF(e,t){if(1&e&&Qo(0,"ng-miam-icon",10),2&e){const e=es(2);jo("height",32)("width",32)("iconName",e.icon.CheckCircleFill)}}const vF=function(e,t){return{active:e,"miam-recipe-details-steps__step__done":t}};function _F(e,t){if(1&e){const e=Xo();Vo(0,"div",4),Jo("click",(function(){gi(e);const i=t.index;return es().changeActiveStep(i+1)})),Fo(1,gF,3,1,"div",5),Fo(2,fF,1,3,"ng-template",null,6,rl),Vo(4,"div",7),fs(5),Zo(),Qo(6,"ng-miam-icon",8),Zo()}if(2&e){const e=t.$implicit,i=t.index,n=Ho(3),r=es();jo("ngClass",Ac(7,vF,i+1===r.activeStep,i<r.activeStep)),Dr(1),jo("ngIf",i>=r.activeStep)("ngIfElse",n),Dr(4),vs(null==e||null==e.attributes?null:e.attributes.description),Dr(1),jo("height",20)("width",20)("iconName",i<r.activeStep?r.icon.CheckboxChecked:r.icon.CheckboxUnchecked)}}let yF=(()=>{class e{constructor(e){this.cdr=e,this.activeStep=0,this.icon=Iv}ngOnChanges(){this.recipe&&(this.activeStep=0),this.cdr.detectChanges()}changeActiveStep(e){this.activeStep=this.activeStep>=e?e-1:e,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-details-steps"]],inputs:{recipe:"recipe"},features:[Qt],decls:6,vars:1,consts:[[1,"miam-recipe-details-steps"],[1,"miam-recipe-details-steps__header"],[1,"miam-recipe-details-steps__list"],["class","miam-recipe-details-steps__step",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"miam-recipe-details-steps__step",3,"ngClass","click"],["class","miam-recipe-details-steps__step__idx",4,"ngIf","ngIfElse"],["stepChecked",""],[1,"miam-recipe-details-steps__step__text"],["primaryColor","var(--m-color-grey-text-dark)","secondaryColor","var(--m-color-white)",1,"miam-recipe-details-steps__step__checkIcon",3,"height","width","iconName"],[1,"miam-recipe-details-steps__step__idx"],["primaryColor","var(--m-color-success)",1,"miam-recipe-details-steps__step__checkIcon",3,"height","width","iconName"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"span"),fs(3,"Steps"),Zo(),Zo(),Vo(4,"div",2),Fo(5,_F,7,10,"div",3),Zo(),Zo()),2&e&&(Dr(5),jo("ngForOf",t.recipe.steps))},directives:[Nd,Hd,Zd,VS],styles:[".miam-recipe-details-steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details-steps .miam-recipe-details-steps__header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--m-color-grey07)}.miam-recipe-details-steps .miam-recipe-details-steps__header span{color:var(--m-color-primary);display:block;font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-steps .miam-recipe-details-steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}@media (max-width:1023px){.miam-recipe-details-steps .miam-recipe-details-steps__list{padding-bottom:140px}}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step{display:flex;flex-direction:row;align-items:center;padding:8px;margin:0 2px 24px 0;-webkit-tap-highlight-color:transparent;border-radius:var(--m-border-radius);text-align:left;transition:var(--m-default-transition);cursor:pointer}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__idx{display:flex;justify-content:center;align-items:center;height:32px;width:32px;background-color:var(--m-color-primary);border-radius:var(--m-border-radius-circle);font-weight:700;font-size:16px;line-height:20px;color:var(--m-color-white)}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__text{word-break:break-word;font-size:14px;margin:0 12px;flex:1}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__checkIcon{flex:0 0 auto}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step.miam-recipe-details-steps__step__done{background-color:var(--m-color-primary-light)}"],encapsulation:2,changeDetection:0}),e})();const bF=["topContainerImg"];function wF(e,t){1&e&&Qo(0,"img",38)}function xF(e,t){1&e&&Qo(0,"img",39)}function CF(e,t){if(1&e&&(Vo(0,"span"),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s(" ",null==e.recipe?null:e.recipe.attributes.title," ")}}function kF(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-addon-link",40),Jo("showAddon",(function(){return gi(e),es(2).toggleAddon()})),Zo()}2&e&&jo("recipe",es(2).recipe)}const AF=function(e,t){return{sponsor:e,tags:t}};function SF(e,t){if(1&e&&Qo(0,"img",41),2&e){const e=es(2);jo("src",null==e.recipe?null:e.recipe.attributes["media-url"],cr)("ngClass",Ac(2,AF,(null==e.recipe||null==e.recipe.sponsors?null:e.recipe.sponsors.length)>0,e.displayTags&&e.recipe.relationships.tags.data.length>0))}}function EF(e,t){if(1&e&&Qo(0,"youtube-player",42),2&e){const e=es(2);jo("videoId",e.recipe.videoId)("width",e.playerWidth)("height",e.playerHeight)}}function DF(e,t){if(1&e&&(Vo(0,"div",43),Qo(1,"img",37),Zo()),2&e){const e=es(2);Dr(1),jo("src",e.recipe.filigraneLogoUrl,cr)}}function IF(e,t){if(1&e&&Qo(0,"ng-miam-like-button",44),2&e){const e=es(2);jo("recipe",e.recipe)("originTrace",e.eventTrace())("width",24)("height",24)}}function OF(e,t){if(1&e&&Qo(0,"ng-miam-recipe-details-infos",45),2&e){const e=es(2);jo("recipe",e.recipe)("displayTags",e.displayTags)("displayTagsIcons",e.displayTagsIcons)("reduced",e.cookingTimeAsPrimaryInfo)}}function PF(e,t){1&e&&Qo(0,"ng-miam-recipe-details-steps",46),2&e&&jo("recipe",es(2).recipe)}function TF(e,t){if(1&e&&Qo(0,"ng-miam-recipe-pricing",47),2&e){const e=es(2);jo("recipe",e.recipe)("serves",null==e.recipe?null:e.recipe.modifiedGuests)("guestsText",e.pricingGuestsText)}}function MF(e,t){1&e&&(Vo(0,"span"),fs(1,"See our products"),Zo())}function LF(e,t){1&e&&(Vo(0,"span"),fs(1,"Add ingredients"),Zo())}function RF(e,t){if(1&e&&Qo(0,"ng-miam-icon",53),2&e){const e=es(4);jo("width",24)("height",24)("iconName",e.icon.Cart)}}function zF(e,t){if(1&e&&(Vo(0,"div",51),Vo(1,"span"),Fo(2,MF,2,0,"span",9),Mc(3,"async"),Fo(4,LF,2,0,"span",9),Mc(5,"async"),Zo(),Fo(6,RF,1,3,"ng-miam-icon",52),Mc(7,"async"),Zo()),2&e){const e=es(3);Dr(2),jo("ngIf",Lc(3,3,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id))),Dr(2),jo("ngIf",!Lc(5,5,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id))),Dr(2),jo("ngIf",!Lc(7,7,e.groceriesListsService.recipeIsInList(null==e.recipe?null:e.recipe.id)))}}function FF(e,t){1&e&&Qo(0,"ng-miam-loader")}const HF=function(e,t){return{"in-basket":e,loading:t}};function BF(e,t){if(1&e){const e=Xo();Vo(0,"div",48),Jo("click",(function(){return gi(e),es(2).clickPrimary()})),Mc(1,"async"),Fo(2,zF,8,9,"div",49),Fo(3,FF,1,0,"ng-template",null,50,rl),Zo()}if(2&e){const e=Ho(4),t=es(2);jo("ngClass",Ac(5,HF,Lc(1,3,t.groceriesListsService.recipeIsInList(null==t.recipe?null:t.recipe.id)),t.addButtonLoading)),Dr(2),jo("ngIf",!t.addButtonLoading)("ngIfElse",e)}}function jF(e,t){if(1&e&&(Vo(0,"div",54),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s(" ",null==e.recipe?null:e.recipe.attributes.title," ")}}function NF(e,t){if(1&e&&(Vo(0,"div",55),fs(1),Zo()),2&e){const e=es(2);Dr(1),_s(" ",null==e.recipe?null:e.recipe.attributes.description," ")}}function VF(e,t){if(1&e&&Qo(0,"ng-miam-recipe-details-infos",45),2&e){const e=es(2);jo("recipe",e.recipe)("displayTags",e.displayTags)("displayTagsIcons",e.displayTagsIcons)("reduced",e.cookingTimeAsPrimaryInfo)}}function ZF(e,t){1&e&&Qo(0,"ng-miam-recipe-details-steps",46),2&e&&jo("recipe",es(2).recipe)}function QF(e,t){if(1&e){const e=Xo();Vo(0,"div",2,3),Vo(2,"div",4),Vo(3,"div",5),Fo(4,wF,1,0,"img",6),Fo(5,xF,1,0,"ng-template",null,7,rl),Zo(),Vo(7,"div",8),Fo(8,CF,2,1,"span",9),Zo(),Vo(9,"a",10),fs(10," See more meal ideas "),Zo(),Zo(),Vo(11,"div",11),Vo(12,"div",12,13),Vo(14,"div",14),Vo(15,"div",15),Fo(16,kF,1,1,"ng-miam-addon-link",16),Zo(),Vo(17,"div",17),Fo(18,SF,1,5,"img",18),Fo(19,EF,1,3,"youtube-player",19),Fo(20,DF,2,1,"div",20),Zo(),Vo(21,"div",21),Vo(22,"div",22),Fo(23,IF,1,4,"ng-miam-like-button",23),Mc(24,"async"),Vo(25,"ng-miam-icon",24),Jo("click",(function(){return gi(e),es().print()})),Zo(),Zo(),Vo(26,"div",22),Vo(27,"ng-miam-icon",25),Jo("click",(function(){return gi(e),es().toggleHelper()})),Zo(),Zo(),Zo(),Fo(28,OF,1,4,"ng-miam-recipe-details-infos",26),Fo(29,PF,1,1,"ng-miam-recipe-details-steps",27),Vo(30,"div",28),Vo(31,"div",29),Fo(32,TF,1,3,"ng-miam-recipe-pricing",30),Zo(),Fo(33,BF,5,8,"div",31),Zo(),Zo(),Zo(),Vo(34,"div",32),Vo(35,"div"),Fo(36,jF,2,1,"div",33),Zo(),Fo(37,NF,2,1,"div",34),Fo(38,VF,1,4,"ng-miam-recipe-details-infos",26),Vo(39,"ng-miam-recipe-details-ingredients",35),Jo("guestsUpdated",(function(){return gi(e),es().updateGuests()})),Zo(),Fo(40,ZF,1,1,"ng-miam-recipe-details-steps",27),Vo(41,"a",36),Qo(42,"img",37),Zo(),Zo(),Zo(),Zo()}if(2&e){const e=Ho(6),t=es();Dr(4),jo("ngIf",!t.isMobile)("ngIfElse",e),Dr(4),jo("ngIf",!t.isMobile||t.titleInHeader),Dr(1),jo("href",t.contextService.miam.router.catalog,cr),Dr(7),jo("ngIf",(null==t.recipe||null==t.recipe.sponsors?null:t.recipe.sponsors.length)>0||t.recipe.informationalSentence),Dr(2),jo("ngIf",!t.showVideo),Dr(1),jo("ngIf",t.showVideo&&t.playerWidth),Dr(1),jo("ngIf",t.recipe.filigraneLogoUrl),Dr(3),jo("ngIf",Lc(24,27,t.userService.isLogged$)),Dr(2),jo("width",24)("height",24)("iconName",t.icon.Print),Dr(2),jo("width",40)("height",40)("iconName",t.icon.Help),Dr(1),jo("ngIf",!t.isMobile),Dr(1),jo("ngIf",!t.isMobile&&t.stepsOnLeftSide),Dr(3),jo("ngIf",t.recipe&&t.displayPricing),Dr(1),jo("ngIf",t.previewAllowed),Dr(3),jo("ngIf",t.isMobile),Dr(1),jo("ngIf",null==t.recipe?null:t.recipe.attributes.description),Dr(1),jo("ngIf",t.isMobile),Dr(1),jo("recipe",t.recipe)("ingredientsPictures",t.ingredientsPictures),Dr(1),jo("ngIf",!(!t.isMobile&&t.stepsOnLeftSide)),Dr(1),jo("href",t.contextService.miam.router.catalog,cr),Dr(1),jo("src",t.moreRecipesImageURL,cr)}}function WF(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-recipe-addon",56),Jo("hideAddon",(function(){return gi(e),es().toggleAddon()})),Zo()}2&e&&jo("recipe",es().recipe)}let UF=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o,s,c,l){super(l),this.cdr=e,this.recipeService=t,this.groceriesListsService=i,this.userService=n,this.posService=r,this.recipeEventsService=a,this.mediaMatcher=o,this.contextService=s,this.toastr=c,this.analyticsService=l,this.previewAllowed=!0,this.ingredientsPictures=!1,this.displayTagsIcons=!1,this.displayPricing=!0,this.displayAddedOnPicture=!0,this.stepsOnLeftSide=!1,this.cookingTimeAsPrimaryInfo=!1,this.pricingGuestsText="par-personne",this.recipeAdded=new Bc,this.recipeError=new Bc,this.primaryButtonClicked$=new Bc,this.tab=0,this.isMobile=!1,this.displayTags=!1,this.showDetail=!0,this.icon=Iv,this.addButtonLoading=!1,this.titleInHeader=!1,this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.contextService.miam.user.isSmallScreen$.subscribe(e=>{this.isMobile=e,this.cdr.detectChanges()}))}ngOnChanges(e){var t;this.recipe&&e.recipe&&(this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_DISPLAY,this.originTrace.originPath,this.props()),this.pageview()),this.displayTags=void 0!==this.forceDisplayTags&&this.forceDisplayTags!==this.displayTags?this.forceDisplayTags:this.contextService.tagsOnRecipesEnabled,this.stepsOnLeftSide&&(this.cookingTimeAsPrimaryInfo=!0),this.showVideo=!1,this.cdr.detectChanges(),this.showVideo=this.contextService.videoRecipesEnabled&&(null===(t=this.recipe)||void 0===t?void 0:t.videoId),this.showVideo&&this.setupYoutubePlayer(),setTimeout(()=>{this.initScrollListenerOnTitle()})}setupYoutubePlayer(){setTimeout(()=>{var e,t,i;(null===(e=window.YT)||void 0===e?void 0:e.Player)?(this.playerWidth=null===(i=null===(t=this.topContainerImg)||void 0===t?void 0:t.nativeElement)||void 0===i?void 0:i.offsetWidth,this.playerHeight=Math.min(.48*window.innerHeight,390*this.playerWidth/640),this.cdr.detectChanges()):this.setupYoutubePlayer()},50)}currentPath(){return"detail"}currentProps(){return{recipe_id:this.recipe.id}}initScrollListenerOnTitle(){if(this.title||(this.title=document.getElementById("miam-recipe-details__title")),this.content||(this.content=document.getElementById("miam-recipe-details__content")),this.isMobile&&!this.intersectionObserver&&this.content&&this.title){const e=[...Array(20).keys()].map(e=>e/20);this.intersectionObserver=new IntersectionObserver(([e])=>{this.toggleTitleInHeader()},{threshold:e}),this.intersectionObserver.observe(this.content)}}toggleTitleInHeader(){this.titleInHeader=this.title.getBoundingClientRect().top<=40,this.cdr.detectChanges()}clickPrimary(){this.addButtonLoading||this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{this.addRecipe(),this.primaryButtonClicked$.emit(!e)}))}addRecipe(){this.toggleButtonLoader(!0),Sg([this.userService.isLogged$.asObservable().pipe(cg(1)),this.posService.isPosValid().pipe(cg(1))]).subscribe(e=>{this.contextService.hookCallback(e[0],e[1])?this.addRecipeActionOK():this.addRecipeActionKO()})}addRecipeActionOK(){this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{const t=!e;t&&(this.recipeEventsService.sendEvent(this.recipe,this.recipeEventsService.ACTION_ADDED),this.subscriptions.push(this.groceriesListsService.appendRecipeToList(this.recipe.id,this.recipe.modifiedGuests,this.eventTrace()).pipe(cg(1)).subscribe(e=>{this.toggleButtonLoader(!1),t&&this.recipeAddedToastText&&this.recipeAddedToastText.length>0&&this.toastr.info(this.recipeAddedToastText,null,{closeButton:!0,progressBar:!0})})))})),this.recipeAdded.emit()}addRecipeActionKO(){sessionStorage.setItem("_miam/cached-recipe",JSON.stringify(this.recipe)),this.recipeError.emit()}updateGuests(){this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{e?this.groceriesListsService.appendRecipeToList(this.recipe.id,this.recipe.modifiedGuests,this.eventTrace()).subscribe():this.sendEvent(this.analyticsService.EVENT_RECIPE_CHANGEGUESTS)}),this.recipeService.displayedRecipeChanged.emit(),this.cdr.detectChanges()}print(){this.sendEvent(this.analyticsService.EVENT_RECIPE_PRINT),window.print()}toggleAddon(){this.showDetail=!this.showDetail,this.cdr.detectChanges()}toggleHelper(){this.recipeService.toggleHelper(),this.cdr.detectChanges()}toggleButtonLoader(e){this.addButtonLoading=e,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(Ag),Bo(Ug),Bo(sv),Bo(qf),Bo(Kv),Bo(i_),Bo(r_),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-details"]],viewQuery:function(e,t){var i;1&e&&Kc(bF,!0),2&e&&Jc(i=el())&&(t.topContainerImg=i.first)},inputs:{recipe:"recipe",previewAllowed:"previewAllowed",ingredientsPictures:"ingredientsPictures",forceDisplayTags:"forceDisplayTags",displayTagsIcons:"displayTagsIcons",displayPricing:"displayPricing",displayAddedOnPicture:"displayAddedOnPicture",stepsOnLeftSide:"stepsOnLeftSide",cookingTimeAsPrimaryInfo:"cookingTimeAsPrimaryInfo",moreRecipesImageURL:"moreRecipesImageURL",pricingGuestsText:"pricingGuestsText",recipeAddedToastText:"recipeAddedToastText"},outputs:{recipeAdded:"recipeAdded",recipeError:"recipeError"},features:[yo,Qt],decls:3,vars:2,consts:[["class","miam-recipe-details",4,"ngIf","ngIfElse"],["addon",""],[1,"miam-recipe-details"],["mainContainer",""],[1,"miam-recipe-details__header"],[1,"miam-recipe-details__bookmark"],["src","https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg",4,"ngIf","ngIfElse"],["stamp",""],[1,"miam-recipe-details__title"],[4,"ngIf"],[1,"miam-recipe-details__header__link",3,"href"],[1,"miam-recipe-details__container"],[1,"miam-recipe-details__summary"],["topContainerImg",""],[1,"miam-recipe-details__summary__container"],[1,"miam-recipe-details__sponsor"],[3,"recipe","showAddon",4,"ngIf"],[1,"miam-recipe-details__picture"],[3,"src","ngClass",4,"ngIf"],[3,"videoId","width","height",4,"ngIf"],["class","miam-recipe-details__picture__filigrane",4,"ngIf"],[1,"miam-recipe-details__actionbar"],[1,"miam-recipe-details__actionbar__group"],["class","miam-recipe-details__actions__icon like",3,"recipe","originTrace","width","height",4,"ngIf"],["primaryColor","var(--m-color-primary)",1,"miam-recipe-details__actions__icon","print",3,"width","height","iconName","click"],["primaryColor","var(--m-color-grey02)","secondaryColor","var(--m-color-grey07)",1,"miam-recipe-details__actions__icon","help",3,"width","height","iconName","click"],[3,"recipe","displayTags","displayTagsIcons","reduced",4,"ngIf"],[3,"recipe",4,"ngIf"],[1,"miam-recipe-details__action__container"],[1,"miam-recipe-details__price"],[3,"recipe","serves","guestsText",4,"ngIf"],["class","miam-recipe-details__addbasket",3,"ngClass","click",4,"ngIf"],["id","miam-recipe-details__content",1,"miam-recipe-details__content"],["class","miam-recipe-details__title","id","miam-recipe-details__title",4,"ngIf"],["class","miam-recipe-details__content__description",4,"ngIf"],[3,"recipe","ingredientsPictures","guestsUpdated"],[1,"miam-recipe-details__content__image",3,"href"],[3,"src"],["src","https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"],["src","https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"],[3,"recipe","showAddon"],[3,"src","ngClass"],[3,"videoId","width","height"],[1,"miam-recipe-details__picture__filigrane"],[1,"miam-recipe-details__actions__icon","like",3,"recipe","originTrace","width","height"],[3,"recipe","displayTags","displayTagsIcons","reduced"],[3,"recipe"],[3,"recipe","serves","guestsText"],[1,"miam-recipe-details__addbasket",3,"ngClass","click"],["class","miam-recipe-details__addbasket__cta",4,"ngIf","ngIfElse"],["addLoader",""],[1,"miam-recipe-details__addbasket__cta"],["primaryColor","#fff",3,"width","height","iconName",4,"ngIf"],["primaryColor","#fff",3,"width","height","iconName"],["id","miam-recipe-details__title",1,"miam-recipe-details__title"],[1,"miam-recipe-details__content__description"],[3,"recipe","hideAddon"]],template:function(e,t){if(1&e&&(Fo(0,QF,43,29,"div",0),Fo(1,WF,1,1,"ng-template",null,1,rl)),2&e){const e=Ho(2);jo("ngIf",t.showDetail)("ngIfElse",e)}},directives:[Zd,VS,hF,MO,Hd,kb,aO,cF,yF,DO,$E,Uz],pipes:[au],styles:[".miam-recipe-details{display:flex;flex-direction:column;height:100vh;width:100%}.miam-recipe-details .miam-recipe-details__title{font-size:32px;font-weight:700;line-height:40px;margin-left:112px;max-width:calc(100% - 352px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.miam-recipe-details .miam-recipe-details__header{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;height:80px;box-shadow:0 1px 0 #e9e9e9;background-color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{position:absolute;top:0;left:20px;width:72px;height:126px;z-index:1}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark img{height:100%}}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{font-size:14px;line-height:20px;margin-right:64px;cursor:pointer}.miam-recipe-details .miam-recipe-details__container{display:flex;flex-direction:row;height:calc(100% - 80px);width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{display:flex;width:60%;margin-bottom:80px;border-right:1px solid #e9e9e9}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container{display:flex;flex-direction:column;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture{position:relative;width:100%;height:auto;max-height:48vh}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{max-height:calc(100vh - 396px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor{max-height:calc(100vh - 504px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.tags{max-height:calc(100vh - 476px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:calc(100vh - 584px)}}@media (min-width:1023px) and (max-height:816px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:232px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture .miam-recipe-details__picture__filigrane{position:absolute;bottom:16px;right:16px;width:124px;height:64px;justify-content:flex-end;display:flex;order:2;align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture .miam-recipe-details__picture__filigrane img{max-height:100%;max-width:100%;height:auto;width:auto;-o-object-fit:contain;object-fit:contain}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--m-color-white);filter:drop-shadow(0 8px 28px rgba(0,0,0,.07))}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group{display:flex;flex-direction:row}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group .miam-recipe-details__actions__icon{display:flex;justify-content:center;align-items:center;height:40px;margin:8px 16px;cursor:pointer;-webkit-tap-highlight-color:transparent}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{position:absolute;display:flex;flex-direction:row;bottom:0;right:40%;left:0;height:80px;background-color:var(--m-color-white);box-shadow:0 -1px 0 #e9e9e9,0 1px 0 #e9e9e9}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price{display:flex;flex-direction:column;position:relative;justify-content:center;align-items:center;height:100%;width:34%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{flex-direction:row;color:var(--m-color-primary)}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{margin-left:12px;font-size:14px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{display:flex;justify-content:center;align-items:center;width:66%;background-color:var(--m-color-secondary);font-size:19px;font-weight:700;color:var(--m-color-white);cursor:pointer}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-recipe-details__addbasket__cta{display:flex;flex-direction:row}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket:hover{background-color:var(--m-color-secondary-dark)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-loader{width:24px;height:24px;border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{display:flex;flex-direction:column;width:40%;height:100%;overflow-y:auto;padding:24px 24px 0;background-color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{display:flex;flex-direction:column;font-size:16px;line-height:20px;margin-bottom:40px;text-align:left;color:var(--m-color-grey-text-dark);word-break:break-word}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content ng-miam-recipe-details-ingredients{margin-bottom:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image,.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image img{width:100%}@media print{.miam-recipe-details{height:unset!important}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header{height:48px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{top:4px;left:16px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{margin-left:64px;max-width:calc(100% - 200px);font-size:16px;line-height:20px;font-weight:900}}@media print and (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{margin-left:112px}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{display:none}.miam-recipe-details .miam-recipe-details__container{flex-direction:column;overflow-y:auto}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{width:100%;height:100%;margin-bottom:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{filter:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{position:fixed;width:100%;right:0}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{width:100%;height:100%;overflow-y:unset;padding:0 24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__title{max-width:unset;width:100%;margin:0;font-size:24px;line-height:28px;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{margin:16px 0 0}}"],encapsulation:2,changeDetection:0}),e})(),YF=(()=>{class e{constructor(e){const t={"recipe-addon":Uz,"recipe-details":UF,"recipe-details-ingredients":hF,"recipe-details-steps":yF,"recipe-details-infos":cF};Object.keys(t).map(i=>{const n=`webc-miam-${i}`;if(!customElements.get(n)){const r=b_(t[i],{injector:e});customElements.define(n,r)}})}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(fo))},imports:[[Cu,mb,cP,bP,Db]]}),e})();function XF(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Titre de la recette#"),Zo())}function GF(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Ajouter une photo#"),Zo())}function qF(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Choisir un type#"),Zo())}function JF(e,t){1&e&&(Vo(0,"span"),fs(1,"Preparation time"),Zo())}function KF(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Temps de cuisson#"),Zo())}function $F(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Temps de repos#"),Zo())}function eH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Temps de pr\xe9chauffage#"),Zo())}function tH(e,t){if(1&e&&(Vo(0,"div",24),Vo(1,"ng-miam-time-picker",25),Fo(2,JF,2,0,"ng-template",null,26,rl),Zo(),Vo(4,"ng-miam-time-picker",25),Fo(5,KF,2,0,"ng-template",null,26,rl),Zo(),Vo(7,"ng-miam-time-picker",25),Fo(8,$F,2,0,"ng-template",null,26,rl),Zo(),Vo(10,"ng-miam-time-picker",25),Fo(11,eH,2,0,"ng-template",null,26,rl),Zo(),Zo()),2&e){const e=es(2);var i=null,n=null,r=null,a=null;Dr(1),jo("formControl",null==e.recipeForm||null==(i=e.recipeForm.get("attributes"))?null:i.get("preparation-time"))("icon",e.icon.Time),Dr(3),jo("formControl",null==e.recipeForm||null==(n=e.recipeForm.get("attributes"))?null:n.get("cooking-time"))("icon",e.icon.Hot),Dr(3),jo("formControl",null==e.recipeForm||null==(r=e.recipeForm.get("attributes"))?null:r.get("resting-time"))("icon",e.icon.Wait),Dr(3),jo("formControl",null==e.recipeForm||null==(a=e.recipeForm.get("attributes"))?null:a.get("resting-time"))("icon",e.icon.Preheat)}}function iH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Choisir un status#"),Zo())}function nH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Choisir un provider#"),Zo())}function rH(e,t){if(1&e&&(Vo(0,"div",9),Vo(1,"ng-miam-select-input",16),Mc(2,"async"),Fo(3,iH,2,0,"ng-template",null,7,rl),Zo(),Vo(5,"ng-miam-select-input",16),Mc(6,"async"),Fo(7,nH,2,0,"ng-template",null,7,rl),Zo(),Qo(9,"textarea",27),Zo()),2&e){const e=es(2);var i=null;Dr(1),jo("options",Lc(2,5,e.statuses))("formControl",null==e.recipeForm?null:e.recipeForm.get("recipe-status")),Dr(4),jo("options",Lc(6,7,null==e.recipeProviderservice?null:e.recipeProviderservice.providerList))("formControl",null==e.recipeForm?null:e.recipeForm.get("recipe-provider")),Dr(4),jo("formControl",null==e.recipeForm||null==(i=e.recipeForm.get("attributes"))?null:i.get("description"))}}const aH=function(){return["number-of-guests"]};function oH(e,t){if(1&e){const e=Xo();Vo(0,"form",4),Wo(1,5),Vo(2,"ng-miam-text-input",6),Fo(3,XF,2,0,"ng-template",null,7,rl),Zo(),Vo(5,"div",8),Vo(6,"div",9),Vo(7,"ng-miam-drag-drop-input",10),Fo(8,GF,2,0,"ng-template",null,11,rl),Zo(),Vo(10,"div",12),Vo(11,"span",13),fs(12,"Number of people"),Zo(),Qo(13,"ng-miam-counter-input",14),Zo(),Zo(),Vo(14,"div",15),Vo(15,"ng-miam-select-input",16),Mc(16,"async"),Fo(17,qF,2,0,"ng-template",null,7,rl),Zo(),Vo(19,"div",17),Vo(20,"div",18),Qo(21,"ng-miam-slider",19),Zo(),Zo(),Fo(22,tH,13,8,"div",20),Zo(),Zo(),Uo(),Vo(23,"div",8),Vo(24,"div",9),Vo(25,"ng-miam-list-input",21),Jo("deleteId",(function(t){return gi(e),es().addToDeleteIngredientsList(t)})),Zo(),Zo(),Vo(26,"div",9),Vo(27,"ng-miam-list-input",22),Jo("deleteId",(function(t){return gi(e),es().addToDeleteStepsList(t)})),Zo(),Zo(),Fo(28,rH,10,9,"div",23),Zo(),Zo()}if(2&e){const e=es();var i=null,n=null,r=null,a=null,o=null;jo("formGroup",e.recipeForm),Dr(1),jo("formGroup",null==e.recipeForm?null:e.recipeForm.get("attributes")),Dr(1),jo("formControl",null==e.recipeForm||null==(i=e.recipeForm.get("attributes"))?null:i.get("title")),Dr(5),jo("formControl",null==e.recipeForm||null==(n=e.recipeForm.get("attributes"))?null:n.get("media-url"))("imageUrl",null==e.recipeForm||null==(r=e.recipeForm.get("attributes"))||null==(a=r.get("media-url"))?null:a.value)("photoMode",!0),Dr(6),jo("formControl",e.recipeForm.controls.attributes.controls[Cc(19,aH)]),Dr(2),jo("options",Lc(16,17,null==e.recipeTypeService?null:e.recipeTypeService.getTypes()))("formControl",null==e.recipeForm?null:e.recipeForm.get("recipe-type")),Dr(6),jo("steps",e.dificulties)("formControl",null==e.recipeForm||null==(o=e.recipeForm.get("attributes"))?null:o.get("difficulty"))("icons",e.iconsDificulties),Dr(1),jo("ngIf",e.recipeForm),Dr(3),jo("ingredientMode",!0)("list",e.recipeForm.get("ingredients")),Dr(2),jo("list",e.recipeForm.get("steps")),Dr(1),jo("ngIf",e.isAdmin)}}let sH=(()=>{class e extends rO{constructor(e,t,i,n,r,a,o,s,c,l,d){super(d),this.fb=e,this.userService=t,this.cdr=i,this.recipeProviderservice=n,this.recipeService=r,this.recipeTypeService=a,this.ingredientService=o,this.recipeStepsService=s,this.mediaMatcher=c,this.statusService=l,this.analyticsService=d,this.secondaryActionText="Annuler",this.primaryActionText="Enregistrer la recette",this.secondaryButtonDisable=!1,this.customSubmitCallback=!1,this.isLocalImage=!1,this.icon=Iv,this.dificulties=["facile","moyen","difficile"],this.iconsDificulties=[this.icon.DifficultyLow,this.icon.DifficultyMedium,this.icon.DifficultyHigh],this.costs=["faible","moyen","\xe9lev\xe9"],this.iconsCosts=[this.icon.CostLow,this.icon.CostMedium,this.icon.CostHight],this.isSubmiting=!1,this.canceled=new Bc,this.recipeChange=new Bc,this.deleteIngredientsList=[],this.deleteStepsList=[],this.subscriptions=[],this.statuses=this.statusService.all().pipe(D(e=>e.data))}currentPath(){return this.recipe?"update":"new"}ngOnInit(){this.subscriptions.push(this.userService.isAdmin.subscribe(e=>{this.isAdmin=e,this.cdr.detectChanges()})),this.InitRecipe().pipe(cg(1)).subscribe()}ngOnChanges(e){e.hasOwnProperty("recipe")&&null!=this.recipe&&(this.isUpdate=!0,this.initForm(this.recipe)),this.cdr.detectChanges(),this.pageview()}ngOnDestroy(){this.formSubscription.unsubscribe(),this.subscriptions.forEach(e=>e.unsubscribe())}InitRecipe(){return this.recipe?Au(null):this.statusService.submitted.pipe(ug(e=>this.userService.userProvider.pipe(ig(e=>null==e),um(t=>{this.recipe=this.recipeService.new(),this.recipe.addRelationship(e,"recipe-status"),this.recipe.addRelationship(t,"recipe-provider"),delete this.recipe.id,this.initForm(this.recipe),this.cdr.detectChanges()}))))}cancel(){this.setRelationShipIfFormPartIsDirty("recipe-type"),this.setRelationShipIfFormPartIsDirty("recipe-status"),this.setRelationShipIfFormPartIsDirty("recipe-provider"),this.recipe.attributes=Object.assign(Object.assign({},this.recipe.attributes),this.recipeForm.getRawValue().attributes),this.canceled.emit(this.recipe)}addToDeleteIngredientsList(e){this.deleteIngredientsList.push(e)}addToDeleteStepsList(e){this.deleteStepsList.push(e)}submit(){this.isSubmiting=!0,this.upsertRecipe().subscribe(e=>{e&&(this.deleteStepsList=[],this.deleteIngredientsList=[],this.isSubmiting=!1,this.handleEmition(e),this.sendEvent(this.analyticsService.EVENT_PERSONAL_RECIPE_CREATE))})}cantSubmit(){var e,t;return(!this.recipe||this.recipe.status.name!==this.statusService.draftValue.name)&&((null===(e=this.recipeForm)||void 0===e?void 0:e.invalid)||!(null===(t=this.recipeForm)||void 0===t?void 0:t.dirty)||this.isSubmiting)}initForm(e){var t,i,n,r,a,o,s;this.formSubscription&&this.formSubscription.unsubscribe(),this.recipeForm=this.fb.group({"recipe-status":new Ay(null===(i=null===(t=null==e?void 0:e.relationships)||void 0===t?void 0:t["recipe-status"])||void 0===i?void 0:i.data,j_.required),"recipe-provider":new Ay((null===(a=null===(r=null===(n=null==e?void 0:e.relationships)||void 0===n?void 0:n["recipe-provider"])||void 0===r?void 0:r.data)||void 0===a?void 0:a.id)?null===(s=null===(o=null==e?void 0:e.relationships)||void 0===o?void 0:o["recipe-provider"])||void 0===s?void 0:s.data:"personal",j_.required),attributes:this.fb.group({title:new Ay(e.attributes.title,j_.required),"media-url":new Ay(e.attributes["media-url"]),"number-of-guests":new Ay(e.guests?e.guests:4,[j_.min(1),j_.max(999)]),description:new Ay(e.attributes.description),"preparation-time":new Ay(e.attributes["preparation-time"]?e.attributes["preparation-time"]:""),"preheating-time":new Ay(e.attributes["preheating-time"]),"cooking-time":new Ay(e.attributes["cooking-time"]),"resting-time":new Ay(e.attributes["resting-time"]),difficulty:new Ay(e.attributes.difficulty?e.attributes.difficulty:1,j_.required)}),"recipe-type":new Ay(e.relationships["recipe-type"].data.id?e.relationships["recipe-type"].data:null,j_.required),ingredients:this.initIngredientFormArray(e),steps:this.initStepFormArray(e)}),this.initIsLocalImage(),this.formSubscription=this.recipeForm.valueChanges.subscribe(()=>{this.cdr.detectChanges()})}initIngredientFormArray(e){const t=this.fb.array([]);return e.relationships.ingredients.data.forEach(e=>{t.push(this.fb.group({id:new Ay(e.id),attributes:this.fb.group({quantity:new Ay(e.attributes.quantity,j_.required),unit:new Ay(e.attributes.unit,j_.required),name:new Ay(e.attributes.name,j_.required),importance:new Ay(e.attributes.importance,j_.nullValidator),"picture-url":new Ay(e.attributes["picture-url"])})}))}),t}initStepFormArray(e){const t=this.fb.array([]);return e.steps.forEach(e=>t.push(this.fb.group({id:new Ay(e.id),attributes:this.fb.group({"step-number":new Ay(e.attributes["step-number"]),description:new Ay(e.attributes.description)})}))),t}updateRecipeAttributes(){return this.recipe.attributes=Object.assign(Object.assign({},this.recipe.attributes),this.recipeForm.getRawValue().attributes),this.recipe.save({include:["ingredients","recipe-steps","recipe-status","recipe-provider","recipe-type","tags"]}).pipe(D(e=>{if(e&&e.data){const t=this.recipeService.new();return t.fill(e),t}return this.recipe}))}updateRecipeRelationShips(e){const t=this.recipeForm.getRawValue(),i=[];if(this.recipeForm.get("ingredients").dirty){const n=this.ingredientService.createOrUpdateIngredients(e,t.ingredients);i.push(this.ingredientService.upsertIngredientList(n))}if(this.deleteIngredientsList.length>0&&i.push(this.ingredientService.deleteIngredientList(this.deleteIngredientsList)),this.recipeForm.get("steps").dirty){const n=this.recipeStepsService.formToStepsMapper(e,t.steps);i.push(this.recipeStepsService.createOrUpdateRelatedSteps(n))}return this.deleteStepsList.length>0&&i.push(this.recipeStepsService.deleteStepList(this.deleteStepsList)),Sg(i).pipe(D(()=>e))}relationshipsChanged(){const e=this.recipeForm.get("ingredients").dirty||this.deleteIngredientsList.length>0,t=this.recipeForm.get("steps").dirty||this.deleteStepsList.length>0;return e||t}upsertRecipe(){var e;return delete this.recipe.attributes["ingredients-str"],delete this.recipe.attributes.suggested,delete this.recipe.attributes.popularity,this.handleRecipeStatusWorkflow(),this.setRelationShipIfFormPartIsDirty("recipe-type"),this.setRelationShipIfFormPartIsDirty("recipe-status"),this.setRelationShipIfFormPartIsDirty("recipe-provider"),this.customSubmitCallback?(this.recipe.attributes=Object.assign(Object.assign({},this.recipe.attributes),this.recipeForm.getRawValue().attributes),this.recipeChange.emit(this.recipe),this.recipeForm.get("attributes").markAsDirty(),this.isSubmiting=!1,Au(null)):(null===(e=this.recipeForm.get("attributes"))||void 0===e?void 0:e.dirty)?this.updateRecipeAttributes().pipe(ug(e=>(e&&(this.recipe=e),this.relationshipsChanged()?this.updateRecipeRelationShips(this.recipe):Au(e)))):this.updateRecipeRelationShips(this.recipe)}setRelationShipIfFormPartIsDirty(e){var t;(null===(t=this.recipeForm.get(`${e}`))||void 0===t?void 0:t.dirty)&&(this.recipeForm.get("attributes").markAsDirty(),this.recipe.addRelationship(this.recipeForm.get(`${e}`).value,`${e}`))}handleEmition(e){this.recipeChange.emit(e||this.recipe),this.recipeForm.markAsPristine()}handleRecipeStatusWorkflow(){this.isAdmin||this.customSubmitCallback||(this.recipeForm.get("recipe-status").patchValue(this.statusService.submittedValue),this.recipeForm.get("recipe-status").markAsDirty());const e=this.recipeForm.get("attributes").get("media-url");this.recipe.attributes["media-url"]||e.value||e.patchValue("https://storage.googleapis.com/assets.miam.tech/generic/personal-recipes/default_img_personal_recipe.jpg")}initIsLocalImage(){var e,t,i,n;null!=(null===(t=null===(e=this.recipeForm)||void 0===e?void 0:e.get("attributes"))||void 0===t?void 0:t.get("media-url").value)&&(this.isLocalImage=null===(n=null===(i=this.recipeForm)||void 0===i?void 0:i.get("attributes"))||void 0===n?void 0:n.get("media-url").value.startsWith("data:image"))}}return e.\u0275fac=function(t){return new(t||e)(Bo(ub),Bo(Ug),Bo($a),Bo(Gg),Bo(pv),Bo(Hf),Bo(Xg),Bo(Ff),Bo(Kv),Bo(qg),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-form"]],inputs:{recipe:"recipe",secondaryActionText:"secondaryActionText",primaryActionText:"primaryActionText",secondaryButtonDisable:"secondaryButtonDisable",customSubmitCallback:"customSubmitCallback"},outputs:{recipeChange:"recipeChange",canceled:"canceled"},features:[yo,Qt],decls:6,vars:2,consts:[["class","form-container",3,"formGroup",4,"ngIf"],[1,"button-row"],[1,"m-button-secondary",3,"click"],[1,"m-button-primary",3,"disabled","click"],[1,"form-container",3,"formGroup"],[3,"formGroup"],["ngDefaultControl","",1,"m-title-text-input",3,"formControl"],["placeholder",""],[1,"row-container"],[1,"input-container"],["ngDefaultControl","",3,"formControl","imageUrl","photoMode"],["buttonText",""],[1,"recipe-form__guests","m-default-card"],[1,"recipe-form__guests__label"],["ngDefaultControl","","formControlName","number-of-guests","counter","4","minRange","0","maxRange","999",3,"formControl"],[1,"recipe-form__attibutes"],["ngDefaultControl","","labelPath","attributes.name",3,"options","formControl"],[1,"recipe-form__attibutes__sliders"],[1,"recipe-form__attibutes__slider"],["ngDefaultControl","",3,"steps","formControl","icons"],["class","recipe-form__attibutes__times",4,"ngIf"],["ngDefaultControl","","formArrayName","ingredients",3,"ingredientMode","list","deleteId"],["ngDefaultControl","","formArrayName","steps",3,"list","deleteId"],["class","input-container",4,"ngIf"],[1,"recipe-form__attibutes__times"],["ngDefaultControl","",3,"formControl","icon"],["title",""],["cdkTextareaAutosize","","cdkAutosizeMinRows","20","cdkAutosizeMaxRows","50",1,"m-input",3,"formControl"]],template:function(e,t){1&e&&(Fo(0,oH,29,20,"form",0),Vo(1,"div",1),Vo(2,"button",2),Jo("click",(function(){return t.cancel()})),fs(3,"Cancel"),Zo(),Vo(4,"button",3),Jo("click",(function(){return t.submit()})),fs(5," Save the recipe "),Zo(),Zo()),2&e&&(jo("ngIf",t.recipeForm),Dr(4),jo("disabled",(null==t.recipeForm?null:t.recipeForm.invalid)||!(null!=t.recipeForm&&t.recipeForm.dirty)||t.isSubmiting))},directives:[Zd,Hy,L_,Zy,pP,E_,M_,Ny,$L,nO,qy,sP,gI,KD,Yy,_I],pipes:[au],styles:[".form-container{padding:24px}.form-container .row-container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center}.form-container .row-container .input-container{margin:0 20px}.form-container .time-input-container{gap:8px}.form-container .input-container,.form-container .time-input-container{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:space-evenly}.form-container .input-container{min-width:320px;align-items:flex-start;padding-bottom:10px}.form-container .input-container .m-input-text{min-height:52px;border-radius:var(--m-border-radius);font-size:16px;padding:0 10px;border:1px solid var(--m-color-secondary-light);background-color:var(--m-color-grey-light);outline:0;transition:var(--m-default-transition)}.form-container .input-container .m-input-text:focus{transition:var(--m-default-transition);height:50px;border:2px solid var(--m-color-secondary)}.form-container .input-container .m-label{margin-top:5px;font-size:16px;font-weight:800;line-height:1.25;letter-spacing:normal}.button-row{width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly}.recipe-form__guests{display:flex;-moz-column-gap:16px;column-gap:16px;justify-content:center;align-items:center}.recipe-form__guests .recipe-form__guests__label{font-weight:700;color:var(--m-color-slate)}.recipe-form__attibutes{display:flex;flex-direction:column;flex-wrap:wrap;row-gap:16px;flex:2}.recipe-form__attibutes .recipe-form__attibutes__sliders{display:flex;flex-wrap:wrap}.recipe-form__attibutes .recipe-form__attibutes__sliders .recipe-form__attibutes__slider{flex:1;display:flex}.recipe-form__attibutes .recipe-form__attibutes__sliders .recipe-form__attibutes__slider ng-miam-slider{width:300px}.recipe-form__attibutes .recipe-form__attibutes__times{display:flex;flex-wrap:wrap;gap:26px}"],encapsulation:2,changeDetection:0}),e})();function cH(e,t){if(1&e&&Qo(0,"ng-miam-icon",16),2&e){const e=es(2);jo("width",128)("height",128)("iconName",e.icon.RecipeHelp)}}function lH(e,t){if(1&e&&Qo(0,"ng-miam-icon",16),2&e){const e=es(2);jo("width",95)("height",95)("iconName",e.icon.RecipeHelp)}}function dH(e,t){if(1&e){const e=Xo();Wo(0),Vo(1,"div",1),Jo("click",(function(){return gi(e),es().onClose()})),Zo(),Vo(2,"div",2),Vo(3,"div",3),Fo(4,cH,1,3,"ng-miam-icon",4),Fo(5,lH,1,3,"ng-template",null,5,rl),Zo(),Vo(7,"div",6),fs(8,"Shop using recipes"),Zo(),Vo(9,"div",7),fs(10," Now you can shop using recipes and add ingredients in 1 click! "),Zo(),Vo(11,"div",8),fs(12,"How does it work?"),Zo(),Vo(13,"div",9),Vo(14,"div",10),fs(15,"1"),Zo(),Vo(16,"div",11),fs(17," Find the details of the recipe by clicking on the title "),Zo(),Zo(),Vo(18,"div",9),Vo(19,"div",10),fs(20,"2"),Zo(),Vo(21,"div",11),fs(22," Adjust the number of guests if necessary "),Zo(),Zo(),Vo(23,"div",9),Vo(24,"div",10),fs(25,"3"),Zo(),Vo(26,"div",11),Vo(27,"span"),fs(28,"Click on Select this meal"),Zo(),Vo(29,"span",12),Qo(30,"ng-miam-icon",13),Zo(),Vo(31,"span"),fs(32,"and adjust the products if necessary"),Zo(),Zo(),Zo(),Vo(33,"div",9),Vo(34,"div",10),fs(35,"4"),Zo(),Vo(36,"div",11),Vo(37,"span"),fs(38,"That's it, it's added! Find the details"),Zo(),Vo(39,"span"),fs(40),Zo(),Zo(),Zo(),Vo(41,"div",14),Vo(42,"button",15),Jo("click",(function(){return gi(e),es().onClose()})),fs(43," Fermer "),Zo(),Zo(),Zo(),Uo()}if(2&e){const e=Ho(6),t=es();Dr(4),jo("ngIf",t.isMobile)("ngIfElse",e),Dr(26),jo("width",14)("height",14)("iconName",t.icon.Cart),Dr(10),vs(t.stringDetailLocation)}}let uH=(()=>{class e{constructor(e,t,i,n){this.cdr=e,this.recipesService=t,this.mediaMatcher=i,this.context=n,this.stringDetailLocation="dans l'onglet Mes Repas",this.close=new Bc,this.icon=Iv,this.isMobile=!1,this.isDisplayed=!1,this.subscriptions=[],this.isMobile=this.mediaMatcher.matchMedia("(min-width: 1023px)").matches}ngOnInit(){this.subscriptions.push(this.recipesService.displayHelper$.subscribe(e=>{this.isDisplayed=e,this.context.globalScrollableElement.style.overflow=e?"hidden":"initial",this.cdr.detectChanges()}))}onClose(){this.recipesService.toggleHelper(),this.close.emit()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(Kv),Bo(i_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-helper"]],inputs:{stringDetailLocation:"stringDetailLocation"},outputs:{close:"close"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"miam-shadow-overlay",3,"click"],[1,"miam-recipe-helper"],[1,"miam-recipe-helper__header"],[3,"width","height","iconName",4,"ngIf","ngIfElse"],["mobileIcon",""],[1,"miam-recipe-helper__title"],[1,"miam-recipe-helper__description"],[1,"miam-recipe-helper__how"],[1,"miam-recipe-helper__step"],[1,"miam-recipe-helper__step__number"],[1,"miam-recipe-helper__step__description"],[1,"m-button-primary","miam-recipe-helper__step__icon"],["primaryColor","var(--m-color-white)",3,"width","height","iconName"],[1,"miam-recipe-helper__actions"],[1,"m-button-secondary",3,"click"],[3,"width","height","iconName"]],template:function(e,t){1&e&&Fo(0,dH,44,6,"ng-container",0),2&e&&jo("ngIf",t.isDisplayed)},directives:[Zd,VS],styles:[".miam-shadow-overlay{position:fixed;background:var(--m-color-black);z-index:var(--m-z-index-modal-overlay);opacity:.6;top:0;left:0;width:100vw;height:100vh;-webkit-tap-highlight-color:transparent}.miam-recipe-helper{z-index:var(--m-z-index-modal);position:fixed;height:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;transform:translate(-50%,-50%);top:50%;left:50%;overflow-y:auto;overflow-x:hidden;border-radius:8px;background-color:var(--m-color-white);display:flex;flex-direction:column;padding:32px}.miam-recipe-helper .miam-recipe-helper__title{position:-webkit-sticky;position:sticky;top:-32px;padding-top:32px;font-size:28px;color:var(--m-color-primary);text-align:center;background-color:var(--m-color-white)}.miam-recipe-helper .miam-recipe-helper__description{padding-top:32px;text-align:justify;font-size:17px}.miam-recipe-helper .miam-recipe-helper__how{margin-top:32px;font-size:20px}.miam-recipe-helper .miam-recipe-helper__step{margin:26px 0 15px;display:flex;font-size:17px}.miam-recipe-helper .miam-recipe-helper__step .miam-recipe-helper__step__number{max-height:24px;min-width:24px;margin-right:13px;background-color:var(--m-color-primary);border-radius:50%;color:var(--m-color-white);text-align:center}.miam-recipe-helper .miam-recipe-helper__step .miam-recipe-helper__step__description{display:flex;flex-wrap:wrap}.miam-recipe-helper .miam-recipe-helper__step .miam-recipe-helper__step__description .miam-recipe-helper__step__icon{margin:0 8px;height:24px;width:24px}.miam-recipe-helper .miam-recipe-helper__actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.miam-recipe-helper .miam-recipe-helper__actions .miam-recipe-helper__actions__moreInfo{margin-left:16px}@media (max-width:1022px){.miam-recipe-helper{position:fixed;top:20vh;z-index:var(--m-z-index-modal);-webkit-animation-name:openBottomHelp;animation-name:openBottomHelp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-timing-function:cubic-bezier(.075,.82,.165,1);animation-timing-function:cubic-bezier(.075,.82,.165,1);height:80vh;width:100vw;right:0;left:0;background-color:#fff;border-radius:32px 32px 0 0;transform:none;padding:16px 16px 150px}@-webkit-keyframes openBottomHelp{0%{top:100vh}to{top:20vh}}@keyframes openBottomHelp{0%{top:100vh}to{top:20vh}}.miam-recipe-helper .miam-recipe-helper__title{font-size:20px;padding-top:16px;text-align:unset}.miam-recipe-helper .miam-recipe-helper__how{margin:24px 0;font-size:21px}.miam-recipe-helper .miam-recipe-helper__description{font-size:16px;padding-top:8px}.miam-recipe-helper .miam-recipe-helper__description .miam-recipe-helper__step__number{height:24px;display:flex;justify-content:center;align-items:flex-end}.miam-recipe-helper .miam-recipe-helper__step{font-size:15px;margin:8px;display:grid;grid-template-columns:24px 1fr;gap:8px}.miam-recipe-helper .miam-recipe-helper__step .miam-recipe-helper__step__number{height:24px;display:flex;justify-content:center;align-items:center}.miam-recipe-helper .miam-recipe-helper__actions{position:fixed;bottom:0;right:0;left:0;z-index:8;background-color:var(--m-color-white);margin:0;display:flex;align-items:center;justify-content:center}}"],encapsulation:2,changeDetection:0}),e})();function mH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-modal",1),Jo("close",(function(){return gi(e),es().closeTagsCreator()}))("cancel",(function(){return gi(e),es().closeTagsCreator()}))("confirm",(function(){return gi(e),es().createTag()})),Vo(1,"div",2),Vo(2,"label",3),fs(3,"tradof#Nom du tag#"),Zo(),Vo(4,"input",4),Jo("ngModelChange",(function(t){return gi(e),es().tagName=t})),Zo(),Zo(),Zo()}if(2&e){const e=es();jo("isAngularComponent",!0)("noHeaderMode",!1)("expanded",!0)("confirmButtonIsLoading",e.loading),Dr(4),jo("ngModel",e.tagName)}}let pH=(()=>{class e{constructor(e,t){this.tagsService=e,this.cdr=t,this.display=!1,this.close=new Bc,this.submit=new Bc,this.tagName="",this.loading=!1}closeTagsCreator(){this.close.emit(),this.cdr.detectChanges()}createTag(){this.loading=!0,this.cdr.detectChanges(),this.tag=this.tagsService.new(),this.tag.attributes=Object.assign(Object.assign({},this.tag.attributes),{"tag-type-id":this.currentTagType,name:this.tagName}),this.tag.save().subscribe(e=>{this.tag.id=e.data.id,this.submit.emit(this.tag),this.loading=!1,this.cdr.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(Bo(uv),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tags-creator"]],inputs:{currentRecipe:"currentRecipe",currentTagType:"currentTagType",display:"display"},outputs:{close:"close",submit:"submit"},decls:1,vars:1,consts:[["title","tradof#Nouveau Tag#","cancelButtonText","Cancel","confirmButtonText","tradof#Cr\xe9er#",3,"isAngularComponent","noHeaderMode","expanded","confirmButtonIsLoading","close","cancel","confirm",4,"ngIf"],["title","tradof#Nouveau Tag#","cancelButtonText","Cancel","confirmButtonText","tradof#Cr\xe9er#",3,"isAngularComponent","noHeaderMode","expanded","confirmButtonIsLoading","close","cancel","confirm"],[1,"tags-creator"],["for","tag-name"],["type","text","id","tag-name","name","tag-name",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&Fo(0,mH,5,5,"ng-miam-modal",0),2&e&&jo("ngIf",t.display)},directives:[Zd,vD,E_,M_,Fy],styles:[".tags-creator{display:flex;flex-direction:column;margin:24px;padding:4px 12px;font-size:16px}.tags-creator label{margin:0 0 8px 8px}.tags-creator input{width:100%;height:32px;border:1px solid var(--m-color-grey07);border-radius:var(--m-border-radius);padding:5px}.tags-creator input:focus{outline:none;border:1px solid var(--miam-color-primary)}"],encapsulation:2,changeDetection:0}),e})();function hH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Ajoutez des tags \xe0 la recette#"),Zo())}function gH(e,t){1&e&&(Vo(0,"span"),fs(1,"Cancel"),Zo())}function fH(e,t){1&e&&(Vo(0,"span"),fs(1,"Add"),Zo())}function vH(e,t){if(1&e){const e=Xo();Vo(0,"div",12),Jo("click",(function(){gi(e);const i=t.$implicit;return es(2).toggleTag(i)})),fs(1),Zo()}if(2&e){const e=t.$implicit;jo("ngClass",es(2).tagClass(e)),Dr(1),_s(" ",e.attributes.name," ")}}function _H(e,t){if(1&e){const e=Xo();Vo(0,"div",13),Jo("click",(function(){return gi(e),es(2).displayTagsCreator(!0)})),Qo(1,"ng-miam-icon",14),Zo()}if(2&e){const e=es(2);Dr(1),jo("iconName",e.icon.Plus)}}const yH=function(e){return{active:e}};function bH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-modal",2),Jo("close",(function(){return gi(e),es().closeTagsSelector()}))("cancel",(function(){return gi(e),es().closeTagsSelector()}))("confirm",(function(){return gi(e),es().confirm()})),Fo(1,hH,2,0,"ng-template",null,3,rl),Fo(3,gH,2,0,"ng-template",null,4,rl),Fo(5,fH,2,0,"ng-template",null,5,rl),Vo(7,"div",6),Vo(8,"div",7),Vo(9,"div",8),Jo("click",(function(){gi(e);const t=es();return t.switchTab(t.mealTypeTags)})),fs(10," Type of meal "),Zo(),Vo(11,"div",8),Jo("click",(function(){gi(e);const t=es();return t.switchTab(t.ingredientCategoryTags)})),fs(12," Ingredient family "),Zo(),Vo(13,"div",8),Jo("click",(function(){gi(e);const t=es();return t.switchTab(t.equipmentTags)})),fs(14," Equipment "),Zo(),Vo(15,"div",8),Jo("click",(function(){gi(e);const t=es();return t.switchTab(t.dietTags)})),fs(16," Diet "),Zo(),Zo(),Vo(17,"div",9),Fo(18,vH,2,2,"div",10),Fo(19,_H,2,1,"div",11),Zo(),Zo(),Zo()}if(2&e){const e=es();jo("isAngularComponent",!0)("noHeaderMode",!1)("expanded",!0),Dr(9),jo("ngClass",kc(9,yH,"meal_type"===(null==e.selectedTabTags[0]?null:e.selectedTabTags[0].tagType))),Dr(2),jo("ngClass",kc(11,yH,"ingredient_category"===(null==e.selectedTabTags[0]?null:e.selectedTabTags[0].tagType))),Dr(2),jo("ngClass",kc(13,yH,"equipment"===(null==e.selectedTabTags[0]?null:e.selectedTabTags[0].tagType))),Dr(2),jo("ngClass",kc(15,yH,"diet"===(null==e.selectedTabTags[0]?null:e.selectedTabTags[0].tagType))),Dr(3),jo("ngForOf",e.selectedTabTags),Dr(1),jo("ngIf",e.isAdmin)}}function wH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-tags-creator",16),Jo("close",(function(){return gi(e),es(2).displayTagsCreator(!1)}))("submit",(function(t){return gi(e),es(2).addCreatedTag(t)})),Zo()}if(2&e){const e=es(2);jo("display",e.tagsCreatorDisplayed)("currentRecipe",e.currentRecipe)("currentTagType",null==e.selectedTabTags[0]?null:e.selectedTabTags[0].tagType)}}function xH(e,t){1&e&&Fo(0,wH,1,3,"ng-miam-tags-creator",15),2&e&&jo("ngIf",es().display)}let CH=(()=>{class e{constructor(e,t,i){this.tagsService=e,this.userService=t,this.cdr=i,this.currentTags=[],this.display=!1,this.savedTags=new Bc,this.close=new Bc,this.mealTypeTags=[],this.ingredientCategoryTags=[],this.equipmentTags=[],this.dietTags=[],this.selectedTags=[],this.selectedTabTags=[],this.tagsArefetched=!1,this.icon=Iv,this.tagsCreatorDisplayed=!1,this.subscriptions=[]}ngOnInit(){const e={size:30,number:1};this.subscriptions.push(Sg([this.tagsService.all({page:e,remotefilter:{tag_type:"diet"}}).pipe(ig(e=>e.is_loading),um(e=>{this.dietTags=e.data})),this.tagsService.all({page:e,remotefilter:{tag_type:"equipment"}}).pipe(ig(e=>e.is_loading),um(e=>{this.equipmentTags=e.data})),this.tagsService.all({page:e,remotefilter:{tag_type:"meal_type"}}).pipe(ig(e=>e.is_loading),um(e=>{this.mealTypeTags=e.data,this.selectedTabTags=e.data})),this.tagsService.all({page:e,remotefilter:{tag_type:"ingredient_category"}}).pipe(ig(e=>e.is_loading),um(e=>{this.ingredientCategoryTags=e.data}))]).subscribe(()=>{this.tagsArefetched=!0})),this.subscriptions.push(this.userService.isAdmin.subscribe(e=>{this.isAdmin=e,this.cdr.detectChanges()}))}ngOnChanges(e){this.selectedTabTags=[...this.mealTypeTags],this.selectedTags=[...this.currentTags],this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}switchTab(e){this.selectedTabTags=[...e],this.cdr.detectChanges()}closeTagsSelector(){this.close.emit(),this.cdr.detectChanges()}tagIsSelected(e){return-1!==this.selectedTags.findIndex(t=>t.id===e.id)}toggleTag(e){this.tagIsSelected(e)?this.selectedTags.splice(this.selectedTags.findIndex(t=>t.id===e.id),1):this.selectedTags.push(e)}tagClass(e){return{active:this.tagIsSelected(e),[e.tagType]:!0}}confirm(){this.savedTags.emit(this.selectedTags),this.closeTagsSelector()}displayTagsCreator(e){this.tagsCreatorDisplayed=e,this.cdr.detectChanges()}addCreatedTag(e){"meal_type"===e.tagType?(this.mealTypeTags.push(e),this.switchTab(this.mealTypeTags)):"ingredient_category"===e.tagType?(this.ingredientCategoryTags.push(e),this.switchTab(this.ingredientCategoryTags)):"equipment"===e.tagType?(this.equipmentTags.push(e),this.switchTab(this.equipmentTags)):"diet"===e.tagType&&(this.dietTags.push(e),this.switchTab(this.dietTags)),this.toggleTag(e),this.displayTagsCreator(!1)}}return e.\u0275fac=function(t){return new(t||e)(Bo(uv),Bo(Ug),Bo($a))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-tags-selector"]],inputs:{currentRecipe:"currentRecipe",currentTags:"currentTags",display:"display"},outputs:{savedTags:"savedTags",close:"close"},features:[Qt],decls:3,vars:2,consts:[[3,"isAngularComponent","noHeaderMode","expanded","close","cancel","confirm",4,"ngIf","ngIfElse"],["tagsCreator",""],[3,"isAngularComponent","noHeaderMode","expanded","close","cancel","confirm"],["title",""],["cancelButtonText",""],["confirmButtonText",""],[1,"tags-selector"],[1,"tags-selector__selectors"],[1,"tags-selector__selector",3,"ngClass","click"],[1,"tags-selector__tags"],["class","tags-selector__tag",3,"ngClass","click",4,"ngFor","ngForOf"],["class","tags-selector__tag",3,"click",4,"ngIf"],[1,"tags-selector__tag",3,"ngClass","click"],[1,"tags-selector__tag",3,"click"],[3,"iconName"],[3,"display","currentRecipe","currentTagType","close","submit",4,"ngIf"],[3,"display","currentRecipe","currentTagType","close","submit"]],template:function(e,t){if(1&e&&(Fo(0,bH,20,17,"ng-miam-modal",0),Fo(1,xH,1,1,"ng-template",null,1,rl)),2&e){const e=Ho(2);jo("ngIf",t.display&&!t.tagsCreatorDisplayed)("ngIfElse",e)}},directives:[Zd,vD,Hd,Nd,VS,pH],styles:[".tags-selector{margin:0 24px}.tags-selector .tags-selector__selectors{display:flex;flex-direction:row}.tags-selector .tags-selector__selectors .tags-selector__selector{min-width:200px;text-align:center;padding:8px;font-size:16px;color:var(--m-color-grey03);border-bottom:1px solid var(--m-color-grey07);cursor:pointer}.tags-selector .tags-selector__selectors .tags-selector__selector.active{color:var(--m-color-primary);font-weight:700;border-bottom:2px solid var(--m-color-primary)}.tags-selector .tags-selector__tags{display:flex;flex-flow:row wrap;min-height:200px}.tags-selector .tags-selector__tags .tags-selector__tag{display:flex;align-items:center;margin:8px;height:32px;padding:4px 12px;font-size:16px;border-radius:var(--m-border-radius-pill);background-color:var(--m-color-white);border:1px solid var(--m-color-grey07);cursor:pointer}.tags-selector .tags-selector__tags .tags-selector__tag.active{border:none;background-color:var(--m-color-primary-light)}.tags-selector .tags-selector__tags .tags-selector__tag.active.meal_type{background-color:var(--m-color-tag-meal-type)}.tags-selector .tags-selector__tags .tags-selector__tag.active.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.tags-selector .tags-selector__tags .tags-selector__tag.active.equipment{background-color:var(--m-color-tag-equipment)}.tags-selector .tags-selector__tags .tags-selector__tag.active.diet{background-color:var(--m-color-tag-diet)}"],encapsulation:2,changeDetection:0}),e})();const kH=["topAnchor"],AH=["stepperLinks"],SH=["step"];function EH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Titre de la recette#"),Zo())}function DH(e,t){if(1&e){const e=Xo();Vo(0,"div",53),Vo(1,"span",54),fs(2),Zo(),Vo(3,"ng-miam-icon",55),Jo("click",(function(){gi(e);const i=t.$implicit;return es(3).removeTag(i)})),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es(3);jo("ngClass",i.tagClass(e)),Dr(2),vs(e.attributes.name),Dr(1),jo("iconName",i.icon.Clear)}}function IH(e,t){if(1&e){const e=Xo();Vo(0,"div",48),Vo(1,"span",49),fs(2,"Tags"),Zo(),Vo(3,"div",50),Fo(4,DH,4,3,"div",51),Zo(),Vo(5,"button",4),Jo("click",(function(){return gi(e),es(2).displayTagsSelector(!0)})),Qo(6,"ng-miam-icon",52),Vo(7,"span"),fs(8,"Add"),Zo(),Zo(),Zo()}if(2&e){const e=es(2);Dr(4),jo("ngForOf",null==e.recipe.relationships.tags?null:e.recipe.relationships.tags.data),Dr(2),jo("iconName",e.icon.Plus)}}function OH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Modifier la photo (2MB max)#"),Zo())}function PH(e,t){1&e&&(Wo(0),Fo(1,OH,2,0,"ng-template",null,56,rl),Uo())}function TH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Ajouter une photo (2MB max)#"),Zo())}function MH(e,t){1&e&&Fo(0,TH,2,0,"ng-template",null,56,rl)}function LH(e,t){if(1&e){const e=Xo();Vo(0,"input",57),Jo("input",(function(t){return gi(e),es(2).updateImage(t)})),Zo()}if(2&e){const e=es(2);var i=null;jo("value",e.isLocalImage?"":null==e.recipeForm||null==(i=e.recipeForm.get("attributes"))?null:i.get("media-url").value)}}function RH(e,t){1&e&&(Vo(0,"span"),fs(1,"Preparation time"),Zo())}function zH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Temps de cuisson#"),Zo())}function FH(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Temps de repos#"),Zo())}function HH(e,t){if(1&e&&(Vo(0,"div",58),Vo(1,"ng-miam-time-picker",59),Fo(2,RH,2,0,"ng-template",null,60,rl),Zo(),Vo(4,"ng-miam-time-picker",59),Fo(5,zH,2,0,"ng-template",null,60,rl),Zo(),Vo(7,"ng-miam-time-picker",59),Fo(8,FH,2,0,"ng-template",null,60,rl),Zo(),Zo()),2&e){const e=es(2);var i=null,n=null,r=null;Dr(1),jo("formControl",null==e.recipeForm||null==(i=e.recipeForm.get("attributes"))?null:i.get("preparation-time"))("icon",e.icon.Time),Dr(3),jo("formControl",null==e.recipeForm||null==(n=e.recipeForm.get("attributes"))?null:n.get("cooking-time"))("icon",e.icon.Hot),Dr(3),jo("formControl",null==e.recipeForm||null==(r=e.recipeForm.get("attributes"))?null:r.get("resting-time"))("icon",e.icon.Wait)}}const BH=function(e){return{active:e}};function jH(e,t){if(1&e){const e=Xo();Vo(0,"div",61),Vo(1,"button",62),Jo("click",(function(){return gi(e),es(2).toggleShowIngredient(!0)})),fs(2,"Ingredients"),Zo(),Vo(3,"button",62),Jo("click",(function(){return gi(e),es(2).toggleShowIngredient(!1)})),fs(4,"Preparation"),Zo(),Zo()}if(2&e){const e=es(2);Dr(1),jo("ngClass",kc(2,BH,e.showIngredient)),Dr(2),jo("ngClass",kc(4,BH,!e.showIngredient))}}function NH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-input",63),Jo("deleteId",(function(t){return gi(e),es(2).addToDeleteIngredientsList(t)}))("orderHasChanged",(function(){return gi(e),es(2).cdr.detectChanges()})),Zo()}if(2&e){const e=es(2);jo("isPersonal","personal"===(null==e.recipe.relationships["recipe-provider"]||null==e.recipe.relationships["recipe-provider"].data?null:e.recipe.relationships["recipe-provider"].data.id))("list",e.recipeForm.get("ingredients"))("ingredientMode",!0)("ingredientsPictures",e.ingredientsPictures)}}function VH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-list-input",64),Jo("deleteId",(function(t){return gi(e),es(2).addToDeleteStepsList(t)}))("orderHasChanged",(function(){return gi(e),es(2).cdr.detectChanges()})),Zo()}if(2&e){const e=es(2);jo("list",null==e.recipeForm?null:e.recipeForm.get("steps"))}}function ZH(e,t){if(1&e){const e=Xo();Wo(0,19),Wo(1,19),Vo(2,"div",20,21),Vo(4,"div",22),fs(5,"* required fields"),Zo(),Vo(6,"ng-miam-text-input",23),Fo(7,EH,2,0,"ng-template",null,24,rl),Zo(),Vo(9,"label",25),Vo(10,"span"),fs(11,"My recipe is..."),Zo(),Vo(12,"span",26),fs(13,"*"),Zo(),Zo(),Qo(14,"ng-miam-recipe-type-chooser",27),Vo(15,"div",28),Vo(16,"span",29),fs(17,"Number of people"),Zo(),Vo(18,"ng-miam-counter-input",30),Jo("counterChange",(function(t){return gi(e),es().changeGuest(t)})),Zo(),Zo(),Fo(19,IH,9,2,"div",31),Zo(),Vo(20,"div",20,21),Vo(22,"div",32),Vo(23,"div",33),Vo(24,"ng-miam-drag-drop-input",34),Jo("bigFileDropped",(function(){return gi(e),es().displayBigFileWarning(!0)}))("onFileDropped",(function(){return gi(e),es().displayBigFileWarning(!1)})),Fo(25,PH,3,0,"ng-container",35),Fo(26,MH,2,0,"ng-template",null,36,rl),Zo(),Fo(28,LH,1,1,"input",37),Zo(),Vo(29,"div",38),Vo(30,"h1",39),fs(31),Zo(),Vo(32,"label"),fs(33,"Description of my recipe"),Zo(),Qo(34,"textarea",40),Vo(35,"div",41),fs(36),Vo(37,"span"),fs(38,"/ 250"),Zo(),Zo(),Zo(),Zo(),Fo(39,HH,10,6,"div",42),Vo(40,"div",43),Vo(41,"label"),fs(42,"Difficulty level of the recipe"),Zo(),Qo(43,"ng-miam-slider",44),Zo(),Zo(),Uo(),Vo(44,"div",20,21),Fo(46,jH,5,6,"div",45),Fo(47,NH,1,4,"ng-miam-list-input",46),Fo(48,VH,1,1,"ng-miam-list-input",47),Zo(),Uo()}if(2&e){const e=Ho(27),t=es();var i=null,n=null,r=null,a=null,o=null,s=null,c=null,l=null,d=null,u=null,m=null,p=null,h=null;jo("formGroup",t.recipeForm),Dr(1),jo("formGroup",null==t.recipeForm?null:t.recipeForm.get("attributes")),Dr(5),jo("formControl",null==t.recipeForm||null==(i=t.recipeForm.get("attributes"))?null:i.get("title")),Dr(8),jo("formControl",null==t.recipeForm?null:t.recipeForm.get("recipe-type")),Dr(4),jo("counter",null==t.recipeForm||null==(n=t.recipeForm.get("attributes"))?null:n.get("number-of-guests").value),Dr(1),jo("ngIf",t.displayTags),Dr(5),jo("formControl",null==t.recipeForm||null==(r=t.recipeForm.get("attributes"))?null:r.get("media-url"))("imageUrl",null==t.recipeForm||null==(a=t.recipeForm.get("attributes"))||null==(o=a.get("media-url"))?null:o.value)("photoMode",!0)("bigImageWarning",t.bigImageWarning),Dr(1),jo("ngIf",(null==t.recipeForm||null==(s=t.recipeForm.get("attributes"))||null==(c=s.get("media-url"))||null==c.value?null:c.value.length)>0)("ngIfElse",e),Dr(3),jo("ngIf",t.isAdmin),Dr(3),vs(null==t.recipeForm||null==(l=t.recipeForm.get("attributes"))||null==(d=l.get("title"))?null:d.value),Dr(3),jo("formControl",null==t.recipeForm||null==(u=t.recipeForm.get("attributes"))?null:u.get("description")),Dr(2),_s("",(null==t.recipeForm||null==(m=t.recipeForm.get("attributes"))||null==(p=m.get("description"))||null==p.value?null:p.value.length)||0," "),Dr(3),jo("ngIf",t.recipeForm),Dr(4),jo("steps",t.dificulties)("formControl",null==t.recipeForm||null==(h=t.recipeForm.get("attributes"))?null:h.get("difficulty"))("icons",t.iconsDificulties),Dr(3),jo("ngIf",t.isMobile),Dr(1),jo("ngIf",!(t.isMobile&&!t.showIngredient)),Dr(1),jo("ngIf",!(t.isMobile&&t.showIngredient))}}function QH(e,t){1&e&&Qo(0,"ng-miam-loader")}function WH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-tags-selector",65),Jo("close",(function(){return gi(e),es().displayTagsSelector(!1)}))("savedTags",(function(t){return gi(e),es().addTags(t)})),Zo()}if(2&e){const e=es();jo("display",e.tagsSelectorDisplayed)("currentRecipe",e.recipe)("currentTags",null==e.recipe.relationships.tags?null:e.recipe.relationships.tags.data)}}function UH(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-modal",66),Jo("close",(function(){return gi(e),es().displayBigFileWarning(!1)}))("confirm",(function(){return gi(e),es().displayBigFileWarning(!1)})),Vo(1,"span",67),fs(2,"tradof#Votre image est trop lourde (la taille doit \xeatre inf\xe9rieure \xe0 2 Mo). Merci d\u2019en ajouter une plus l\xe9g\xe8re.#"),Zo(),Zo()}2&e&&jo("isAngularComponent",!0)("noHeaderMode",!1)("expanded",!0)}let YH=(()=>{class e extends sH{constructor(){super(...arguments),this.displayTags=!1,this.ingredientsPictures={visible:!1,editable:!1},this.currentStep=0,this.bigImageWarning=!1,this.showIngredient=!0,this.tagsSelectorDisplayed=!1,this.intersectionObservers=[]}ngAfterViewChecked(){this.intersectionObservers.length<3&&(this.isMobile=this.mediaMatcher.matchMedia("(max-width: 1023px)").matches,this.initOnScroll())}initOnScroll(){this.steps.toArray().length>1&&this.steps.toArray().forEach(e=>{const t=new IntersectionObserver(([e])=>{this.onScroll()},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});t.observe(e.nativeElement),this.intersectionObservers.push(t)})}onScroll(){this.stepperLinks&&this.steps.length>0&&this.steps.toArray().forEach((e,t)=>{const i=-this.topAnchor.nativeElement.getBoundingClientRect().top;i>=e.nativeElement.offsetTop-(this.stepperLinks.nativeElement.offsetHeight+10)&&i<e.nativeElement.offsetTop+e.nativeElement.offsetHeight-(this.stepperLinks.nativeElement.offsetHeight+10)&&(this.currentStep=t,this.cdr.detectChanges())})}scroolToAnchor(e){this.stepperLinks&&this.steps.length>0&&this.steps.toArray()[e].nativeElement.scrollIntoView({behavior:"smooth"})}changeGuest(e){var t,i,n,r,a,o;+e!==(null===(i=null===(t=this.recipeForm)||void 0===t?void 0:t.get("attributes"))||void 0===i?void 0:i.get("number-of-guests").value)&&(null===(r=null===(n=this.recipeForm)||void 0===n?void 0:n.get("attributes"))||void 0===r||r.get("number-of-guests").patchValue(+e),null===(o=null===(a=this.recipeForm)||void 0===a?void 0:a.get("attributes"))||void 0===o||o.get("number-of-guests").markAsDirty())}removeTag(e){const t=this.recipe.relationships.tags.data.findIndex(t=>t.id===e.id);t>-1&&this.recipe.relationships.tags.data.splice(t,1),this.recipeForm.markAsDirty(),this.cdr.detectChanges()}addTags(e){e.forEach(e=>{-1===this.recipe.relationships.tags.data.findIndex(t=>t.id===e.id)&&this.recipe.relationships.tags.data.push(e)}),this.recipeForm.markAsDirty(),this.cdr.detectChanges()}tagClass(e){return{[e.tagType]:!0}}displayBigFileWarning(e){this.bigImageWarning=e,this.initIsLocalImage(),this.cdr.detectChanges()}displayTagsSelector(e){this.tagsSelectorDisplayed=e,this.cdr.detectChanges()}toggleShowIngredient(e){this.showIngredient=e,this.cdr.detectChanges()}updateImage(e){var t,i;this.initIsLocalImage(),null===(i=null===(t=this.recipeForm)||void 0===t?void 0:t.get("attributes"))||void 0===i||i.get("media-url").setValue(e.target.value),this.recipeForm.markAsDirty(),this.cdr.detectChanges()}}return e.\u0275fac=function(t){return XH(t||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-stepper"]],viewQuery:function(e,t){var i;1&e&&(Kc(kH,!0),Kc(AH,!0),Kc(SH,!0)),2&e&&(Jc(i=el())&&(t.topAnchor=i.first),Jc(i=el())&&(t.stepperLinks=i.first),Jc(i=el())&&(t.steps=i))},inputs:{displayTags:"displayTags",ingredientsPictures:"ingredientsPictures"},features:[yo],decls:38,vars:18,consts:[[1,"miam-recipe-stepper__anchor"],["topAnchor",""],[1,"miam-recipe-stepper"],[1,"miam-recipe-stepper__padding"],[1,"m-button-secondary",3,"click"],["primaryColor","var(--m-color-primary)",3,"iconName"],[1,"miam-recipe-stepper__links"],["stepperLinks",""],[1,"miam-recipe-stepper__link",3,"ngClass","click"],[1,"miam-recipe-stepper__link__number"],[1,"m-body-typo","miam-recipe-stepper__link__name"],[1,"miam-recipe-stepper__link__divider"],[3,"formGroup",4,"ngIf","ngIfElse"],["loading",""],[1,"miam-recipe-stepper__footer"],[1,"m-button-secondary",3,"disabled","click"],[1,"m-button-primary",3,"disabled","click"],[3,"display","currentRecipe","currentTags","close","savedTags",4,"ngIf"],["title","tradof#Image trop volumineuse#","confirmButtonText","tradof#Fermer#",3,"isAngularComponent","noHeaderMode","expanded","close","confirm",4,"ngIf"],[3,"formGroup"],[1,"miam-recipe-stepper__section"],["step",""],[1,"miam-recipe-stepper__mandatory"],["ngDefaultControl","",1,"m-title-text-input",3,"formControl"],["placeholder",""],[1,"miam-recipe-stepper__type__label"],[1,"miam-recipe-stepper__type__label__mandatory"],["ngDefaultControl","",3,"formControl"],[1,"miam-recipe-stepper__section__guests","m-default-card"],[1,"miam-recipe-stepper__guests__label"],["ngDefaultControl","","formControlName","number-of-guests","minRange","1","maxRange","999",3,"counter","counterChange"],["class","miam-recipe-stepper__tags",4,"ngIf"],[1,"miam-recipe-stepper__section__row"],[1,"miam-recipe-stepper__picture"],["ngDefaultControl","",3,"formControl","imageUrl","photoMode","bigImageWarning","bigFileDropped","onFileDropped"],[4,"ngIf","ngIfElse"],["fileMode",""],["placeholder","tradof#L'image ne dispose d'aucun lien#","class","m-input",3,"value","input",4,"ngIf"],[1,"miam-recipe-stepper__row__description"],[1,"m-h1-typo"],["cdkTextareaAutosize","","cdkAutosizeMinRows","20","cdkAutosizeMaxRows","50","maxlength","250",1,"m-input",3,"formControl"],[1,"miam-recipe-stepper__description__counter"],["class","miam-recipe-stepper__section__times",4,"ngIf"],[1,"miam-recipe-stepper__attibutes__slider"],["ngDefaultControl","",3,"steps","formControl","icons"],["class","miam-recipe-stepper__mobile__buttons",4,"ngIf"],["ngDefaultControl","","formArrayName","ingredients",3,"isPersonal","list","ingredientMode","ingredientsPictures","deleteId","orderHasChanged",4,"ngIf"],["ngDefaultControl","","formArrayName","steps",3,"list","deleteId","orderHasChanged",4,"ngIf"],[1,"miam-recipe-stepper__tags"],[1,"miam-recipe-stepper__tags__title"],[1,"miam-recipe-stepper__tags__recap"],["class","miam-recipe-stepper__tag",3,"ngClass",4,"ngFor","ngForOf"],["primaryColor","var(--m-color-onyx)",3,"iconName"],[1,"miam-recipe-stepper__tag",3,"ngClass"],[1,"miam-recipe-stepper__tag__name"],["primaryColor","var(--m-color-grey01)",1,"miam-recipe-stepper__tag__icon",3,"iconName","click"],["buttonText",""],["placeholder","tradof#L'image ne dispose d'aucun lien#",1,"m-input",3,"value","input"],[1,"miam-recipe-stepper__section__times"],["ngDefaultControl","",3,"formControl","icon"],["title",""],[1,"miam-recipe-stepper__mobile__buttons"],[1,"m-button-secondary",3,"ngClass","click"],["ngDefaultControl","","formArrayName","ingredients",3,"isPersonal","list","ingredientMode","ingredientsPictures","deleteId","orderHasChanged"],["ngDefaultControl","","formArrayName","steps",3,"list","deleteId","orderHasChanged"],[3,"display","currentRecipe","currentTags","close","savedTags"],["title","tradof#Image trop volumineuse#","confirmButtonText","tradof#Fermer#",3,"isAngularComponent","noHeaderMode","expanded","close","confirm"],[1,"miam-recipe-stepper__picture__warning"]],template:function(e,t){if(1&e&&(Qo(0,"div",0,1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"button",4),Jo("click",(function(){return t.canceled.emit(null)})),Qo(5,"ng-miam-icon",5),Vo(6,"span"),fs(7,"Back"),Zo(),Zo(),Zo(),Vo(8,"div",6,7),Vo(10,"div",8),Jo("click",(function(){return t.scroolToAnchor(0)})),Vo(11,"div",9),fs(12,"1"),Zo(),Vo(13,"span",10),fs(14,"My recipe"),Zo(),Zo(),Qo(15,"div",11),Vo(16,"div",8),Jo("click",(function(){return t.scroolToAnchor(1)})),Vo(17,"div",9),fs(18,"2"),Zo(),Vo(19,"span",10),fs(20,"Description"),Zo(),Zo(),Qo(21,"div",11),Vo(22,"div",8),Jo("click",(function(){return t.scroolToAnchor(2)})),Vo(23,"div",9),fs(24,"3"),Zo(),Vo(25,"span",10),fs(26,"Ingredients & Steps"),Zo(),Zo(),Zo(),Qo(27,"div",3),Fo(28,ZH,49,23,"ng-container",12),Fo(29,QH,1,0,"ng-template",null,13,rl),Vo(31,"div",14),Vo(32,"button",15),Jo("click",(function(){return t.cancel()})),fs(33),Zo(),Vo(34,"button",16),Jo("click",(function(){return t.submit()})),fs(35),Zo(),Zo(),Zo(),Fo(36,WH,1,3,"ng-miam-tags-selector",17),Fo(37,UH,3,3,"ng-miam-modal",18)),2&e){const e=Ho(30);Dr(5),jo("iconName",t.icon.ChevronDown),Dr(5),jo("ngClass",kc(12,BH,0===t.currentStep)),Dr(6),jo("ngClass",kc(14,BH,1===t.currentStep)),Dr(6),jo("ngClass",kc(16,BH,2===t.currentStep)),Dr(6),jo("ngIf",t.recipeForm)("ngIfElse",e),Dr(4),jo("disabled",t.secondaryButtonDisable&&t.cantSubmit()),Dr(1),_s(" ",t.secondaryActionText," "),Dr(1),jo("disabled",t.cantSubmit()),Dr(1),_s(" ",t.primaryActionText," "),Dr(1),jo("ngIf",t.displayTags&&t.recipe),Dr(1),jo("ngIf",t.bigImageWarning)}},directives:[VS,Hd,Zd,L_,Zy,pP,E_,M_,Ny,gP,nO,qy,$L,sb,gI,Nd,_I,KD,Yy,$E,CH,vD],styles:['@charset "UTF-8";.miam-recipe-stepper__anchor{position:relative;bottom:0;height:250px;margin-top:-250px}.miam-recipe-stepper{display:flex;flex-direction:column;width:100%}.miam-recipe-stepper label{font-size:19px;line-height:24px}.miam-recipe-stepper label .miam-recipe-stepper__type__label__mandatory{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__padding{height:32px;width:100%;background-color:var(--m-color-unpure-white);position:relative}.miam-recipe-stepper .miam-recipe-stepper__padding button{position:absolute;left:40px;z-index:3;padding:8px 16px}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon{margin-left:0;padding-top:20px;height:16px;transform:rotate(90deg)}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon svg path:first-of-type{fill:none}.miam-recipe-stepper .miam-recipe-stepper__links{position:-webkit-sticky;position:sticky;top:0;z-index:3;background-color:var(--m-color-unpure-white);display:flex;width:100%;justify-content:space-evenly;align-items:center;padding:16px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links{justify-content:center;align-items:baseline;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{border-radius:64px;width:64px;height:64px;border:1px solid;font-style:normal;font-weight:700;font-size:32px;line-height:44px;display:flex;justify-content:center;align-items:center;color:var(--m-color-grey02)}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{width:40px;height:40px;font-size:22px;line-height:32px}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__name{padding-top:8px;color:var(--m-color-grey02)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__number{color:var(--m-color-unpure-white);border-color:var(--m-color-secondary);background-color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__name{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{height:1px;width:64px;background-color:var(--m-color-slate)}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{width:40px}}.miam-recipe-stepper .miam-recipe-stepper__section{position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;padding:84px 0;gap:64px;scroll-margin-top:175px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section{width:100vw;padding:24px 36px;justify-content:flex-start;gap:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{position:absolute;bottom:0;right:32px;color:var(--m-color-danger)}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{right:16px}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .m-input{min-width:unset;max-width:unset;display:flex;flex-direction:column-reverse;justify-content:flex-start;align-items:flex-start;background-color:transparent;border:none}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__input{max-width:90vw;min-width:90vw;border:1px solid var(--m-color-light-slate);border-radius:4px}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label.input__label__top,.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:not(.input__label__top){background-color:transparent;position:static;font-size:24px;color:var(--m-color-black);font-weight:700;transform:none;padding-bottom:16px}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:after{content:"*";color:var(--m-color-warning-text)}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{font-size:24px;color:var(--m-color-black);font-weight:700;padding-bottom:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{width:90vw;padding:16px 0}}.miam-recipe-stepper .miam-recipe-stepper__section:nth-child(2n){background-color:var(--m-color-primary-light)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-text-input .miam-text-input{background-color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-select-input .miam-select{background-color:var(--m-color-unpure-white);width:330px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{display:flex;gap:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{justify-content:center;align-items:center;flex-direction:column;width:90vw;margin:16px 0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags{display:flex;flex-direction:column;align-items:center}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__title{font-size:16px;font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap{max-width:80vw;margin:10px 8px;display:flex;flex-flow:row wrap;align-items:center}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag{display:flex;align-items:center;margin:6px;padding:8px 12px;background-color:var(--m-color-primary-light);border-radius:4px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.diet{background-color:var(--m-color-tag-diet)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__name{color:var(--m-color-grey01)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__icon .icon-container{margin:0 0 0 16px;cursor:pointer;-webkit-tap-highlight-color:transparent}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .m-button-secondary ng-miam-icon{margin:0 16px 0 0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{display:flex;width:100%;justify-content:center;flex-wrap:wrap;gap:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{width:100vw;gap:0}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description label{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:700px;height:150px;max-width:700px;resize:none}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description .miam-recipe-stepper__description__counter{color:var(--m-color-light-slate);margin:8px;text-align:end}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{display:flex;flex-direction:column;width:330px;gap:8px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-uploader{margin-bottom:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .m-input{margin-top:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times{display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times .miam-time-picker{margin-bottom:16px;justify-content:center;align-items:center;flex-direction:column;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:560px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100%;text-align:center}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{display:flex;flex-direction:row-reverse;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{width:90vw;flex-direction:column;gap:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:50px;position:relative}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:300px!important;min-height:300px!important;max-height:300px!important;width:400px;max-width:calc(98vw - 776px)}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:unset!important;min-height:110px!important;max-width:unset!important;width:unset!important}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions button{margin-top:16px}@media (min-width:1024px){.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input{width:calc(100% - 16px)}}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input:first-of-type .miam-list-input__actions .miam-list-input__actions__instructions:before{content:"Merci d\'indiquer la quantit\xe9 en premier comme indiqu\xe9 dans les exemples.\\a\\a";font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button{margin-right:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-stepper ng-miam-loader{width:100%;display:flex;justify-content:center;padding:50vh}.miam-recipe-stepper .miam-recipe-stepper__footer{display:flex;justify-content:center;gap:64px;padding:64px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__footer{padding:16px 8px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}}.miam-recipe-stepper__picture__warning{padding:10px;text-align:center;font-size:var(--m-font-size-medium)}'],encapsulation:2,changeDetection:0}),e})();const XH=bn(YH);var GH,qH=function(e,t,i,n){for(var r=-1,a=null==e?0:e.length;++r<a;){var o=e[r];t(n,o,i(o),e)}return n},JH=function(e,t){if(null==e)return e;if(!Fp(e))return function(e,t){return e&&function(e,t,i){for(var n=-1,r=Object(e),a=i(e),o=a.length;o--;){var s=a[++n];if(!1===t(r[s],s,r))break}return e}(e,t,Hp)}(e,t);for(var i=e.length,n=-1,r=Object(e);++n<i&&!1!==t(r[n],n,r););return e},KH=function(e,t,i,n){return JH(e,(function(e,r,a){t(n,e,i(e),a)})),n},$H=Object.prototype.hasOwnProperty,eB=(GH=function(e,t,i){$H.call(e,i)?e[i].push(t):ih(e,i,[t])},function(e,t){return(lp(e)?qH:KH)(e,GH,xv(t),{})});const tB=["tag"];function iB(e,t){if(1&e){const e=Xo();Vo(0,"div",11,12),Vo(2,"ng-miam-icon",13),Jo("click",(function(){gi(e);const i=t.$implicit;return es(3).toggleRecipe(i.id)})),Zo(),Vo(3,"span",14),Jo("click",(function(){gi(e);const i=t.$implicit;return es(3).toggleRecipe(i.id)})),fs(4),Mc(5,"ellipsis"),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es(3);Dr(2),jo("iconName",i.icon.Meal),Dr(2),vs(Rc(5,2,e.title,6))}}const nB=function(e){return{"height.px":e}},rB=function(e){return{"miam-recipe-tags__container__toggle__hidden":e}},aB=function(e){return{opacity:e}};function oB(e,t){if(1&e){const e=Xo();Vo(0,"div",3),Vo(1,"div",4),Fo(2,iB,6,5,"div",5),Zo(),Vo(3,"div",6),Vo(4,"span",7),Jo("click",(function(){return gi(e),es(2).toggleList()})),fs(5),Zo(),Qo(6,"div",8),Vo(7,"span",9),Jo("click",(function(){return gi(e),es(2).toggleList()})),Qo(8,"ng-miam-icon",10),Zo(),Zo(),Zo()}if(2&e){const e=es(2);jo("ngStyle",kc(6,nB,e.isListOpen?32*e.rowCount:24)),Dr(2),jo("ngForOf",e.recipePreviewLines),Dr(1),jo("ngClass",kc(8,rB,!e.rowCount||0===e.wrappedItemsCount)),Dr(2),_s(" ",e.isListOpen?" ":"+"+e.wrappedItemsCount,""),Dr(2),jo("ngStyle",kc(10,aB,e.isListOpen?1:0)),Dr(1),jo("iconName",e.icon.ChevronDown)}}function sB(e,t){if(1&e&&(Wo(0),Fo(1,oB,9,12,"div",2),Uo()),2&e){const e=es();Dr(1),jo("ngIf",(null==e.recipePreviewLines?null:e.recipePreviewLines.length)>0)}}function cB(e,t){if(1&e){const e=Xo();Vo(0,"div",17),Jo("click",(function(){return gi(e),es(2).toggleModal()})),Vo(1,"span"),fs(2),Zo(),Vo(3,"span"),fs(4,"meal"),Zo(),Zo()}if(2&e){const e=es(2);Dr(2),vs(e.recipePreviewLines.length)}}function lB(e,t){if(1&e){const e=Xo();Vo(0,"div",11,12),Vo(2,"ng-miam-icon",13),Jo("click",(function(){gi(e);const i=t.$implicit;return es(2).toggleRecipe(i.id)})),Zo(),Vo(3,"span",14),Jo("click",(function(){gi(e);const i=t.$implicit;return es(2).toggleRecipe(i.id)})),fs(4),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es(2);Dr(2),jo("iconName",i.icon.Meal),Dr(2),vs(e.title)}}function dB(e,t){if(1&e){const e=Xo();Fo(0,cB,5,1,"div",15),Vo(1,"ng-miam-modal",16),Jo("close",(function(){return gi(e),es().toggleModal()})),Vo(2,"div",4),Fo(3,lB,5,2,"div",5),Zo(),Zo()}if(2&e){const e=es();jo("ngIf",(null==e.recipePreviewLines?null:e.recipePreviewLines.length)>0),Dr(1),jo("isAngularComponent",!0)("expanded",e.modalIsOpened)("noHeaderMode",!1)("recipesCount",e.recipePreviewLines.length),Dr(2),jo("ngForOf",e.recipePreviewLines)}}let uB=(()=>{class e extends rO{constructor(e,t,i,n){super(n),this.cdr=e,this.basketService=t,this.contexteservice=i,this.analyticsService=n,this.recipeDetailPreviewAllowed=!0,this.reduce=!1,this.icon=Iv,this.modalIsOpened=!1,this.subscriptions=[]}currentPath(){return""}ngOnChanges(e){e.hasOwnProperty("extId")&&e.extId.firstChange&&this.subscriptions.push(this.basketService.basketPreview$.subscribe(e=>{e&&(this.recipePreviewLines=e.filter(e=>e.entries.found.find(e=>e.selectedItem.attributes["ext-id"]===this.extId)),this.cdr.detectChanges(),this.detectWrappedTags(this.tags))})),this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}detectWrappedTags(e){if(0===e.length)return;const t=e.map(e=>e.nativeElement.getBoundingClientRect()),i=eB(t,"top"),n=Object.keys(i);this.rowCount=n.length,this.lastItemIndexOfFirstRow=i[n[0]].length-1,this.wrappedItemsCount=e.toArray().length-(this.lastItemIndexOfFirstRow+1),this.cdr.detectChanges()}toggleRecipe(e){this.contexteservice.miam.recipes.display(e,this.recipeDetailPreviewAllowed,!1,this.eventTrace())}toggleList(){this.isListOpen=!this.isListOpen,this.cdr.detectChanges()}toggleModal(){this.modalIsOpened=!this.modalIsOpened,this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(Dv),Bo(i_),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-tags"]],viewQuery:function(e,t){var i;1&e&&Kc(tB,!0),2&e&&Jc(i=el())&&(t.tags=i)},inputs:{extId:"extId",recipeDetailPreviewAllowed:"recipeDetailPreviewAllowed",reduce:"reduce"},features:[yo,Qt],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["reduced",""],["class","miam-recipe-tags__container",3,"ngStyle",4,"ngIf"],[1,"miam-recipe-tags__container",3,"ngStyle"],[1,"miam-recipe-tags__container__list"],["class","miam-recipe-tags__list__badge",4,"ngFor","ngForOf"],[1,"miam-recipe-tags__container__toggle",3,"ngClass"],[1,"miam-recipe-tags__toggle__open",3,"click"],[1,"miam-recipe-tags__toggle__ligne"],[1,"miam-recipe-tags__toggle__close",3,"ngStyle","click"],["width","24","height","24","primaryColor","var(--m-color-white)",3,"iconName"],[1,"miam-recipe-tags__list__badge"],["tag",""],["primaryColor","var(--m-color-white)",1,"miam-recipe-tags__badge__icon",3,"iconName","click"],[1,"miam-recipe-tag__badge__text",3,"click"],["class","miam-recipe-tags__recipes",3,"click",4,"ngIf"],[1,"miam-recipe-tags__modal",3,"isAngularComponent","expanded","noHeaderMode","recipesCount","close"],[1,"miam-recipe-tags__recipes",3,"click"]],template:function(e,t){if(1&e&&(Fo(0,sB,2,1,"ng-container",0),Fo(1,dB,4,6,"ng-template",null,1,rl)),2&e){const e=Ho(2);jo("ngIf",!t.reduce)("ngIfElse",e)}},directives:[Zd,Kd,Nd,Hd,VS,vD],pipes:[bI],styles:[".miam-recipe-tags__container__list{display:flex;flex-wrap:wrap;gap:8px;flex:1 1}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge{display:flex;align-items:center;padding:0 8px 0 0;height:24px;border:1px solid #e9e9e9;box-sizing:border-box;border-radius:100px;cursor:pointer;position:relative;max-width:50vw}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge .miam-recipe-tags__badge__icon{padding:4px 8px;background:var(--m-color-primary);border-radius:100px 0 0 100px;flex:none;order:0;flex-grow:0}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge .miam-recipe-tag__badge__text{font-size:12px;line-height:16px;color:#676767;margin:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.miam-recipe-tags__container{display:flex;transition:height .25s cubic-bezier(0,0,.2,1);overflow:hidden;padding:0 8px;margin-top:16px}.miam-recipe-tags__container .miam-recipe-tags__container__toggle{display:flex;flex-direction:column;align-items:center;width:80px;visibility:visible}.miam-recipe-tags__container .miam-recipe-tags__container__toggle.miam-recipe-tags__container__toggle__hidden{visibility:hidden}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__open{display:flex;justify-content:center;padding:4px 8px;height:24px;background:#f6f6f6;min-width:40px;border-radius:100px;cursor:pointer}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__ligne{width:2px;flex:1;background-color:var(--m-color-grey);transform:height 1s linear}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__close{background:var(--m-color-primary);min-width:40px;cursor:pointer;border-radius:100px;transition:opacity .2s linear}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__close ng-miam-icon .icon-container{transform:rotate(180deg)}.miam-recipe-tags__recipes{display:flex;align-items:center;padding:0 8px 0 0;height:24px;border:1px solid #e9e9e9;box-sizing:border-box;border-radius:100px;cursor:pointer;position:relative;max-width:50vw}.miam-recipe-tags__modal .miam-modal{top:50%;right:50%;transform:translate3d(50%,-50%,0);height:auto;-webkit-animation-name:none;animation-name:none}.miam-recipe-tags__modal .miam-modal .miam-modal__container .miam-recipe-tags__container__list{display:flex;flex-flow:row wrap;max-width:480px;padding:24px}@media (max-width:1023px){.miam-recipe-tags__modal .miam-modal .miam-modal__container .miam-recipe-tags__container__list{flex-flow:column}}"],encapsulation:2,changeDetection:0}),e})();class mB extends zh{constructor(){super(...arguments),this.attributes={date:"","user-id":"","recipes-infos":[]}}get date(){return new Date(this.attributes.date)}get recipesInfos(){return this.attributes["recipes-infos"]}}let pB=(()=>{class e extends eg{constructor(){super(),this.resource=mB,this.type="recipe-selection-logs",this.register()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function hB(e,t){if(1&e){const e=Xo();Vo(0,"div",5),Vo(1,"ng-miam-icon",6),Jo("click",(function(){return gi(e),es().page(-1)})),Zo(),Vo(2,"span"),fs(3,"page"),Zo(),Vo(4,"span"),fs(5),Zo(),Vo(6,"ng-miam-icon",7),Jo("click",(function(){return gi(e),es().page(1)})),Zo(),Zo()}if(2&e){const e=es();Dr(1),jo("iconName",e.icon.ChevronDown),Dr(4),ys("",e.pageNumber,"/",e.totalPages,""),Dr(1),jo("iconName",e.icon.ChevronDown)}}function gB(e,t){1&e&&(Vo(0,"div"),fs(1,"You have no meals in your history."),Zo())}function fB(e,t){if(1&e&&Qo(0,"ng-miam-basket-preview-line",16),2&e){const e=t.ngIf,i=es(3);jo("displayTotalPricing",!1)("line",e)("originTrace",i.eventTrace())}}function vB(e,t){if(1&e&&(Vo(0,"div"),Fo(1,fB,1,3,"ng-miam-basket-preview-line",15),Mc(2,"async"),Zo()),2&e){const e=t.$implicit;Dr(1),jo("ngIf",Lc(2,1,e))}}const _B=function(e){return{rotate:e}},yB=function(e){return{wrap:e}};function bB(e,t){if(1&e){const e=Xo();Vo(0,"div",8),Vo(1,"div",9),Jo("click",(function(){gi(e);const i=t.$implicit;return es().toggleGroup(i)})),Vo(2,"h4",10),fs(3),Mc(4,"extendedDate"),Zo(),Vo(5,"div",11),Qo(6,"ng-miam-icon",12),Zo(),Zo(),Vo(7,"div",13),Fo(8,vB,3,3,"div",14),Zo(),Zo()}if(2&e){const e=t.$implicit,i=es();Dr(3),vs(Lc(4,5,e.date)),Dr(2),jo("ngClass",kc(7,_B,!e.show)),Dr(1),jo("iconName",i.icon.ChevronDown),Dr(1),jo("ngClass",kc(9,yB,!e.show)),Dr(1),jo("ngForOf",e.lines)}}let wB=(()=>{class e extends rO{constructor(e,t,i,n,r){super(r),this.cdr=e,this.recipesService=t,this.recipeSelectionLogsService=i,this.basketsService=n,this.analyticsService=r,this.recipesGroups=[],this.icon=Iv,this.pageNumber=1,this.subscriptions=[]}ngOnInit(){this.prepareGroups()}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}currentPath(){return"history"}toggleGroup(e){e.show=!e.show,this.cdr.detectChanges()}page(e){const t=this.pageNumber+e;t>0&&t<=this.totalPages&&(this.pageNumber=t,this.subscriptions.push(this.fetchLogs().subscribe()))}prepareGroups(){this.subscriptions.push(this.basketsService.basket$.pipe(ig(e=>!e),ug(()=>this.fetchLogs())).subscribe())}fetchLogs(){return this.recipeSelectionLogsService.all({sort:["-date"],page:{number:this.pageNumber}}).pipe(hm(e=>{if(!e.errors||e.errors.includes("User not authenticated"))return console.log("[Miam] hiding recipes selection history (no user logged in)"),Au({is_loading:!1,data:[]})}),ig(e=>e.is_loading),um(e=>{this.setPagination(e.meta),this.recipesGroups=e.data.map(e=>({show:!1,date:e.date,lines:e.recipesInfos.map(e=>this.prepareLine(e))})),this.cdr.detectChanges()}))}setPagination(e){e?(this.pageNumber=e.number,this.totalPages=e.total_resources/e.size):(this.pageNumber=1,this.totalPages=null)}prepareLine(e){return this.recipesService.get(e.id,{include:["ingredients","recipe-steps","recipe-status","recipe-type","tags"]}).pipe(ig(e=>e.is_loading),D(e=>{const t=Vg.fromRecipe(e,e.ingredients.length);return t.displayMode=!0,setTimeout(()=>this.cdr.detectChanges()),t}))}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(pB),Bo(Dv),Bo(gg))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipes-history"]],features:[yo],decls:7,vars:3,consts:[[1,"miam-recipes-history"],[1,"miam-recipes-history__title"],["class","miam-recipes-history__title__pagination",4,"ngIf"],[4,"ngIf"],["class","miam-recipes-history__groups",4,"ngFor","ngForOf"],[1,"miam-recipes-history__title__pagination"],["height","24","width","24","primaryColor","grey",1,"left",3,"iconName","click"],["height","24","width","24","primaryColor","grey",1,"right",3,"iconName","click"],[1,"miam-recipes-history__groups"],[1,"miam-recipes-history__groups__header",3,"click"],[1,"miam-recipes-history__groups__header__date"],[1,"miam-recipes-history__groups__header__chevron",3,"ngClass"],["height","32","width","32",3,"iconName"],[1,"miam-recipes-history__groups__recipes",3,"ngClass"],[4,"ngFor","ngForOf"],["class","miam-recipes-history__groups__recipes__line",3,"displayTotalPricing","line","originTrace",4,"ngIf"],[1,"miam-recipes-history__groups__recipes__line",3,"displayTotalPricing","line","originTrace"]],template:function(e,t){1&e&&(Vo(0,"div",0),Vo(1,"h3",1),Vo(2,"span"),fs(3,"My meal history"),Zo(),Fo(4,hB,7,4,"div",2),Zo(),Fo(5,gB,2,0,"div",3),Fo(6,bB,9,11,"div",4),Zo()),2&e&&(Dr(4),jo("ngIf",t.totalPages&&t.totalPages>1),Dr(1),jo("ngIf",t.recipesGroups.length<1),Dr(1),jo("ngForOf",t.recipesGroups))},directives:[Zd,Nd,VS,Hd,cT],pipes:[eO,au],styles:[".miam-recipes-history__title{display:flex;justify-content:space-between}.miam-recipes-history__title .miam-recipes-history__title__pagination{display:flex;align-items:center;color:grey;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.miam-recipes-history__title .miam-recipes-history__title__pagination .left{transform:rotate(90deg);margin-right:8px;cursor:pointer}.miam-recipes-history__title .miam-recipes-history__title__pagination .right{transform:rotate(-90deg);margin-left:8px;cursor:pointer}.miam-recipes-history__groups__header{display:flex;justify-content:space-between;align-items:center;cursor:pointer}@media (min-width:1022px){.miam-recipes-history__groups__header:hover .miam-recipes-history__groups__header__date{text-decoration:underline}}.miam-recipes-history__groups__header__date{font-weight:700}.miam-recipes-history__groups__header__date:first-letter{text-transform:capitalize}.miam-recipes-history__groups__header__chevron{transition-duration:.5s}.miam-recipes-history__groups__header__chevron.rotate{transform:rotate(-180deg)}.miam-recipes-history__groups__recipes{transition:max-height .25s ease-in;max-height:2000px;overflow-y:auto}.miam-recipes-history__groups__recipes.wrap{transition:max-height .15s ease-out;max-height:0;overflow-y:hidden}"],encapsulation:2,changeDetection:0}),e})(),xB=(()=>{class e{constructor(){this.elementToPrintIsChildOfBody=!1}prepareForPrint(e){if(e&&(this.elementToPrintIsChildOfBody=!1,Array.from(document.body.children).forEach(t=>{t!==e.nativeElement&&(t.classList.add("miam-not-printable"),this.elementToPrintIsChildOfBody=!0)}),!this.elementToPrintIsChildOfBody)){const t=document.createElement("div");t.classList.add("miam-print-only"),window.onbeforeprint=()=>{if(this.printContainer.firstChild)for(;this.printContainer.children.length>0;)this.printContainer.removeChild(this.printContainer.firstChild);this.printContainer.appendChild(document.createRange().createContextualFragment(e.nativeElement.innerHTML))},document.body.appendChild(t),this.printContainer=t}}dissmissPrinting(){this.elementToPrintIsChildOfBody||this.printContainer.remove(),Array.from(document.body.children).forEach(e=>{e.classList.remove("miam-not-printable")})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=he({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function CB(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Repas ajout\xe9s#"),Zo())}function kB(e,t){1&e&&(Vo(0,"span"),fs(1,"tradof#Ok, continuer mes courses#"),Zo())}function AB(e,t){1&e&&(Wo(0),Fo(1,CB,2,0,"ng-template",null,4,rl),Fo(3,kB,2,0,"ng-template",null,5,rl),Uo())}function SB(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-recipe-details",6,7),Jo("recipeAdded",(function(){return gi(e),es().togglePreviewMode()}))("recipeError",(function(){return gi(e),es().hide()})),Zo()}if(2&e){const e=es();jo("recipe",e.recipe)("previewAllowed",e.previewAllowed)("originTrace",e.eventTrace)("stepsOnLeftSide",e.detailsStepsOnLeftSide)("moreRecipesImageURL",e.detailsMoreRecipesImageURL)("pricingGuestsText",e.detailsPricingGuestsText)("recipeAddedToastText",e.recipeAddedToastText)}}function EB(e,t){if(1&e){const e=Xo();Vo(0,"div",8),Vo(1,"ng-miam-basket-preview-block",9),Jo("loading",(function(t){return gi(e),es().setModalClosable(t)})),Zo(),Zo()}if(2&e){const e=es();Dr(1),jo("recipeId",null==e.recipe?null:e.recipe.id)("displayItemsUnitaryPrice",!0)("originTrace",e.eventTrace)}}let DB=(()=>{class e{constructor(e,t,i,n,r,a){this.cdr=e,this.recipesService=t,this.printService=i,this.elRef=n,this.groceriesListsService=r,this.basketsService=a,this.show=!1,this.previewMode=!1,this.canCloseModal=!0,this.removeIsLoading=!1,this.basketChangedSinceOpened=!1,this.recipeWasAdded=!1,this.eventTrace={originPath:"",props:{}},this.detailsStepsOnLeftSide=!1,this.hasChangesOnClose=new Bc(!1)}ngOnInit(){this.recipesService.displayedRecipe$.subscribe(e=>{var t;this.registerTrace(null==e?void 0:e.eventTrace),(null==e?void 0:e.recipe)?(this.recipeWasAdded=e.wasAdded,this.recipe=e.recipe,this.previewMode=e.previewMode,this.previewAllowed=e.previewAllowed,this.show=!0,this.printService.prepareForPrint(this.elRef),null===(t=this.detailsComponent)||void 0===t||t.cdr.markForCheck(),this.detailsComponent&&(this.detailsComponent.showDetail=!0),this.cdr.detectChanges()):((null==e?void 0:e.force)?(this.previewMode=e.previewMode,this.previewAllowed=e.previewAllowed,this.show=!0,this.printService.prepareForPrint(this.elRef)):this.show=!1,this.cdr.detectChanges())}),this.basketsService._basket$.subscribe(()=>{this.show&&(this.basketChangedSinceOpened=!0)})}registerTrace(e){this.eventTrace=e||{originPath:"",props:{}}}hide(){this.canCloseModal&&(this.show=!1,this.recipe=null,this.previewMode=!1,this.recipesService.hide(),this.printService.dissmissPrinting(),this.hasChangesOnClose.emit(this.basketChangedSinceOpened),this.basketChangedSinceOpened=!1,this.cdr.detectChanges())}togglePreviewMode(){this.previewMode=!this.previewMode,this.cdr.detectChanges()}removeRecipe(){this.canCloseModal&&(this.removeIsLoading=!0,this.cdr.detectChanges(),this.groceriesListsService.removeRecipeFromList(this.recipe.id,this.eventTrace).subscribe(()=>{this.basketChangedSinceOpened=!this.recipeWasAdded,this.removeIsLoading=!1,this.hide()}))}setModalClosable(e){this.canCloseModal=!(e&&this.previewMode)}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(xB),Bo(js),Bo(Ag),Bo(Dv))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-recipe-modal"]],inputs:{detailsStepsOnLeftSide:"detailsStepsOnLeftSide",detailsMoreRecipesImageURL:"detailsMoreRecipesImageURL",detailsPricingGuestsText:"detailsPricingGuestsText",recipeAddedToastText:"recipeAddedToastText"},outputs:{hasChangesOnClose:"hasChangesOnClose"},decls:4,vars:10,consts:[[3,"isAngularComponent","noHeaderMode","expanded","cancelButtonDisabled","confirmButtonDisabled","cancelButtonIsLoading","expandedChange","close","cancel","confirm"],[4,"ngIf"],[3,"recipe","previewAllowed","originTrace","stepsOnLeftSide","moreRecipesImageURL","pricingGuestsText","recipeAddedToastText","recipeAdded","recipeError",4,"ngIf"],["class","miam-wrapper-preview",4,"ngIf"],["title",""],["confirmButtonText",""],[3,"recipe","previewAllowed","originTrace","stepsOnLeftSide","moreRecipesImageURL","pricingGuestsText","recipeAddedToastText","recipeAdded","recipeError"],["details",""],[1,"miam-wrapper-preview"],[3,"recipeId","displayItemsUnitaryPrice","originTrace","loading"]],template:function(e,t){1&e&&(Vo(0,"ng-miam-modal",0),Jo("expandedChange",(function(e){return t.show=e}))("close",(function(){return t.hide()}))("cancel",(function(){return t.removeRecipe()}))("confirm",(function(){return t.hide()})),Fo(1,AB,5,0,"ng-container",1),Fo(2,SB,2,7,"ng-miam-recipe-details",2),Fo(3,EB,2,3,"div",3),Zo()),2&e&&(jo("isAngularComponent",!0)("noHeaderMode",!0)("expanded",t.show)("noHeaderMode",!t.previewMode)("cancelButtonDisabled",!t.canCloseModal)("confirmButtonDisabled",!t.canCloseModal)("cancelButtonIsLoading",t.removeIsLoading),Dr(1),jo("ngIf",t.previewMode),Dr(1),jo("ngIf",t.recipe&&!t.previewMode),Dr(1),jo("ngIf",t.previewMode))},directives:[vD,Zd,UF,kT],styles:[".miam-wrapper-preview{background-color:#fff;overflow-y:auto;padding:20px;flex:1}@media (max-width:1022px){.miam-wrapper-preview{padding-bottom:80px;margin-bottom:80px}}.miam-wrapper-preview::-webkit-scrollbar{width:5px;height:7px;cursor:-webkit-grab}.miam-wrapper-preview::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-wrapper-preview::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}"],encapsulation:2,changeDetection:0}),e})();const IB=["recipeCard"];function OB(e,t){if(1&e){const e=Xo();Vo(0,"ng-miam-recipe-card",1,2),Jo("guestsChanged",(function(){return gi(e),es().guestsChanged()})),Zo()}if(2&e){const e=es();jo("recipe",e.recipe)("headerText",e.headerText)("recipeAddedToastText",e.recipeAddedToastText)("displayPricing",e.displayPricing)("displayAddedOnPicture",e.displayAddedOnPicture)("originTrace",e.eventTrace())}}let PB=(()=>{class e extends OT{constructor(e,t,i,n,r,a,o,s,c,l){super(e,t,s,i,n,r,a,o,c,l),this.analyticsService=o,this.recipeEventsService=s,this.element=c,this.toastr=l,this.isEmpty=!1,this.eventsGroupId=Cg(),this.sendShowEventOnScroll=!1}ngOnChanges(e){(e.hasOwnProperty("context")&&!this.randomModeEnable||!this.recipe)&&this.loadRecipe()}guestsChanged(){this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{e&&this.addRecipe(!1)}))}loadRecipe(){this.subscriptions.push(this.fetchRecipes().pipe(ig(e=>!e),hm(e=>(this.hide.emit(),Au(e)))).subscribe(e=>this.processResults(e)))}fetchRecipes(){var e,t,i;return this.randomModeEnable?this.recipeService.getRandom():this.recipeService.getSuggestion(null===(e=this.context)||void 0===e?void 0:e.shelfIngredients,null===(t=this.context)||void 0===t?void 0:t.currentIngredients,null===(i=this.context)||void 0===i?void 0:i.basketIngredients,this.eventsGroupId)}processResults(e){var t,i;if(this.isEmpty=!e||0===e.length,this.isEmpty)this.hide.emit();else{const n=(null===(t=this.recipe)||void 0===t?void 0:t.id)!==(null===(i=e[0])||void 0===i?void 0:i.id);this.recipe=e[0].shallowCopyWithEvents(this.recipeEventsService.ORIGIN_SUGGESTION,this.eventsGroupId),this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(e=>{e&&(this.recipe.modifiedGuests=this.groceriesListsService.guestsForRecipe(this.recipe)||+this.recipe.guests,this.recipeCard.cdr.markForCheck())})),this.initIngredientsString(),this.recipeCard.cdr.markForCheck(),n&&(this.analyticsEventSent=!1,this.sendShowEvent())}this.cdr.detectChanges()}}return e.\u0275fac=function(t){return new(t||e)(Bo($a),Bo(pv),Bo(Ag),Bo(Ug),Bo(sv),Bo(i_),Bo(gg),Bo(qf),Bo(js),Bo(r_))},e.\u0275cmp=_t({type:e,selectors:[["ng-miam-suggestion-card"]],viewQuery:function(e,t){var i;1&e&&Kc(IB,!0),2&e&&Jc(i=el())&&(t.recipeCard=i.first)},inputs:{randomModeEnable:"randomModeEnable",context:"context"},features:[yo,Qt],decls:1,vars:1,consts:[[3,"recipe","headerText","recipeAddedToastText","displayPricing","displayAddedOnPicture","originTrace","guestsChanged",4,"ngIf"],[3,"recipe","headerText","recipeAddedToastText","displayPricing","displayAddedOnPicture","originTrace","guestsChanged"],["recipeCard",""]],template:function(e,t){1&e&&Fo(0,OB,2,6,"ng-miam-recipe-card",0),2&e&&jo("ngIf",!t.isEmpty)},directives:[Zd,pM],styles:[""],encapsulation:2,changeDetection:0}),e})();const TB=[PB,DR,bz,yR,oR,$L,pM,sH,Ez,Sz,Az,DB,wB,uH,uB,qM,Qz,oL,QL,PL,YH,ET,CH,pH],MB=["suggestion-card","drawer","order-button","pos-selection","pos-card","drag-drop-input","recipe-card","recipe-form","planner","planner-calendar","planner-side-menu","recipe-modal","recipes-history","recipe-helper","recipe-tags","catalog-recipe-card","recipe-catalog","catalog-category","catalog-list","catalog-header","recipe-stepper","catalog-article-card","tags-selector","tags-creator"],LB=[AT,yz,YF];let RB=(()=>{class e{}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)},imports:[LB.concat([Cu,mb,pb,bP,Ek.forRoot({provide:PC,useFactory:CA}),cP,Db]),AT,yz,YF]}),e})();!function(e,t,i){const n=e.\u0275cmp;n.directiveDefs=()=>t.map(yt),n.pipeDefs=()=>i.map(bt)}(Qz,[kT,cT,LP,dT,_z,hF,UF,Uz,yF,cF,Hd,Bd,Nd,Zd,$d,Kd,Yd,Xd,Gd,qd,Jd,Hy,iy,oy,E_,Y_,K_,k_,ty,ay,q_,M_,L_,$y,ab,sb,lb,eb,nb,Fy,Ly,Oy,Ny,Zy,qy,Wy,Yy,VS,ZS,KD,rI,gI,_I,nO,aO,bO,uO,pO,cO,xO,DO,MO,nP,sP,pP,fP,vP,gP,yP,$E,vD,EC,DC,IC,OC,XC,GC,qC,ik,nk,Pw,Mw,Dw,dk,mk,hk,uk,Yw,Gw,_k,yk,bk,wk,xk,kk,KE,kb,PB,DR,bz,yR,oR,$L,pM,sH,Ez,Sz,Az,DB,wB,uH,uB,qM,Qz,oL,QL,PL,YH,ET,CH,pH],[au,lu,ou,hu,xu,vu,_u,cu,yu,du,mu,pu,gu,$C,tk,ok,xI,bI,$I,_D,eO]);var zB=i("6Wo6");const FB=`${kg.miamAPI}/api/v1/`,HB=`${kg.miamWeb}/fr/app/mon-panier`;var BB,jB,NB;BB=i.n(zB).a,NB=void 0,"string"!=typeof(jB="fr")&&(NB=jB,jB=BB[Ss.LocaleId]),jB=jB.toLowerCase().replace(/_/g,"-"),Cs[jB]=BB,NB&&(Cs[jB][Ss.ExtraData]=NB);let VB=(()=>{class e{constructor(e,t){TB.forEach((t,i)=>{const n=b_(t,{injector:e});customElements.define(`webc-miam-${MB[i]}`,n)}),this.injectModals()}ngDoBootstrap(){}injectModals(){const e=document.createElement("webc-miam-recipe-modal");document.body.appendChild(e);const t=document.createElement("webc-miam-recipe-helper");document.body.appendChild(t)}}return e.\u0275mod=xt({type:e}),e.\u0275inj=fe({factory:function(t){return new(t||e)($e(fo),$e(i_))},providers:[Ag,vv,Dv,gv,pv,hv,Xg,Ff,gg,{provide:Yu,useClass:a_,multi:!0},{provide:hg,useValue:HB},{provide:hl,useValue:"fr"}],imports:[[Xh.forRoot({url:FB}),RB,KI]]}),e})();!function(){if(Rn)throw new Error("Cannot enable prod mode after platform setup.");Ln=!1}(),qI().bootstrapModule(VB,{ngZone:"noop"})},"6Whc":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMonths=t.getDaysInMonth=void 0,t.getDaysInMonth=function(e){var t=e.getMonth(),i=new Date(0);return i.setFullYear(e.getFullYear(),t+1,0),i.setHours(0,0,0,0),i.getDate()},t.addMonths=function(e,i){var n=e.getMonth()+i,r=new Date(0);r.setFullYear(e.getFullYear(),n,1),r.setHours(0,0,0,0);var a=t.getDaysInMonth(r);e.setMonth(n,Math.min(a,e.getDate()))}},"6Wo6":function(e,t,i){var n,r,a;!function(o){if("object"==typeof e.exports){var s=o(0,t);void 0!==s&&(e.exports=s)}else r=[i,t],void 0===(a="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=a)}((function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=void 0;t.default=["fr",[["AM","PM"],i,i],i,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],i,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],i,[["av. J.-C.","ap. J.-C."],i,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} '\xe0' {0}",i,i],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[i,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[i,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[i,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[i,"\xa5"],KMF:[i,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[i,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[i,"L"],RWF:[i,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[i,"$T"],TTD:["$TT","$"],TWD:[i,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[i,"$"],XPF:["FCFP"],ZMW:[i,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]}))},"960K":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isZero=void 0;var n=i("svPx");t.isZero=function(e){return 0===n.toMilliseconds(e)}},"9a4g":function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.UNITS_META=t.UNITS=t.UNITS_META_MAP=t.UNITS_META_MAP_LITERAL=t.ZERO=void 0,t.ZERO=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0}),t.UNITS_META_MAP_LITERAL={years:{milliseconds:31536e6,months:12,dateGetter:function(e){return e.getFullYear()},ISOCharacter:"Y",ISOPrecision:"period"},months:{milliseconds:2628e6,months:1,dateGetter:function(e){return e.getMonth()},ISOCharacter:"M",ISOPrecision:"period"},weeks:{milliseconds:6048e5,dateGetter:function(){return 0},ISOCharacter:"W",ISOPrecision:"period",stringifyConvertTo:"days"},days:{milliseconds:864e5,dateGetter:function(e){return e.getDate()},ISOCharacter:"D",ISOPrecision:"period"},hours:{milliseconds:36e5,dateGetter:function(e){return e.getHours()},ISOCharacter:"H",ISOPrecision:"time"},minutes:{milliseconds:6e4,dateGetter:function(e){return e.getMinutes()},ISOCharacter:"M",ISOPrecision:"time"},seconds:{milliseconds:1e3,dateGetter:function(e){return e.getSeconds()},ISOCharacter:"S",ISOPrecision:"time"},milliseconds:{milliseconds:1,dateGetter:function(e){return e.getMilliseconds()},stringifyConvertTo:"seconds"}},t.UNITS_META_MAP=t.UNITS_META_MAP_LITERAL,t.UNITS=Object.freeze(["years","months","weeks","days","hours","minutes","seconds","milliseconds"]),t.UNITS_META=Object.freeze(t.UNITS.map((function(e){return n(n({},t.UNITS_META_MAP[e]),{unit:e})})))},"9aqK":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=void 0;var n=i("9a4g");t.validate=function(e){Object.keys(e).forEach((function(t){if(!n.UNITS.includes(t))throw new TypeError('Unexpected property "'+t+'" on Duration object.');if(!Number.isInteger(e[t]))throw new TypeError('Property "'+t+'" must be a an integer. Received '+e[t]+".")}))}},Af8m:function(e,t,i){"use strict";(function(e){var n=i("kq48"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===r&&n.a.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=s}).call(this,i("cyaT")(e))},D57s:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cleanDurationObject=void 0;var r=i("9a4g");t.cleanDurationObject=function(e){var t=n({},e);return r.UNITS.forEach((function(e){0===t[e]&&(t[e]=0)})),t}},GrrB:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apply=void 0;var n=i("6Whc"),r=i("X1CF");t.apply=function(e,t){var i=new Date(e),a=r.parse(t),o=a.weeks,s=a.days,c=a.hours,l=a.minutes,d=a.seconds,u=a.milliseconds;return n.addMonths(i,12*a.years+a.months),i.setDate(i.getDate()+7*o+s),i.setHours(i.getHours()+c,i.getMinutes()+l,i.getSeconds()+d,i.getMilliseconds()+u),i}},JsNM:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.between=void 0;var r=i("9a4g");t.between=function(e,t){var i=new Date(e),a=new Date(t),o=n({},r.ZERO);return r.UNITS_META.forEach((function(e){var t=e.dateGetter;o[e.unit]=t(a)-t(i)})),o}},MBFf:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.negate=void 0;var r=i("9a4g"),a=i("X1CF");t.negate=function(e){var t=n({},a.parse(e));return r.UNITS.forEach((function(e){t[e]=0===t[e]?0:-t[e]})),t}},NMSN:function(e,t,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n};Object.defineProperty(t,"__esModule",{value:!0}),t.subtract=void 0;var r=i("MBFf"),a=i("ROwQ");t.subtract=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return a.sum.apply(void 0,n([e],t.map(r.negate)))}},NoVc:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},ROwQ:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.sum=void 0;var r=i("9a4g"),a=i("X1CF");t.sum=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=n({},r.ZERO);return e.map(a.parse).forEach((function(e){r.UNITS.forEach((function(t){i[t]+=e[t]}))})),i}},"TPB+":function(e,t,i){"use strict";(function(e){var n=i("fw2E"),r=i("VxF/"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.a.Buffer:void 0;t.a=(s?s.isBuffer:void 0)||r.a}).call(this,i("cyaT")(e))},"VxF/":function(e,t,i){"use strict";t.a=function(){return!1}},WYLL:function(e,t){function i(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}i.keys=function(){return[]},i.resolve=i,e.exports=i,i.id="WYLL"},X1CF:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=i("9a4g"),a=i("xRwy"),o=i("9aqK"),s=i("D57s");t.parse=function(e){var t=function(e){return"string"==typeof e?a.parseISODuration(e):n(n({},r.ZERO),"number"==typeof e?{milliseconds:e}:e)}(e);return o.validate(t),s.cleanDurationObject(t)}},cyaT:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},fw2E:function(e,t,i){"use strict";var n=i("kq48"),r="object"==typeof self&&self&&self.Object===Object&&self,a=n.a||r||Function("return this")();t.a=a},grw1:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativelySigned=void 0,t.isNegativelySigned=function(e){return e<0||Object.is(e,-0)}},kIwI:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var r=i("X1CF"),a=i("960K"),o=i("4NgV"),s=i("9a4g"),c=function(e){return e.join("").replace(/\./g,",")};t.toString=function(e){if(a.isZero(e))return"P0D";var t=n({},r.parse(e));if(1===o.getUnitCount(t)&&0!==t.weeks)return"P"+t.weeks+"W";var i={period:[],time:[]};s.UNITS_META.forEach((function(e){var i=e.unit,n=e.stringifyConvertTo;null!=n&&(t[n]+=t[i]*s.UNITS_META_MAP[i].milliseconds/s.UNITS_META_MAP[n].milliseconds,t[i]=0)})),s.UNITS_META.forEach((function(e){var n=e.ISOPrecision,r=t[e.unit];null!=n&&0!==r&&i[n].push(""+r+e.ISOCharacter)}));var l="P"+c(i.period);return i.time.length&&(l+="T"+c(i.time)),l}},kq48:function(e,t,i){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.a=n},pvze:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=void 0;var a=i("9a4g"),o=i("JsNM"),s=i("GrrB"),c=i("svPx"),l=i("X1CF"),d=function(e,t){return function(i,r){var a=n({},i);return e.forEach((function(e){var i=t(e);a[e]=~~(r/i),r-=a[e]*i})),a}},u=d(["years","months"],(function(e){return a.UNITS_META_MAP_LITERAL[e].months})),m=d(["days","hours","minutes","seconds","milliseconds"],(function(e){return a.UNITS_META_MAP_LITERAL[e].milliseconds}));t.normalize=function(e,t){return function(e){var t=l.parse(e),i=t.years,o=t.months,s=t.weeks,d=t.days,p=r(t,["years","months","weeks","days"]),h=n({},a.ZERO);return h=u(h,c.toMonths({years:i,months:o})),m(h,c.toMilliseconds(n(n({},p),{days:d+7*s})))}(null!=t?o.between(t,s.apply(t,e)):e)}},svPx:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toYears=t.toMonths=t.toWeeks=t.toDays=t.toHours=t.toMinutes=t.toSeconds=t.toUnit=t.toMilliseconds=void 0;var n=i("X1CF"),r=i("9a4g");t.toMilliseconds=function(e){var t=n.parse(e);return r.UNITS_META.reduce((function(e,i){return e+t[i.unit]*i.milliseconds}),0)},t.toUnit=function(e,i){return t.toMilliseconds(e)/r.UNITS_META_MAP[i].milliseconds};var a=function(e){return function(i){return t.toUnit(i,e)}};t.toSeconds=a("seconds"),t.toMinutes=a("minutes"),t.toHours=a("hours"),t.toDays=a("days"),t.toWeeks=a("weeks"),t.toMonths=a("months"),t.toYears=a("years")},wvHV:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegative=void 0;var n=i("svPx");t.isNegative=function(e){return n.toMilliseconds(e)<0}},xRwy:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseISODuration=void 0;var r=i("9a4g"),a=i("MBFf"),o=i("grw1"),s="(?:[,.](\\d{1,3})\\d*)?",c=function(e){return"(?:(-?\\d+)"+e+")?"},l=function(e,t){return function(i){var s=i.match(e);if(!s)return null;var c="-"===s[1],l=s.slice(2);if(l.every((function(e){return void 0===e})))return null;var d=l.map((function(e,t){return void 0===e&&(e="0"),Number(t===l.length-1?e.padEnd(3,"0"):e)})),u=n({},r.ZERO);return t.forEach((function(e,t){u[e]=d[t]})),o.isNegativelySigned(u.seconds)&&(u.milliseconds*=-1),c?a.negate(u):u}},d=l(new RegExp(["^(-)?P","(\\d{4})","-?","(\\d{2})","-?","(\\d{2})","T","(\\d{2})",":?","(\\d{2})",":?","(\\d{2})",s,"$"].join("")),["years","months","days","hours","minutes","seconds","milliseconds"]),u=l(new RegExp(["^(-)?P",c("Y"),c("M"),c("W"),c("D"),"(?:T",c("H"),c("M"),c(s+"S"),")?$"].join("")),["years","months","weeks","days","hours","minutes","seconds","milliseconds"]);t.parseISODuration=function(e){var t=u(e)||d(e);if(null===t)throw new SyntaxError('Failed to parse duration. "'+e+'" is not a valid ISO duration string.');return t}},yerO:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.UNITS=void 0,r(i("0LHn"),t),r(i("GrrB"),t),r(i("JsNM"),t),r(i("wvHV"),t),r(i("960K"),t),r(i("MBFf"),t),r(i("pvze"),t),r(i("X1CF"),t),r(i("NMSN"),t),r(i("ROwQ"),t),r(i("kIwI"),t),r(i("svPx"),t),r(i("NoVc"),t);var a=i("9a4g");Object.defineProperty(t,"UNITS",{enumerable:!0,get:function(){return a.UNITS}})}},[[0,0]]]);
|