@wizishop/img-manager-webelement 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++)0!==o[t[a]]&&(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.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},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="",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([]);(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(e,t,n){e.exports=n("hN/g")},KJ4T:function(e,t){!function(e,t){"use strict";function n(){var e=L.splice(0,L.length);for(Ke=0;e.length;)e.shift().call(null,e.shift())}function o(e,t){for(var n=0,o=e.length;n<o;n++)d(e[n],t)}function r(e){return function(t){Ae(t)&&(d(t,e),ae.length&&o(t.querySelectorAll(ae),e))}}function a(e){var t=Ve.call(e,"is"),n=e.nodeName.toUpperCase(),o=se.call(oe,t?ee+t.toUpperCase():Q+n);return t&&-1<o&&!i(n,t)?-1:o}function i(e,t){return-1<ae.indexOf(e+'[is="'+t+'"]')}function s(e){var t=e.currentTarget,n=e.attrChange,o=e.attrName,r=e.target,a=e[$]||2,i=e[X]||3;!ot||r&&r!==t||!t[V]||"style"===o||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t[V](o,n===a?null:e.prevValue,n===i?null:e.newValue)}function l(e){var t=r(e);return function(e){L.push(t,e.target),Ke&&clearTimeout(Ke),Ke=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(K,c)),ae.length&&o((e.target||E).querySelectorAll(ae),e.detail===x?x:j),Ne&&function(){for(var e,t=0,n=Ie.length;t<n;t++)ie.contains(e=Ie[t])||(n--,Ie.splice(t--,1),d(e,x))}()}function u(e,t){var n=this;Be.call(n,e,t),M.call(n,{target:n})}function h(e,t,n){var o=t.apply(e,n),r=a(o);return-1<r&&Z(o,re[r]),n.pop()&&ae.length&&function(e){for(var t,n=0,o=e.length;n<o;n++)Z(t=e[n],re[a(t)])}(o.querySelectorAll(ae)),o}function p(e,t){He(e,t),D?D.observe(e,Xe):(tt&&(e.setAttribute=u,e[A]=S(e),e[I](Y,M)),e[I](J,s)),e[G]&&ot&&(e.created=!0,e[G](),e.created=!1)}function f(e){throw new Error("A "+e+" type is already registered")}function d(e,t){var n,o,r=a(e);-1<r&&!xe.call(e,"TEMPLATE")&&(O(e,re[r]),r=0,t!==j||e[j]?t!==x||e[x]||(e[j]=!1,e[x]=!0,o="disconnected",r=1):(e[x]=!1,e[j]=!0,o="connected",r=1,Ne&&se.call(Ie,e)<0&&Ie.push(e)),r&&(n=e[t+R]||e[o+R])&&n.call(e))}function m(){}function g(e,t,n){var o=n&&n[F]||"",r=t.prototype,a=De(r),i=t.observedAttributes||pe,s={prototype:a};ze(a,G,{value:function(){if(we)we=!1;else if(!this[ye]){this[ye]=!0,new t(this),r[G]&&r[G].call(this);var e=Le[Ce.get(t)];(!_e||e.create.length>1)&&v(this)}}}),ze(a,V,{value:function(e){-1<se.call(i,e)&&r[V]&&r[V].apply(this,arguments)}}),r[q]&&ze(a,U,{value:r[q]}),r[B]&&ze(a,W,{value:r[B]}),o&&(s[F]=o),e=e.toUpperCase(),Le[e]={constructor:t,create:o?[o,Se(e)]:[e]},Ce.set(t,e),E[N](e.toLowerCase(),s),_(e),Me[e].r()}function T(e){var t=Le[e.toUpperCase()];return t&&t.constructor}function y(e){return"string"==typeof e?e:e&&e.is||""}function v(e){for(var t,n=e[V],o=n?e.attributes:pe,r=o.length;r--;)n.call(e,(t=o[r]).name||t.nodeName,null,t.value||t.nodeValue)}function _(e){return(e=e.toUpperCase())in Me||(Me[e]={},Me[e].p=new be((function(t){Me[e].r=t}))),Me[e].p}function k(){ve&&delete e.customElements,he(e,"customElements",{configurable:!0,value:new m}),he(e,"CustomElementRegistry",{configurable:!0,value:m});for(var t=w.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,o;return e||(e=this),e[ye]||(we=!0,t=Le[Ce.get(e.constructor)],(e=(o=_e&&1===t.create.length)?Reflect.construct(n,pe,t.constructor):E.createElement.apply(E,t.create))[ye]=!0,we=!1,o||v(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(o){he(n,ye,{value:e[t]})}}}(t[n]));E.createElement=function(e,t){var n=y(t);return n?$e.call(this,e,Se(n)):$e.call(this,e)},Ye||(et=!0,E[N](""))}var E=e.document,b=e.Object,w=function(e){var t,n,o,r,a=/^[A-Z]+[a-z]/,i=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(b.create||b)(null),l={};for(n in e)for(r in e[n])for(s[r]=o=e[n][r],t=0;t<o.length;t++)s[o[t].toLowerCase()]=s[o[t].toUpperCase()]=r;return l.get=function(e){return"string"==typeof e?s[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},l.set=function(e,t){return a.test(e)?i(e,t):i(t,e),l},l}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var L,M,C,S,D,H,O,Z,P,N="registerElement",z=1e5*e.Math.random()>>0,A="__"+N+z,I="addEventListener",j="attached",R="Callback",x="detached",F="extends",V="attributeChanged"+R,U=j+R,q="connected"+R,B="disconnected"+R,G="created"+R,W=x+R,$="ADDITION",X="REMOVAL",J="DOMAttrModified",K="DOMContentLoaded",Y="DOMSubtreeModified",Q="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],oe=[],re=[],ae="",ie=E.documentElement,se=oe.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},le=b.prototype,ce=le.hasOwnProperty,ue=le.isPrototypeOf,he=b.defineProperty,pe=[],fe=b.getOwnPropertyDescriptor,de=b.getOwnPropertyNames,me=b.getPrototypeOf,ge=b.setPrototypeOf,Te=!!b.__proto__,ye="__dreCEv1",ve=e.customElements,_e=!/^force/.test(t.type)&&!!(ve&&ve.define&&ve.get&&ve.whenDefined),ke=b.create||b,Ee=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[se.call(t,e)]},set:function(o,r){(e=se.call(t,o))<0?n[t.push(o)-1]=r:n[e]=r}}},be=e.Promise||function(e){function t(e){for(o=!0;n.length;)n.shift()(e)}var n=[],o=!1,r={catch:function(){return r},then:function(e){return n.push(e),o&&setTimeout(t,1),r}};return e(t),r},we=!1,Le=ke(null),Me=ke(null),Ce=new Ee,Se=function(e){return e.toLowerCase()},De=b.create||function e(t){return t?(e.prototype=t,new e):this},He=ge||(Te?function(e,t){return e.__proto__=t,e}:de&&fe?function(){function e(e,t){for(var n,o=de(t),r=0,a=o.length;r<a;r++)ce.call(e,n=o[r])||he(e,n,fe(t,n))}return function(t,n){do{e(t,n)}while((n=me(n))&&!ue.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Oe=e.MutationObserver||e.WebKitMutationObserver,Ze=e.HTMLAnchorElement,Pe=(e.HTMLElement||e.Element||e.Node).prototype,Ne=!ue.call(Pe,ie),ze=Ne?function(e,t,n){return e[t]=n.value,e}:he,Ae=Ne?function(e){return 1===e.nodeType}:function(e){return ue.call(Pe,e)},Ie=Ne&&[],je=Pe.attachShadow,Re=Pe.cloneNode,xe=Pe.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},Fe=Pe.dispatchEvent,Ve=Pe.getAttribute,Ue=Pe.hasAttribute,qe=Pe.removeAttribute,Be=Pe.setAttribute,Ge=E.createElement,We=E.importNode,$e=Ge,Xe=Oe&&{attributes:!0,characterData:!0,attributeOldValue:!0},Je=Oe||function(e){tt=!1,ie.removeEventListener(J,Je)},Ke=0,Ye=N in E&&!/^force-all/.test(t.type),Qe=!0,et=!1,tt=!0,nt=!0,ot=!0;if(Oe&&((P=E.createElement("div")).innerHTML="<div><div></div></div>",new Oe((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(P=fe(Pe,"innerHTML"))&&P.set;n&&he(Pe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),P=null})).observe(P,{childList:!0,subtree:!0}),P.innerHTML=""),Ye||(ge||Te?(O=function(e,t){ue.call(t,e)||p(e,t)},Z=p):Z=O=function(e,t){e[A]||(e[A]=b(!0),p(e,t))},Ne?(tt=!1,function(){var e=fe(Pe,I),t=e.value,n=function(e){var t=new CustomEvent(J,{bubbles:!0});t.attrName=e,t.prevValue=Ve.call(this,e),t.newValue=null,t[X]=t.attrChange=2,qe.call(this,e),Fe.call(this,t)},o=function(e,t){var n=Ue.call(this,e),o=n&&Ve.call(this,e),r=new CustomEvent(J,{bubbles:!0});Be.call(this,e,t),r.attrName=e,r.prevValue=n?o:null,r.newValue=t,n?r.MODIFICATION=r.attrChange=1:r[$]=r.attrChange=0,Fe.call(this,r)},r=function(e){var t,n=e.currentTarget,o=n[A],r=e.propertyName;o.hasOwnProperty(r)&&(o=o[r],(t=new CustomEvent(J,{bubbles:!0})).attrName=o.name,t.prevValue=o.value||null,t.newValue=o.value=n[r]||null,null==t.prevValue?t[$]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,Fe.call(n,t))};e.value=function(e,a,i){e===J&&this[V]&&this.setAttribute!==o&&(this[A]={className:{name:"class",value:this.className}},this.setAttribute=o,this.removeAttribute=n,t.call(this,"propertychange",r)),t.call(this,e,a,i)},he(Pe,I,e)}()):Oe||(ie[I](J,Je),ie.setAttribute(A,1),ie.removeAttribute(A),tt&&(M=function(e){var t,n,o,r=this;if(r===e.target){for(o in t=r[A],r[A]=n=S(r),n){if(!(o in t))return C(0,r,o,t[o],n[o],$);if(n[o]!==t[o])return C(1,r,o,t[o],n[o],"MODIFICATION")}for(o in t)if(!(o in n))return C(2,r,o,t[o],n[o],X)}},C=function(e,t,n,o,r,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:o,newValue:r};i[a]=e,s(i)},S=function(e){for(var t,n,o={},r=e.attributes,a=0,i=r.length;a<i;a++)"setAttribute"!==(n=(t=r[a]).name)&&(o[n]=t.value);return o})),E[N]=function(e,t){if(n=e.toUpperCase(),Qe&&(Qe=!1,Oe?(D=function(e,t){function n(e,t){for(var n=0,o=e.length;n<o;t(e[n++]));}return new Oe((function(o){for(var r,a,i,s=0,l=o.length;s<l;s++)"childList"===(r=o[s]).type?(n(r.addedNodes,e),n(r.removedNodes,t)):(a=r.target,ot&&a[V]&&"style"!==r.attributeName&&(i=Ve.call(a,r.attributeName))!==r.oldValue&&a[V](r.attributeName,r.oldValue,i))}))}(r(j),r(x)),(H=function(e){return D.observe(e,{childList:!0,subtree:!0}),e})(E),je&&(Pe.attachShadow=function(){return H(je.apply(this,arguments))})):(L=[],E[I]("DOMNodeInserted",l(j)),E[I]("DOMNodeRemoved",l(x))),E[I](K,c),E[I]("readystatechange",c),E.importNode=function(e,t){switch(e.nodeType){case 1:return h(E,We,[e,!!t]);case 11:for(var n=E.createDocumentFragment(),o=e.childNodes,r=o.length,a=0;a<r;a++)n.appendChild(E.importNode(o[a],!!t));return n;default:return Re.call(e,!!t)}},Pe.cloneNode=function(e){return h(this,Re,[!!e])}),et)return et=!1;if(-2<se.call(oe,ee+n)+se.call(oe,Q+n)&&f(e),!te.test(n)||-1<se.call(ne,n))throw new Error("The type "+e+" is invalid");var n,a,i=function(){return u?E.createElement(p,n):E.createElement(p)},s=t||le,u=ce.call(s,F),p=u?t[F].toUpperCase():n;return u&&-1<se.call(oe,Q+p)&&f(p),a=oe.push((u?ee:Q)+n)-1,ae=ae.concat(ae.length?",":"",u?p+'[is="'+e.toLowerCase()+'"]':p),i.prototype=re[a]=ce.call(s,"prototype")?s.prototype:De(Pe),ae.length&&o(E.querySelectorAll(ae),j),i},E.createElement=$e=function(e,t){var n=y(t),o=n?Ge.call(E,e,Se(n)):Ge.call(E,e),r=""+e,a=se.call(oe,(n?ee:Q)+(n||r).toUpperCase()),s=-1<a;return n&&(o.setAttribute("is",n=n.toLowerCase()),s&&(s=i(r.toUpperCase(),n))),ot=!E.createElement.innerHTMLHelper,s&&Z(o,re[a]),o}),addEventListener("beforeunload",(function(){delete E.createElement,delete E.importNode,delete E[N]}),!1),m.prototype={constructor:m,define:_e?function(e,t,n){if(n)g(e,t,n);else{var o=e.toUpperCase();Le[o]={constructor:t,create:[o]},Ce.set(t,o),ve.define(e,t)}}:g,get:_e?function(e){return ve.get(e)||T(e)}:T,whenDefined:_e?function(e){return be.race([ve.whenDefined(e),_(e)])}:_},!ve||/^force/.test(t.type))k();else if(!t.noBuiltIn)try{!function(t,n,o){var r=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(n[F]="a",(t.prototype=De(Ze.prototype)).constructor=t,e.customElements.define(o,t,n),!r.test(E.createElement("a",{is:o}).outerHTML)||!r.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(Ze,[],e)}),{},"document-register-element-a"+z)}catch(rt){k()}if(!t.noBuiltIn)try{if(Ge.call(E,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(at){Se=function(e){return{is:e.toLowerCase()}}}}(window)},"hN/g":function(e,t,n){"use strict";n.r(t),n("pDpN"),n("KJ4T")},pDpN:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function a(e){return r+e}const i=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(i||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class s{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return O.zone}static get currentTask(){return Z}static __load_patch(t,r){if(D.hasOwnProperty(t)){if(i)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const a="Zone:"+t;n(a),D[t]=r(e,s,H),o(a,a)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{O=O.parent}}runGuarded(e,t=null,n,o){O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{O=O.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");if(e.state===_&&(e.type===S||e.type===C))return;const o=e.state!=b;o&&e._transitionTo(b,E),e.runCount++;const r=Z;Z=e,O={parent:O,zone:this};try{e.type==C&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==_&&e.state!==L&&(e.type==S||e.data&&e.data.isPeriodic?o&&e._transitionTo(E,b):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(_,b,_))),O=O.parent,Z=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(k,_);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(L,k,_),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(E,k),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(M,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(C,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(S,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");e._transitionTo(w,E,b);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(L,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(_,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}s.__symbol__=a;const l={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,a)=>e.invokeTask(n,o,r,a),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class c{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=M)throw new Error("Task is missing scheduleFn.");T(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,a,i){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=a,this.cancelFn=i,!o)throw new Error("callback is not defined");this.callback=o;const s=this;this.invoke=t===S&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,s,this,arguments)}}static invokeTask(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&y(),P--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(_,k)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==_&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=a("setTimeout"),p=a("Promise"),f=a("then");let d,m=[],g=!1;function T(t){if(0===P&&0===m.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,y)}else e[h](y,0);t&&m.push(t)}function y(){if(!g){for(g=!0;m.length;){const t=m;m=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){H.onUnhandledError(e)}}}H.microtaskDrainDone(),g=!1}}const v={name:"NO ZONE"},_="notScheduled",k="scheduling",E="scheduled",b="running",w="canceling",L="unknown",M="microTask",C="macroTask",S="eventTask",D={},H={symbol:a,currentZoneFrame:()=>O,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:T,showUncaughtError:()=>!s[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N};let O={parent:null,zone:new s(null,null)},Z=null,P=0;function N(){}o("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,a=n.symbol,i=[],s=!0===e[a("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=a("Promise"),c=a("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;i.length;){const t=i.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=a("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return C.reject(e)}const m=a("state"),g=a("value"),T=a("finally"),y=a("parentPromiseValue"),v=a("parentPromiseState");function _(e,t){return n=>{try{E(e,t,n)}catch(o){E(e,!1,o)}}}const k=a("currentTaskTrace");function E(e,o,a){const l=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===a)throw new TypeError("Promise resolved with itself");if(null===e[m]){let h=null;try{"object"!=typeof a&&"function"!=typeof a||(h=a&&a.then)}catch(u){return l(()=>{E(e,!1,u)})(),e}if(!1!==o&&a instanceof C&&a.hasOwnProperty(m)&&a.hasOwnProperty(g)&&null!==a[m])w(a),E(e,a[m],a[g]);else if(!1!==o&&"function"==typeof h)try{h.call(a,l(_(e,o)),l(_(e,!1)))}catch(u){l(()=>{E(e,!1,u)})()}else{e[m]=o;const l=e[g];if(e[g]=a,e[T]===T&&!0===o&&(e[m]=e[v],e[g]=e[y]),!1===o&&a instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(a,k,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)L(e,l[t++],l[t++],l[t++],l[t++]);if(0==l.length&&0==o){e[m]=0;let o=a;if(!s)try{throw new Error("Uncaught (in promise): "+((c=a)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(a&&a.stack?"\n"+a.stack:""))}catch(u){o=u}o.rejection=a,o.promise=e,o.zone=t.current,o.task=t.currentTask,i.push(o),n.scheduleMicroTask()}}}var c;return e}const b=a("rejectionHandledHandler");function w(e){if(0===e[m]){try{const n=t[b];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(n){}e[m]=!1;for(let t=0;t<i.length;t++)e===i[t].promise&&i.splice(t,1)}}function L(e,t,n,o,r){w(e);const a=e[m],i=a?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[g],r=!!n&&T===n[T];r&&(n[y]=o,n[v]=a);const s=t.run(i,void 0,r&&i!==d&&i!==f?[]:[o]);E(n,!0,s)}catch(o){E(n,!1,o)}},n)}const M=function(){};class C{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return E(new this(null),!0,e)}static reject(e){return E(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function a(e){n(e)}for(let i of e)p(i)||(i=this.resolve(i)),i.then(r,a);return o}static all(e){return C.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof C?this:C).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),a=2,i=0;const s=[];for(let c of e){p(c)||(c=this.resolve(c));const e=i;try{c.then(o=>{s[e]=t?t.thenCallback(o):o,a--,0===a&&n(s)},r=>{t?(s[e]=t.errorCallback(r),a--,0===a&&n(s)):o(r)})}catch(l){o(l)}a++,i++}return a-=2,0===a&&n(s),r}constructor(e){const t=this;if(!(t instanceof C))throw new Error("Must be an instanceof Promise.");t[m]=null,t[g]=[];try{e&&e(_(t,!0),_(t,!1))}catch(n){E(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return C}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||C);const r=new o(M),a=t.current;return null==this[m]?this[g].push(a,r,e,n):L(this,a,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=C);const o=new n(M);o[T]=T;const r=t.current;return null==this[m]?this[g].push(r,o,e,e):L(this,r,o,e,e),o}}C.resolve=C.resolve,C.reject=C.reject,C.race=C.race,C.all=C.all;const S=e[l]=e.Promise,D=t.__symbol__("ZoneAwarePromise");let H=o(e,"Promise");H&&!H.configurable||(H&&delete H.writable,H&&delete H.value,H||(H={configurable:!0,enumerable:!0}),H.get=function(){return e[D]?e[D]:e[l]},H.set=function(t){t===C?e[D]=t:(e[l]=t,t.prototype[c]||Z(t),n.setNativePromise(t))},r(e,"Promise",H)),e.Promise=C;const O=a("thenPatched");function Z(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[c]=r,e.prototype.then=function(e,t){return new C((e,t)=>{r.call(this,e,t)}).then(e,t)},e[O]=!0}if(n.patchThen=Z,S){Z(S);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(P=t,function(){let e=P.apply(this,arguments);if(e instanceof C)return e;let t=e.constructor;return t[O]||Z(t),e}))}var P;return Promise[t.__symbol__("uncaughtPromiseErrors")]=i,C});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,a=Zone.__symbol__("addEventListener"),i=Zone.__symbol__("removeEventListener"),s=Zone.__symbol__("");function l(e,t){return Zone.current.wrap(e,t)}function c(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function m(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=l(e[n],t+"_"+n));return e}function g(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,y=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),v=!y&&!T&&!(!h||!p.HTMLElement),_=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!T&&!(!h||!p.HTMLElement),k={},E=function(e){if(!(e=e||f.event))return;let t=k[e.type];t||(t=k[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(v&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function b(n,o,r){let a=e(n,o);if(!a&&r&&e(r,o)&&(a={enumerable:!0,configurable:!0}),!a||!a.configurable)return;const i=u("on"+o+"patched");if(n.hasOwnProperty(i)&&n[i])return;delete a.writable,delete a.value;const s=a.get,l=a.set,c=o.substr(2);let h=k[c];h||(h=k[c]=u("ON_PROPERTY"+c)),a.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(c,E),l&&l.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(c,E,!1)):t[h]=null)},a.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(s){let t=s&&s.call(this);if(t)return a.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,a),n[i]=!0}function w(e,t,n){if(t)for(let o=0;o<t.length;o++)b(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)b(e,t[o],n)}}const L=u("originalInstance");function M(e){const n=f[e];if(!n)return;f[u(e)]=n,f[e]=function(){const t=m(arguments,e);switch(t.length){case 0:this[L]=new n;break;case 1:this[L]=new n(t[0]);break;case 2:this[L]=new n(t[0],t[1]);break;case 3:this[L]=new n(t[0],t[1],t[2]);break;case 4:this[L]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},D(f[e],n);const o=new n((function(){}));let r;for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?f[e].prototype[n]=function(){return this[L][n].apply(this[L],arguments)}:t(f[e].prototype,n,{set:function(t){"function"==typeof t?(this[L][n]=l(t,e+"."+n),D(this[L][n],t)):this[L][n]=t},get:function(){return this[L][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(f[e][r]=n[r])}function C(t,o,r){let a=t;for(;a&&!a.hasOwnProperty(o);)a=n(a);!a&&t[o]&&(a=t);const i=u(o);let s=null;if(a&&!(s=a[i])&&(s=a[i]=a[o],g(a&&e(a,o)))){const e=r(s,i,o);a[o]=function(){return e(this,arguments)},D(a[o],s)}return s}function S(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=C(e,t,e=>function(t,o){const a=n(t,o);return a.cbIdx>=0&&"function"==typeof o[a.cbIdx]?c(a.name,o[a.cbIdx],a,r):e.apply(t,o)})}function D(e,t){e[u("OriginalDelegate")]=t}let H=!1,O=!1;function Z(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function P(){if(H)return O;H=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(O=!0)}catch(e){}return O}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),a=function(){if("function"==typeof this){const a=this[n];if(a)return"function"==typeof a?t.call(a):Object.prototype.toString.call(a);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;const i=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":i.call(this)}});let N=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){N=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(se){N=!1}const z={useG:!0},A={},I={},j=new RegExp("^"+s+"(\\w+)(true|false)$"),R=u("propagationStopped");function x(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=s+n,a=s+o;A[e]={},A[e].false=r,A[e].true=a}function F(e,t,o){const r=o&&o.add||"addEventListener",a=o&&o.rm||"removeEventListener",i=o&&o.listeners||"eventListeners",l=o&&o.rmAll||"removeAllListeners",c=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[a].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[A[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[R]);o++)p(e[o],n,t)}},d=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[A[t.type].true];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[R]);o++)p(e[o],n,t)}};function m(t,o){if(!t)return!1;let p=!0;o&&void 0!==o.useG&&(p=o.useG);const m=o&&o.vh;let g=!0;o&&void 0!==o.chkDup&&(g=o.chkDup);let T=!1;o&&void 0!==o.rt&&(T=o.rt);let v=t;for(;v&&!v.hasOwnProperty(r);)v=n(v);if(!v&&t[r]&&(v=t),!v)return!1;if(v[c])return!1;const _=o&&o.eventNameToString,k={},E=v[c]=v[r],b=v[u(a)]=v[a],w=v[u(i)]=v[i],L=v[u(l)]=v[l];let M;function C(e,t){return!N&&"object"==typeof e&&e?!!e.capture:N&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}o&&o.prepend&&(M=v[u(o.prepend)]=v[o.prepend]);const S=p?function(e){if(!k.isExisting)return E.call(k.target,k.eventName,k.capture?d:f,k.options)}:function(e){return E.call(k.target,k.eventName,e.invoke,k.options)},H=p?function(e){if(!e.isRemoved){const t=A[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return b.call(e.target,e.eventName,e.capture?d:f,e.options)}:function(e){return b.call(e.target,e.eventName,e.invoke,e.options)},O=o&&o.diff?o.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},Z=Zone[u("BLACK_LISTED_EVENTS")],P=e[u("PASSIVE_EVENTS")],R=function(t,n,r,a,i=!1,s=!1){return function(){const l=this||e;let c=arguments[0];o&&o.transferEventName&&(c=o.transferEventName(c));let u=arguments[1];if(!u)return t.apply(this,arguments);if(y&&"uncaughtException"===c)return t.apply(this,arguments);let h=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);h=!0}if(m&&!m(t,u,l,arguments))return;const f=N&&!!P&&-1!==P.indexOf(c),d=C(arguments[2],f);if(Z)for(let e=0;e<Z.length;e++)if(c===Z[e])return f?t.call(l,c,u,d):t.apply(this,arguments);const T=!!d&&("boolean"==typeof d||d.capture),v=!(!d||"object"!=typeof d)&&d.once,E=Zone.current;let b=A[c];b||(x(c,_),b=A[c]);const w=b[T?"true":"false"];let L,M=l[w],S=!1;if(M){if(S=!0,g)for(let e=0;e<M.length;e++)if(O(M[e],u))return}else M=l[w]=[];const D=l.constructor.name,H=I[D];H&&(L=H[c]),L||(L=D+n+(_?_(c):c)),k.options=d,v&&(k.options.once=!1),k.target=l,k.capture=T,k.eventName=c,k.isExisting=S;const j=p?z:void 0;j&&(j.taskData=k);const R=E.scheduleEventTask(L,u,j,r,a);return k.target=null,j&&(j.taskData=null),v&&(d.once=!0),(N||"boolean"!=typeof R.options)&&(R.options=d),R.target=l,R.capture=T,R.eventName=c,h&&(R.originalDelegate=u),s?M.unshift(R):M.push(R),i?l:void 0}};return v[r]=R(E,h,S,H,T),M&&(v.prependListener=R(M,".prependListener:",(function(e){return M.call(k.target,k.eventName,e.invoke,k.options)}),H,T,!0)),v[a]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2],a=!!r&&("boolean"==typeof r||r.capture),i=arguments[1];if(!i)return b.apply(this,arguments);if(m&&!m(b,i,t,arguments))return;const l=A[n];let c;l&&(c=l[a?"true":"false"]);const u=c&&t[c];if(u)for(let e=0;e<u.length;e++){const o=u[e];if(O(o,i))return u.splice(e,1),o.isRemoved=!0,0===u.length&&(o.allRemoved=!0,t[c]=null,"string"==typeof n)&&(t[s+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),T?t:void 0}return b.apply(this,arguments)},v[i]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],a=V(t,_?_(n):n);for(let e=0;e<a.length;e++){const t=a[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},v[l]=function(){const t=this||e;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const e=A[n];if(e){const o=t[e.false],r=t[e.true];if(o){const e=o.slice();for(let t=0;t<e.length;t++){const o=e[t];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const e=r.slice();for(let t=0;t<e.length;t++){const o=e[t];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=j.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[l].call(this,o)}this[l].call(this,"removeListener")}if(T)return this},D(v[r],E),D(v[a],b),L&&D(v[l],L),w&&D(v[i],w),!0}let g=[];for(let n=0;n<t.length;n++)g[n]=m(t[n],o);return g}function V(e,t){if(!t){const n=[];for(let o in e){const r=j.exec(o);let a=r&&r[1];if(a&&(!t||a===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=A[t];n||(x(t),n=A[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function U(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[R]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const a=Zone.__symbol__(o);if(t[a])return;const i=t[a]=t[o];t[o]=function(a,s,l){return s&&s.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,a=s.prototype;if(a.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(a,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(s.prototype,t,n)):a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],r))}else a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],r))})),i.call(t,a,s,l)},e.attachOriginToPatched(t[o],i)}const B=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],G=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],W=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],K=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Y=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],B,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(y&&!_)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(v){const e=window,t=Z?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,G,r),ne(HTMLFrameSetElement.prototype,B.concat($),r),ne(HTMLBodyElement.prototype,B.concat($),r),ne(HTMLFrameElement.prototype,W,r),ne(HTMLIFrameElement.prototype,W,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const a=e.Worker;a&&ne(a.prototype,Q,r)}const a=t.XMLHttpRequest;a&&ne(a.prototype,J,r);const i=t.XMLHttpRequestEventTarget;i&&ne(i&&i.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,K,r),ne(IDBRequest.prototype,K,r),ne(IDBOpenDBRequest.prototype,K,r),ne(IDBDatabase.prototype,K,r),ne(IDBTransaction.prototype,K,r),ne(IDBCursor.prototype,K,r)),o&&ne(WebSocket.prototype,Y,r)}Zone.__load_patch("util",(n,a,i)=>{i.patchOnProperties=w,i.patchMethod=C,i.bindArguments=m,i.patchMacroTask=S;const c=a.__symbol__("BLACK_LISTED_EVENTS"),u=a.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[c]=n[u]),n[c]&&(a[c]=a[u]=n[c]),i.patchEventPrototype=U,i.patchEventTarget=F,i.isIEOrEdge=P,i.ObjectDefineProperty=t,i.ObjectGetOwnPropertyDescriptor=e,i.ObjectCreate=o,i.ArraySlice=r,i.patchClass=M,i.wrapWithCurrentZone=l,i.filterProperties=te,i.attachOriginToPatched=D,i._redefineProperty=Object.defineProperty,i.patchCallbacks=q,i.getGlobalObjects=()=>({globalSources:I,zoneSymbolEventNames:A,eventNames:ee,isBrowser:v,isMix:_,isNode:y,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function ae(e,t,n,o){let r=null,a=null;n+=o;const i={};function s(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete i[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function l(e){return a(e.data.handleId)}r=C(e,t+=o,n=>function(r,a){if("function"==typeof a[0]){const e=c(t,a[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?a[1]||0:void 0,args:a},s,l);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?i[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,a)}),a=C(e,n,t=>function(n,o){const r=o[0];let a;"number"==typeof r?a=i[r]:(a=r&&r[re],a||(a=r)),a&&"string"==typeof a.type?"notScheduled"!==a.state&&(a.cancelFn&&a.data.isPeriodic||0===a.runCount)&&("number"==typeof r?delete i[r]:r&&(r[re]=null),a.zone.cancelTask(a)):t.apply(e,o)})}function ie(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:a,ZONE_SYMBOL_PREFIX:i}=t.getGlobalObjects();for(let l=0;l<n.length;l++){const e=n[l],t=i+(e+a),s=i+(e+r);o[e]={},o[e][a]=t,o[e][r]=s}const s=e.EventTarget;return s&&s.prototype?(t.patchEventTarget(e,[s&&s.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{ae(e,"set","clear","Timeout"),ae(e,"set","clear","Interval"),ae(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ae(e,"request","cancel","AnimationFrame"),ae(e,"mozRequest","mozCancel","AnimationFrame"),ae(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)C(e,n[o],(n,o,r)=>function(o,a){return t.current.run(n,e,a,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ie(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),M("MutationObserver"),M("WebKitMutationObserver"),M("IntersectionObserver"),M("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[a],m=f[i];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[a],m=e[i]}}function g(e){const o=e.data,l=o.target;l[s]=!1,l[h]=!1;const c=l[r];d||(d=l[a],m=l[i]),c&&m.call(l,"readystatechange",c);const u=l[r]=()=>{if(l.readyState===l.DONE)if(!o.aborted&&l[s]&&"scheduled"===e.state){const n=l[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=l[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||"scheduled"!==e.state||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==l[s]||(l[h]=!0)};return d.call(l,"readystatechange",u),l[n]||(l[n]=e),E.apply(l,o.args),l[s]=!0,e}function T(){}function y(e){const t=e.data;return t.aborted=!0,b.apply(t.target,t.args)}const v=C(f,"open",()=>function(e,t){return e[o]=0==t[2],e[l]=t[1],v.apply(e,t)}),_=u("fetchTaskAborting"),k=u("fetchTaskScheduling"),E=C(f,"send",()=>function(e,n){if(!0===t.current[k])return E.apply(e,n);if(e[o])return E.apply(e,n);{const t={target:e,url:e[l],isPeriodic:!1,args:n,aborted:!1},o=c("XMLHttpRequest.send",T,t,g,y);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),b=C(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[_])return b.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),s=u("xhrScheduled"),l=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r<n.length;r++){const a=n[r],i=t[a];if(i){if(!g(e(t,a)))continue;t[a]=(e=>{const t=function(){return e.apply(this,m(arguments,o+"."+a))};return D(t,e),t})(i)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){V(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[1,0]]]);(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"0Tit":function(t,e){var n="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function r(t){return 3*t}function o(t,e,n){return((i(e,n)*t+s(e,n))*t+r(e))*t}function a(t,e,n){return 3*i(e,n)*t*t+2*s(e,n)*t+r(e)}function l(t){return t}t.exports=function(t,e,i,s){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===s)return l;for(var r=n?new Float32Array(11):new Array(11),c=0;c<11;++c)r[c]=o(.1*c,t,i);return function(n){return 0===n?0:1===n?1:o(function(e){for(var n=0,s=1;10!==s&&r[s]<=e;++s)n+=.1;--s;var l=n+(e-r[s])/(r[s+1]-r[s])*.1,c=a(l,t,i);return c>=.001?function(t,e,n,i){for(var s=0;s<4;++s){var r=a(e,n,i);if(0===r)return e;e-=(o(e,n,i)-t)/r}return e}(e,l,t,i):0===c?l:function(t,e,n,i,s){var r,a,l=0;do{(r=o(a=e+(n-e)/2,i,s)-t)>0?n=a:e=a}while(Math.abs(r)>1e-7&&++l<10);return a}(e,n,n+.1,t,i)}(n),e,s)}}},"4fRq":function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},EcEN:function(t,e,n){var i=n("xDdU"),s=n("xk4V"),r=s;r.v1=i,r.v4=s,t.exports=r},I2ZF:function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},xDdU:function(t,e,n){var i,s,r=n("4fRq"),o=n("I2ZF"),a=0,l=0;t.exports=function(t,e,n){var c=e&&n||0,h=e||[],u=(t=t||{}).node||i,d=void 0!==t.clockseq?t.clockseq:s;if(null==u||null==d){var p=r();null==u&&(u=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=s=16383&(p[6]<<8|p[7]))}var g=void 0!==t.msecs?t.msecs:(new Date).getTime(),f=void 0!==t.nsecs?t.nsecs:l+1,m=g-a+(f-l)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||g>a)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=g,l=f,s=d;var _=(1e4*(268435455&(g+=122192928e5))+f)%4294967296;h[c++]=_>>>24&255,h[c++]=_>>>16&255,h[c++]=_>>>8&255,h[c++]=255&_;var v=g/4294967296*1e4&268435455;h[c++]=v>>>8&255,h[c++]=255&v,h[c++]=v>>>24&15|16,h[c++]=v>>>16&255,h[c++]=d>>>8|128,h[c++]=255&d;for(var y=0;y<6;++y)h[c+y]=u[y];return e||o(h)}},xk4V:function(t,e,n){var i=n("4fRq"),s=n("I2ZF");t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[r+a]=o[a];return e||s(o)}},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(s))try{s.call(this)}catch(o){e=o instanceof h?d(o.errors):[o]}if(l(r)){let t=-1,n=r.length;for(;++t<n;){const n=r[t];if(c(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof h?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new g(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends g{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function v(...t){return y(t)}function y(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof g)return t;if(t[p])return t[p]()}return t||e||n?new g(t,e,n):new g(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class E extends g{constructor(t){super(t),this.destination=t}}let I=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new S(this,t))}asObservable(){const t=new b;return t.source=this,t}}return t.create=(t,e)=>new x(t,e),t})();class x extends I{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class P extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const k=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=M(),A=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function O(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return k(t);if(O(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[D])return e=t,t=>{const n=e[D]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function L(t,e,n,i,s=new P(t,n,i)){if(!s.closed)return e instanceof b?e.subscribe(s):R(e)(s)}class N extends g{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function z(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new V(t,this.project,this.thisArg))}}class V extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function U(t,e){return new b(n=>{const i=new u;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[m]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(O(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return U(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[D](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(R(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(z((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new W(t,this.project,this.concurrent))}}class W extends N{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new P(this,e,n),s=this.destination;s.add(i);const r=L(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return B(_,t)}function q(t,e){return e?U(t,e):new b(k(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return T(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:$(e)(q(t,n))}function Y(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class X extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Z=(()=>{const t=X.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends E{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(){return new I}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[ft])||pt(t,t[vt])}function pt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(yt))?t[mt]:null}const ft=lt({"\u0275prov":lt}),mt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),vt=lt({ngInjectableDef:lt}),yt=lt({ngInjectorDef:lt});function bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function St(t){return t.__forward_ref__=St,t.toString=function(){return bt(this())},t}function Et(t){return It(t)?t():t}function It(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===St}const xt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,Pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt="undefined"!=typeof global&&global,Mt=xt||kt||Tt||Pt,Dt=lt({"\u0275cmp":lt}),At=lt({"\u0275dir":lt}),Ot=lt({"\u0275pipe":lt}),Rt=lt({"\u0275mod":lt}),Lt=lt({"\u0275loc":lt}),Nt=lt({"\u0275fac":lt}),zt=lt({__NG_ELEMENT_ID__:lt});class Ft{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Vt=new Ft("INJECTOR",-1),Ut={},jt=/\n/gm,Bt=lt({provide:String,useValue:lt});let Ht,Wt=void 0;function $t(t){const e=Wt;return Wt=t,e}function qt(t){const e=Ht;return Ht=t,e}function Gt(t,e=at.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Kt(t,void 0,e):Wt.get(t,e&at.Optional?null:void 0,e)}function Yt(t,e=at.Default){return(Ht||Gt)(Et(t),e)}const Qt=Yt;function Kt(t,e,n){const i=dt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${bt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const i=Et(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof st||"Optional"===s.ngMetadataName||s===st?n|=at.Optional:s instanceof ot||"SkipSelf"===s.ngMetadataName||s===ot?n|=at.SkipSelf:s instanceof rt||"Self"===s.ngMetadataName||s===rt?n|=at.Self:t=s instanceof it||s===it?s.token:s}e.push(Yt(t,n))}else e.push(Yt(i))}return e}class Zt{get(t,e=Ut){if(e===Ut){const e=new Error(`NullInjectorError: No provider for ${bt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Jt{}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function re(t,e,n){let i=ae(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const le=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),ce=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),he={},ue=[];let de=0;function pe(t){return et(()=>{const e=t.type,n=e.prototype,i={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,o=t.features,a=t.pipes;return s.id+=de++,s.inputs=ve(t.inputs,i),s.outputs=ve(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=r?()=>("function"==typeof r?r():r).map(ge):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(fe):null,s})}function ge(t){return we(t)||function(t){return t[At]||null}(t)}function fe(t){return function(t){return t[Ot]||null}(t)}const me={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{me[t.id]=t.type}),e}function ve(t,e){if(null==t)return he;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const ye=pe;function be(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Dt]||null}function Ce(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function Se(t,e){const n=t[Rt]||null;if(!n&&!0===e)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return n}function Ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ie(t){return Array.isArray(t)&&!0===t[1]}function xe(t){return 0!=(8&t.flags)}function Te(t){return 2==(2&t.flags)}function Pe(t){return 1==(1&t.flags)}function ke(t){return null!==t.template}function Me(t){return 0!=(512&t[2])}let De=void 0;function Ae(){return void 0!==De?De:"undefined"!=typeof document?document:void 0}function Oe(t){return!!t.listen}const Re={createRenderer:(t,e)=>Ae()};function Le(t){for(;Array.isArray(t);)t=t[0];return t}function Ne(t,e){return Le(e[t+20])}function ze(t,e){return Le(e[t.index])}function Fe(t,e){return t.data[e+20]}function Ve(t,e){return t[e+20]}function Ue(t,e){const n=e[t];return Ee(n)?n:n[0]}function je(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Be(t){return 4==(4&t[2])}function He(t){return 128==(128&t[2])}function We(t,e){return null===t||null==e?null:t[e]}function $e(t){t[18]=0}function qe(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Ge={lFrame:mn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ye(){return Ge.bindingsEnabled}function Qe(){return Ge.lFrame.lView}function Ke(){return Ge.lFrame.tView}function Xe(t){Ge.lFrame.contextLView=t}function Ze(){return Ge.lFrame.previousOrParentTNode}function Je(t,e){Ge.lFrame.previousOrParentTNode=t,Ge.lFrame.isParent=e}function tn(){return Ge.lFrame.isParent}function en(){Ge.lFrame.isParent=!1}function nn(){return Ge.checkNoChangesMode}function sn(t){Ge.checkNoChangesMode=t}function rn(){const t=Ge.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function on(){return Ge.lFrame.bindingIndex}function an(){return Ge.lFrame.bindingIndex++}function ln(t){const e=Ge.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function cn(t,e){const n=Ge.lFrame;n.bindingIndex=n.bindingRootIndex=t,hn(e)}function hn(t){Ge.lFrame.currentDirectiveIndex=t}function un(){return Ge.lFrame.currentQueryIndex}function dn(t){Ge.lFrame.currentQueryIndex=t}function pn(t,e){const n=fn();Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function gn(t,e){const n=fn(),i=t[1];Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function fn(){const t=Ge.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function _n(){const t=Ge.lFrame;return Ge.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const vn=_n;function yn(){const t=_n();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function bn(){return Ge.lFrame.selectedIndex}function wn(t){Ge.lFrame.selectedIndex=t}function Cn(){const t=Ge.lFrame;return Fe(t.tView,t.selectedIndex)}function Sn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function En(t,e,n){Tn(t,e,3,n)}function In(t,e,n,i){(3&t[2])===n&&Tn(t,e,n,i)}function xn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Tn(t,e,n,i){const s=null!=i?i:-1;let r=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=i&&r>=i)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Pn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Pn(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class kn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Mn(t,e,n){const i=Oe(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];An(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Dn(t){return 3===t||4===t||6===t}function An(t){return 64===t.charCodeAt(0)}function On(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Rn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Rn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Ln(t){return-1!==t}function Nn(t){return 32767&t}function zn(t){return t>>16}function Fn(t,e){let n=zn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Vn(t){return"string"==typeof t?t:null==t?"":""+t}function Un(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Vn(t)}const jn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Mt))();function Bn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Hn(t){return{name:"document",target:t.ownerDocument}}function Wn(t){return t instanceof Function?t():t}let $n=!0;function qn(t){const e=$n;return $n=t,e}let Gn=0;function Yn(t,e){const n=Kn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));const s=Xn(t,e),r=t.injectorIndex;if(Ln(s)){const t=Nn(s),n=Fn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Kn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Xn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Zn(t,e,n){!function(t,e,n){let i="string"!=typeof n?n[zt]:n.charCodeAt(0)||0;null==i&&(i=n[zt]=Gn++);const s=255&i,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function Jn(t,e,n,i=at.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[zt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){pn(e,t);try{const t=s();if(null!=t||i&at.Optional)return t;throw new Error(`No provider for ${Un(n)}!`)}finally{vn()}}else if("number"==typeof s){if(-1===s)return new oi(t,e);let r=null,o=Kn(t,e),a=-1,l=i&at.Host?e[16][6]:null;for((-1===o||i&at.SkipSelf)&&(a=-1===o?Xn(t,e):e[o+8],ri(i,!1)?(r=e[1],o=Nn(a),e=Fn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(si(s,o,t.data)){const t=ei(o,e,n,r,i,l);if(t!==ti)return t}ri(i,e[1].data[o+8]===l)&&si(s,o,e)?(r=t,o=Nn(a),e=Fn(a,e)):o=-1}}}if(i&at.Optional&&void 0===s&&(s=null),0==(i&(at.Self|at.Host))){const t=e[9],r=qt(void 0);try{return t?t.get(n,s,i&at.Optional):Kt(n,s,i&at.Optional)}finally{qt(r)}}if(i&at.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Un(n)}]`)}const ti={};function ei(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=ni(a,o,n,null==i?Te(a)&&$n:i!=o&&3===a.type,s&at.Host&&r===a);return null!==l?ii(e,o,l,a):ti}function ni(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=65535&r,l=t.directiveStart,c=r>>16,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(s){const t=o[l];if(t&&ke(t)&&t.type===n)return l}return null}function ii(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof kn){const o=s;if(o.resolving)throw new Error("Circular dep for "+Un(r[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qt(o.injectImpl)),pn(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{onChanges:i,onInit:s,doCheck:r}=e;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&qt(l),qn(a),o.resolving=!1,vn()}}return s}function si(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<<t)}function ri(t,e){return!(t&at.Self||t&at.Host&&e)}class oi{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Jn(this._tNode,this._lView,t,void 0,e)}}function ai(t){const e=t;if(It(t))return()=>{const t=ai(Et(e));return t?t():null};let n=Ce(e);if(null===n){const t=gt(e);n=t&&t.factory}return n||null}function li(t){return et(()=>{const e=t.prototype.constructor,n=e[Nt]||ai(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Nt]||ai(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ci(t){return t.ngDebugContext}function hi(t){return t.ngOriginalError}function ui(t,...e){t.error(...e)}class di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ui}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ci(t)?ci(t):this._findContext(hi(t)):null}_findOriginalError(t){let e=hi(t);for(;e&&hi(e);)e=hi(e);return e}}class pi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class gi extends pi{getTypeName(){return"HTML"}}class fi extends pi{getTypeName(){return"Style"}}class mi extends pi{getTypeName(){return"Script"}}class _i extends pi{getTypeName(){return"URL"}}class vi extends pi{getTypeName(){return"ResourceURL"}}function yi(t){return t instanceof pi?t.changingThisBreaksApplicationSecurity:t}function bi(t,e){const n=wi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function wi(t){return t instanceof pi&&t.getTypeName()||null}let Ci=!0,Si=!1;function Ei(){return Si=!0,Ci}class Ii{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const xi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ti=/^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 Pi(t){return(t=String(t)).match(xi)||t.match(Ti)?t:(Ei()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function ki(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Mi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Di=ki("area,br,col,hr,img,wbr"),Ai=ki("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Oi=ki("rp,rt"),Ri=Mi(Oi,Ai),Li=Mi(Di,Mi(Ai,ki("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")),Mi(Oi,ki("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")),Ri),Ni=ki("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zi=ki("srcset"),Fi=Mi(Ni,zi,ki("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"),ki("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")),Vi=ki("script,style,template");class Ui{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Li.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!Fi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Ni[r]&&(o=Pi(o)),zi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Pi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Hi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Li.hasOwnProperty(e)&&!Di.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Hi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bi=/([^\#-~ |!])/g;function Hi(t){return t.replace(/&/g,"&amp;").replace(ji,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Bi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wi;function $i(t,e){let n=null;try{Wi=Wi||new Ii(t);let i=e?String(e):"";n=Wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Wi.getInertBodyElement(i)}while(i!==r);const o=new Ui,a=o.sanitizeChildren(qi(n)||n);return Ei()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=qi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function qi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Gi=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Yi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Qi=/^url\(([^)]+)\)$/;function Ki(t){if(!(t=String(t).trim()))return"";const e=t.match(Qi);return e&&Pi(e[1])===e[1]||t.match(Yi)&&function(t){let e=!0,n=!0;for(let i=0;i<t.length;i++){const s=t.charAt(i);"'"===s&&n?e=!e:'"'===s&&e&&(n=!n)}return e&&n}(t)?t:(Ei()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function Xi(t){const e=es();return e?e.sanitize(Gi.HTML,t)||"":bi(t,"HTML")?yi(t):$i(Ae(),Vn(t))}function Zi(t){const e=es();return e?e.sanitize(Gi.STYLE,t)||"":bi(t,"Style")?yi(t):Ki(Vn(t))}function Ji(t){const e=es();return e?e.sanitize(Gi.URL,t)||"":bi(t,"URL")?yi(t):Pi(Vn(t))}const ts=function(t,e,n){if(void 0===e&&void 0===n)return Zi(t);let i=!0;return 1&(n=n||3)&&(i=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?i?Zi(e):yi(e):i};function es(){const t=Qe();return t&&t[12]}function ns(t,e){t.__ngContext__=e}function is(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ss(){throw new Error("Cannot mix multi providers and regular providers")}function rs(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}function os(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==rs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function as(t){return 0===t.type&&"ng-template"!==t.tagName}function ls(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function cs(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Dn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!ls(t,l,n)||""===l&&1===e.length){if(hs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!os(t.attrs,c,n)){if(hs(i))return!1;o=!0}continue}const h=us(8&i?"class":l,s,as(t),n);if(-1===h){if(hs(i))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==rs(e,c,0)||2&i&&c!==t){if(hs(i))return!1;o=!0}}}}else{if(!o&&!hs(i)&&!hs(l))return!1;if(o&&hs(l))continue;o=!1,i=l|1&i}}return hs(i)||o}function hs(t){return 0==(1&t)}function us(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function ds(t,e,n=!1){for(let i=0;i<e.length;i++)if(cs(t,e[i],n))return!0;return!1}function ps(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function gs(t,e){return t?":not("+e.trim()+")":e}function fs(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||hs(o)||(e+=gs(r,s),s=""),i=o,r=r||!hs(i);n++}return""!==s&&(e+=gs(r,s)),e}const ms={};function _s(t){const e=t[3];return Ie(e)?e[3]:e}function vs(t){return bs(t[13])}function ys(t){return bs(t[4])}function bs(t){for(;null!==t&&!Ie(t);)t=t[4];return t}function ws(t){Cs(Ke(),Qe(),bn()+t,nn())}function Cs(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&En(e,i,n)}else{const i=t.preOrderHooks;null!==i&&In(e,i,0,n)}wn(n)}function Ss(t,e){return t<<17|e<<2}function Es(t){return t>>17&32767}function Is(t){return 2|t}function xs(t){return(131068&t)>>2}function Ts(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function ks(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];dn(s),n.contentQueries(2,e[r],r)}}}function Ms(t,e,n){return Oe(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ds(t,e,n,i,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|i,$e(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function As(t,e,n,i,s,r){const o=n+20,a=t.data[o]||function(t,e,n,i,s,r){const o=Ze(),a=tn(),l=a?o:o&&o.parent,c=t.data[n]=Bs(0,l&&l!==e?l:null,i,n,s,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,s,r);return Je(a,!0),a}function Os(t,e,n){gn(e,e[6]);try{const i=t.viewQuery;null!==i&&hr(1,i,n);const s=t.template;null!==s&&Ns(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ks(t,e),t.staticViewQueries&&hr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,yn()}}function Rs(t,e,n,i){const s=e[2];if(256==(256&s))return;gn(e,e[6]);const r=nn();try{$e(e),Ge.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ns(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&En(e,n,null)}else{const n=t.preOrderHooks;null!==n&&In(e,n,0,null),xn(e,0)}if(function(t){for(let e=vs(t);null!==e;e=ys(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&qe(i,1),n[2]|=1024}}}(e),function(t){for(let e=vs(t);null!==e;e=ys(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];He(n)&&Rs(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&ks(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&En(e,n)}else{const n=t.contentHooks;null!==n&&In(e,n,1),xn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,wn(r),i+=9+n[++t],s=i):i+=o:(null!==o&&(cn(i,s),o(2,e[s])),s++)}}}finally{wn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)sr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&hr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&En(e,n)}else{const n=t.viewHooks;null!==n&&In(e,n,2),xn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qe(e[3],-1))}finally{yn()}}function Ls(t,e,n,i){const s=e[10],r=!nn(),o=Be(e);try{r&&!o&&s.begin&&s.begin(),o&&Os(t,e,i),Rs(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Ns(t,e,n,i,s){const r=bn();try{wn(-1),2&i&&e.length>20&&Cs(t,e,0,nn()),n(i,s)}finally{wn(r)}}function zs(t,e,n){if(xe(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Fs(t,e,n){Ye()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Yn(n,e),ns(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ke(i);r&&tr(e,n,i);const l=ii(e,t,a,n);ns(l,e),null!==o&&er(0,a-s,l,i,0,o),r&&(Ue(n.index,e)[8]=l)}}(t,e,n,ze(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-20,l=Ge.lFrame.currentDirectiveIndex;try{wn(a);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];hn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Ys(i,s):o&&r.push(null)}}finally{wn(-1),hn(l)}}(t,e,n))}function Vs(t,e,n=ze){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Us(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=js(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function js(t,e,n,i,s,r,o,a,l,c){const h=20+i,u=h+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:ms);return n}(h,u);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function Bs(t,e,n,i,s,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Hs(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Ws(t,e,n,i,s,r,o,a){const l=ze(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[i])?(fr(t,n,c,i,s),Te(e)&&function(t,e){const n=Ue(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=o?o(s,e.tagName||"",i):s,Oe(r)?r.setProperty(l,i,s):An(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function $s(t,e,n,i){let s=!1;if(Ye()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];ds(n,o.selectors,!1)&&(s||(s=[]),Zn(Yn(n,e),t,o.type),ke(o)?(2&n.flags&&is(n),Ks(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){let i=0;s=!0,Zs(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Qs(t,n,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=On(n.mergedAttrs,c.hostAttrs),Js(t,e,c),Xs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),qs(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||as(e)?null:nr(n,s);r.push(c),o=Hs(n,l,o),a=Hs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Gs(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=On(n.mergedAttrs,n.attrs),s}function qs(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Gs(t,e,n){for(let i=0;i<n;i++)e.push(ms),t.blueprint.push(ms),t.data.push(null)}function Ys(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Qs(t,e,n){const i=20-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,s,n)}function Ks(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Xs(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ke(e)&&(n[""]=t)}}function Zs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Js(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Ce(n.type)),s=new kn(i,ke(n),null);t.blueprint.push(s),e.push(s)}function tr(t,e,n){const i=ze(e,t),s=Us(n),r=t[10],o=or(t,Ds(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=o}function er(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function nr(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ir(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function sr(t,e){const n=Ue(e,t);if(He(n)){const t=n[1];80&n[2]?Rs(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=vs(e);null!==i;i=ys(i))for(let e=10;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Rs(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=Ue(n[i],e);He(s)&&s[5]>0&&t(s)}}(n)}}function rr(t,e){const n=Ue(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Os(i,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_s(t);if(Me(t)&&!e)return t;t=e}return null}function lr(t,e,n){const i=e[10];i.begin&&i.begin();try{Rs(t,e,t.template,n)}catch(s){throw gr(e,s),s}finally{i.end&&i.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=je(n),s=i[1];Ls(s,i,s.template,n)}}(t[8])}function hr(t,e,n){dn(0),e(t,n)}const ur=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function pr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e){const n=t[9],i=n?n.get(di,null):null;i&&i.handleError(e)}function fr(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function mr(t,e,n){const i=Ne(e,t),s=t[11];Oe(s)?s.setValue(i,n):i.textContent=n}function _r(t,e){const n=e[3];return-1===t.index?Ie(n)?n:null:n}function vr(t,e){const n=_r(t,e);return n?Mr(e[11],n[7]):null}function yr(t,e,n,i,s){if(null!=i){let r,o=!1;Ie(i)?r=i:Ee(i)&&(o=!0,i=i[0]);const a=Le(i);0===t&&null!==n?null==s?Pr(e,n,a):Tr(e,n,a,s||null):1===t&&null!==n?Tr(e,n,a,s||null):2===t?function(t,e,n){const i=Mr(t,e);i&&function(t,e,n,i){Oe(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Le(n)&&yr(e,t,i,r,s);for(let o=10;o<n.length;o++){const s=n[o];Lr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function br(t,e,n,i){const s=vr(t.node,e);s&&Lr(t,e,e[11],n?1:2,s,i)}function wr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&qe(e[3],-1),n.splice(i,1)}function Cr(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&wr(s,i),e>0&&(t[n-1][4]=i[4]);const r=ie(t,10+e);br(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Sr(t,e){if(!(256&e[2])){const n=e[11];Oe(n)&&n.destroyNode&&Lr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ir(t[1],t);for(;e;){let n=null;if(Ee(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ee(e)&&Ir(e[1],e),e=Er(e,t);null===e&&(e=t),Ee(e)&&Ir(e[1],e),n=e&&e[4]}e=n}}(e)}}function Er(t,e){let n;return Ee(t)&&(n=t[6])&&2===n.type?_r(n,t):t[3]===e?null:t[3]}function Ir(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof kn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],r="function"==typeof s?s(e):Le(e[s]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Oe(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ie(e[3])){i!==e[3]&&wr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function xr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?vr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return ze(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return ze(i,n)}function Tr(t,e,n,i){Oe(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Pr(t,e,n){Oe(t)?t.appendChild(e,n):e.appendChild(n)}function kr(t,e,n,i){null!==i?Tr(t,e,n,i):Pr(t,e,n)}function Mr(t,e){return Oe(t)?t.parentNode(e):e.parentNode}function Dr(t,e){if(2===t.type){const n=_r(t,e);return null===n?null:Or(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?ze(t,e):null}function Ar(t,e,n,i){const s=xr(t,i,e);if(null!=s){const t=e[11],r=Dr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)kr(t,s,n[e],r);else kr(t,s,n,r)}}function Or(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return ze(n,e);if(0===i)return Or(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return Ie(t)?Or(-1,t):Le(t)}}{const i=e[16],s=i[6],r=_s(i),o=s.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Rr(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;o&&0===e&&(a&&ns(Le(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Rr(t,e,n.child,i,s,r,!1),yr(e,t,s,a,r)):1===l?Nr(t,e,i,n,s,r):yr(e,t,s,a,r)),n=o?n.projectionNext:n.next}}function Lr(t,e,n,i,s,r){Rr(n,i,t.node.child,e,s,r,!1)}function Nr(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)yr(e,t,s,a[l],r);else Rr(t,e,a,o[3],s,r,!0)}function zr(t,e,n){Oe(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Fr(t,e,n){Oe(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Vr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,s,r=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&s.push(Le(o)),Ie(o))for(let e=10;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,s)}const a=i.type;if(4===a||5===a)t(e,n,i.child,s);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))s.push(...r);else{const n=_s(e);t(n[1],n,r,s,!0)}}i=r?i.projectionNext:i.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Sr(this._lView[1],this._lView)}onDestroy(t){var e,n,i;e=this._lView[1],i=t,dr(n=this._lView).push(i),e.firstCreatePass&&pr(e).push(n[7].length-1,null)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){sn(!0);try{lr(t,e,n)}finally{sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Lr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ur extends Vr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){sn(!0);try{cr(t)}finally{sn(!1)}}(this._view)}get context(){return null}}let jr,Br,Hr;function Wr(t,e,n){return jr||(jr=class extends t{}),new jr(ze(e,n))}function $r(t,e,n,i){return Br||(Br=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ds(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Os(e,n,t),new Vr(n)}}),0===n.type?new Br(i,n,Wr(e,n,i)):null}function qr(t,e,n,i){let s;Hr||(Hr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Wr(e,this._hostTNode,this._hostView)}get injector(){return new oi(this._hostTNode,this._hostView)}get parentInjector(){const t=Xn(this._hostTNode,this._hostView),e=Fn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=zn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return Ln(t)&&null!=n?new oi(n,e):new oi(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Jt,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ie(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Hr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-10?(e[4]=n[s],ne(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,s),br(i,n,!0,Or(s,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Cr(t,e);n&&Sr(n[1],n)}(this._lContainer,e),ie(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Cr(this._lContainer,e);return n&&null!=ie(this._lContainer[8],e)?new Vr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(Ie(r))s=r;else{let t;if(4===n.type)t=Le(r);else if(t=i[11].createComment(""),Me(i)){const e=i[11],s=ze(n,i);Tr(e,Mr(e,s),t,function(t,e){return Oe(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ar(i[1],i,t,n);i[n.index]=s=ir(r,i,t,n),or(i,s)}return new Hr(s,n,i)}function Gr(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ue(t.index,e);return new Vr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Vr(e[16],e):null}(Ze(),Qe(),t)}let Yr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qr(),t})();const Qr=Gr,Kr=new Ft("Set Injector scope."),Xr={},Zr={},Jr=[];let to=void 0;function eo(){return void 0===to&&(to=new Zt),to}function no(t,e=null,n=null,i){return new io(t,n,e||eo(),i)}class io{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],s)),this.records.set(Vt,oo(void 0,this));const r=this.records.get(Kr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ut,n=at.Default){this.assertNotDestroyed();const i=$t(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ft)&&dt(t);e=n&&this.injectableDefInScope(n)?oo(so(t),Xr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?eo():this.parent).get(t,e=n&at.Optional&&e===Ut?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(bt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=bt(e);if(Array.isArray(e))s=e.map(bt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):bt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(jt,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{$t(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(bt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Et(t)))return!1;let i=gt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=gt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ee(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ee(i,t=>this.processProvider(t,n,i||Jr))}}this.injectorDefTypes.add(r),this.records.set(r,oo(i.factory,Xr));const a=i.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=lo(t=Et(t))?t:Et(t&&t.provide);const s=function(t,e,n){return ao(t)?oo(void 0,t.useValue):oo(ro(t,e,n),Xr)}(t,e,n);if(lo(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ss()}else{let e=this.records.get(i);e?void 0===e.multi&&ss():(e=oo(void 0,Xr,!0),e.factory=()=>Xt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Zr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(bt(t)):e.value===Xr&&(e.value=Zr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function so(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const i=gt(t);if(null!==i)return i.factory;if(t instanceof Ft)throw new Error(`Token ${bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=se(e,"?");throw new Error(`Can't resolve all parameters for ${bt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[ft]||t[vt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ro(t,e,n){let i=void 0;if(lo(t)){const e=Et(t);return Ce(e)||so(e)}if(ao(t))i=()=>Et(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Yt(Et(t.useExisting));else{const s=Et(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${bt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(s)||so(s);i=()=>new s(...Xt(t.deps))}var s;return i}function oo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&Bt in t}function lo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,i){const s=no(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ho=(()=>{class t{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ut,t.NULL=new Zt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Yt(Vt)}),t.__NG_ELEMENT_ID__=-1,t})();const uo=new Ft("AnalyzeForEntryComponents");let po=new Map;const go=new Set;function fo(t){return"string"==typeof t?t:t.text()}function mo(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=wt(s,t):2==r&&(i=wt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}let _o=null;function vo(){if(!_o){const t=Mt.Symbol;if(t&&t.iterator)_o=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(_o=n)}}}return _o}function yo(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class bo{constructor(t){this.wrapped=t}static wrap(t){return new bo(t)}static unwrap(t){return bo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof bo}}function wo(t){return!!Co(t)&&(Array.isArray(t)||!(t instanceof Map)&&vo()in t)}function Co(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function So(t,e,n){return t[e]=n}function Eo(t,e){return t[e]}function Io(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function xo(t,e,n,i){const s=Io(t,e,n);return Io(t,e+1,i)||s}function To(t,e,n,i,s){const r=xo(t,e,n,i);return Io(t,e+2,s)||r}function Po(t,e,n,i,s,r){const o=xo(t,e,n,i);return xo(t,e+2,s,r)||o}function ko(t,e,n,i){const s=Qe();return Io(s,an(),e)&&(Ke(),function(t,e,n,i,s,r){const o=ze(t,e),a=e[11];if(null==i)Oe(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==s?Vn(i):s(i,t.tagName||"",n);Oe(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(Cn(),s,t,e,n,i)),ko}function Mo(t,e,n,i){return Io(t,an(),n)?e+Vn(n)+i:ms}function Do(t,e,n,i,s,r,o,a){const l=Qe(),c=Ke(),h=t+20,u=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,h=As(e,n[6],t,0,o||null,We(c,a));$s(e,n,h,We(c,l)),Sn(e,h);const u=h.tViews=js(2,-1,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Bs(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,i,s,r,o):c.data[h];Je(u,!1);const d=l[11].createComment("");Ar(c,l,d,u),ns(d,l),or(l,l[h]=ir(d,l,d,u)),Pe(u)&&Fs(c,l,u),null!=o&&Vs(l,u,a)}function Ao(t){return Ve(Ge.lFrame.contextLView,t)}function Oo(t,e=at.Default){const n=Qe();return null==n?Yt(t,e):Jn(Ze(),n,Et(t),e)}function Ro(){throw new Error("invalid")}function Lo(t,e,n){const i=Qe();return Io(i,an(),e)&&Ws(Ke(),Cn(),i,t,e,i[11],n,!1),Lo}function No(t,e,n,i,s){const r=s?"class":"style";fr(t,n,e.inputs[r],r,i)}function zo(t,e,n,i){const s=Qe(),r=Ke(),o=20+t,a=s[11],l=s[o]=Ms(e,a,Ge.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=We(a,r),c=As(e,n[6],t,3,s,l);return $s(e,n,c,We(a,o)),null!==c.attrs&&mo(c,c.attrs,!1),null!==c.mergedAttrs&&mo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,n,i):r.data[o];Je(c,!0);const h=c.mergedAttrs;null!==h&&Mn(a,l,h);const u=c.classes;null!==u&&Fr(a,l,u);const d=c.styles;null!==d&&zr(a,l,d),Ar(r,s,l,c),0===Ge.lFrame.elementDepthCount&&ns(l,s),Ge.lFrame.elementDepthCount++,Pe(c)&&(Fs(r,s,c),zs(r,c,s)),null!==i&&Vs(s,c)}function Fo(){let t=Ze();tn()?en():(t=t.parent,Je(t,!1));const e=t;Ge.lFrame.elementDepthCount--;const n=Ke();n.firstCreatePass&&(Sn(n,t),xe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&No(n,e,Qe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&No(n,e,Qe(),e.stylesWithoutHost,!1)}function Vo(t,e,n,i){zo(t,e,n,i),Fo()}function Uo(t,e,n){const i=Qe(),s=Ke(),r=t+20,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=We(r,i),a=As(e,n[6],t,4,"ng-container",o);return null!==o&&mo(a,o,!0),$s(e,n,a,We(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,i,e,n):s.data[r];Je(o,!0);const a=i[r]=i[11].createComment("");Ar(s,i,a,o),ns(a,i),Pe(o)&&(Fs(s,i,o),zs(s,o,i)),null!=n&&Vs(i,o)}function jo(){let t=Ze();const e=Ke();tn()?en():(t=t.parent,Je(t,!1)),e.firstCreatePass&&(Sn(e,t),xe(t)&&e.queries.elementEnd(t))}function Bo(){return Qe()}function Ho(t){return!!t&&"function"==typeof t.then}function Wo(t){return!!t&&"function"==typeof t.subscribe}function $o(t,e,n=!1,i){const s=Qe(),r=Ke(),o=Ze();return function(t,e,n,i,s,r,o=!1,a){const l=Pe(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=dr(e);let u=!0;if(3===i.type){const d=ze(i,e),p=a?a(d):he,g=p.target||d,f=h.length,m=a?t=>a(Le(t[i.index])).target:i.index;if(Oe(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Go(i,e,r,!1);const t=n.listen(p.name||g,s,r);h.push(r,t),c&&c.push(s,m,f,f+1)}}else r=Go(i,e,r,!0),g.addEventListener(s,r,o),h.push(r),c&&c.push(s,m,f,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,t,e,n,i),$o}function qo(t,e,n){try{return!1!==e(n)}catch(i){return gr(t,i),!1}}function Go(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?Ue(t.index,e):e;0==(32&e[2])&&ar(o);let a=qo(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=qo(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Yo(t=1){return function(t){return(Ge.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ge.lFrame.contextLView))[8]}(t)}function Qo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?ds(t,r,!0):ps(i,r))return s}else n=s}return n}function Ko(t){const e=Qe()[16][6];if(!e.projection){const n=e.projection=se(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Qo(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Xo(t,e=0,n){const i=Qe(),s=Ke(),r=As(s,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),en(),function(t,e,n){Nr(e[11],0,e,n,xr(t,n,e),Dr(n.parent||e[6],e))}(s,i,r)}function Zo(t,e,n){return Jo(t,"",e,"",n),Zo}function Jo(t,e,n,i,s){const r=Qe(),o=Mo(r,e,n,i);return o!==ms&&Ws(Ke(),Cn(),r,t,o,r[11],s,!1),Jo}const ta=[];function ea(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?Es(r):xs(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];na(t[a],e)&&(l=!0,t[a+1]=i?Ps(n):Is(n)),a=i?Es(n):xs(n)}l&&(t[n+1]=i?Is(r):Ps(r))}function na(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sa(t){return t.substring(ia.key,ia.keyEnd)}function ra(t,e){const n=ia.textEnd;return n===e?-1:(e=ia.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ia.key=e,n),oa(t,e,n))}function oa(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function aa(t,e,n){return ua(t,e,n,!1),aa}function la(t,e){return ua(t,e,null,!0),la}function ca(t){da(re,ha,t,!0)}function ha(t,e){for(let n=function(t){return function(t){ia.key=0,ia.keyEnd=0,ia.value=0,ia.valueEnd=0,ia.textEnd=t.length}(t),ra(t,oa(t,0,ia.textEnd))}(e);n>=0;n=ra(e,n))re(t,sa(e),!0)}function ua(t,e,n,i){const s=Qe(),r=Ke(),o=ln(2);if(r.firstUpdatePass&&ga(r,t,o,i),e!==ms&&Io(s,o,e)){let a;null==n&&(a=function(){const t=Ge.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),_a(r,r.data[bn()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=bt(yi(t)))),t}(e,n),i,o)}}function da(t,e,n,i){const s=Ke(),r=ln(2);s.firstUpdatePass&&ga(s,null,r,i);const o=Qe();if(n!==ms&&Io(o,r,n)){const a=s.data[bn()+20];if(ba(a,i)&&!pa(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=wt(t,n||"")),No(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===ms&&(s=ta);let l=0,c=0,h=0<s.length?s[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const d=l<s.length?s[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let g=null,f=void 0;h===u?(l+=2,c+=2,d!==p&&(g=u,f=p)):null===u||null!==h&&h<u?(l+=2,g=h):(c+=2,g=u,f=p),null!==g&&_a(t,e,n,i,g,f,o,a),h=l<s.length?s[l]:null,u=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return ta;const i=[],s=yi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function pa(t,e){return e>=t.expandoStartIndex}function ga(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()+20],o=pa(t,n);ba(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=Ge.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=ma(n=fa(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=fa(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==xs(i))return t[Es(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=fa(null,t,e,n[1],i),n=ma(n,e.attrs,i),function(t,e,n,i){t[Es(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=ma(i,t[r].hostAttrs,n);return ma(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=Es(o),l=xs(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Es(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=Ts(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=Ts(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=Ts(t[l+1],i),l=i;h&&(t[i+1]=Is(t[i+1])),ea(t,c,i,!0),ea(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function fa(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=ma(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function ma(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function _a(t,e,n,i,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];ya(1==(1&c)?va(l,e,n,s,xs(c),o):void 0)||(ya(r)||function(t){return 2==(2&t)}(c)&&(r=va(l,null,n,s,a,o)),function(t,e,n,i,s){const r=Oe(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==s?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,s,e):n.style.setProperty(i,s)}}(i,o,Ne(bn(),n),s,r))}function va(t,e,n,i,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===ms&&(h=c?ta:void 0);let u=c?oe(h,i):l===i?h:void 0;if(r&&!ya(u)&&(u=oe(e,i)),ya(u)&&(a=u,o))return a;const d=t[s+1];s=o?Es(d):xs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,i))}return a}function ya(t){return void 0!==t}function ba(t,e){return 0!=(t.flags&(e?16:32))}function wa(t,e=""){const n=Qe(),i=Ke(),s=t+20,r=i.firstCreatePass?As(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return Oe(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ar(i,n,o,r),Je(r,!1)}function Ca(t){return Sa("",t,""),Ca}function Sa(t,e,n){const i=Qe(),s=Mo(i,t,e,n);return s!==ms&&mr(i,bn(),s),Sa}function Ea(t,e,n,i,s){const r=Qe(),o=function(t,e,n,i,s,r){const o=xo(t,on(),n,s);return ln(2),o?e+Vn(n)+i+Vn(s)+r:ms}(r,t,e,n,i,s);return o!==ms&&mr(r,bn(),o),Ea}function Ia(t,e,n){da(re,ha,Mo(Qe(),t,e,n),!0)}function xa(t,e,n){const i=Qe();return Io(i,an(),e)&&Ws(Ke(),Cn(),i,t,e,i[11],n,!0),xa}function Ta(t,e){const n=je(t)[1],i=n.data.length-1;Sn(n,{directiveStart:i,directiveEnd:i+1})}function Pa(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(ke(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=ka(t.inputs),e.declaredInputs=ka(t.declaredInputs),e.outputs=ka(t.outputs);const n=s.hostBindings;n&&Aa(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Ma(t,r),o&&Da(t,o),ct(t.inputs,s.inputs),ct(t.declaredInputs,s.declaredInputs),ct(t.outputs,s.outputs),ke(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Pa&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=On(s.hostAttrs,n=On(n,s.hostAttrs))}}(i)}function ka(t){return t===he?{}:t===ue?[]:t}function Ma(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Da(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Aa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class Oa{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ra(t){t.type.prototype.ngOnChanges&&(t.setInput=La,t.onChanges=function(){const t=Na(this),e=t&&t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function La(t,e,n,i){const s=Na(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Oa(l&&l.currentValue,e,o===he),t[i]=e}function Na(t){return t.__ngSimpleChanges__||null}function za(t,e,n,i,s){if(t=Et(t),Array.isArray(t))for(let r=0;r<t.length;r++)za(t[r],e,n,i,s);else{const r=Ke(),o=Qe();let a=lo(t)?t:Et(t.provide),l=ro(t);const c=Ze(),h=65535&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>16;if(lo(t)||!t.multi){const i=new kn(l,s,Oo),p=Ua(a,e,s?h:h+d,u);-1===p?(Zn(Yn(c,o),r,a),Fa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ua(a,e,h+d,u),g=Ua(a,e,h,h+d),f=p>=0&&n[p],m=g>=0&&n[g];if(s&&!m||!s&&!f){Zn(Yn(c,o),r,a);const h=function(t,e,n,i,s){const r=new kn(t,n,Oo);return r.multi=[],r.index=e,r.componentProviders=0,Va(r,s,i&&!n),r}(s?Ba:ja,n.length,s,i,l);!s&&m&&(n[g].providerFactory=h),Fa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(h),o.push(h)}else Fa(r,t,p>-1?p:g,Va(n[s?g:p],l,!s&&i));!s&&i&&m&&n[g].componentProviders++}}}function Fa(t,e,n,i){const s=lo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function Va(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ua(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function ja(t,e,n,i){return Ha(this.multi,[])}function Ba(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ii(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),Ha(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Ha(s,r);return r}function Ha(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Wa(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Ke();if(i.firstCreatePass){const s=ke(t);za(n,i.data,i.blueprint,s,!0),za(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}Ra.ngInherit=!0;class $a{}class qa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${bt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ga=(()=>{class t{}return t.NULL=new qa,t})(),Ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Qa(t),t})();const Qa=function(t){return Wr(t,Ze(),Qe())};class Ka{}const Xa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ja(),t})();const Ja=function(){const t=Qe(),e=Ue(Ze().index,t);return function(t){const e=t[11];if(Oe(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ee(e)?e:t)};let tl=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class el{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nl=new el("9.1.12");class il{constructor(){}supports(t){return wo(t)}create(t){return new rl(t)}}const sl=(t,e)=>e;class rl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||sl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<cl(n,i,s)?e:n,o=cl(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!wo(t))throw new Error(`Error trying to diff '${bt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&yo(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),yo(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[vo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&yo(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),yo(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(yo(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(yo(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new ol(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ll),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ll),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ol{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class al{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&yo(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ll{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new al,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cl(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class hl{constructor(){}supports(t){return t instanceof Map||Co(t)}create(){return new ul}}class ul{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Co(t)))throw new Error(`Error trying to diff '${bt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new dl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){yo(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class dl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let pl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new il])}),t})(),gl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new hl])}),t})();const fl=[new hl],ml=new pl([new il]),_l=new gl(fl);let vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>yl(t,Ya),t})();const yl=function(t,e){return $r(t,e,Ze(),Qe())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wl(t,Ya),t})();const wl=function(t,e){return qr(t,e,Ze(),Qe())},Cl={};class Sl extends Ga{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new xl(e,this.ngModule)}}function El(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Il=new Ft("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>jn});class xl extends $a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return El(this.componentDef.inputs)}get outputs(){return El(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Cl,s);return r!==Cl||i===Cl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ka,Re),o=s.get(tl,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Oe(t))return t.selectRootElement(e,n===ce.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Ms(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:jn,clean:ur,playerHandler:null,flags:0},p=js(0,-1,null,1,0,null,null,null,null,null),g=Ds(null,p,d,h,null,null,r,a,o,s);let f,m;gn(g,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=As(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(mo(a,l,!0),null!==t&&(Mn(s,t,l),null!==a.classes&&Fr(s,t,a.classes),null!==a.styles&&zr(s,t,a.styles)));const c=i.createRenderer(t,e),h=Ds(n,Us(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(Zn(Yn(a,n),o,e.type),Ks(o,a),Zs(a,n.length,1)),or(n,h),n[20]=h}(c,this.componentDef,g,r,a);if(c)if(n)Mn(a,c,["ng-version",nl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!hs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Mn(a,c,t),e&&e.length>0&&Fr(a,c,e.join(" "))}if(m=Fe(p,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qs(t,i,1),Js(t,e,n));const s=ii(e,t,e.length-1,i);ns(s,e);const r=ze(i,e);return r&&ns(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Ze();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){wn(a.index-20);const t=n[1];qs(t,e),Gs(t,n,e.hostVars),Ys(e,o)}return o}(t,this.componentDef,g,d,[Ta]),Os(p,g,null)}finally{yn()}const _=new Tl(this.componentType,f,Wr(Ya,m,g),g,m);return n&&!u||(p.node.child=m),_}}class Tl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Ur(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=Bs(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new oi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Pl=void 0;var kl=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["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"]],Pl,[["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"]],Pl,[["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}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ml={};function Dl(t){return t in Ml||(Ml[t]=Mt.ng&&Mt.ng.common&&Mt.ng.common.locales&&Mt.ng.common.locales[t]),Ml[t]}const Al=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Ol="en-US";function Rl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ol=t.toLowerCase().replace(/_/g,"-"))}const Ll=new Map;class Nl extends Jt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Sl(this);const n=Se(t),i=t[Lt]||null;i&&Rl(i),this._bootstrapComponents=Wn(n.bootstrap),this._r3Injector=no(t,e,[{provide:Jt,useValue:this},{provide:Ga,useValue:this.componentFactoryResolver}],bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ho.THROW_IF_NOT_FOUND,n=at.Default){return t===ho||t===Jt||t===Vt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class zl extends te{constructor(t){super(),this.moduleType=t,null!==Se(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${bt(e)} vs ${bt(e.name)}`)})(t,Ll.get(t),e),Ll.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Nl(this.moduleType,t)}}function Fl(t,e,n,i){return Hl(Qe(),rn(),t,e,n,i)}function Vl(t,e,n,i,s){return Wl(Qe(),rn(),t,e,n,i,s)}function Ul(t,e,n,i,s,r){return $l(Qe(),rn(),t,e,n,i,s,r)}function jl(t,e,n,i,s,r,o){return function(t,e,n,i,s,r,o,a,l){const c=e+n;return Po(t,c,s,r,o,a)?So(t,c+4,l?i.call(l,s,r,o,a):i(s,r,o,a)):Bl(t,c+4)}(Qe(),rn(),t,e,n,i,s,r,o)}function Bl(t,e){const n=t[e];return n===ms?void 0:n}function Hl(t,e,n,i,s,r){const o=e+n;return Io(t,o,s)?So(t,o+1,r?i.call(r,s):i(s)):Bl(t,o+1)}function Wl(t,e,n,i,s,r,o){const a=e+n;return xo(t,a,s,r)?So(t,a+2,o?i.call(o,s,r):i(s,r)):Bl(t,a+2)}function $l(t,e,n,i,s,r,o,a){const l=e+n;return To(t,l,s,r,o)?So(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Bl(t,l+3)}function ql(t,e){const n=Ke();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Ce(i.type)),o=qt(Oo),a=qn(!1),l=r();return qn(a),qt(o),function(t,e,n,i){const s=n+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,Qe(),t,l),l}function Gl(t,e,n){const i=Qe(),s=Ve(i,t);return Xl(i,Kl(i,t)?Hl(i,rn(),e,s.transform,n,s):s.transform(n))}function Yl(t,e,n,i){const s=Qe(),r=Ve(s,t);return Xl(s,Kl(s,t)?Wl(s,rn(),e,r.transform,n,i,r):r.transform(n,i))}function Ql(t,e,n,i,s){const r=Qe(),o=Ve(r,t);return Xl(r,Kl(r,t)?$l(r,rn(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function Kl(t,e){return t[1].data[e+20].pure}function Xl(t,e){return bo.isWrapped(e)&&(e=bo.unwrap(e),t[on()]=ms),e}class Zl extends I{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}}function Jl(){return this._results[vo()]()}class tc{constructor(){this.dirty=!0,this._results=[],this.changes=new Zl,this.length=0;const t=vo(),e=tc.prototype;e[t]||(e[t]=Jl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(n===e&&(n=e.slice(0,i)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class ec{constructor(t){this.queryList=t,this.matches=null}clone(){return new ec(this.queryList)}setDirty(){this.queryList.setDirty()}}class nc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new nc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==vc(t,e).matches&&this.queries[e].setDirty()}}class ic{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class sc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new sc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class rc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new rc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let i=0;i<n.length;i++)this.matchTNodeWithReadOption(t,e,oc(e,n[i]))}else{const n=this.metadata.predicate;n===vl?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ni(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ya||i===bl||i===vl&&0===e.type)this.addMatch(e.index,-2);else{const n=ni(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function oc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function ac(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Wr(Ya,t,e):0===t.type?$r(vl,Ya,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ya?Wr(Ya,e,t):n===vl?$r(vl,Ya,e,t):n===bl?qr(bl,Ya,e,t):void 0}(t,e,i):ii(t,t[1],n,e)}function lc(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:ac(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function cc(t){const e=Qe(),n=Ke(),i=un();dn(i+1);const s=vc(n,i);if(t.dirty&&Be(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,n,i,s){const r=e.queries.getByIndex(i),o=r.matches;if(null!==o){const a=lc(e,n,r,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,s)}}}}}return s}(n,e,i,[]):lc(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}function hc(t,e,n){dc(Ke(),Qe(),t,e,n,!0)}function uc(t,e,n){dc(Ke(),Qe(),t,e,n,!1)}function dc(t,e,n,i,s,r){t.firstCreatePass&&(_c(t,new ic(n,i,r,s),-1),r&&(t.staticViewQueries=!0)),mc(t,e)}function pc(t,e,n,i){gc(Ke(),Qe(),e,n,i,!1,Ze(),t)}function gc(t,e,n,i,s,r,o,a){t.firstCreatePass&&(_c(t,new ic(n,i,r,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),r&&(t.staticContentQueries=!0)),mc(t,e)}function fc(){return t=Qe(),e=un(),t[19].queries[e].queryList;var t,e}function mc(t,e){const n=new tc;!function(t,e,n,i){const s=dr(e);s.push(n),t.firstCreatePass&&pr(t).push(i,s.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new nc),e[19].queries.push(new ec(n))}function _c(t,e,n){null===t.queries&&(t.queries=new sc),t.queries.track(new rc(e,n))}function vc(t,e){return t.queries.getByIndex(e)}const yc=new Ft("Application Initializer");let bc=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ho(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Yt(yc,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const wc=new Ft("AppId"),Cc={provide:wc,useFactory:function(){return`${Sc()}${Sc()}${Sc()}`},deps:[]};function Sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ec=new Ft("Platform Initializer"),Ic=new Ft("Platform ID"),xc=new Ft("appBootstrapListener");let Tc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Pc=new Ft("LocaleId"),kc=new Ft("DefaultCurrencyCode");class Mc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Dc=function(t){return new zl(t)},Ac=Dc,Oc=function(t){return Promise.resolve(Dc(t))},Rc=function(t){const e=Dc(t),n=Wn(Se(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new xl(n)),t},[]);return new Mc(e,n)},Lc=Rc,Nc=function(t){return Promise.resolve(Rc(t))};let zc=(()=>{class t{constructor(){this.compileModuleSync=Ac,this.compileModuleAsync=Oc,this.compileModuleAndAllComponentsSync=Lc,this.compileModuleAndAllComponentsAsync=Nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Fc=new Ft("compilerOptions"),Vc=(()=>Promise.resolve(0))();function Uc(t){"undefined"==typeof Zone?Vc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class jc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!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)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Mt.requestAnimationFrame,e=Mt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Mt,()=>{t.lastRequestAnimationFrameId=-1,$c(t),Wc(t)}),$c(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return qc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Gc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return qc(t),e.invoke(i,s,r,o,a)}finally{Gc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,$c(t),Wc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(jc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Hc,Bc,Bc);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Bc(){}const Hc={};function Wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function qc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gc(t){t._nesting--,Wc(t)}class Yc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zl,this.onMicrotaskEmpty=new Zl,this.onStable=new Zl,this.onError=new Zl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Qc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jc.assertNotInAngularZone(),Uc(()=>{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())Uc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Kc=(()=>{class t{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Zc,Jc=new Xc,th=function(t,e,n){const i=t.get(Fc,[]).concat(e),s=new zl(n);if(0===po.size)return Promise.resolve(s);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(i.map(t=>t.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const t=Mt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=ho.create({providers:r}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function i(t){let e=n.get(t);if(!e){const i=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=i.then(fo))}return e}return po.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(i(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,n)=>{o.push(""),s.push(i(e).then(i=>{o[a+n]=i,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){go.delete(t)}(n));e.push(l)}),po=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const eh=new Ft("AllowMultipleToken");class nh{constructor(t,e){this.name=t,this.token=e}}function ih(t,e,n=[]){const i="Platform: "+e,s=new Ft(i);return(e=[])=>{let r=sh();if(!r||r.injector.get(eh,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Kr,useValue:"platform"});!function(t){if(Zc&&!Zc.destroyed&&!Zc.injector.get(eh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zc=t.get(rh);const e=t.get(Ec,null);e&&e.forEach(t=>t())}(ho.create({providers:t,name:i}))}return function(t){const e=sh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function sh(){return Zc&&!Zc.destroyed?Zc:null}let rh=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Yc:("zone.js"===t?void 0:t)||new jc({enableLongStackTrace:Ei(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:jc,useValue:n}];return n.run(()=>{const e=ho.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(di,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>lh(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Ho(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(bc);return t.runInitializers(),t.donePromise.then(()=>(Rl(s.injector.get(Pc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=oh({},e);return th(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ah);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${bt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function oh(t,e){return Array.isArray(e)?e.reduce(oh,t):Object.assign(Object.assign({},t),e)}let ah=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ei(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{jc.assertNotInAngularZone(),Uc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{jc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(o,a.pipe(t=>{return Y()((e=tt,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Z);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof $a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Jt),s=n.create(ho.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Qc,null);return r&&s.injector.get(Kc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Ei()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;lh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(xc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),lh(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(Tc),Yt(ho),Yt(di),Yt(Ga),Yt(bc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function lh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ch{}class hh{}const uh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let dh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||uh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>ph(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>ph(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Yt(zc),Yt(hh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ph(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const gh=ih(null,"core",[{provide:Ic,useValue:"unknown"},{provide:rh,deps:[ho]},{provide:Kc,deps:[]},{provide:Tc,deps:[]}]),fh=[{provide:ah,useClass:ah,deps:[jc,Tc,ho,di,Ga,bc]},{provide:Il,deps:[jc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:bc,useClass:bc,deps:[[new st,yc]]},{provide:zc,useClass:zc,deps:[]},Cc,{provide:pl,useFactory:function(){return ml},deps:[]},{provide:gl,useFactory:function(){return _l},deps:[]},{provide:Pc,useFactory:function(t){return Rl(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(Pc),new st,new ot]]},{provide:kc,useValue:"USD"}];let mh=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(ah))},providers:fh}),t})();const _h={isWizishopcom:!1,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"http://debugshop.wizilocal.com/_i/",assets_route:"assets/img-manager/",translations_route:"./assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:131,token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyX2lkIjo2LCJleHAiOjE2MzczOTQzNDIsImlhdCI6MTYzNDgwMjM0Mn0.1UhLbMA3euzDDr3zdy2KfUzbdordXbTg4lMjdslPZ9QHiTXoYG5n6SlZV7AAOdWjt_t5eKqgVLKIaQQj9jVA2j2DGtzpnv-rbxHGbatXZ8phWEaYGMXxtOX684aogFrTOP8poDVN0bIerFwBfjuu8U2zDqspx0gpbPHToJE-0W-mQcP0WCOh9quFnLpgziQ-gD-SuuQ5zyTF9l8ToNW2jVzEZ3tO_uk7gULzB2HD-uCcmUIKFhai1NQXEzog8tPSWJNifLyF0Ja0kTrIDrN8oZaf2pEj5yX2Z7xfm9s14XIKX-m2wpU10acBiIhq0RWLOKHLiWbyj_iLGvQV6_DfeA"},product_sheet_endpoint:"/products/ajax",isPhotosTab:!0},vh={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"https://media.wizilocal.com/_i/",assets_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},yh={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.wizishop.com/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},bh={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.dropilocal.com/",wizi_api:"https://api.dropilocal.com/v3",CDN_URL:"https://media.dropilocal.com/_i/",assets_route:"https://js.dropilocal.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},wh={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.dropizi.fr/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},Ch=Object.assign({},function(){const t=!!window.location.hostname.match(/local/),e=!!window.location.hostname.match(/wizi/);return window.location.port?_h:t?e?vh:bh:e?yh:wh}());let Sh=null;function Eh(){return Sh}const Ih=new Ft("DocumentToken");let xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Th,token:t,providedIn:"platform"}),t})();function Th(){return Yt(kh)}const Ph=new Ft("Location Initialized");let kh=(()=>{class t extends xh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Eh().getLocation(),this._history=Eh().getHistory()}getBaseHrefFromDOM(){return Eh().getBaseHref(this._doc)}onPopState(t){Eh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Eh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Mh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Mh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({factory:Dh,token:t,providedIn:"platform"}),t})();function Mh(){return!!window.history.pushState}function Dh(){return new kh(Yt(Ih))}function Ah(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Oh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Rh(t){return t&&"?"!==t[0]?"?"+t:t}let Lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Nh,token:t,providedIn:"root"}),t})();function Nh(t){const e=Yt(Ih).location;return new Fh(Yt(xh),e&&e.origin||"")}const zh=new Ft("appBaseHref");let Fh=(()=>{class t extends Lh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ah(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Rh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+Rh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+Rh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(xh),Yt(zh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vh=(()=>{class t extends Lh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Ah(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+Rh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+Rh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(xh),Yt(zh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uh=(()=>{class t{constructor(t,e){this._subject=new Zl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Oh(Bh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Rh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Bh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Rh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Rh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Lh),Yt(xh))},t.normalizeQueryParams=Rh,t.joinWithSlash=Ah,t.stripTrailingSlash=Oh,t.\u0275prov=ht({factory:jh,token:t,providedIn:"root"}),t})();function jh(){return new Uh(Yt(Lh),Yt(xh))}function Bh(t){return t.replace(/\/index.html$/,"")}const Hh=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class Wh{}let $h=(()=>{class t extends Wh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Dl(e);if(n)return n;const i=e.split("-")[0];if(n=Dl(i),n)return n;if("en"===i)return kl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Al.PluralCase]}(e||this.locale)(t)){case Hh.Zero:return"zero";case Hh.One:return"one";case Hh.Two:return"two";case Hh.Few:return"few";case Hh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Pc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function qh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Gh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(wo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+bt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Oo(pl),Oo(gl),Oo(Ya),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Yh{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Qh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Ei()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Yh(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Kh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Kh(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(bl),Oo(vl),Oo(pl))},t.\u0275dir=ye({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Kh{constructor(t,e){this.record=t,this.view=e}}let Xh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Zh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Jh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Jh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(bl),Oo(vl))},t.\u0275dir=ye({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Zh{constructor(){this.$implicit=null,this.ngIf=null}}function Jh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bt(e)}'.`)}let tu=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(gl),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),eu=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=nu){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(Oo(gl))},t.\u0275pipe=be({name:"keyvalue",type:t,pure:!1}),t})();function nu(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),r=String(i);return s==r?0:s<r?-1:1}let iu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Wh,useClass:$h}]}),t})();function su(t){return"browser"===t}let ru=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new ou(Yt(Ih),window,Yt(di))}),t})();class ou{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class au extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new au,Sh||(Sh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=cu||(cu=document.querySelector("base"),cu)?cu.getAttribute("href"):null;return null==e?null:(n=e,lu||(lu=document.createElement("a")),lu.setAttribute("href",n),"/"===lu.pathname.charAt(0)?lu.pathname:"/"+lu.pathname);var n}resetBaseElement(){cu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return qh(document.cookie,t)}}let lu,cu=null;const hu=new Ft("TRANSITION_ID"),uu=[{provide:yc,useFactory:function(t,e,n){return()=>{n.get(bc).donePromise.then(()=>{const n=Eh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[hu,Ih,ho],multi:!0}];class du{static init(){var t;t=new du,Jc=t}addToWindow(t){Mt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Mt.getAllAngularRootElements=()=>t.getAllRootElements(),Mt.frameworkStabilizers||(Mt.frameworkStabilizers=[]),Mt.frameworkStabilizers.push(t=>{const e=Mt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Eh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const pu=new Ft("EventManagerPlugins");let gu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(pu),Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class fu{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Eh().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let mu=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_u=(()=>{class t extends mu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Eh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const vu={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/"},yu=/%COMP%/g;function bu(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?bu(t,s,n):(s=s.replace(yu,t),n.push(s))}return n}function wu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Cu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Su(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Eu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new Iu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=bu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Yt(gu),Yt(_u),Yt(wc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Su{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(vu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=vu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=vu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&Xa.DashCase?t.style.setProperty(e,n,i&Xa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Xa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,wu(n)):this.eventManager.addEventListener(t,e,wu(n))}}class Eu extends Su{constructor(t,e,n,i){super(t),this.component=n;const s=bu(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(yu,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(yu,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Iu extends Su{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=bu(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let xu=(()=>{class t extends fu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Tu=["alt","control","meta","shift"],Pu={"\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"},ku={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"},Mu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Du=(()=>{class t extends fu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Eh().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Tu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&ku.hasOwnProperty(e)&&(e=ku[e]))}return Pu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tu.forEach(i=>{i!=n&&(0,Mu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Yt(Ou)},token:t,providedIn:"root"}),t})(),Ou=(()=>{class t extends Au{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Gi.NONE:return e;case Gi.HTML:return bi(e,"HTML")?yi(e):$i(this._doc,String(e));case Gi.STYLE:return bi(e,"Style")?yi(e):Ki(e);case Gi.SCRIPT:if(bi(e,"Script"))return yi(e);throw new Error("unsafe value used in a script context");case Gi.URL:return wi(e),bi(e,"URL")?yi(e):Pi(String(e));case Gi.RESOURCE_URL:if(bi(e,"ResourceURL"))return yi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new gi(t)}bypassSecurityTrustStyle(t){return new fi(t)}bypassSecurityTrustScript(t){return new mi(t)}bypassSecurityTrustUrl(t){return new _i(t)}bypassSecurityTrustResourceUrl(t){return new vi(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({factory:function(){return t=Yt(Vt),new Ou(t.get(Ih));var t},token:t,providedIn:"root"}),t})();const Ru=ih(gh,"browser",[{provide:Ic,useValue:"browser"},{provide:Ec,useValue:function(){au.makeCurrent(),du.init()},multi:!0},{provide:Ih,useFactory:function(){return function(t){De=t}(document),document},deps:[]}]),Lu=[[],{provide:Kr,useValue:"root"},{provide:di,useFactory:function(){return new di},deps:[]},{provide:pu,useClass:xu,multi:!0,deps:[Ih,jc,Ic]},{provide:pu,useClass:Du,multi:!0,deps:[Ih]},[],{provide:Cu,useClass:Cu,deps:[gu,_u,wc]},{provide:Ka,useExisting:Cu},{provide:mu,useExisting:_u},{provide:_u,useClass:_u,deps:[Ih]},{provide:Qc,useClass:Qc,deps:[jc]},{provide:gu,useClass:gu,deps:[pu,jc]},[]];let Nu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:wc,useValue:e.appId},{provide:hu,useExisting:wc},uu]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(t,12))},providers:Lu,imports:[iu,mh]}),t})();"undefined"!=typeof window&&window;class zu{}function Fu(t,e){return{type:7,name:t,definitions:e,options:{}}}function Vu(t,e=null){return{type:4,styles:e,timings:t}}function Uu(t,e=null){return{type:2,steps:t,options:e}}function ju(t){return{type:6,styles:t,offset:null}}function Bu(t,e,n){return{type:0,name:t,styles:e,options:n}}function Hu(t){return{type:5,steps:t}}function Wu(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function $u(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function qu(t,e){return{type:12,timings:t,animation:e}}function Gu(t){Promise.resolve(null).then(t)}class Yu{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Qu{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Gu(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Ku(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xu(t){switch(t.length){case 0:return new Yu;case 1:return t[0];default:return new Qu(t)}}function Zu(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Ju(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&td(n,"start",t)));break;case"done":t.onDone(()=>i(n&&td(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&td(n,"destroy",t)))}}function td(t,e,n){const i=n.totalTime,s=ed(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function ed(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function nd(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function id(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let sd=(t,e)=>!1,rd=(t,e)=>!1,od=(t,e,n)=>[];const ad=Ku();(ad||"undefined"!=typeof Element)&&(sd=(t,e)=>t.contains(e),rd=(()=>{if(ad||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):rd}})(),od=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ld=null,cd=!1;function hd(t){ld||(ld=("undefined"!=typeof document?document.body:null)||{},cd=!!ld.style&&"WebkitAppearance"in ld.style);let e=!0;return ld.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ld.style,!e&&cd)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ld.style),e}const ud=rd,dd=sd,pd=od;function gd(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let fd=(()=>{class t{validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Yu(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),md=(()=>{class t{}return t.NOOP=new fd,t})();function _d(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:vd(parseFloat(e[1]),e[2])}function vd(t,e){switch(e){case"s":return 1e3*t;default:return t}}function yd(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=vd(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=vd(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function bd(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function wd(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else bd(t,n);return n}function Cd(t,e,n){return n?e+":"+n+";":""}function Sd(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Cd(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Cd(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ed(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Ad(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),Ku()&&Sd(t))}function Id(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Ad(e);t.style[n]=""}),Ku()&&Sd(t))}function xd(t){return Array.isArray(t)?1==t.length?t[0]:Uu(t):t}const Td=new RegExp("{{\\s*(.+?)\\s*}}","g");function Pd(t){let e=[];if("string"==typeof t){let n;for(;n=Td.exec(t);)e.push(n[1]);Td.lastIndex=0}return e}function kd(t,e,n){const i=t.toString(),s=i.replace(Td,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Md(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Dd=/-+([a-z0-9])/g;function Ad(t){return t.replace(Dd,(...t)=>t[1].toUpperCase())}function Od(t,e){return 0===t||0===e}function Rd(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=Nd(t,e)}))}}return e}function Ld(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Nd(t,e){return window.getComputedStyle(t)[e]}function zd(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Ud(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Ud(o,s))}(t,n,e)):n.push(t),n}const Fd=new Set(["true","1"]),Vd=new Set(["false","0"]);function Ud(t,e){const n=Fd.has(t)||Vd.has(t),i=Fd.has(e)||Vd.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?Fd.has(t):Vd.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Fd.has(e):Vd.has(e)),o&&a}}const jd=new RegExp("s*:selfs*,?","g");function Bd(t,e,n){return new Hd(t).build(e,n)}class Hd{constructor(t){this._driver=t}build(t,e){const n=new Wd(e);return this._resetContextStyleTimingState(n),Ld(this,xd(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if($d(t)){const e=t;Object.keys(e).forEach(t=>{Pd(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Md(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ld(this,xd(t.animation),e);return{type:1,matchers:zd(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:qd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ld(this,t,e)),options:qd(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Ld(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:qd(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Gd(yd(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Gd(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||yd(i,e),Gd(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:ju({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=ju(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if($d(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Pd(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if($d(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if($d(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return l.forEach((t,i)=>{const r=h>0?i==u?1:h*i:s[i],o=r*g;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ld(this,xd(t.animation),e),options:qd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:qd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:qd(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(jd,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,nd(e.collectedStyles,e.currentQuerySelector,{});const o=Ld(this,xd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:qd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:yd(t.timings,e.errors,!0);return{type:12,animation:Ld(this,xd(t.animation),e),timings:n,options:null}}}class Wd{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $d(t){return!Array.isArray(t)&&"object"==typeof t}function qd(t){var e;return t?(t=bd(t)).params&&(t.params=(e=t.params)?bd(e):null):t={},t}function Gd(t,e,n){return{duration:t,delay:e,easing:n}}function Yd(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Qd{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Kd=new RegExp(":enter","g"),Xd=new RegExp(":leave","g");function Zd(t,e,n,i,s,r={},o={},a,l,c=[]){return(new Jd).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class Jd{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new Qd;const h=new ep(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Ld(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Yd(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?_d(n.duration):null,r=null!=n.delay?_d(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Ld(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tp);const t=_d(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ld(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?_d(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Ld(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return yd(e.params?kd(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?_d(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tp);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Ld(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ld(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const tp={};class ep{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new np(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=_d(n.duration)),null!=n.delay&&(i.delay=_d(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=kd(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new ep(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=tp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ip(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Kd,"."+this._enterClassName)).replace(Xd,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class np{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new np(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):wd(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=kd(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=wd(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Md(t.values()):[],r=e.size?Md(e.values()):[];if(n){const t=i[0],e=bd(t);t.offset=0,e.offset=1,i=[t,e]}return Yd(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ip extends np{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=wd(t[0],!1);a.offset=0,s.push(a);const l=wd(t[0],!1);l.offset=sp(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=wd(t[i],!1);o.offset=sp((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Yd(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function sp(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class rp{}class op extends rp{normalizePropertyName(t,e){return Ad(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(ap[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const ap=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function lp(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const cp={};class hp{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||cp,d=this.buildStyles(n,o&&o.params||cp,h),p=a&&a.params||cp,g=this.buildStyles(i,p,h),f=new Set,m=new Map,_=new Map,v="void"===i,y={params:Object.assign(Object.assign({},u),p)},b=c?[]:Zd(t,e,this.ast.animation,s,r,d,g,y,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return lp(e,this._triggerName,n,i,v,d,g,[],[],m,_,w,h);b.forEach(t=>{const n=t.element,i=nd(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=nd(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&f.add(n)});const C=Md(f.values());return lp(e,this._triggerName,n,i,v,d,g,b,C,m,_,w)}}class up{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=bd(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=kd(r,i,e)),n[t]=r})}}),n}}class dp{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new up(t.style,t.options&&t.options.params||{})}),pp(this.states,"true","1"),pp(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new hp(t,e,this.states))}),this.fallbackTransition=new hp(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function pp(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const gp=new Qd;class fp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Bd(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Zu(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Zd(this._driver,e,s,"ng-enter","ng-leave",{},{},n,gp,i),r.forEach(t=>{const e=nd(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=Xu(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=ed(e,"","","");return Ju(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const mp=[],_p={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class yp{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=bd(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const bp=new yp("void");class wp{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Pp(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=nd(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=nd(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Pp(t,"ng-trigger"),Pp(t,"ng-trigger-"+e),a[e]=bp),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Sp(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Pp(t,"ng-trigger"),Pp(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new yp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=bp),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Id(t,n),Ed(t,i)})}return}const c=nd(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Pp(t,"ng-animate-queued"),r.onStart(()=>{kp(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Xu(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||bp,o=new yp("void"),a=new Sp(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==_p||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Pp(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=ed(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Ju(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cp{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new wp(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Ep(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Ep(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pp(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),kp(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Ep(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Ep(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Xu(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=_p,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Pp(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xu(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Qd,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=Tp(u,this.collectedEnterElements),p=new Map;let g=0;d.forEach((t,e)=>{const n="ng-enter"+g++;p.set(e,n),t.forEach(t=>Pp(t,n))});const f=[],m=new Set,_=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):_.add(t))}const v=new Map,y=Tp(u,Array.from(m));y.forEach((t,e)=>{const n="ng-leave"+g++;v.set(e,n),t.forEach(t=>Pp(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>kp(t,n))}),y.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>kp(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=v.get(s),d=p.get(s),g=this._buildInstruction(t,n,d,u,c);if(g.errors&&g.errors.length)w.push(g);else{if(c)return e.onStart(()=>Id(s,g.fromStyles)),e.onDestroy(()=>Ed(s,g.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Id(s,g.fromStyles)),e.onDestroy(()=>Ed(s,g.toStyles)),void i.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>nd(o,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{nd(C,e,[]).push(t),t.destroy()})});const E=f.filter(t=>Dp(t,a,l)),I=new Map;xp(I,this.driver,_,l,"*").forEach(t=>{Dp(t,a,l)&&E.push(t)});const x=new Map;d.forEach((t,e)=>{xp(x,this.driver,new Set(t),a,"!")}),E.forEach(t=>{const e=I.get(t),n=x.get(t);I.set(t,Object.assign(Object.assign({},e),n))});const T=[],P=[],k={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Ed(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=k;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,x,I);if(r.setRealPlayer(n),t===k)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Xu(e)),i.push(r)}}else Id(e,o.fromStyles),r.onDestroy(()=>Ed(e,o.toStyles)),P.push(r),c.has(e)&&i.push(r)}),P.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Xu(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<f.length;M++){const t=f[M],e=t.__ng_removed;if(kp(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Mp(this,t,i):this.processLeaveNode(t)}return f.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=nd(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Id(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new Yu(e.duration,e.delay);const p=u!==a,g=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const s=e[i];s instanceof Qu?t(s.players,n):n.push(s)}}(t,e),e}((n.get(u)||mp).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),f=s.get(u),m=r.get(u),_=Zu(0,this._normalizer,0,e.keyframes,f,m),v=this._buildPlayer(e,_,g);if(e.subTimeline&&i&&h.add(u),p){const e=new Sp(t,o,u);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{nd(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Pp(t,"ng-animating"));const d=Xu(u);return d.onDestroy(()=>{c.forEach(t=>kp(t,"ng-animating")),Ed(a,e.toStyles)}),h.forEach(t=>{nd(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Yu(t.duration,t.delay)}}class Sp{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Yu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Ju(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){nd(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ep(t){return t&&1===t.nodeType}function Ip(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function xp(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Ip(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=vp,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Ip(t,r[a++])),o}function Tp(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Pp(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function kp(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Mp(t,e,n){Xu(n).onDone(()=>t.processLeaveNode(e))}function Dp(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Ap{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cp(t,e,n),this._timelineEngine=new fp(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Bd(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new dp(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=id(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=id(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Op(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Lp(e[0]),e.length>1&&(i=Lp(e[e.length-1]))):e&&(n=Lp(e)),n||i?new Rp(t,n,i):null}let Rp=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ed(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ed(this._element,this._initialStyles),this._endStyles&&(Ed(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Id(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Id(this._element,this._endStyles),this._endStyles=null),Ed(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Lp(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];Np(s)&&(e=e||{},e[s]=t[s])}return e}function Np(t){return"display"===t||"position"===t}class zp{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Hp(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Bp(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),jp(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Fp(this._element,this._name,"paused")}resume(){Fp(this._element,this._name,"running")}setPosition(t){const e=Vp(this._element,this._name);this._position=t*this._duration,Bp(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),jp(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Hp(t,"").split(","),i=Up(n,e);i>=0&&(n.splice(i,1),Bp(t,"",n.join(",")))}(this._element,this._name))}}function Fp(t,e,n){Bp(t,"PlayState",n,Vp(t,e))}function Vp(t,e){const n=Hp(t,"");return n.indexOf(",")>0?Up(n.split(","),e):Up([n],e)}function Up(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function jp(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Bp(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Hp(t,e){return t.style["animation"+e]}class Wp{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new zp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Nd(this.element,n))})}this.currentSnapshot=t}}class $p extends Yu{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=gd(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class qp{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>gd(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Wp),l={};Od(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Rd(t,e,l));if(0==n)return new $p(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Op(t,e),p=new Wp(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Gp{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Nd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Yp{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Qp().toString()),this._cssKeyframesDriver=new qp}validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Gp);Od(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Op(t,e=Rd(t,e=e.map(t=>wd(t,!1)),l));return new Gp(t,e,a,h)}}function Qp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Kp=(()=>{class t extends zu{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Uu(t):t;return Jp(this._renderer,null,e,"register",[n]),new Xp(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ka),Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xp extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Zp(this._id,t,e||{},this._renderer)}}class Zp{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Jp(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Jp(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let tg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new eg("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new ng(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ka),Yt(Ap),Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class eg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ng extends eg{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ig=(()=>{class t extends Ap{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(md),Yt(rp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const sg=[{provide:md,useFactory:function(){return"function"==typeof Qp()?new Yp:new qp}},{provide:new Ft("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:zu,useClass:Kp},{provide:rp,useFactory:function(){return new op}},{provide:Ap,useClass:ig},{provide:Ka,useFactory:function(t,e,n){return new tg(t,e,n)},deps:[Cu,Ap,jc]}];let rg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:sg,imports:[Nu]}),t})();class og extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class ag extends og{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class lg extends ag{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let cg=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class hg extends cg{constructor(t,e=cg.now){super(t,()=>hg.delegate&&hg.delegate!==this?hg.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return hg.delegate&&hg.delegate!==this?hg.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class ug extends hg{}const dg=new ug(lg),pg=new b(t=>t.complete());function gg(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):pg}function fg(...t){let e=t[t.length-1];return T(e)?(t.pop(),U(t,e)):q(t)}let mg=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return fg(this.value);case"E":return t=this.error,new b(e=>e.error(t));case"C":return gg()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class _g extends g{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(_g.dispatch,this.delay,new vg(t,this.destination)))}_next(t){this.scheduleMessage(mg.createNext(t))}_error(t){this.scheduleMessage(mg.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(mg.createComplete()),this.unsubscribe()}}class vg{constructor(t,e){this.notification=t,this.destination=e}}class yg extends I{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new bg(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new S(this,t)),i&&t.add(t=new _g(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||dg).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class bg{constructor(t,e){this.time=t,this.value=e}}class wg extends I{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}function Cg(...t){if(1===t.length){const e=t[0];if(l(e))return Sg(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Sg(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Sg(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(z(t=>e(...t)))}return Sg(t,null)}function Sg(t,e){return new b(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=j(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}function Eg(t,e){return B(t,e,1)}function Ig(t,e){return function(n){return n.lift(new xg(t,e))}}class xg{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Tg(t,this.predicate,this.thisArg))}}class Tg extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Pg{}class kg{}class Mg{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Mg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Mg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Mg?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Dg{encodeKey(t){return Ag(t)}encodeValue(t){return Ag(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ag(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Og{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Dg,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Og({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Rg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Lg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ng(t){return"undefined"!=typeof FormData&&t instanceof FormData}class zg{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Mg),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Og,this.urlWithParams=e}serializeBody(){return null===this.body?null:Rg(this.body)||Lg(this.body)||Ng(this.body)||"string"==typeof this.body?this.body:this.body instanceof Og?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||Ng(this.body)?null:Lg(this.body)?this.body.type||null:Rg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Og?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new zg(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}const Fg=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Vg{constructor(t,e=200,n="OK"){this.headers=t.headers||new Mg,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ug extends Vg{constructor(t={}){super(t),this.type=Fg.ResponseHeader}clone(t={}){return new Ug({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class jg extends Vg{constructor(t={}){super(t),this.type=Fg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new jg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Bg extends Vg{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Hg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Wg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof zg)i=t;else{let s=void 0;s=n.headers instanceof Mg?n.headers:new Mg(n.headers);let r=void 0;n.params&&(r=n.params instanceof Og?n.params:new Og({fromObject:n.params})),i=new zg(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=fg(i).pipe(Eg(t=>this.handler.handle(t)));if(t instanceof zg||"events"===n.observe)return s;const r=s.pipe(Ig(t=>t instanceof jg));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(z(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(z(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Og).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Hg(n,e))}post(t,e,n={}){return this.request("POST",t,Hg(n,e))}put(t,e,n={}){return this.request("PUT",t,Hg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Pg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $g{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qg=new Ft("HTTP_INTERCEPTORS");let Gg=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Yg=/^\)\]\}',?\n/;class Qg{}let Kg=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Xg=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Mg(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Ug({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Yg,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new jg({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Bg({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Bg({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:Fg.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:Fg.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:Fg.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Qg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Zg=new Ft("XSRF_COOKIE_NAME"),Jg=new Ft("XSRF_HEADER_NAME");class tf{}let ef=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(Ic),Yt(Zg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),nf=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(tf),Yt(Jg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sf=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(qg,[]);this.chain=t.reduceRight((t,e)=>new $g(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(kg),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),rf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:nf,useClass:Gg}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Zg,useValue:e.cookieName}:[],e.headerName?{provide:Jg,useValue:e.headerName}:[]]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[nf,{provide:qg,useExisting:nf,multi:!0},{provide:tf,useClass:ef},{provide:Zg,useValue:"XSRF-TOKEN"},{provide:Jg,useValue:"X-XSRF-TOKEN"}]}),t})(),of=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Wg,{provide:Pg,useClass:sf},Xg,{provide:kg,useExisting:Xg},Kg,{provide:Qg,useExisting:Kg}],imports:[[rf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function af(t){return!!t&&(t instanceof b||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function lf(){return $(1)}function cf(...t){return lf()(fg(...t))}function hf(t){return new b(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):gg()).subscribe(e)})}const uf=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function df(t){return e=>0===t?gg():e.lift(new pf(t))}class pf{constructor(t){if(this.total=t,this.total<0)throw new uf}call(t,e){return e.subscribe(new gf(t,this.total))}}class gf extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ff(t,e,n){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let s,r,o=0,a=!1,l=!1;return function(c){o++,s&&!a||(a=!1,s=new yg(t,e,i),r=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,r=void 0,s.complete()}}));const h=s.subscribe(this);this.add(()=>{o--,h.unsubscribe(),r&&!l&&n&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(i))}function mf(t,e){return"function"==typeof e?n=>n.pipe(mf((n,i)=>j(t(n,i)).pipe(z((t,s)=>e(n,t,i,s))))):e=>e.lift(new _f(t))}class _f{constructor(t){this.project=t}call(t,e){return e.subscribe(new vf(t,this.project))}}class vf extends N{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new P(this,e,n),r=this.destination;r.add(s),this.innerSubscription=L(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}class yf{}let bf=(()=>{class t extends yf{getTranslation(t){return fg({})}}return t.\u0275fac=function(e){return wf(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const wf=li(bf);class Cf{}let Sf=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Ef(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,i,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(i in s=Object.create(null),t){if(!Ef(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&void 0!==e[i])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(i=0;i<n;i++)if(!Ef(t[i],e[i]))return!1;return!0}}return!1}function If(t){return null!=t}function xf(t){return t&&"object"==typeof t&&!Array.isArray(t)}class Tf{}let Pf=(()=>{class t extends Tf{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!If(t)||!If(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let i=this.getValue(e,n);return If(i)?i:t}):t}}return t.\u0275fac=function(e){return kf(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const kf=li(Pf);class Mf{}let Df=(()=>{class t extends Mf{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return Af(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Af=li(Df);class Of{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Zl,this.onLangChange=new Zl,this.onDefaultLangChange=new Zl}}const Rf=new Ft("USE_STORE"),Lf=new Ft("USE_DEFAULT_LANG"),Nf=new Ft("DEFAULT_LANGUAGE"),zf=new Ft("USE_EXTEND");let Ff=(()=>{class t{constructor(t,e,n,i,s,r=!0,o=!1,a=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new Zl,this._onLangChange=new Zl,this._onDefaultLangChange=new Zl,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(df(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return fg(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(df(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),fg(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(ff(1),df(1));return this.loadingTranslations=e.pipe(z(e=>this.compiler.compileTranslations(e,t)),ff(1),df(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let i=Object.assign({},e);return xf(e)&&xf(n)&&Object.keys(n).forEach(s=>{xf(n[s])?s in e?i[s]=t(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let i;if(e instanceof Array){let i={},s=!1;for(let r of e)i[r]=this.getParsedResult(t,r,n),af(i[r])&&(s=!0);return s?Cg(e.map(t=>af(i[t])?i[t]:fg(i[t]))).pipe(z(t=>{let n={};return t.forEach((t,i)=>{n[e[i]]=t}),n})):i}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===i){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),i=this.missingTranslationHandler.handle(t)}return void 0!==i?i:e}get(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Eg(n=>af(n=this.getParsedResult(n,t,e))?n:fg(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return af(n)?n:fg(n)}}getStreamOnTranslationChange(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');return cf(hf(()=>this.get(t,e)),this.onTranslationChange.pipe(mf(n=>{const i=this.getParsedResult(n.translations,t,e);return"function"==typeof i.subscribe?i:fg(i)})))}stream(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');return cf(hf(()=>this.get(t,e)),this.onLangChange.pipe(mf(n=>{const i=this.getParsedResult(n.translations,t,e);return af(i)?i:fg(i)})))}instant(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(af(n)){if(t instanceof Array){let e={};return t.forEach((n,i)=>{e[t[i]]=t[i]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(Yt(Of),Yt(yf),Yt(Mf),Yt(Tf),Yt(Cf),Yt(Lf),Yt(Rf),Yt(zf),Yt(Nf))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vf=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let i=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,t,e);af(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(t,e).subscribe(i)}transform(t,...e){if(!t||!t.length)return t;if(Ef(t,this.lastKey)&&Ef(e,this.lastParams))return this.value;let n;if(If(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ff),function(t=at.Default){const e=Gr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=be({name:"translate",type:t,pure:!1}),t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uf=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:yf,useClass:bf},e.compiler||{provide:Mf,useClass:Df},e.parser||{provide:Tf,useClass:Pf},e.missingTranslationHandler||{provide:Cf,useClass:Sf},Of,{provide:Rf,useValue:e.isolate},{provide:Lf,useValue:e.useDefaultLang},{provide:zf,useValue:e.extend},{provide:Nf,useValue:e.defaultLanguage},Ff]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:yf,useClass:bf},e.compiler||{provide:Mf,useClass:Df},e.parser||{provide:Tf,useClass:Pf},e.missingTranslationHandler||{provide:Cf,useClass:Sf},{provide:Rf,useValue:e.isolate},{provide:Lf,useValue:e.useDefaultLang},{provide:zf,useValue:e.extend},{provide:Nf,useValue:e.defaultLanguage},Ff]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const jf=new Ft("NgValueAccessor"),Bf={provide:jf,useExisting:St(()=>Hf),multi:!0};let Hf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Wa([Bf])]}),t})();const Wf={provide:jf,useExisting:St(()=>qf),multi:!0},$f=new Ft("CompositionEventMode");let qf=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Eh()?Eh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya),Oo($f,8))},t.\u0275dir=ye({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&$o("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Wa([Wf])]}),t})(),Gf=(()=>{class t{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(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t}),t})(),Yf=(()=>{class t extends Gf{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Qf(e||t)},t.\u0275dir=ye({type:t,features:[Pa]}),t})();const Qf=li(Yf);function Kf(){throw new Error("unimplemented")}class Xf extends Gf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Kf()}get asyncValidator(){return Kf()}}let Zf=(()=>{class t extends class{constructor(t){this._cd=t}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}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Xf,2))},t.\u0275dir=ye({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&la("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Pa]}),t})();function Jf(t){return null==t||0===t.length}const tm=new Ft("NgValidators"),em=new Ft("NgAsyncValidators"),nm=/^(?=.{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 im{static min(t){return e=>{if(Jf(e.value)||Jf(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Jf(e.value)||Jf(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Jf(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Jf(t.value)||nm.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Jf(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return im.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Jf(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){return om(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){return Cg(function(t,e){return e.map(e=>e(t))}(t,e).map(rm)).pipe(z(om))}}}function sm(t){return null!=t}function rm(t){const e=Ho(t)?j(t):t;if(!Wo(e))throw new Error("Expected validator to return Promise or Observable.");return e}function om(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function am(t){return t.validate?e=>t.validate(e):t}function lm(t){return t.validate?e=>t.validate(e):t}const cm={provide:jf,useExisting:St(()=>hm),multi:!0};let hm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Wa([cm])]}),t})();const um={provide:jf,useExisting:St(()=>pm),multi:!0};let dm=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),pm=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Xf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya),Oo(dm),Oo(ho))},t.\u0275dir=ye({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Wa([um])]}),t})();const gm={provide:jf,useExisting:St(()=>fm),multi:!0};let fm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Wa([gm])]}),t})();const mm='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_m='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',vm={provide:jf,useExisting:St(()=>bm),multi:!0};function ym(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let bm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=yo}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=ym(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Wa([vm])]}),t})(),wm=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(ym(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(bm,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Cm={provide:jf,useExisting:St(()=>Em),multi:!0};function Sm(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Em=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=yo}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),s=this._getOptionValue(i.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Wa([Cm])]}),t})(),Im=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Sm(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Sm(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Em,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function xm(t,e){return[...e.path,t]}function Tm(t,e){t||km(e,"Cannot find control with"),e.valueAccessor||km(e,"No value accessor for form control with"),t.validator=im.compose([t.validator,e.validator]),t.asyncValidator=im.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Pm(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Pm(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Pm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function km(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Mm(t){return null!=t?im.compose(t.map(am)):null}function Dm(t){return null!=t?im.composeAsync(t.map(lm)):null}const Am=[Hf,fm,hm,bm,Em,pm];function Om(t){const e=Lm(t)?t.validators:t;return Array.isArray(e)?Mm(e):e||null}function Rm(t,e){const n=Lm(e)?e.asyncValidators:t;return Array.isArray(n)?Dm(n):n||null}function Lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Nm{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}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(t){this.validator=Om(t)}setAsyncValidators(t){this.asyncValidator=Rm(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=rm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof Fm?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Vm&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Zl,this.statusChanges=new Zl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Lm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class zm extends Nm{constructor(t=null,e,n){super(Om(e),Rm(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Fm extends Nm{constructor(t,e,n){super(Om(e),Rm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof zm?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,i)=>{e=e||this.contains(i)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Vm extends Nm{constructor(t,e,n){super(Om(e),Rm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof zm?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Um={provide:Yf,useExisting:St(()=>Bm)},jm=(()=>Promise.resolve(null))();let Bm=(()=>{class t extends Yf{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Zl,this.form=new Fm({},Mm(t),Dm(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){jm.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Tm(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){jm.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){jm.then(()=>{const e=this._findContainer(t.path),n=new Fm({});(function(t,e){null==t&&km(e,"Cannot find control with"),t.validator=im.compose([t.validator,e.validator]),t.asyncValidator=im.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){jm.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){jm.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Oo(tm,10),Oo(em,10))},t.\u0275dir=ye({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&$o("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wa([Um]),Pa]}),t})(),Hm=(()=>{class t extends Yf{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Mm(this._validators)}get asyncValidator(){return Dm(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Wm(e||t)},t.\u0275dir=ye({type:t,features:[Pa]}),t})();const Wm=li(Hm);class $m{static modelParentException(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${mm}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${_m}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${mm}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${_m}`)}}const qm={provide:Yf,useExisting:St(()=>Gm)};let Gm=(()=>{class t extends Hm{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof Bm||$m.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Yf,5),Oo(tm,10),Oo(em,10))},t.\u0275dir=ye({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Wa([qm]),Pa]}),t})();const Ym={provide:Xf,useExisting:St(()=>Km)},Qm=(()=>Promise.resolve(null))();let Km=(()=>{class t extends Xf{constructor(t,e,n,i){super(),this.control=new zm,this._registered=!1,this.update=new Zl,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||km(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,s=void 0;return e.forEach(e=>{var r;e.constructor===qf?n=e:(r=e,Am.some(t=>r.constructor===t)?(i&&km(t,"More than one built-in value accessor matches form control with"),i=e):(s&&km(t,"More than one custom value accessor matches form control with"),s=e))}),s||i||n||(km(t,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!yo(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?xm(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Mm(this._rawValidators)}get asyncValidator(){return Dm(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Tm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Gm)&&this._parent instanceof Hm?$m.formGroupNameException():this._parent instanceof Gm||this._parent instanceof Bm||$m.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$m.missingNameException()}_updateValue(t){Qm.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Qm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Oo(Yf,9),Oo(tm,10),Oo(em,10),Oo(jf,10))},t.\u0275dir=ye({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Wa([Ym]),Pa,Ra]}),t})();const Xm=new Ft("NgModelWithFormControlWarning");let Zm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Jm=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Fm(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new zm(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new Vm(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof zm||t instanceof Fm||t instanceof Vm?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),t_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[dm],imports:[Zm]}),t})(),e_=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xm,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Jm,dm],imports:[Zm]}),t})();function n_(t,e,n,s){return i(n)&&(s=n,n=void 0),s?n_(t,e,n).pipe(z(t=>l(t)?s(...t):s(t))):new b(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,s,r)}s.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}function i_(t){return e=>e.lift(new s_(t))}class s_{constructor(t){this.callback=t}call(t,e){return e.subscribe(new r_(t,this.callback))}}class r_ extends g{constructor(t,e){super(t),this.add(new u(e))}}function o_(t){return e=>e.lift(new a_(t))}class a_{constructor(t){this.notifier=t}call(t,e){const n=new l_(t),i=L(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class l_ extends N{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}function c_(t){return null!=t&&""+t!="false"}function h_(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function u_(t){return t instanceof Ya?t.nativeElement:t}const d_=new Ft("cdk-dir-doc",{providedIn:"root",factory:function(){return Qt(Ih)}});let p_,g_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Zl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Yt(d_,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(d_,8))},token:t,providedIn:"root"}),t})(),f_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();try{p_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Nk){p_=!1}let m_,__,v_,y_=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?su(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&&!p_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ic))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ic))},token:t,providedIn:"root"}),t})(),b_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function w_(t){return function(){if(null==m_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>m_=!0}))}finally{m_=m_||!1}return m_}()?t:!!t.capture}function C_(){if("object"!=typeof document||!document)return 0;if(null==__){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),__=0,0===t.scrollLeft&&(t.scrollLeft=1,__=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return __}class S_ extends ag{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class E_ extends hg{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}const I_=new E_(S_);function x_(t,e){return n=>n.lift(new T_(t,e))}class T_{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new P_(t,this.compare,this.keySelector))}}class P_ extends g{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const k_=new hg(ag);class M_{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new D_(t,this.durationSelector))}}class D_ extends N{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=L(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function A_(t){return!l(t)&&t-parseFloat(t)+1>=0}function O_(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function R_(t,e=k_){return n=()=>function(t=0,e,n){let i=-1;return A_(e)?i=Number(e)<1?1:Number(e):T(e)&&(n=e),T(n)||(n=k_),new b(e=>{const s=A_(t)?t:+t-n.now();return n.schedule(O_,s,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new M_(n))};var n}function L_(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>cf(t,n,e)):e=>cf(t,e)}class N_{call(t,e){return e.subscribe(new z_(t))}}class z_ extends g{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}let F_=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new I,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(R_(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):fg()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ig(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>n_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(y_),Yt(Ih,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(jc),Yt(y_),Yt(Ih,8))},token:t,providedIn:"root"}),t})(),V_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new I,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(R_(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Yt(y_),Yt(jc),Yt(Ih,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(y_),Yt(jc),Yt(Ih,8))},token:t,providedIn:"root"}),t})(),U_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),j_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[f_,b_,U_],f_,U_]}),t})(),B_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[j_]]}),t})();const H_=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),W_={};class $_{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new q_(t,this.resultSelector))}}class q_ extends N{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(W_),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(L(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,i,s){const r=this.values,o=this.toRespond?r[n]===W_?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function G_(t){return function(e){return 0===t?gg():e.lift(new Y_(t))}}class Y_{constructor(t){if(this.total=t,this.total<0)throw new uf}call(t,e){return e.subscribe(new Q_(t,this.total))}}class Q_ extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}function K_(t=J_){return e=>e.lift(new X_(t))}class X_{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Z_(t,this.errorFactory))}}class Z_ extends g{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function J_(){return new H_}function tv(t=null){return e=>e.lift(new ev(t))}class ev{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new nv(t,this.defaultValue))}}class nv extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function iv(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ig((e,n)=>t(e,n,i)):_,G_(1),n?tv(e):K_(()=>new H_))}function sv(t){return function(e){const n=new rv(t),i=e.lift(n);return n.caught=i}}class rv{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ov(t,this.selector,this.caught))}}class ov extends N{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new P(this,void 0,void 0);this.add(i);const s=L(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function av(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ig((e,n)=>t(e,n,i)):_,df(1),n?tv(e):K_(()=>new H_))}class lv{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new cv(t,this.predicate,this.thisArg,this.source))}}class cv extends g{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function hv(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new uv(t,e,n))}}class uv{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new dv(t,this.accumulator,this.seed,this.hasSeed))}}class dv extends g{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function pv(){}function gv(t,e,n){return function(i){return i.lift(new fv(t,e,n))}}class fv{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new mv(t,this.nextOrObserver,this.error,this.complete))}}class mv extends g{constructor(t,e,n,s){super(t),this._tapNext=pv,this._tapError=pv,this._tapComplete=pv,this._tapError=n||pv,this._tapComplete=s||pv,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||pv,this._tapError=e.error||pv,this._tapComplete=e.complete||pv)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class _v{constructor(t,e){this.id=t,this.url=e}}class vv extends _v{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yv extends _v{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class bv extends _v{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class wv extends _v{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Cv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ev extends _v{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Iv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tv{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Pv{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class kv{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mv{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dv{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Av{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ov{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Vo(0,"router-outlet")},directives:function(){return[Lb]},encapsulation:2}),t})();class Lv{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Nv(t){return new Lv(t)}function zv(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Fv(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}class Vv{constructor(t,e){this.routes=t,this.module=e}}function Uv(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];jv(i,Bv(e,i))}}function jv(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Uv(t.children,e)}function Bv(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Hv(t){const e=t.children&&t.children.map(Hv),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Rv),n}function Wv(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!$v(t[s],e[s]))return!1;return!0}function $v(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function qv(t){return Array.prototype.concat.apply([],t)}function Gv(t){return t.length>0?t[t.length-1]:null}function Yv(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Qv(t){return Wo(t)?t:Ho(t)?j(Promise.resolve(t)):fg(t)}function Kv(t,e,n){return n?function(t,e){return Wv(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!ty(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>$v(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,s){if(n.segments.length>s.length)return!!ty(n.segments.slice(0,s.length),s)&&!i.hasChildren();if(n.segments.length===s.length){if(!ty(n.segments,s))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!ty(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,r)}}(e,n,n.segments)}(t.root,e.root)}class Xv{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nv(this.queryParams)),this._queryParamMap}toString(){return sy.serialize(this)}}class Zv{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Yv(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ry(this)}}class Jv{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Nv(this.parameters)),this._parameterMap}toString(){return uy(this)}}function ty(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function ey(t,e){let n=[];return Yv(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Yv(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class ny{}class iy{parse(t){const e=new my(t);return new Xv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return ry(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return Yv(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=ey(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${ry(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ay(e)}=${ay(t)}`).join("&"):`${ay(e)}=${ay(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const sy=new iy;function ry(t){return t.segments.map(t=>uy(t)).join("/")}function oy(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ay(t){return oy(t).replace(/%3B/gi,";")}function ly(t){return oy(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cy(t){return decodeURIComponent(t)}function hy(t){return cy(t.replace(/\+/g,"%20"))}function uy(t){return`${ly(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${ly(t)}=${ly(e[t])}`).join("")}`;var e}const dy=/^[^\/()?;=#]+/;function py(t){const e=t.match(dy);return e?e[0]:""}const gy=/^[^=?&#]+/,fy=/^[^?&#]+/;class my{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zv([],{}):new Zv([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Zv(t,e)),n}parseSegment(){const t=py(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Jv(cy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=py(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=py(this.remaining);t&&(n=t,this.capture(n))}t[cy(e)]=cy(n)}parseQueryParam(t){const e=function(t){const e=t.match(gy);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(fy);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=hy(e),s=hy(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=py(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Zv([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class _y{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=vy(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=vy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=yy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return yy(t,this._root).map(t=>t.value)}}function vy(t,e){if(t===e.value)return e;for(const n of e.children){const e=vy(t,n);if(e)return e}return null}function yy(t,e){if(t===e.value)return[e];for(const n of e.children){const i=yy(t,n);if(i.length)return i.unshift(e),i}return[]}class by{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function wy(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Cy extends _y{constructor(t,e){super(t),this.snapshot=e,Py(this,t)}toString(){return this.snapshot.toString()}}function Sy(t,e){const n=function(t,e){const n=new xy([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Ty("",new by(n,[]))}(t,e),i=new wg([new Jv("",{})]),s=new wg({}),r=new wg({}),o=new wg({}),a=new wg(""),l=new Ey(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new Cy(new by(l,[]),n)}class Ey{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>Nv(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>Nv(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Iy(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class xy{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Nv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ty extends _y{constructor(t,e){super(e),this.url=t,Py(this,e)}toString(){return ky(this._root)}}function Py(t,e){e.value._routerState=t,e.children.forEach(e=>Py(t,e))}function ky(t){const e=t.children.length>0?` { ${t.children.map(ky).join(", ")} } `:"";return`${t.value}${e}`}function My(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Wv(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Wv(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Wv(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Wv(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Dy(t,e){var n,i;return Wv(t.params,e.params)&&ty(n=t.url,i=e.url)&&n.every((t,e)=>Wv(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Dy(t.parent,e.parent))}function Ay(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Oy(t,e,n,i,s){let r={};return i&&Yv(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Xv(n.root===t?e:function t(e,n,i){const s={};return Yv(e.children,(e,r)=>{s[r]=e===n?i:t(e,n,i)}),new Zv(e.segments,s)}(n.root,t,e),r,s)}class Ry{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ay(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==Gv(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ly{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Ny(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function zy(t,e,n){if(t||(t=new Zv([],{})),0===t.segments.length&&t.hasChildren())return Fy(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],o=Ny(n[i]),a=i<n.length-1?n[i+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!By(o,a,e))return r;i+=2}else{if(!By(o,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Zv(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new Zv(t.segments.slice(i.pathIndex),t.children),Fy(e,0,s)}return i.match&&0===s.length?new Zv(t.segments,{}):i.match&&!t.hasChildren()?Vy(t,e,n):i.match?Fy(t,0,s):Vy(t,e,n)}function Fy(t,e,n){if(0===n.length)return new Zv(t.segments,{});{const i=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),s={};return Yv(i,(n,i)=>{null!==n&&(s[i]=zy(t.children[i],e,n))}),Yv(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Zv(t.segments,s)}}function Vy(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=Uy(n[s].outlets);return new Zv(i,t)}if(0===s&&Ay(n[0])){i.push(new Jv(t.segments[e].path,n[0])),s++;continue}const r=Ny(n[s]),o=s<n.length-1?n[s+1]:null;r&&o&&Ay(o)?(i.push(new Jv(r,jy(o))),s+=2):(i.push(new Jv(r,{})),s++)}return new Zv(i,{})}function Uy(t){const e={};return Yv(t,(t,n)=>{null!==t&&(e[n]=Vy(new Zv([],{}),0,t))}),e}function jy(t){const e={};return Yv(t,(t,n)=>e[n]=""+t),e}function By(t,e,n){return t==n.path&&Wv(e,n.parameters)}class Hy{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),My(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=wy(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Yv(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=wy(t),s=t.value.component?n.children:e;Yv(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=wy(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Av(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Mv(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(My(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Wy(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Wy(t){My(t.value),t.children.forEach(Wy)}function $y(t){return"function"==typeof t}function qy(t){return t instanceof Xv}class Gy{constructor(t){this.segmentGroup=t||null}}class Yy{constructor(t){this.urlTree=t}}function Qy(t){return new b(e=>e.error(new Gy(t)))}function Ky(t){return new b(e=>e.error(new Yy(t)))}function Xy(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Zy{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Jt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(z(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sv(t=>{if(t instanceof Yy)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Gy)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(z(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sv(t=>{if(t instanceof Gy)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Zv([],{primary:t}):t;return new Xv(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(z(t=>new Zv([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return fg({});const n=[],i=[],s={};return Yv(t,(t,r)=>{const o=e(r,t).pipe(z(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),fg.apply(null,n.concat(i)).pipe(lf(),iv(),z(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){return fg(...n).pipe(z(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sv(t=>{if(t instanceof Gy)return fg(null);throw t}))),lf(),av(t=>!!t),sv((t,n)=>{if(t instanceof H_||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return fg(new Zv([],{}));throw new Gy(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return nb(i)!==r?Qy(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Qy(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ky(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Zv(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Jy(e,i,s);if(!o)return Qy(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ky(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(z(t=>(n._loadedConfig=t,new Zv(i,{})))):fg(new Zv(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=Jy(e,n,i);if(!s)return Qy(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>eb(t,e,n)&&"primary"!==nb(n))}(t,n,i)?{segmentGroup:tb(new Zv(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==nb(i)&&(n[nb(i)]=new Zv([],{}));return n}(i,new Zv(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>eb(t,e,n))}(t,n,i)?{segmentGroup:tb(new Zv(t.segments,function(t,e,n,i){const s={};for(const r of n)eb(t,e,r)&&!i[nb(r)]&&(s[nb(r)]=new Zv([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(z(t=>new Zv(r,t))):0===i.length&&0===o.length?fg(new Zv(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(z(t=>new Zv(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?fg(new Vv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?fg(e._loadedConfig):function(t,e,n){const i=e.canLoad;return i&&0!==i.length?j(i).pipe(z(i=>{const s=t.get(i);let r;if(function(t){return t&&$y(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$y(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return Qv(r)})).pipe(lf(),(s=t=>!0===t,t=>t.lift(new lv(s,void 0,t)))):fg(!0);var s}(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(zv(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):fg(new Vv([],t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return fg(n);if(i.numberOfChildren>1||!i.children.primary)return Xy(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Xv(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Yv(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Yv(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Zv(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Jy(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Fv)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function tb(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Zv(t.segments.concat(e.segments),e.children)}return t}function eb(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function nb(t){return t.outlet||"primary"}class ib{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class sb{constructor(t,e){this.component=t,this.route=e}}function rb(t,e,n){const i=t._root;return function t(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=wy(n);return e.children.forEach(e=>{!function(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ty(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ty(t.url,e.url)||!Wv(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dy(t,e)||!Wv(t.queryParams,e.queryParams);case"paramsChange":default:return!Dy(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ib(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:i,s,r),c&&r.canDeactivateChecks.push(new sb(l&&l.outlet&&l.outlet.component||null,a))}else a&&ab(n,l,r),r.canActivateChecks.push(new ib(s)),t(e,null,o.component?l?l.children:null:i,s,r)}(e,o[e.value.outlet],i,s.concat([e.value]),r),delete o[e.value.outlet]}),Yv(o,(t,e)=>ab(t,i.getContext(e),r)),r}(i,e?e._root:null,n,[i.value])}function ob(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function ab(t,e,n){const i=wy(t),s=t.value;Yv(i,(t,i)=>{ab(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new sb(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const lb=Symbol("INITIAL_VALUE");function cb(){return mf(t=>function(...t){let e=null,n=null;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new $_(e))}(...t.map(t=>t.pipe(df(1),L_(lb)))).pipe(hv((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==lb)return t;if(i===lb&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||qy(i))return i}return t},t)},lb),Ig(t=>t!==lb),z(t=>qy(t)?t:!0===t),df(1)))}function hb(t,e){return null!==t&&e&&e(new Dv(t)),fg(!0)}function ub(t,e){return null!==t&&e&&e(new kv(t)),fg(!0)}function db(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?fg(i.map(i=>hf(()=>{const s=ob(i,e,n);let r;if(function(t){return t&&$y(t.canActivate)}(s))r=Qv(s.canActivate(e,t));else{if(!$y(s))throw new Error("Invalid CanActivate guard");r=Qv(s(e,t))}return r.pipe(av())}))).pipe(cb()):fg(!0)}function pb(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>hf(()=>fg(e.guards.map(s=>{const r=ob(s,e.node,n);let o;if(function(t){return t&&$y(t.canActivateChild)}(r))o=Qv(r.canActivateChild(i,t));else{if(!$y(r))throw new Error("Invalid CanActivateChild guard");o=Qv(r(i,t))}return o.pipe(av())})).pipe(cb())));return fg(s).pipe(cb())}class gb{}class fb{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=vb(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new xy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new by(n,e),s=new Ty(this.url,i);return this.inheritParamsAndData(s._root),fg(s)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Iy(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=ey(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof gb))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new gb}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new gb;if((t.outlet||"primary")!==i)throw new gb;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?Gv(n).parameters:{};s=new xy(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),i,t.component,t,mb(e),_b(e)+n.length,Cb(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new gb;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Fv)(n,t,e);if(!i)throw new gb;const s={};Yv(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new xy(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),i,t.component,t,mb(e),_b(e)+r.length,Cb(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=vb(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new by(s,t)]}if(0===a.length&&0===c.length)return[new by(s,[])];const h=this.processSegment(a,l,c,"primary");return[new by(s,h)]}}function mb(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function _b(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function vb(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>yb(t,e,n)&&"primary"!==bb(n))}(t,n,i)){const s=new Zv(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==bb(r)){const n=new Zv([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[bb(r)]=n}return s}(t,e,i,new Zv(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>yb(t,e,n))}(t,n,i)){const r=new Zv(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(yb(t,n,a)&&!s[bb(a)]){const n=new Zv([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[bb(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Zv(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function yb(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function bb(t){return t.outlet||"primary"}function wb(t){return t.data||{}}function Cb(t){return t.resolve||{}}function Sb(t,e,n,i){const s=ob(t,e,i);return Qv(s.resolve?s.resolve(e,n):s(e,n))}function Eb(t){return function(e){return e.pipe(mf(e=>{const n=t(e);return n?j(n).pipe(z(()=>e)):j([e])}))}}class Ib{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const xb=new Ft("ROUTES");class Tb{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(z(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Vv(qv(i.injector.get(xb)).map(Hv),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):Qv(t()).pipe(B(t=>t instanceof te?fg(t):j(this.compiler.compileModuleAsync(t))))}}class Pb{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function kb(t){throw t}function Mb(t,e,n){return e.parse("/")}function Db(t,e){return fg(null)}let Ab=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=kb,this.malformedUriErrorHandler=Mb,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Db,afterPreactivation:Db},this.urlHandlingStrategy=new Pb,this.routeReuseStrategy=new Ib,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Jt),this.console=s.get(Tc);const l=s.get(jc);this.isNgZoneEnabled=l instanceof jc,this.resetConfig(a),this.currentUrlTree=new Xv(new Zv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tb(r,o,t=>this.triggerEvent(new Tv(t)),t=>this.triggerEvent(new Pv(t))),this.routerState=Sy(this.currentUrlTree,this.rootComponentType),this.transitions=new wg({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Ig(t=>0!==t.id),z(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),mf(t=>{let n=!1,i=!1;return fg(t).pipe(gv(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),mf(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return fg(t).pipe(mf(t=>{const n=this.transitions.getValue();return e.next(new vv(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?pg:[t]}),mf(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(mf(t=>function(t,e,n,i,s){return new Zy(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(z(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),gv(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new fb(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(z(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),gv(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),gv(t=>{const n=new Cv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new vv(n,this.serializeUrl(i),s,r);e.next(a);const l=Sy(i,this.rootComponentType).snapshot;return fg(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),pg}),Eb(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),gv(t=>{const e=new Sv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),z(t=>Object.assign(Object.assign({},t),{guards:rb(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?fg(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?fg(r.map(r=>{const o=ob(r,e,s);let a;if(function(t){return t&&$y(t.canDeactivate)}(o))a=Qv(o.canDeactivate(t,e,n,i));else{if(!$y(o))throw new Error("Invalid CanDeactivate guard");a=Qv(o(t,e,n,i))}return a.pipe(av())})).pipe(cb()):fg(!0)}(t.component,t.route,n,e,i)),av(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(Eg(e=>j([ub(e.route.parent,i),hb(e.route,i),pb(t,e.path,n),db(t,e.route,n)]).pipe(lf(),av(t=>!0!==t,!0))),av(t=>!0!==t,!0))}(i,r,t,e):fg(n)),z(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),gv(t=>{if(qy(t.guardsResult)){const e=zv(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),gv(t=>{const e=new Ev(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ig(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new bv(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Eb(t=>{if(t.guards.canActivateChecks.length)return fg(t).pipe(gv(t=>{const e=new Iv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=t;return s.length?j(s).pipe(Eg(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return fg({});if(1===s.length){const r=s[0];return Sb(t[r],e,n,i).pipe(z(t=>({[r]:t})))}const r={};return j(s).pipe(B(s=>Sb(t[s],e,n,i).pipe(z(t=>(r[s]=t,t))))).pipe(iv(),z(()=>r))}(t._resolve,t,e,i).pipe(z(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Iy(t,n).resolve),null)))}(t.route,i,e,n)),function(t,e){return arguments.length>=2?function(n){return v(hv(t,e),G_(1),tv(e))(n)}:function(e){return v(hv((e,n,i)=>t(e,n,i+1)),G_(1))(e)}}((t,e)=>t),z(e=>t)):fg(t)}))}),gv(t=>{const e=new xv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Eb(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),z(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const s=i.value;s._futureSnapshot=n.value;const r=function(e,n,i){return n.children.map(n=>{for(const s of i.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,i);return new by(s,r)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,t),t}{const i=new Ey(new wg((s=n.value).url),new wg(s.params),new wg(s.queryParams),new wg(s.fragment),new wg(s.data),s.outlet,s.component,s),r=n.children.map(n=>t(e,n));return new by(i,r)}}var s}(t,e._root,n?n._root:void 0);return new Cy(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),gv(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),z(t=>(new Hy(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),gv({next(){n=!0},complete(){n=!0}}),i_(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new bv(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sv(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=qy(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new bv(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new wv(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return pg}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Uv(t),this.config=t.map(Hv),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;Ei()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let h=null;if(o)switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=r?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,s){if(0===n.length)return Oy(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ry(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Yv(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Ry(n,e,i)}(n);if(r.toRoot())return Oy(e.root,new Zv([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Ly(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Ly(n.snapshot._urlSegment,!0,0);const i=Ay(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Ly(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Fy(o.segmentGroup,o.index,r.commands):zy(o.segmentGroup,o.index,r.commands);return Oy(o.segmentGroup,a,e,i,s)}(l,this.currentUrlTree,t,h,c)}navigateByUrl(t,e={skipLocationChange:!1}){Ei()&&this.isNgZoneEnabled&&!jc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=qy(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(qy(t))return Kv(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Kv(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new yv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){Ro()},t.\u0275dir=ye({type:t}),t})();class Ob{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Rb,this.attachRef=null}}class Rb{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ob,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Lb=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Zl,this.deactivateEvents=new Zl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Nb(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Rb),Oo(bl),Oo(Ga),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let e=0;for(;e<t;){const i=n[e];if(Dn(i))break;if(0===i)e+=2;else if("number"==typeof i)for(e++;e<t&&"string"==typeof n[e];)e++;else{if("name"===i)return n[e+1];e+=2}}}return null}(Ze())),Oo(Yr))},t.\u0275dir=ye({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Nb{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ey?this.route:t===Rb?this.childContexts:this.parent.get(t,e)}}class zb{}class Fb{preload(t,e){return fg(null)}}let Vb=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Tb(e,n,e=>t.triggerEvent(new Tv(e)),e=>t.triggerEvent(new Pv(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ig(t=>t instanceof yv),Eg(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe($(),z(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ab),Yt(ch),Yt(zc),Yt(ho),Yt(zb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ub=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof yv&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ov&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Ov(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){Ro()},t.\u0275dir=ye({type:t}),t})();const jb=new Ft("ROUTER_CONFIGURATION"),Bb=new Ft("ROUTER_FORROOT_GUARD"),Hb=[Uh,{provide:ny,useClass:iy},{provide:Ab,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Ab(null,t,e,n,i,s,r,qv(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Eh();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h},deps:[ny,Rb,Uh,ho,ch,zc,xb,jb,[class{},new st],[class{},new st]]},Rb,{provide:Ey,useFactory:function(t){return t.routerState.root},deps:[Ab]},{provide:ch,useClass:dh},Vb,Fb,class{preload(t,e){return e().pipe(sv(()=>fg(null)))}},{provide:jb,useValue:{enableTracing:!1}}];function Wb(){return new nh("Router",Ab)}let $b=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Hb,Qb(e),{provide:Bb,useFactory:Yb,deps:[[Ab,new st,new ot]]},{provide:jb,useValue:n||{}},{provide:Lh,useFactory:Gb,deps:[xh,[new it(zh),new st],jb]},{provide:Ub,useFactory:qb,deps:[Ab,ru,jb]},{provide:zb,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fb},{provide:nh,multi:!0,useFactory:Wb},[Kb,{provide:yc,multi:!0,useFactory:Xb,deps:[Kb]},{provide:Jb,useFactory:Zb,deps:[Kb]},{provide:xc,multi:!0,useExisting:Jb}]]}}static forChild(e){return{ngModule:t,providers:[Qb(e)]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(Bb,8),Yt(Ab,8))}}),t})();function qb(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ub(t,e,n)}function Gb(t,e,n={}){return n.useHash?new Vh(t,e):new Fh(t,e)}function Yb(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Qb(t){return[{provide:uo,multi:!0,useValue:t},{provide:xb,multi:!0,useValue:t}]}let Kb=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new I}appInitializer(){return this.injector.get(Ph,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Ab),i=this.injector.get(jb);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?fg(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(jb),n=this.injector.get(Vb),i=this.injector.get(Ub),s=this.injector.get(Ab),r=this.injector.get(ah);t===r.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Xb(t){return t.appInitializer.bind(t)}function Zb(t){return t.bootstrapListener.bind(t)}const Jb=new Ft("Router Initializer");function tw(t,e){if(1&t&&(zo(0,"span",4),Vo(1,"i"),Fo()),2&t){const t=Yo();ws(1),ca(t.config.icon)}}const ew=function(t){return{"is-active":t}},nw=["componentSection"],iw=["okButton"],sw=["cancelButton"],rw=["backdropButton"],ow=["header"],aw=["footer"];function lw(t,e){if(1&t){const t=Bo();zo(0,"button",13,14),$o("click",(function(){return Xe(t),Yo(2).backdropHandler()})),Fo()}}function cw(t,e){if(1&t&&(zo(0,"header",9,10),zo(2,"p",11),wa(3),Fo(),Do(4,lw,2,0,"button",12),Fo()),2&t){const t=Yo();ws(3),Ca(t.config.title),ws(1),Lo("ngIf",t.config.hasBackdrop)}}function hw(t,e){1&t&&(zo(0,"section",15),Vo(1,"nwb-spinner"),Fo())}function uw(t,e){1&t&&Vo(0,"section",16),2&t&&Lo("innerHTML",Yo().config.message,Xi)}function dw(t,e){if(1&t){const t=Bo();zo(0,"button",21,22),$o("click",(function(){return Xe(t),Yo(2).cancelHandler()})),wa(2),Fo()}if(2&t){const t=Yo(2);ws(2),Sa("",t.config.cancelButtonText," ")}}function pw(t,e){if(1&t){const t=Bo();zo(0,"button",23,24),$o("click",(function(){return Xe(t),Yo(2).okHandler()})),wa(2),Fo()}if(2&t){const t=Yo(2);ws(2),Sa("",t.config.okButtonText," ")}}function gw(t,e){if(1&t&&(zo(0,"footer",17,18),Do(2,dw,3,1,"button",19),Do(3,pw,3,1,"button",20),Fo()),2&t){const t=Yo();ws(2),Lo("ngIf",t.config.cancelButtonText),ws(1),Lo("ngIf",t.config.okButtonText)}}const fw=function(t){return{width:t}},mw=function(t){return{"is-hidden":t}},_w=["inputSearch"];function vw(t,e){1&t&&Vo(0,"header",14,15)}const yw=function(t,e,n,i){return{selected:t,"not-selectable":e,"is-child":n,"is-parent":i}};function bw(t,e){if(1&t){const t=Bo();zo(0,"a",18),$o("mousemove",(function(){return Xe(t),Yo(2).mouseMove()}))("mouseover",(function(){Xe(t);const n=e.index;return Yo(2).mouseOver(n)}))("click",(function(){return Xe(t),Yo(2).selectValue()})),Vo(1,"div",19),Fo()}if(2&t){const t=e.$implicit,n=e.index,i=Yo(2);Lo("ngClass",jl(3,yw,t.isSelectable&&n===i.selectedFoundRow,!t.isSelectable,t.isChild,t.isParent))("tabindex",n),ws(1),Lo("innerHTML",t.text,Xi)}}function ww(t,e){if(1&t&&(zo(0,"div",16),Do(1,bw,2,8,"a",17),Fo()),2&t){const t=Yo();ws(1),Lo("ngForOf",t.foundRows)}}function Cw(t,e){1&t&&Vo(0,"nwb-spinner")}function Sw(t,e){1&t&&Vo(0,"footer",20,21)}const Ew=function(t,e){return{"has-no-header":t,"has-no-footer":e}};function Iw(t,e){if(1&t){const t=Bo();zo(0,"div",3),zo(1,"button",4),$o("click",(function(){return Xe(t),Yo().dismiss(!0)})),wa(2),Fo(),Fo()}if(2&t){const t=Yo();ws(1),ca("button "+(t.config.buttonColor?t.config.buttonColor:"is-success")),ws(1),Sa("",t.config.action," ")}}const xw=function(t){return{"is-half":t}};let Tw=(()=>{class t{constructor(){this.availableColors=["#a2c739","#dbdbdb","#00d1b2","#4baed0"]}ngOnInit(){this.color||(this.color=this.availableColors[Math.floor(Math.random()*this.availableColors.length)])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-spinner"]],hostAttrs:[1,"nwb-spinner"],inputs:{color:"color"},decls:1,vars:2,consts:[[1,"is-spinning"]],template:function(t,e){1&t&&Vo(0,"div",0),2&t&&aa("border-color",e.color)},encapsulation:2}),t})(),Pw=(()=>{class t{constructor(t){this.el=t,this.el.nativeElement.classList.add("tooltip")}set nwbToolTip(t){this.el.nativeElement.setAttribute("data-tooltip",t)}set nwbToolTipPosition(t){this.el.nativeElement.classList.remove("is-tooltip-top"),this.el.nativeElement.classList.remove("is-tooltip-left"),this.el.nativeElement.classList.remove("is-tooltip-right"),this.el.nativeElement.classList.remove("is-tooltip-bottom"),this.el.nativeElement.classList.add("is-tooltip-"+t)}set nwbToolTipIsMultiline(t){t?this.el.nativeElement.classList.add("is-tooltip-multiline"):this.el.nativeElement.classList.remove("is-tooltip-multiline")}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","nwbToolTip",""]],inputs:{nwbToolTip:"nwbToolTip",nwbToolTipPosition:"nwbToolTipPosition",nwbToolTipIsMultiline:"nwbToolTipIsMultiline"}}),t})();class kw{constructor(t,e){this.name=t,this.valuesChange$=new I,this.group=new Map,Object.keys(e).forEach(t=>{const n=e[t],i=new Mw(t,n,n);this.group.set(t,i)})}set(t,e){this._valueChange(t,e)&&this.emitChange()}get(t){if(!this.group.has(t))throw new Error(`FilterGroup: They key ${t} doesn't exist`);return this.group.get(t).value}setValues(t){let e=!1;Object.keys(t).forEach(n=>{this._valueChange(n,t[n])&&(e=!0)}),e&&this.emitChange()}_valueChange(t,e){if(!this.group.has(t))throw new Error(`FilterGroup: They key ${t} doesn't exist`);return"string"==typeof e&&(e=e.trim()),this.group.get(t).value!=e&&(this.group.get(t).value=e,!0)}emitChange(){const t=[];this.group.forEach(e=>t.push(e)),this.valuesChange$.next(t)}getFilters(){const t=[];return this.group.forEach(e=>t.push(e)),t}}class Mw{constructor(t,e,n){this.key=t,this.defaultValue=e,this.value=n}isDefaultValue(){return this.defaultValue===this.value}}let Dw=(()=>{class t{constructor(t,e){this.router=t,this.route=e,this.groupCounter=0,this.filterGroups=new Map,this.route.queryParams.subscribe(t=>{this.queryParamsChange(t)})}queryParamsChange(t){const e=new Map;Object.keys(t).forEach(n=>{const i=this.getParsedKey(n),s=e.has(i.filterGroupName)?e.get(i.filterGroupName):{};s[i.filterKey]=t[n],e.set(i.filterGroupName,s)}),this.filterGroups.forEach(t=>{const n={};t.getFilters().forEach(t=>{n[t.key]=t.defaultValue});const i=e.has(t.name)?e.get(t.name):{};t.setValues(Object.assign(n,i))})}group(t,e){e||(e="fg_"+this.groupCounter++);const n=new kw(e,t);return this.filterGroups.set(n.name,n),n.valuesChange$.subscribe(t=>{this.updateRouting(n.name,t)}),this.route.queryParams.subscribe(t=>{this.queryParamsChange(t)}).unsubscribe(),n}addFilterGroupNameToQueryParamKey(t,e){return t+":"+e}getParsedKey(t){const e=t.split(":");return{filterGroupName:e[0],filterKey:e[1]}}updateRouting(t,e){this.route.queryParamMap.subscribe(n=>{const i={};n.keys.forEach(t=>{i[t]=n.get(t)});const s=Object.assign({},i);e.forEach(e=>{const n=this.addFilterGroupNameToQueryParamKey(t,e.key);if(e.isDefaultValue())s.hasOwnProperty(n)&&delete s[n];else{let t=e.value;t instanceof Date&&(t=t.toISOString()),s[n]=t}}),this.router.navigate([],{queryParams:s,relativeTo:this.route})}).unsubscribe()}remove(t){this.filterGroups.has(t.name)&&this.filterGroups.delete(t.name)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ab),Yt(Ey))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Aw=(()=>{class t{getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=document.createElement("div");t.classList.add("nwb-overlay-container"),document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ow={provide:Aw,deps:[[new st,new ot,Aw]],useFactory:function(t){return t||new Aw}};let Rw=(()=>{class t{constructor(t,e,n,i){this.componentFactoryResolver=t,this.appRef=e,this.injector=n,this.overlayContainer=i}attachComponentPortal(t,e){const n=this.componentFactoryResolver.resolveComponentFactory(t).create(e||this.injector);return this.appRef.attachView(n.hostView),this.overlayContainer.getContainerElement().appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ga),Yt(ah),Yt(ho),Yt(Aw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Lw={provide:Rw,deps:[[new st,new ot,Rw],Ga,ah,ho,Aw],useFactory:function(t,e,n,i,s){return t||new Rw(e,n,i,s)}};let Nw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Ow,Lw,Dw],imports:[[iu,t_]]}),t})(),zw=(()=>{class t{constructor(){this._afterClosed=new I,this.open=!1}ngOnInit(){setTimeout(()=>{this.open=!0},50),this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(),this.config.duration))}dismiss(){this.open=!1,setTimeout(()=>{this._afterClosed.next(!0),this._afterClosed.complete()},200)}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-alert"]],hostAttrs:[1,"nwb-alert"],decls:4,vars:7,consts:[[3,"ngClass"],[1,"alert--message"],["class","icon",4,"ngIf"],[3,"innerHTML"],[1,"icon"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),Do(2,tw,2,2,"span",2),Vo(3,"p",3),Fo(),Fo()),2&t&&(ca("alert "+(e.config.color?e.config.color:" is-primary")+(e.config.extraClasses?" "+e.config.extraClasses:"")+(e.config.position?" "+e.config.position:"")),Lo("ngClass",Fl(5,ew,e.open)),ws(2),Lo("ngIf",e.config.icon),ws(1),Lo("innerHTML",e.config.message,Xi))},directives:[Gh,Xh],encapsulation:2}),t})(),Fw=(()=>{class t{constructor(t){this.domService=t}open(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=this.domService.attachComponentPortal(zw);return t=Object.assign({position:"is-top"},t),e.instance.config=t,e.instance.afterClosed().subscribe(()=>{e.destroy()}),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Fw],imports:[[iu,Nw]]}),t})(),Uw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),jw=(()=>{class t{constructor(t){this.componentFactoryResolver=t,this.ready=new Zl,this.hasComponent=!1,this._afterClosed=new I,this.open=!1,this.fromOkButton=!1}ngOnInit(){this.open=!0,this.ready.next(!0)}_keypress(){this.config.hasBackdrop&&this.dismiss(!1)}backdropHandler(){this.config.hasBackdrop&&this.dismiss(!1)}cancelHandler(){this.config.cancelHandler&&"function"==typeof this.config.cancelHandler?this.config.cancelHandler():this.dismiss(!1)}okHandler(){this.config.okHandler&&"function"==typeof this.config.okHandler?this.config.okHandler():this.dismiss(!0)}disableButtonsAndMakeOkButtonLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl.nativeElement.classList.add("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.setAttribute("disabled","disabled")}enableButtonsAndMakeOkButtonNotLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl.nativeElement.classList.remove("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.removeAttribute("disabled")}dismiss(t){this.open=!1,this.fromOkButton=t}animationDone(t){"active"===t.fromState&&"inactive"===t.toState&&(this._afterClosed.next(this.fromOkButton),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}hideSpinner(){this.config.loading=!1}displaySpinner(){this.config.loading=!0}_setComponent(t){let e;if(t instanceof vl)this.componentSection.createEmbeddedView(t);else{e=this.componentFactoryResolver.resolveComponentFactory(t);const n=this.componentSection.createComponent(e);this.componentInstance=n.instance}this.hasComponent=!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ga))},t.\u0275cmp=pe({type:t,selectors:[["nwb-dialog"]],viewQuery:function(t,e){var n;1&t&&(hc(nw,!0,bl),uc(iw,!0),uc(sw,!0),uc(rw,!0),uc(ow,!0),uc(aw,!0)),2&t&&(cc(n=fc())&&(e.componentSection=n.first),cc(n=fc())&&(e.okButtonEl=n.first),cc(n=fc())&&(e.cancelButtonEl=n.first),cc(n=fc())&&(e.backdropButtonEl=n.first),cc(n=fc())&&(e.headerEl=n.first),cc(n=fc())&&(e.footerEl=n.first))},hostAttrs:[1,"nwb-dialog"],hostBindings:function(t,e){1&t&&$o("keydown.escape",(function(){return e._keypress()}),!1,Hn)},decls:10,vars:11,consts:[[1,"modal","is-active"],[1,"modal-background",3,"click"],[1,"modal-card",3,"ngStyle"],["class","modal-card-head",4,"ngIf"],["class","modal-card-body",4,"ngIf"],["class","modal-card-body",3,"innerHTML",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],["componentSection",""],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"modal-card-title"],["class","delete",3,"click",4,"ngIf"],[1,"delete",3,"click"],["backdropButton",""],[1,"modal-card-body"],[1,"modal-card-body",3,"innerHTML"],[1,"modal-card-foot"],["footer",""],["class","button column is-medium is-danger is-4",3,"click",4,"ngIf"],["class","button column is-medium is-success is-offset-4",3,"click",4,"ngIf"],[1,"button","column","is-medium","is-danger","is-4",3,"click"],["cancelButton",""],[1,"button","column","is-medium","is-success","is-offset-4",3,"click"],["okButton",""]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),$o("click",(function(){return e.backdropHandler()})),Fo(),zo(2,"div",2),$o("@modalState.done",(function(t){return e.animationDone(t)})),Do(3,cw,5,2,"header",3),Do(4,hw,2,0,"section",4),Do(5,uw,1,1,"section",5),zo(6,"section",6),Vo(7,"div",null,7),Fo(),Do(9,gw,4,2,"footer",8),Fo(),Fo()),2&t&&(ws(2),Lo("@modalState",e.open?"active":"inactive")("ngStyle",Fl(7,fw,e.config.width)),ws(1),Lo("ngIf",e.config.title),ws(1),Lo("ngIf",e.config.loading),ws(1),Lo("ngIf",!e.config.loading&&e.config.message&&e.config.message.length>0),ws(1),Lo("ngClass",Fl(9,mw,!e.hasComponent||e.config.loading)),ws(3),Lo("ngIf",!e.config.loading&&(e.config.cancelButtonText.length>0||e.config.okButtonText.length>0)))},directives:[tu,Xh,Gh,Tw],encapsulation:2,data:{animation:[Fu("modalState",[Wu("void => active",Vu("200ms",Hu([ju({opacity:"0",top:"5%",offset:0}),ju({opacity:"1",top:"0",offset:1})]))),Wu("active => inactive",Vu("200ms",Hu([ju({opacity:"1",offset:0}),ju({opacity:"0",top:"5%",offset:1})])))])]}}),t})();class Bw{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}function Hw(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let Ww=(()=>{class t{constructor(t,e){this.domService=t,this.injector=e}open(t){return this.getComponentRef(t).instance}openFromComponent(t,e){const n=this.getComponentRef(e);return n.instance._setComponent(t),n.instance}getComponentRef(t){const e=new WeakMap;e.set(jw,jw);let n=new Bw(this.injector,e);const i=this.domService.attachComponentPortal(jw,n);return i.instance.config=Hw(new $w,t),i.instance.afterClosed().subscribe(()=>{i.destroy()}),i}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $w{constructor(){this.okButtonText="",this.cancelButtonText="",this.width="",this.hasBackdrop=!0,this.okHandler=null,this.cancelHandler=null,this.loading=!1}}let qw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Ww],imports:[[iu,Nw]]}),t})(),Gw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),Yw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw,t_,e_]]}),t})(),Qw=(()=>{class t{constructor(){this.selectedValue$=new I,this.afterViewInit$=new Zl,this.selectedFoundRow=0,this.isActive=!1,this.foundRows=[],this.isSearching=!1,this.searchString="",this.enabled=!0,this._isMouseNavigating=!1}ngAfterViewInit(){this.afterViewInit$.emit()}open(){this.enabled&&(this._reset(),this.focusInputSearch(),this.isActive=!0,this.searching(""))}close(){this.isActive=!1,this._reset()}_reset(){this.foundRows=[],this.selectedFoundRow=0,this.searchString="",setTimeout(()=>{this.inputSearch.nativeElement.value=""})}inputOnKeyDown(t){27===t.keyCode&&this.close()}documentOnKeyDown(t){let e=!1;this._isMouseNavigating=!1,e=this.openFromKeyboard(t)||e,e=this.keyboardNavigate(t)||e,e=this.onEnter(t)||e,e&&t.preventDefault()}mouseMove(){this._isMouseNavigating=!0}mouseOver(t){this._isMouseNavigating&&(this.selectedFoundRow=t)}getSpecialKey(t){return t.metaKey?navigator.platform.match("Mac")?"cmd":"windows":t.ctrlKey?"ctrl":t.shiftKey?"shift":t.altKey?"alt":null}isSubscribedKey(t){return this.config.keyCodes.filter(e=>this.getSpecialKey(t)===e.specialKey&&t.key===e.key).length>0}openFromKeyboard(t){return!(this.isActive||!this.config||!this.isSubscribedKey(t)||(this.open(),0))}keyboardNavigate(t){const e=t.keyCode;if(!this.isActive)return!1;let n=!1;if(40===e||9===e){do{this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}while(!this.isSelectedFoundRowSelectable());n=!0}else if(38===e){do{this.selectedFoundRow--,this.selectedFoundRow<0&&(this.selectedFoundRow=this.foundRows.length-1)}while(!this.isSelectedFoundRowSelectable());n=!0}if(n){const t=document.querySelector(`a.nwb-modal-search-row[tabindex="${this.selectedFoundRow}"`);t&&(t.focus(),this.focusInputSearch())}return n}focusInputSearch(){setTimeout(()=>{this.inputSearch.nativeElement.focus()})}onEnter(t){if(!this.isActive)return!1;13===t.keyCode&&this.selectValue()}isSelectedFoundRowSelectable(){return this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&this.foundRows[this.selectedFoundRow].isSelectable}selectFirstSelectableRow(){if(0!==this.foundRows.length)for(this.selectedFoundRow=0;!this.isSelectedFoundRowSelectable();)this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}selectValue(){this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&(this.selectedValue$.next(this.foundRows[this.selectedFoundRow]),this.close())}searching(t){let e;this.searchSubscription&&this.searchSubscription.unsubscribe(),"function"==typeof this.config.customSearchFn?e=this.config.customSearchFn(t):this.config.records&&(e=this.searchFromRecords(t)),Array.isArray(e)?(this.foundRows=this.flattenNwbFoundRow(e),this.selectFirstSelectableRow()):e&&(this.isSearching=!0,this.searchSubscription=e.pipe(i_(()=>this.isSearching=!1)).subscribe(t=>{this.foundRows=this.flattenNwbFoundRow(t),this.selectFirstSelectableRow()}))}flattenNwbFoundRow(t){let e=[],n=!1;return t.forEach(t=>{const i={text:t.text,isSelectable:!t.hasOwnProperty("isSelectable")||t.isSelectable,isChild:!1,data:t.data||null,isParent:t.children&&t.children.length>0};i.isSelectable&&(n=!0),e.push(i),t.children&&t.children.forEach(t=>{const i={text:t.text,isSelectable:!t.hasOwnProperty("isSelectable")||t.isSelectable,isChild:!0,data:t.data||null,isParent:!1};i.isSelectable&&(n=!0),e.push(i)})}),!n&&e.length>0&&(console.error("No selectable rows! empty found rows to avoid infinite loop"),e=[]),e}searchFromRecords(t){return b.create(e=>{const n=this.searchAllWordsInFoundRows(t,this.config.records);e.next(n),e.complete()})}searchAllWordsInFoundRows(t,e){const n=t.split(" ").map(t=>`(?=.*${t})`).join(""),i=new RegExp(n,"ig"),s=[];return e.forEach(t=>{let e=[];if(t.children&&(e=t.children.filter(t=>-1!==t.text.search(i))),e.length||-1!==t.text.search(i)){const n=Object.assign({},t);n.children=e,s.push(n)}}),s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-modal-search"]],viewQuery:function(t,e){var n;1&t&&(uc(ow,!0),hc(_w,!0),uc(aw,!0)),2&t&&(cc(n=fc())&&(e.header=n.first),cc(n=fc())&&(e.inputSearch=n.first),cc(n=fc())&&(e.footer=n.first))},hostAttrs:[1,"nwb-modal-search"],hostBindings:function(t,e){1&t&&$o("keydown",(function(t){return e.documentOnKeyDown(t)}),!1,Hn)},decls:14,vars:19,consts:[[3,"ngClass"],[1,"modal-background",3,"click"],[1,"modal-content","modal-card",3,"ngClass","click"],["class","modal-card-head",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],[1,"field","nwb-modal-search"],[1,"control","has-icons-left"],["type","text",1,"input",3,"ngModel","placeholder","ngModelChange","keydown"],["inputSearch",""],[1,"icon","is-large","is-left"],[1,"fa","fa-search"],["class","nwb-modal-search-found-rows",4,"ngIf"],[4,"ngIf"],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"nwb-modal-search-found-rows"],["class","nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click",4,"ngFor","ngForOf"],[1,"nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click"],[1,"nwb-modal-search-row-content",3,"innerHTML"],[1,"modal-card-foot"],["footer",""]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),$o("click",(function(){return e.close()})),Fo(),zo(2,"div",2),$o("click",(function(){return e.focusInputSearch()})),Do(3,vw,2,0,"header",3),zo(4,"section",4),zo(5,"div",5),zo(6,"div",6),zo(7,"input",7,8),$o("ngModelChange",(function(t){return e.searching(t)}))("keydown",(function(t){return e.inputOnKeyDown(t)})),Fo(),zo(9,"span",9),Vo(10,"i",10),Fo(),Fo(),Do(11,ww,2,1,"div",11),Do(12,Cw,1,0,"nwb-spinner",12),Fo(),Fo(),Do(13,Sw,2,0,"footer",13),Fo(),Fo()),2&t&&(Ia("modal ",e.config.extraClasses?" "+e.config.extraClasses:"",""),Lo("ngClass",Fl(12,ew,e.isActive)),ws(2),Lo("ngClass",Fl(14,ew,e.isActive)),ws(1),Lo("ngIf",e.config.hasHeader),ws(1),Lo("ngClass",Vl(16,Ew,!e.config.hasHeader,!e.config.hasFooter)),ws(3),Zo("placeholder",e.config.inputPlaceholder),Lo("ngModel",e.searchString),ws(4),Lo("ngIf",!e.isSearching&&e.foundRows.length>0),ws(1),Lo("ngIf",e.isSearching),ws(1),Lo("ngIf",e.config.hasFooter))},directives:[Gh,Xh,qf,Zf,Km,Qh,Tw],encapsulation:2}),t})(),Kw=(()=>{class t{constructor(t,e){this.domService=t,this.injector=e}create(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=new WeakMap;e.set(Qw,Qw);let n=new Bw(this.injector,e);const i=this.domService.attachComponentPortal(Qw,n);return i.instance.config=Hw(new Xw,t),i}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xw{constructor(){this.hasHeader=!1,this.hasFooter=!1,this.keyCodes=[{specialKey:"cmd",key:"k"},{specialKey:"ctrl",key:"k"}],this.inputPlaceholder="Jump to...",this.extraClasses=""}}let Zw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Kw],imports:[[iu,t_,Nw]]}),t})(),Jw=(()=>{class t{constructor(){this.changes=new I,this.itemsPerPageLabel="Items per page:",this.ofLabel="of",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 ${this.ofLabel} ${n}`;const i=t*e;return`${i+1} - ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} ${this.ofLabel} ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),tC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Jw],imports:[[iu,Nw]]}),t})(),eC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),nC=(()=>{class t{constructor(){this._afterClosed=new I,this.open=!1,this.manualClose=!1}ngOnInit(){this.open=!0,this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(!1),this.config.duration))}dismiss(t){this.open=!1,this.manualClose=t}animationDone(t){"active"===t.fromState&&"inactive"===t.toState&&(this._afterClosed.next(this.manualClose),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-snack-bar"]],hostAttrs:[1,"nwb-snack-bar"],decls:4,vars:8,consts:[[1,"columns"],[1,"column","notification--message",3,"ngClass","innerHTML"],["class","column is-half",4,"ngIf"],[1,"column","is-half"],[3,"click"]],template:function(t,e){1&t&&(zo(0,"div"),$o("@state.done",(function(t){return e.animationDone(t)})),zo(1,"div",0),Vo(2,"div",1),Do(3,Iw,3,3,"div",2),Fo(),Fo()),2&t&&(ca("notification is-active "+(e.config.color?e.config.color:"is-transparent")),Lo("@state",e.open?"active":"inactive"),ws(2),Lo("ngClass",Fl(6,xw,e.config.action))("innerHTML",e.config.message,Xi),ws(1),Lo("ngIf",e.config.action))},directives:[Gh,Xh],encapsulation:2,data:{animation:[Fu("state",[Bu("void",ju({bottom:"-100px"})),Bu("inactive",ju({bottom:"-100px"})),Bu("active",ju({bottom:"0px"})),Wu("void => active",Vu(300)),Wu("active => inactive",Vu(300))])]}}),t})(),iC=(()=>{class t{constructor(t){this.domService=t}open(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=this.domService.attachComponentPortal(nC);return e.instance.config=t,e.instance.afterClosed().subscribe(()=>{e.destroy()}),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[iC],imports:[[iu,Nw]]}),t})(),rC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw,B_]]}),t})(),oC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,t_,Nw]]}),t})(),aC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),lC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),cC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[],Nw,Vw,Uw,qw,Gw,Zw,tC,eC,sC,rC,oC,aC,Yw,lC]}),t})();function hC(t,e=k_){return n=>n.lift(new uC(t,e))}class uC{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new dC(t,this.dueTime,this.scheduler))}}class dC extends g{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(pC,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function pC(t){t.debouncedNext()}let gC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();class fC{constructor(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}call(t,e){return e.subscribe(new mC(t,this.project,this.concurrent,this.scheduler))}}class mC extends N{constructor(t,e,n,i){super(t),this.project=e,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:n,value:i,index:s}=t;e.subscribeToProjection(n,i,s)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,i=e(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(mC.dispatch,0,{subscriber:this,result:i,value:t,index:n})):this.subscribeToProjection(i,t,n)}catch(i){e.error(i)}}else this.buffer.push(t)}subscribeToProjection(t,e,n){this.active++,this.destination.add(L(this,t,e,n))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this._next(e)}notifyComplete(t){const e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}class _C{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new vC(t,this.predicate,this.inclusive))}}class vC extends g{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var yC=n("0Tit"),bC=n.n(yC);const wC=new Ft("SMOOTH_SCROLL_OPTIONS");let CC=(()=>{class t{constructor(t,e,n){this._document=t,this._platform=e,this._onGoingScrolls=new Map,this._defaultOptions=Object.assign({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},n)}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(t,e,n){t.scrollLeft=e,t.scrollTop=n}_getElement(t,e){return"string"==typeof t?(e||this._document).querySelector(t):u_(t)}_initSmoothScroll(t){return this._onGoingScrolls.has(t)&&this._onGoingScrolls.get(t).next(),this._onGoingScrolls.set(t,new I).get(t)}_isFinished(t,e,n){return t.currentX!==t.x||t.currentY!==t.y||(e.next(),n(),!1)}_interrupted(t,e){return G(n_(t,"wheel",{passive:!0,capture:!0}),n_(t,"touchmove",{passive:!0,capture:!0}),e).pipe(df(1))}_destroy(t,e){e.complete(),this._onGoingScrolls.delete(t)}_step(t){return new b(e=>{let n=(this._now()-t.startTime)/t.duration;n=n>1?1:n;const i=t.easing(n);t.currentX=t.startX+(t.x-t.startX)*i,t.currentY=t.startY+(t.y-t.startY)*i,this._scrollElement(t.scrollable,t.currentX,t.currentY),I_.schedule(()=>e.next(t))})}_applyScrollToOptions(t,e){if(!e.duration)return this._scrollElement(t,e.left,e.top),Promise.resolve();const n=this._initSmoothScroll(t),i={scrollable:t,startTime:this._now(),startX:t.scrollLeft,startY:t.scrollTop,x:null==e.left?t.scrollLeft:~~e.left,y:null==e.top?t.scrollTop:~~e.top,duration:e.duration,easing:bC()(e.easing.x1,e.easing.y1,e.easing.x2,e.easing.y2)};return new Promise(e=>{fg(null).pipe(function(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,i=>i.lift(new fC(t,e,n))}(()=>this._step(i).pipe(function(t,e=!1){return n=>n.lift(new _C(t,e))}(t=>this._isFinished(t,n,e)))),o_(this._interrupted(t,n)),i_(()=>this._destroy(t,n))).subscribe()})}scrollTo(t,e){if(su(this._platform)){const n=this._getElement(t),i="rtl"===getComputedStyle(n).direction,s=C_(),r=Object.assign(Object.assign(Object.assign({},this._defaultOptions),e),{left:null==e.left?i?e.end:e.start:e.left,right:null==e.right?i?e.start:e.end:e.right});return null!=r.bottom&&(r.top=n.scrollHeight-n.clientHeight-r.bottom),i&&0!==s?(null!=r.left&&(r.right=n.scrollWidth-n.clientWidth-r.left),2===s?r.left=r.right:1===s&&(r.left=r.right?-r.right:r.right)):null!=r.right&&(r.left=n.scrollWidth-n.clientWidth-r.right),this._applyScrollToOptions(n,r)}return Promise.resolve()}scrollToElement(t,e,n){const i=this._getElement(t),s=this._getElement(e,i),r=Object.assign(Object.assign({},n),{left:s.offsetLeft+(n.left||0),top:s.offsetTop+(n.top||0)});return s?this.scrollTo(i,r):Promise.resolve()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(Ic),Yt(wC,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(Ic),Yt(wC,8))},token:t,providedIn:"root"}),t})(),SC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function EC(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>z(function(t,e){return n=>{let i=n;for(let s=0;s<e;s++){const e=i[t[s]];if(void 0===e)return;i=e}return i}}(t,e))(n)}function IC(t,e){if(1&t&&Vo(0,"scrollbar-x"),2&t){const t=Yo(2);ko("scrollable",t.state.isHorizontallyScrollable)("fit",t.state.verticalUsed)}}function xC(t,e){if(1&t&&Vo(0,"scrollbar-y"),2&t){const t=Yo(2);ko("scrollable",t.state.isVerticallyScrollable)("fit",t.state.horizontalUsed)}}function TC(t,e){if(1&t&&(Uo(0),Do(1,IC,1,2,"scrollbar-x",3),Do(2,xC,1,2,"scrollbar-y",3),jo()),2&t){const t=Yo();ws(1),Lo("ngIf",t.state.horizontalUsed),ws(1),Lo("ngIf",t.state.verticalUsed)}}const PC=["*"];function kC(t){return gv(()=>{t.onselectstart=()=>!1})}function MC(t){return gv(()=>{t.onselectstart=null})}function DC(){return gv(t=>t.stopPropagation())}function AC(t,e){return t.clientX>=e.left&&t.clientX<=e.left+e.width&&t.clientY>=e.top&&t.clientY<=e.top+e.height}let OC=(()=>{class t{constructor(t,e){this.viewPort=t,this.document=e,this.nativeElement=t.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement.clientHeight}activatePointerEvents(t,e){this.hovered=new b(n=>{const i=n_(this.nativeElement,"mousemove",{passive:!0});G(t?i:i.pipe(DC()),n_(this.nativeElement,"mouseleave").pipe(z(()=>!1))).pipe(gv(t=>n.next(t)),o_(e)).subscribe()}),this.clicked=new b(t=>{const n=n_(this.nativeElement,"mousedown",{passive:!0}).pipe(gv(e=>t.next(e))),i=n_(this.nativeElement,"mouseup",{passive:!0}).pipe(gv(()=>t.next(!1)));n.pipe(mf(()=>i),o_(e)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(t){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-viewport "+t,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(t){this.nativeElement.scrollTop=t}scrollXTo(t){this.nativeElement.scrollLeft=t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollViewport",""]]}),t})();const RC=new Ft("NG_SCROLLBAR_OPTIONS"),LC={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0};let NC=(()=>{class t{constructor(t){this.globalOptions=t?Object.assign(Object.assign({},LC),t):LC,this.rtlScrollAxisType=C_()}}return t.\u0275fac=function(e){return new(e||t)(Yt(RC,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(RC,8))},token:t,providedIn:"root"}),t})(),zC=(()=>{class t{constructor(t,e,n,i,s,r){this.el=t,this.zone=e,this.changeDetectorRef=n,this.dir=i,this.smoothScroll=s,this.manager=r,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Zl,this.state={},this.destroyed=new I}get disabled(){return this._disabled}set disabled(t){this._disabled=c_(t)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(t){this._sensorDisabled=c_(t)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(t){this._pointerEventsDisabled=c_(t)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(t){this._viewportPropagateMouseMove=c_(t)}get nativeElement(){return this.el.nativeElement}updateState(){let t=!1,e=!1,n=!1,i=!1;"all"!==this.track&&"vertical"!==this.track||(n=this.viewport.scrollHeight>this.viewport.clientHeight,t="always"===this.visibility||n),"all"!==this.track&&"horizontal"!==this.track||(i=this.viewport.scrollWidth>this.viewport.clientWidth,e="always"===this.visibility||i),this._updateState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:t,horizontalUsed:e,isVerticallyScrollable:n,isHorizontallyScrollable:i})}_updateState(t){this.state=Object.assign(Object.assign({},this.state),t),this.changeDetectorRef.detectChanges()}getScrolledByDirection(t){let e;return this.scrolled.pipe(gv(t=>e=t),EC("target",t),t=>t.lift(new N_),Ig(([t,e])=>t!==e),z(()=>e))}setHovered(t){this.zone.run(()=>this._updateState(Object.assign({},t)))}setDragging(t){this.zone.run(()=>this._updateState(Object.assign({},t)))}setClicked(t){this.zone.run(()=>this._updateState({scrollbarClicked:t}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let t=n_(this.viewport.nativeElement,"scroll",{passive:!0});t=this.scrollAuditTime?t.pipe(R_(this.scrollAuditTime)):t,this.scrolled=new b(e=>t.pipe(o_(this.destroyed)).subscribe(e)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngAfterViewChecked(){this.updateState()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.state.horizontalUsed||(this.nativeElement.style.height=this.viewport.contentHeight+"px"),this.updated.next(),this.changeDetectorRef.detectChanges()}scrollTo(t){return this.smoothScroll.scrollTo(this.viewport.nativeElement,t)}scrollToElement(t,e){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,t,e)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(jc),Oo(Yr),Oo(g_),Oo(CC),Oo(NC))},t.\u0275cmp=pe({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(t,e,n){var i,s,r;1&t&&(s=n,r=OC,!0,gc(Ke(),Qe(),r,!0,void 0,!0,Ze(),s)),2&t&&cc(i=fc())&&(e.customViewPort=i.first)},viewQuery:function(t,e){var n;1&t&&hc(OC,!0),2&t&&cc(n=fc())&&(e.defaultViewPort=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&la("ng-scrollbar",!0)},inputs:{viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime",disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],ngContentSelectors:PC,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"]],template:function(t,e){1&t&&(Ko(),zo(0,"div",0),zo(1,"div",1),$o("resizeSensor",(function(){return e.update()})),zo(2,"div",2),zo(3,"div"),Xo(4),Fo(),Fo(),Fo(),Do(5,TC,3,2,"ng-container",3),Fo()),2&t&&(Lo("ngAttr",e.state),ws(1),Lo("sensorDebounce",e.sensorDebounce)("sensorDisabled",e.sensorDisabled),ws(4),Lo("ngIf",!e.disabled))},directives:function(){return[UC,BC,OC,VC,Xh,XC,KC]},styles:[".ng-scrollbar-measure{-ms-overflow-style:none;left:0;overflow:scroll;position:fixed;scrollbar-width:none;top:-9999px} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius:7px;--scrollbar-hover-size:var(--scrollbar-size);--scrollbar-padding:4px;--scrollbar-size:5px;--scrollbar-thumb-color:rgba(0,0,0,0.2);--scrollbar-thumb-hover-color:var(--scrollbar-thumb-color);--scrollbar-thumb-transition:height ease-out 150ms,width ease-out 150ms;--scrollbar-track-color:transparent;--scrollbar-track-transition:height ease-out 150ms,width ease-out 150ms;display:block;height:100%;max-height:100%;max-width:100%;position:relative}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--horizontal-scrollbar-size:var(--scrollbar-size);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding)*2);--scrollbar-total-size:calc(var(--scrollbar-size) + var(--scrollbar-padding)*2);--vertical-scrollbar-size:var(--scrollbar-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding)*2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%]{--vertical-scrollbar-size:var(--scrollbar-hover-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding)*2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size:var(--scrollbar-hover-size);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding)*2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{bottom:var(--scrollbar-total-size);top:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{bottom:0;top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{left:var(--native-scrollbar-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-delay:.8s;transition-duration:.4s;transition-property:opacity}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-delay:0ms;transition-duration:.4s}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position} .ng-scroll-content{display:inline-block;min-width:100%;position:relative!important}.ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport{bottom:0;left:0;position:absolute;right:0;top:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{align-items:center;display:flex;justify-content:center;position:absolute;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{background-color:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);cursor:default;height:100%;overflow:hidden;transition:var(--scrollbar-track-transition);width:100%;z-index:1} .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:inherit;box-sizing:border-box;position:relative;transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),t})(),FC=(()=>{class t{constructor(t,e,n){this.document=t,this.manager=e,this.platform=n,this._scrollbarSize=new wg(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),n.isBrowser&&n_(this.document.defaultView,"resize",{passive:!0}).pipe(hC(this.manager.globalOptions.windowResizeDebounce),z(()=>this.getNativeScrollbarSize()),x_(),gv(t=>this._scrollbarSize.next(t))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const t=this.document.createElement("div");t.className="ng-scrollbar-measure",this.document.body.appendChild(t);const e=t.getBoundingClientRect().right;return this.document.body.removeChild(t),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(NC),Yt(y_))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(NC),Yt(y_))},token:t,providedIn:"root"}),t})(),VC=(()=>{class t{constructor(t,e,n){this.renderer=e,this.hideNativeScrollbar=n,this._subscriber=u.EMPTY,this._subscriber=n.scrollbarSize.subscribe(e=>{this.renderer.setStyle(t.nativeElement,"--native-scrollbar-size",`-${e}px`,Xa.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(FC))},t.\u0275dir=ye({type:t,selectors:[["","hideNativeScrollbar",""]]}),t})(),UC=(()=>{class t{constructor(t){this.el=t}set ngAttr(t){for(const[e,n]of Object.entries(t))this.el.nativeElement.setAttribute(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),t})(),jC=(()=>{class t{constructor(t,e){if(this.resizeObserverSource=new wg(null),this.resizeObserverLoader=this.resizeObserverSource.asObservable(),e.isBrowser){const e=t.defaultView.ResizeObserver?fg(t.defaultView.ResizeObserver):j(n.e(4).then(n.bind(null,"HR/i"))).pipe(z(t=>t.ResizeObserver),sv(t=>(console.log("Unable to load ResizeObserver polyfill",t),pg)));this.resizeObserverSource.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(y_))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(y_))},token:t,providedIn:"root"}),t})(),BC=(()=>{class t{constructor(t,e,n,i){if(this.zone=t,this.platform=e,this.resizeObserverFactory=n,this.scrollbar=i,this._disabled=!1,this._subscription=null,this.resizeSensor=new Zl,!i)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(t){this._debounce=h_(t),this._subscribe()}get disabled(){return this._disabled}set disabled(t){this._disabled=c_(t),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){this._subscription||this._disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_createObserver(t){return new b(e=>{this._resizeObserver=new t(()=>e.next()),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)})}_subscribe(){this._unsubscribe(),this.platform.isBrowser&&this.zone.runOutsideAngular(()=>{this._subscription=this.resizeObserverFactory.resizeObserverLoader.pipe(mf(t=>t),mf(t=>{if(t){const e=this._createObserver(t);return this.debounce?e.pipe(hC(this._debounce)):e}return pg})).subscribe(()=>this.resizeSensor.emit())})}_unsubscribe(){this._resizeObserver&&this._resizeObserver.disconnect(),this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Oo(jc),Oo(y_),Oo(jC),Oo(zC))},t.\u0275dir=ye({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{resizeSensor:"resizeSensor"}}),t})(),HC=(()=>{class t{constructor(t,e,n){this.cmp=t,this.trackElement=e,this.document=n}get clicked(){return G(n_(this.trackElement,"mousedown",{passive:!0}).pipe(DC(),kC(this.document)),n_(this.document,"mouseup",{passive:!0}).pipe(DC(),MC(this.document),mf(()=>pg)))}get hovered(){return G(n_(this.trackElement,"mouseenter",{passive:!0}).pipe(DC(),z(()=>!0)),n_(this.trackElement,"mouseleave",{passive:!0}).pipe(DC(),z(()=>!1)))}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(t,e,n){return fg(t).pipe(EC(this.pageProperty),z(t=>(t-this.offset-e/2)/this.size*n),gv(t=>{this.cmp.scrollTo(Object.assign(Object.assign({},this.mapToScrollToOption(t)),{duration:h_(this.cmp.trackClickScrollDuration)}))}))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(HTMLElement),Oo(void 0))},t.\u0275dir=ye({type:t}),t})(),WC=(()=>{class t{constructor(t,e,n){this.cmp=t,this.thumbElement=e,this.document=n,this._dragging=new I,this.dragging=this._dragging.pipe(x_())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return n_(this.thumbElement,"mousedown",{passive:!0}).pipe(DC())}update(){const t=(e=this.track.size,Math.max(~~(e/this.viewportScrollSize*e),this.cmp.minThumbSize));var e;const n=this.viewportScrollOffset*this.trackMax/this.viewportScrollMax;I_.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),t))}dragged(t){let e,n;const i=fg(t).pipe(kC(this.document),gv(()=>{e=this.trackMax,n=this.viewportScrollMax,this.setDragging(!0)})),s=n_(this.document,"mousemove",{capture:!0,passive:!0}).pipe(DC()),r=n_(this.document,"mouseup",{capture:!0}).pipe(DC(),MC(this.document),gv(()=>this.setDragging(!1)));return i.pipe(EC(this.pageProperty),z(t=>t-this.dragStartOffset),B(t=>s.pipe(EC(this.clientProperty),z(t=>t-this.track.offset),z(i=>n*(i-t)/e),z(t=>this.handleDrag(t,n)),gv(t=>this.scrollTo(t)),o_(r))))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(HTMLElement),Oo(void 0))},t.\u0275dir=ye({type:t,inputs:{track:"track"},outputs:{dragging:"dragging"}}),t})(),$C=(()=>{class t extends WC{constructor(t,e,n,i){super(t,e.nativeElement,n),this.cmp=t,this.element=e,this.document=n,this.dir=i}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left}get size(){return this.thumbElement.clientWidth}updateStyles(t,e){this.thumbElement.style.width=e+"px",this.thumbElement.style.transform=`translate3d(${t}px, 0, 0)`}handleDrag(t,e){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return t-e;if(2===this.cmp.manager.rtlScrollAxisType)return e-t}return t}handleDirection(t,e){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-t;if(0===this.cmp.manager.rtlScrollAxisType)return t-e}return t}setDragging(t){this.cmp.setDragging({horizontalDragging:t})}scrollTo(t){this.cmp.viewport.scrollXTo(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih),Oo(g_))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarThumbX",""]],features:[Pa]}),t})(),qC=(()=>{class t extends WC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.element=e,this.document=n}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top}get size(){return this.thumbElement.clientHeight}updateStyles(t,e){this.thumbElement.style.height=e+"px",this.thumbElement.style.transform=`translate3d(0px, ${t}px, 0)`}handleDrag(t){return t}handleDirection(t){return t}setDragging(t){this.cmp.setDragging({verticalDragging:t})}scrollTo(t){this.cmp.viewport.scrollYTo(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarThumbY",""]],features:[Pa]}),t})(),GC=(()=>{class t extends HC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.document=n}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(t){return{left:t}}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarTrackX",""]],features:[Pa]}),t})(),YC=(()=>{class t extends HC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.document=n}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(t){return{top:t}}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarTrackY",""]],features:[Pa]}),t})(),QC=(()=>{class t{constructor(t,e,n,i){this.cmp=t,this.platform=e,this.document=n,this.zone=i,this.destroyed=new I}activatePointerEvents(){let t=pg,e=pg,n=pg;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new I,this.viewportThumbClicked=new I,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),t=this.viewportThumbClicked,e=this.viewportTrackClicked,n=this.cmp.viewport.hovered.pipe(z(t=>AC(t,this.track.clientRect)),x_(),gv(t=>this.document.onselectstart=t?()=>!1:null)),this.cmp.viewport.clicked.pipe(gv(t=>{t?AC(t,this.thumb.clientRect)?this.viewportThumbClicked.next(t):AC(t,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(t)):this.cmp.setClicked(!1)}),o_(this.destroyed)).subscribe()):(t=this.thumb.clicked,e=this.track.clicked,n=this.track.hovered),G(n.pipe(gv(t=>this.setHovered(t))),t.pipe(mf(t=>this.thumb.dragged(t))),e.pipe(mf(t=>this.track.onTrackClicked(t,this.thumb.size,this.viewportScrollSize))))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.platform.IOS||this.platform.ANDROID||this.cmp.pointerEventsDisabled||this.activatePointerEvents().pipe(o_(this.destroyed)).subscribe();const t=this.cmp.updated.pipe(gv(()=>this.onUpdated()));G(this.cmp.scrolled,t).pipe(gv(()=>this.thumb.update()),o_(this.destroyed)).subscribe(),k_.schedule(()=>this.thumb.update(),100)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(y_),Oo(void 0),Oo(jc))},t.\u0275dir=ye({type:t}),t})(),KC=(()=>{class t extends QC{constructor(t,e,n,i){super(t,e,n,i),this.cmp=t,this.platform=e,this.document=n,this.zone=i}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(t){this.cmp.setHovered({verticalHovered:t})}onUpdated(){}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(y_),Oo(Ih),Oo(jc))},t.\u0275cmp=pe({type:t,selectors:[["scrollbar-y"]],viewQuery:function(t,e){var n;1&t&&(hc(YC,!0),hc(qC,!0)),2&t&&(cc(n=fc())&&(e.track=n.first),cc(n=fc())&&(e.thumb=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&la("scrollbar-control",!0)},features:[Pa],decls:2,vars:7,consts:[["scrollbarTrackY",""],["scrollbarThumbY","",3,"track"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"div",1),Fo()),2&t&&(Ia("ng-scrollbar-track ",e.cmp.trackClass,""),ws(1),Ia("ng-scrollbar-thumb ",e.cmp.thumbClass,""),Lo("track",e.track))},directives:[YC,qC],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{height:calc(100% - var(--scrollbar-padding)*2);width:var(--vertical-scrollbar-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{bottom:0;top:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{left:unset;right:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control{left:unset;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true]{bottom:0;top:var(--scrollbar-total-size)}"],changeDetection:0}),t})(),XC=(()=>{class t extends QC{constructor(t,e,n,i,s){super(e,n,i,s),this.el=t,this.cmp=e,this.platform=n,this.document=i,this.zone=s}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get thickness(){return this.el.nativeElement.clientHeight}setHovered(t){this.cmp.setHovered({horizontalHovered:t})}onUpdated(){this.cmp.nativeElement.style.height="standard"===this.cmp.appearance?this.cmp.viewport.contentHeight+this.thickness+"px":this.cmp.viewport.contentHeight+"px"}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(zC),Oo(y_),Oo(Ih),Oo(jc))},t.\u0275cmp=pe({type:t,selectors:[["scrollbar-x"]],viewQuery:function(t,e){var n;1&t&&(hc(GC,!0),hc($C,!0)),2&t&&(cc(n=fc())&&(e.track=n.first),cc(n=fc())&&(e.thumb=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&la("scrollbar-control",!0)},features:[Pa],decls:2,vars:7,consts:[["scrollbarTrackX",""],["scrollbarThumbX","",3,"track"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"div",1),Fo()),2&t&&(Ia("ng-scrollbar-track ",e.cmp.trackClass,""),ws(1),Ia("ng-scrollbar-thumb ",e.cmp.thumbClass,""),Lo("track",e.track))},directives:[GC,$C],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding)*2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:100%;width:0} .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control{bottom:unset;top:0} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{bottom:0;left:0;right:0;top:unset} .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control{bottom:unset;top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{left:0;right:var(--scrollbar-total-size)} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true]{left:0;right:var(--scrollbar-total-size)}"],changeDetection:0}),t})(),ZC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:RC,useValue:e}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu,f_,gC,b_,SC]]}),t})();class JC{static reachedTop(t,e){return JC.reached(-e.target.scrollTop,0,t)}static reachedBottom(t,e){return JC.reached(e.target.scrollTop+e.target.clientHeight,e.target.scrollHeight,t)}static reachedStart(t,e,n,i){return"rtl"===n?1===i?JC.reached(e.target.scrollLeft,0,t):2===i?JC.reached(-e.target.scrollLeft,0,t):JC.reached(e.target.scrollLeft+e.target.clientWidth,e.target.scrollWidth,t):JC.reached(-e.target.scrollLeft,0,t)}static reachedEnd(t,e,n,i){return"rtl"===n?1===i?JC.reached(-(e.target.scrollLeft-e.target.clientWidth),e.target.scrollWidth,t):2===i?JC.reached(-(e.target.scrollLeft+e.target.clientWidth),e.target.scrollWidth,t):JC.reached(-e.target.scrollLeft,0,t):JC.reached(e.target.scrollLeft+e.target.clientWidth,e.target.scrollWidth,t)}static reached(t,e,n){return t>=e-n}}let tS=(()=>{class t{constructor(t,e){this.scrollbar=t,this.zone=e,this.offset=0,this.scrollEvent=new I,this.subscription=u.EMPTY,this.reachedEvent=new b(t=>this.scrollReached().subscribe(e=>Promise.resolve().then(()=>this.zone.run(()=>t.next(e))))),t||console.warn("[NgScrollbarReached Directive]: Host element must be an NgScrollbar component.")}ngOnDestroy(){this.subscription.unsubscribe()}scrollReached(){let t;return this.scrollEvent.pipe(gv(e=>t=e),z(t=>this.reached(this.offset,t)),x_(),Ig(t=>t),z(()=>t))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,inputs:{offset:["reachedOffset","offset"]}}),t})(),eS=(()=>{class t extends tS{constructor(t,e){super(t,e),this.scrollbar=t,this.zone=e}ngOnInit(){this.subscription=this.scrollbar.verticalScrolled.subscribe(this.scrollEvent)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,features:[Pa]}),t})(),nS=(()=>{class t extends eS{constructor(t,e){super(t,e),this.scrollbar=t,this.zone=e,this.reachedBottom=this.reachedEvent}ngOnInit(){super.ngOnInit()}reached(t,e){return JC.reachedBottom(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,selectors:[["","reachedBottom",""],["","reached-bottom",""]],outputs:{reachedBottom:"reachedBottom"},features:[Pa]}),t})(),iS=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ZC,f_]]}),t})();const sS=["wrapper"],rS=["sourceImage"];function oS(t,e){if(1&t){const t=Bo();zo(0,"img",4,5),$o("load",(function(){return Xe(t),Yo().imageLoadedInView()})),Fo()}if(2&t){const t=Yo();aa("visibility",t.imageVisible?"visible":"hidden")("transform",t.safeTransformStyle),Lo("src",t.safeImgDataUrl,Ji)}}function aS(t,e){if(1&t){const t=Bo();Uo(0),zo(1,"span",9),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topleft")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topleft")})),Vo(2,"span",10),Fo(),zo(3,"span",11),Vo(4,"span",10),Fo(),zo(5,"span",12),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topright")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topright")})),Vo(6,"span",10),Fo(),zo(7,"span",13),Vo(8,"span",10),Fo(),zo(9,"span",14),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomright")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomright")})),Vo(10,"span",10),Fo(),zo(11,"span",15),Vo(12,"span",10),Fo(),zo(13,"span",16),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomleft")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomleft")})),Vo(14,"span",10),Fo(),zo(15,"span",17),Vo(16,"span",10),Fo(),zo(17,"span",18),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"top")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"top")})),Fo(),zo(18,"span",19),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"right")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"right")})),Fo(),zo(19,"span",20),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottom")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottom")})),Fo(),zo(20,"span",21),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"left")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"left")})),Fo(),jo()}}function lS(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("keydown",(function(e){return Xe(t),Yo().keyboardAccess(e)})),zo(1,"div",7),$o("mousedown",(function(e){Xe(t);const n=Yo();return n.startMove(e,n.moveTypes.Move)}))("touchstart",(function(e){Xe(t);const n=Yo();return n.startMove(e,n.moveTypes.Move)})),Fo(),Do(2,aS,21,0,"ng-container",8),Fo()}if(2&t){const t=Yo();aa("top",t.cropper.y1,"px")("left",t.cropper.x1,"px")("width",t.cropper.x2-t.cropper.x1,"px")("height",t.cropper.y2-t.cropper.y1,"px")("margin-left","center"===t.alignImage?t.marginLeft:null)("visibility",t.imageVisible?"visible":"hidden"),la("rounded",t.roundCropper),ws(2),Lo("ngIf",!t.hideResizeSquares)}}const cS={Move:"move",Resize:"resize",Pinch:"pinch"};let hS=(()=>{class t{constructor(t,e){this.sanitizer=t,this.cd=e,this.Hammer="undefined"!=typeof window?window.Hammer:null,this.setImageMaxSizeRetries=0,this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.exifTransform={rotate:0,flip:!1},this.autoRotateSupported=new Promise(t=>{const e=new Image;e.onload=()=>{t(1===e.width&&2===e.height)},e.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="}),this.stepSize=3,this.marginLeft="0px",this.imageVisible=!1,this.moveTypes=cS,this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage="center",this.disabled=!1,this.imageCropped=new Zl,this.startCropImage=new Zl,this.imageLoaded=new Zl,this.cropperReady=new Zl,this.loadImageFailed=new Zl,this.initCropper()}ngOnChanges(t){this.cropperStaticHeight&&this.cropperStaticWidth&&(this.hideResizeSquares=!0,this.cropperMinWidth=this.cropperStaticWidth,this.cropperMinHeight=this.cropperStaticHeight,this.maintainAspectRatio=!1),this.onChangesInputImage(t),this.originalImage&&this.originalImage.complete&&this.exifTransform&&(t.containWithinAspectRatio||t.canvasRotation)&&this.transformOriginalImage(),t.cropper&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.checkCropperPosition(!1),this.doAutoCrop(),this.cd.markForCheck()),t.aspectRatio&&this.imageVisible&&this.resetCropperPosition(),t.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop())}onChangesInputImage(t){(t.imageChangedEvent||t.imageURL||t.imageBase64||t.imageFile)&&this.initCropper(),t.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),t.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),t.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),t.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent&&this.imageChangedEvent.target&&this.imageChangedEvent.target.files&&this.imageChangedEvent.target.files.length>0}setCssTransform(){this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle("scaleX("+(this.transform.scale||1)*(this.transform.flipH?-1:1)+")scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+")rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.stepSize=this.initialStepSize,this.activatePinchGesture()}initCropper(){this.imageVisible=!1,this.transformedImage=null,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.originalSize={width:0,height:0},this.transformedSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImage(t,e){this.isValidImageType(e)?this.loadBase64Image(t):this.loadImageFailed.emit()}loadImageFile(t){const e=new FileReader;e.onload=e=>this.loadImage(e.target.result,t.type),e.readAsDataURL(t)}isValidImageType(t){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp)/.test(t)}loadBase64Image(t){this.autoRotateSupported.then(e=>this.checkExifAndLoadBase64Image(t,e)).then(()=>this.transformOriginalImage()).catch(t=>{this.loadImageFailed.emit(),this.originalImage=null,this.originalBase64=null,console.error(t)})}checkExifAndLoadBase64Image(t,e){return new Promise((n,i)=>{this.originalImage=new Image,this.originalImage.onload=()=>{this.originalBase64=t,this.exifTransform=function(t){switch("string"==typeof t&&(t=function(t){const e=new DataView(function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");const e=atob(t),n=e.length,i=new Uint8Array(n);for(let s=0;s<n;s++)i[s]=e.charCodeAt(s);return i.buffer}(t));if(65496!=e.getUint16(0,!1))return-2;const n=e.byteLength;let i=2;for(;i<n;){if(e.getUint16(i+2,!1)<=8)return-1;const t=e.getUint16(i,!1);if(i+=2,65505==t){if(1165519206!=e.getUint32(i+=2,!1))return-1;const t=18761==e.getUint16(i+=6,!1);i+=e.getUint32(i+4,t);const n=e.getUint16(i,t);i+=2;for(let s=0;s<n;s++)if(274==e.getUint16(i+12*s,t))return e.getUint16(i+12*s+8,t)}else{if(65280!=(65280&t))break;i+=e.getUint16(i,!1)}}return-1}(t)),t){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(e?-1:t),this.originalSize.width=this.originalImage.naturalWidth,this.originalSize.height=this.originalImage.naturalHeight,n()},this.originalImage.onerror=i,this.originalImage.src=t})}loadImageFromURL(t){const e=new Image;e.onerror=()=>this.loadImageFailed.emit(),e.onload=()=>{const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.width,t.height=e.height,n.drawImage(e,0,0),this.loadBase64Image(t.toDataURL())},e.crossOrigin="anonymous",e.src=t}transformOriginalImage(){if(!this.originalImage||!this.originalImage.complete||!this.exifTransform)return Promise.reject(new Error("No image loaded"));const t=this.transformImageBase64();return this.setTransformedImage(t)}transformImageBase64(){const t=this.canvasRotation+this.exifTransform.rotate;if(0===t&&!this.exifTransform.flip&&!this.containWithinAspectRatio)return this.originalBase64;const e=this.getTransformedSize(),n=document.createElement("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");return i.setTransform(this.exifTransform.flip?-1:1,0,0,1,n.width/2,n.height/2),i.rotate(Math.PI*(t/2)),i.drawImage(this.originalImage,-this.originalSize.width/2,-this.originalSize.height/2),n.toDataURL()}getTransformedSize(){const t=this.canvasRotation+this.exifTransform.rotate;if(this.containWithinAspectRatio){if(t%2){const t=this.originalSize.height/this.aspectRatio;return{width:Math.max(this.originalSize.height,this.originalSize.width*this.aspectRatio),height:Math.max(this.originalSize.width,t)}}{const t=this.originalSize.width/this.aspectRatio;return{width:Math.max(this.originalSize.width,this.originalSize.height*this.aspectRatio),height:Math.max(this.originalSize.height,t)}}}return t%2?{height:this.originalSize.width,width:this.originalSize.height}:{width:this.originalSize.width,height:this.originalSize.height}}setTransformedImage(t){return new Promise(e=>{this.transformedBase64=t,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t),this.transformedImage=new Image,this.transformedImage.onload=()=>{this.transformedSize.width=this.transformedImage.naturalWidth,this.transformedSize.height=this.transformedImage.naturalHeight,this.cd.markForCheck(),e()},this.transformedImage.src=this.transformedBase64})}imageLoadedInView(){null!=this.transformedImage&&(this.imageLoaded.emit(),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.resetCropperPosition(),this.cropperReady.emit(Object.assign({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage&&this.sourceImage.nativeElement&&this.sourceImage.nativeElement.offsetWidth>0}onResize(){this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize()}activatePinchGesture(){if(this.Hammer){const t=new this.Hammer(this.wrapper.nativeElement);t.get("pinch").set({enable:!0}),t.on("pinchmove",this.onPinch.bind(this)),t.on("pinchend",this.pinchStop.bind(this)),t.on("pinchstart",this.startPinch.bind(this))}else Ei()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const t=this.sourceImage.nativeElement;this.maxSize.width===t.offsetWidth&&this.maxSize.height===t.offsetHeight||(this.cropper.x1=this.cropper.x1*t.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*t.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*t.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*t.offsetHeight/this.maxSize.height)}resetCropperPosition(){const t=this.sourceImage.nativeElement;if(this.cropperStaticHeight&&this.cropperStaticWidth)this.cropper.x1=0,this.cropper.x2=t.offsetWidth>this.cropperStaticWidth?this.cropperStaticWidth:t.offsetWidth,this.cropper.y1=0,this.cropper.y2=t.offsetHeight>this.cropperStaticHeight?this.cropperStaticHeight:t.offsetHeight;else if(this.maintainAspectRatio)if(t.offsetWidth/this.aspectRatio<t.offsetHeight){this.cropper.x1=0,this.cropper.x2=t.offsetWidth;const e=t.offsetWidth/this.aspectRatio;this.cropper.y1=(t.offsetHeight-e)/2,this.cropper.y2=this.cropper.y1+e}else{this.cropper.y1=0,this.cropper.y2=t.offsetHeight;const e=t.offsetHeight*this.aspectRatio;this.cropper.x1=(t.offsetWidth-e)/2,this.cropper.x2=this.cropper.x1+e}else this.cropper.x1=0,this.cropper.x2=t.offsetWidth,this.cropper.y1=0,this.cropper.y2=t.offsetHeight;this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(t){this.changeKeyboardStepSize(t),this.keyboardMoveCropper(t)}changeKeyboardStepSize(t){t.key>="1"&&t.key<="9"&&(this.stepSize=+t.key)}keyboardMoveCropper(t){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(t.key))return;const e=t.shiftKey?cS.Resize:cS.Move,n=t.altKey?this.getInvertedPositionForKey(t.key):this.getPositionForKey(t.key),i=this.getEventForKey(t.key,this.stepSize);t.preventDefault(),t.stopPropagation(),this.startMove({clientX:0,clientY:0},e,n),this.moveImg(i),this.moveStop()}getPositionForKey(t){switch(t){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}getInvertedPositionForKey(t){switch(t){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}getEventForKey(t,e){switch(t){case"ArrowUp":return{clientX:0,clientY:-1*e};case"ArrowRight":return{clientX:e,clientY:0};case"ArrowDown":return{clientX:0,clientY:e};case"ArrowLeft":default:return{clientX:-1*e,clientY:0}}}startMove(t,e,n=null){this.moveStart&&this.moveStart.active&&this.moveStart.type===cS.Pinch||(t.preventDefault&&t.preventDefault(),this.moveStart=Object.assign({active:!0,type:e,position:n,clientX:this.getClientX(t),clientY:this.getClientY(t)},this.cropper))}startPinch(t){this.safeImgDataUrl&&(t.preventDefault&&t.preventDefault(),this.moveStart=Object.assign({active:!0,type:cS.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}moveImg(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===cS.Move?(this.move(t),this.checkCropperPosition(!0)):this.moveStart.type===cS.Resize&&(this.cropperStaticWidth||this.cropperStaticHeight||this.resize(t),this.checkCropperPosition(!1)),this.cd.detectChanges())}onPinch(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===cS.Pinch&&(this.resize(t),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const t=this.sourceImage.nativeElement;this.maxSize.width=t.offsetWidth,this.maxSize.height=t.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.transformedImage?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.transformedImage.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.transformedImage.height*this.maxSize.height):20}checkCropperPosition(t=!1){this.cropper.x1<0&&(this.cropper.x2-=t?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=t?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=t?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=t?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}move(t){const e=this.getClientX(t)-this.moveStart.clientX,n=this.getClientY(t)-this.moveStart.clientY;this.cropper.x1=this.moveStart.x1+e,this.cropper.y1=this.moveStart.y1+n,this.cropper.x2=this.moveStart.x2+e,this.cropper.y2=this.moveStart.y2+n}resize(t){const e=this.getClientX(t)-this.moveStart.clientX,n=this.getClientY(t)-this.moveStart.clientY;switch(this.moveStart.position){case"left":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth);break;case"topleft":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"top":this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"topright":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"right":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth);break;case"bottomright":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"bottom":this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"bottomleft":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"center":const i=t.scale,s=Math.abs(this.moveStart.x2-this.moveStart.x1)*i,r=Math.abs(this.moveStart.y2-this.moveStart.y1)*i,o=this.cropper.x1,a=this.cropper.y1;this.cropper.x1=Math.min(this.moveStart.clientX-s/2,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.clientY-r/2,this.cropper.y2-this.cropperScaledMinHeight),this.cropper.x2=Math.max(this.moveStart.clientX+s/2,o+this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.clientY+r/2,a+this.cropperScaledMinHeight)}this.maintainAspectRatio&&this.checkAspectRatio()}checkAspectRatio(){let t=0,e=0;switch(this.moveStart.position){case"top":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"bottom":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"topleft":this.cropper.y1=this.cropper.y2-(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(0-this.cropper.x1,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x1+=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"topright":this.cropper.y1=this.cropper.y2-(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"right":case"bottomright":this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"left":case"bottomleft":this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(0-this.cropper.x1,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x1+=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"center":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio;const n=Math.max(0-this.cropper.x1,0),i=Math.max(this.cropper.x2-this.maxSize.width,0),s=Math.max(this.cropper.y2-this.maxSize.height,0),r=Math.max(0-this.cropper.y1,0);(n>0||i>0||s>0||r>0)&&(this.cropper.x1+=s*this.aspectRatio>n?s*this.aspectRatio:n,this.cropper.x2-=r*this.aspectRatio>i?r*this.aspectRatio:i,this.cropper.y1+=r*this.aspectRatio>i?r:i/this.aspectRatio,this.cropper.y2-=s*this.aspectRatio>n?s:n/this.aspectRatio)}}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(this.sourceImage&&this.sourceImage.nativeElement&&null!=this.transformedImage){this.startCropImage.emit();const t=this.getImagePosition(),e=t.x2-t.x1,n=t.y2-t.y1,i=document.createElement("canvas");i.width=e,i.height=n;const s=i.getContext("2d");if(s){null!=this.backgroundColor&&(s.fillStyle=this.backgroundColor,s.fillRect(0,0,e,n));const r=(this.transform.scale||1)*(this.transform.flipH?-1:1),o=(this.transform.scale||1)*(this.transform.flipV?-1:1);s.setTransform(r,0,0,o,this.transformedSize.width/2,this.transformedSize.height/2),s.translate(-t.x1/r,-t.y1/o),s.rotate((this.transform.rotate||0)*Math.PI/180),s.drawImage(this.transformedImage,-this.transformedSize.width/2,-this.transformedSize.height/2);const a={width:e,height:n,imagePosition:t,cropperPosition:Object.assign({},this.cropper)};this.containWithinAspectRatio&&(a.offsetImagePosition=this.getOffsetImagePosition());const l=this.getResizeRatio(e,n);return 1!==l&&(a.width=Math.round(e*l),a.height=this.maintainAspectRatio?Math.round(a.width/this.aspectRatio):Math.round(n*l),function(t,e,n){const i=t.width,s=t.height,r=i/(e=Math.round(e)),o=s/(n=Math.round(n)),a=Math.ceil(r/2),l=Math.ceil(o/2),c=t.getContext("2d");if(c){const h=c.getImageData(0,0,i,s),u=c.createImageData(e,n),d=h.data,p=u.data;for(let t=0;t<n;t++)for(let n=0;n<e;n++){const c=4*(n+t*e),h=t*o;let u=0,g=0,f=0,m=0,_=0,v=0,y=0;const b=Math.floor(n*r),w=Math.floor(t*o);let C=Math.ceil((n+1)*r),S=Math.ceil((t+1)*o);C=Math.min(C,i),S=Math.min(S,s);for(let t=w;t<S;t++){const e=Math.abs(h-t)/l,s=n*r,o=e*e;for(let n=b;n<C;n++){const e=Math.abs(s-n)/a,r=Math.sqrt(o+e*e);if(r>=1)continue;u=2*r*r*r-3*r*r+1;const l=4*(n+t*i);y+=u*d[l+3],f+=u,d[l+3]<255&&(u=u*d[l+3]/250),m+=u*d[l],_+=u*d[l+1],v+=u*d[l+2],g+=u}}p[c]=m/g,p[c+1]=_/g,p[c+2]=v/g,p[c+3]=y/f}t.width=e,t.height=n,c.putImageData(u,0,0)}}(i,a.width,a.height)),a.base64=this.cropToBase64(i),this.imageCropped.emit(a),a}}return null}getImagePosition(){const t=this.transformedSize.width/this.sourceImage.nativeElement.offsetWidth,e={x1:Math.round(this.cropper.x1*t),y1:Math.round(this.cropper.y1*t),x2:Math.round(this.cropper.x2*t),y2:Math.round(this.cropper.y2*t)};return this.containWithinAspectRatio||(e.x1=Math.max(e.x1,0),e.y1=Math.max(e.y1,0),e.x2=Math.min(e.x2,this.transformedSize.width),e.y2=Math.min(e.y2,this.transformedSize.height)),e}getOffsetImagePosition(){const t=this.transformedSize.width/this.sourceImage.nativeElement.offsetWidth;let e,n;(this.canvasRotation+this.exifTransform.rotate)%2?(e=(this.transformedSize.width-this.originalSize.height)/2,n=(this.transformedSize.height-this.originalSize.width)/2):(e=(this.transformedSize.width-this.originalSize.width)/2,n=(this.transformedSize.height-this.originalSize.height)/2);const i={x1:Math.round(this.cropper.x1*t)-e,y1:Math.round(this.cropper.y1*t)-n,x2:Math.round(this.cropper.x2*t)-e,y2:Math.round(this.cropper.y2*t)-n};return this.containWithinAspectRatio||(i.x1=Math.max(i.x1,0),i.y1=Math.max(i.y1,0),i.x2=Math.min(i.x2,this.transformedSize.width),i.y2=Math.min(i.y2,this.transformedSize.height)),i}cropToBase64(t){return t.toDataURL("image/"+this.format,this.getQuality())}getQuality(){return Math.min(1,Math.max(0,this.imageQuality/100))}getResizeRatio(t,e){const n=this.resizeToWidth/t,i=this.resizeToHeight/e,s=new Array;this.resizeToWidth>0&&s.push(n),this.resizeToHeight>0&&s.push(i);const r=0===s.length?1:Math.min(...s);return r>1&&!this.onlyScaleDown?r:Math.min(r,1)}getClientX(t){return(t.touches&&t.touches[0]?t.touches[0].clientX:t.clientX)||0}getClientY(t){return(t.touches&&t.touches[0]?t.touches[0].clientY:t.clientY)||0}}return t.\u0275fac=function(e){return new(e||t)(Oo(Au),Oo(Yr))},t.\u0275cmp=pe({type:t,selectors:[["image-cropper"]],viewQuery:function(t,e){var n;1&t&&(hc(sS,!0),uc(rS,!0)),2&t&&(cc(n=fc())&&(e.wrapper=n.first),cc(n=fc())&&(e.sourceImage=n.first))},hostVars:4,hostBindings:function(t,e){1&t&&$o("resize",(function(){return e.onResize()}),!1,Bn)("mousemove",(function(t){return e.moveImg(t)}),!1,Hn)("touchmove",(function(t){return e.moveImg(t)}),!1,Hn)("mouseup",(function(){return e.moveStop()}),!1,Hn)("touchend",(function(){return e.moveStop()}),!1,Hn),2&t&&(aa("text-align",e.alignImage),la("disabled",e.disabled))},inputs:{format:"format",maintainAspectRatio:"maintainAspectRatio",transform:"transform",aspectRatio:"aspectRatio",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",backgroundColor:"backgroundColor"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed"},features:[Ra],decls:5,vars:10,consts:[["wrapper",""],["class","source-image",3,"src","visibility","transform","load",4,"ngIf"],[1,"overlay"],["class","cropper","tabindex","0",3,"rounded","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"source-image",3,"src","load"],["sourceImage",""],["tabindex","0",1,"cropper",3,"keydown"],[1,"move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"resize","topleft",3,"mousedown","touchstart"],[1,"square"],[1,"resize","top"],[1,"resize","topright",3,"mousedown","touchstart"],[1,"resize","right"],[1,"resize","bottomright",3,"mousedown","touchstart"],[1,"resize","bottom"],[1,"resize","bottomleft",3,"mousedown","touchstart"],[1,"resize","left"],[1,"resize-bar","top",3,"mousedown","touchstart"],[1,"resize-bar","right",3,"mousedown","touchstart"],[1,"resize-bar","bottom",3,"mousedown","touchstart"],[1,"resize-bar","left",3,"mousedown","touchstart"]],template:function(t,e){1&t&&(zo(0,"div",null,0),Do(2,oS,2,5,"img",1),Vo(3,"div",2),Do(4,lS,3,15,"div",3),Fo()),2&t&&(aa("background",e.imageVisible&&e.backgroundColor,ts),ws(2),Lo("ngIf",e.safeImgDataUrl),ws(1),aa("width",e.maxSize.width,"px")("height",e.maxSize.height,"px")("margin-left","center"===e.alignImage?e.marginLeft:null),ws(1),Lo("ngIf",e.imageVisible))},directives:[Xh],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color,#fff) solid 100vw;top:0;left:0}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:0 0;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color,rgba(255,255,255,.3)) solid 100vw;touch-action:none}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";top:0;bottom:0;left:0;right:0;pointer-events:none;border:1px dashed;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]:focus .move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%] .square[_ngcontent-%COMP%]{display:inline-block;background:#53535c;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw rgba(255,255,255,.3);box-shadow:0 0 0 100vw var(--cropper-outline-color,rgba(255,255,255,.3))}@media (orientation:portrait){[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]{outline-width:100vh}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh rgba(255,255,255,.3);box-shadow:0 0 0 100vh var(--cropper-outline-color,rgba(255,255,255,.3))}}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%] .move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .move[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})(),uS=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu]]}),t})();function dS(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function pS(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function gS(t,e){const n=e?"":"none";pS(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function fS(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function mS(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function _S(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function vS(t,e,n){const{top:i,bottom:s,left:r,right:o}=t;return n>=i&&n<=s&&e>=r&&e<=o}function yS(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function bS(t,e,n,i){const{top:s,right:r,bottom:o,left:a,width:l,height:c}=t,h=l*e,u=c*e;return i>s-u&&i<o+u&&n>a-h&&n<r+h}class wS{constructor(t,e){this._document=t,this._viewportRuler=e,this.positions=new Map}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:_S(t)})})}handleScroll(t){const e=t.target,n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,s=n.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,l=s.left-o;return this.positions.forEach((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&yS(t.clientRect,a,l)}),s.top=r,s.left=o,{top:a,left:l}}}function CS(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<n.length;s++)n[s].removeAttribute("id");return"canvas"===i?xS(t,e):"input"!==i&&"select"!==i&&"textarea"!==i||IS(t,e),SS("canvas",t,e,xS),SS("input, textarea, select",t,e,IS),e}function SS(t,e,n,i){const s=e.querySelectorAll(t);if(s.length){const e=n.querySelectorAll(t);for(let t=0;t<s.length;t++)i(s[t],e[t])}}let ES=0;function IS(t,e){e.value=t.value,"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${ES++}`)}function xS(t,e){const n=e.getContext("2d");if(n)try{n.drawImage(t,0,0)}catch(Nk){}}const TS=w_({passive:!0}),PS=w_({passive:!1});class kS{constructor(t,e,n,i,s,r){this._config=e,this._document=n,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new I,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 I,this.started=new I,this.released=new I,this.ended=new I,this.entered=new I,this.exited=new I,this.dropped=new I,this.moved=this._moveEvents,this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{t.preventDefault();const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new wS(n,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=c_(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>u_(t)),this._handles.forEach(t=>gS(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=u_(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,PS),e.addEventListener("touchstart",this._pointerDown,TS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?u_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&AS(this._rootElement),AS(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(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&AS(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&AS(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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(t),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(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){OS(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,s=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(o,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(r,t)),(n=this._document,n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body).appendChild(s),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;var n;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const n=this.isDragging(),i=OS(e),s=!i&&0!==e.button,r=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.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(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=_S(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,n,this._initialContainer,r,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=MS(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),i=RS(s,this._document),this._previewRef=s,t.matchSize?LS(i,e):i.style.transform=MS(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=CS(t),LS(i,t.getBoundingClientRect())}return pS(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),gS(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>i.classList.add(t)):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=MS(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=mS(e,"transition-property"),i=n.find(t=>"transform"===t||"all"===t);if(!i)return 0;const s=n.indexOf(i),r=mS(e,"transition-duration"),o=mS(e,"transition-delay");return fS(r[s])+fS(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=RS(this._placeholderRef,this._document)):n=CS(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,s=i?i.getBoundingClientRect():n,r=OS(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-n.left+(r.pageX-s.left-o.left),y:s.top-n.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=OS(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=s,e.matrixTransform(t.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);n=DS(n,s.left+t,s.right-(r.width-t)),i=DS(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(n-s.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,gS(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,PS),t.removeEventListener("touchstart",this._pointerDown,TS)}_applyRootElementTransform(t,e){const n=MS(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,r=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,n.height>i.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:OS(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=t.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&yS(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function MS(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function DS(t,e,n){return Math.max(e,Math.min(n,t))}function AS(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function OS(t){return"t"===t.type[0]}function RS(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach(t=>i.appendChild(t)),i}function LS(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=MS(e.left,e.top)}function NS(t,e){return Math.max(0,Math.min(e,t))}class zS{constructor(t,e,n,i,s){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new I,this.entered=new I,this.exited=new I,this.dropped=new I,this.sorted=new I,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 I,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=k_){return(!A_(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=k_),new b(n=>(n.add(e.schedule(dS,t,{subscriber:n,counter:0,period:t})),n))}(0,I_).pipe(o_(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?VS(t,-2):2===this._verticalScrollDirection&&VS(t,2),1===this._horizontalScrollDirection?US(t,-2):2===this._horizontalScrollDirection&&US(t,2)})},this.element=u_(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new wS(n,s)}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 t=u_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,n,i){let s;this.start(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=i;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else u_(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,s,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:s})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=u_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?FS("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!bS(this._clientRect,.05,e,n))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=FS(s,e=>e.drag===t),l=s[r],c=l.clientRect,h=a>r?1:-1,u=this._getItemOffsetPx(s[a].clientRect,c,h),d=this._getSiblingOffsetPx(a,s,h),p=s.slice();!function(t,e,n){const i=NS(e,t.length-1),s=NS(n,t.length-1);if(i===s)return;const r=t[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)t[a]=t[a+o];t[s]=r}(s,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),s.forEach((e,n)=>{if(p[n]===e)return;const i=e.drag===t,s=i?u:d,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,yS(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,yS(e.clientRect,s,0))}),this._previousSwap.overlaps=vS(c,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!n&&bS(r.clientRect,.05,t,e)&&([i,s]=function(t,e,n,i){const s=jS(e,i),r=BS(e,n);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(i||s)&&(n=o))}),!i&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};i=jS(a,e),s=BS(a,t),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const t=u_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:_S(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=u_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._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(t,e,n){const i="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*n];let o=s[i?"width":"height"]*n;if(r){const t=i?"left":"top",e=i?"right":"bottom";-1===n?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let s=i?e.left-t.left:e.top-t.top;return-1===n&&(s+=i?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return i?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,i){const s="horizontal"===this._orientation;return FS(this._itemPositions,({drag:r,clientRect:o},a,l)=>{if(r===t)return l.length<2;if(i){const t=s?i.x:i.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<Math.floor(o.right):n>=Math.floor(o.top)&&n<Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(t,e){return vS(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(i=>i._canReceive(t,e,n))}_canReceive(t,e,n){if(!vS(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const s=u_(this.element);return i===s||s.contains(i)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{yS(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=function(t){if(function(){if(null==v_){const t="undefined"!=typeof document?document.head:null;v_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return v_}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(u_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function FS(t,e){for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function VS(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function US(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function jS(t,e){const{top:n,bottom:i,height:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function BS(t,e){const{left:n,right:i,width:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}const HS=w_({passive:!1,capture:!0});let WS=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new I,this.pointerUp=new I,this.scroll=new I,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.size&&(t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,HS)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,HS)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:HS}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:HS}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(Ih))},t.\u0275prov=ht({factory:function(){return new t(Yt(jc),Yt(Ih))},token:t,providedIn:"root"}),t})();const $S={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qS=(()=>{class t{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=$S){return new kS(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new zS(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(jc),Yt(V_),Yt(WS))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(jc),Yt(V_),Yt(WS))},token:t,providedIn:"root"}),t})();const GS=new Ft("CDK_DRAG_PARENT"),YS=new Ft("CdkDropListGroup"),QS=new Ft("CDK_DRAG_CONFIG");let KS=0;const XS=new Ft("CdkDropList");let ZS=(()=>{class t{constructor(e,n,i,s,r,o,a){this.element=e,this._changeDetectorRef=i,this._dir=s,this._group=r,this._scrollDispatcher=o,this._destroyed=new I,this.connectedTo=[],this.id="cdk-drop-list-"+KS++,this.enterPredicate=()=>!0,this.dropped=new Zl,this.entered=new Zl,this.exited=new Zl,this.sorted=new Zl,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,a&&this._assignDefaults(a),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=c_(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(L_(this._dir.value),o_(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const n=(i=this.connectedTo,Array.isArray(i)?i:[i]).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);var i;if(this._group&&this._group._items.forEach(t=>{-1===n.indexOf(t)&&n.push(t)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=c_(this.sortingDisabled),e.autoScrollDisabled=c_(this.autoScrollDisabled),e.connectedTo(n.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:n,sortingDisabled:i,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(qS),Oo(Yr),Oo(g_,8),Oo(YS,12),Oo(F_),Oo(QS,8))},t.\u0275dir=ye({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(xa("id",e.id),la("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._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:[Wa([{provide:YS,useValue:void 0},{provide:XS,useExisting:t}])]}),t._dropLists=[],t})();const JS=new Ft("CdkDragHandle"),tE=new Ft("CdkDragPlaceholder"),eE=new Ft("CdkDragPreview");let nE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this.element=t,this.dropContainer=e,this._document=n,this._ngZone=i,this._viewContainerRef=s,this._dir=o,this._changeDetectorRef=l,this._selfHandle=c,this._destroyed=new I,this.started=new Zl,this.released=new Zl,this.ended=new Zl,this.entered=new Zl,this.exited=new Zl,this.dropped=new Zl,this.moved=new b(t=>{const e=this._dragRef.moved.pipe(z(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=a.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=c_(t),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(df(1),o_(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(L_(this._handles),gv(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),mf(t=>G(...t.map(t=>t._stateChanges.pipe(L_(t))))),o_(this._destroyed)).subscribe(t=>{const e=this._dragRef,n=t.element.nativeElement;t.disabled?e.disableHandle(n):e.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.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 t=this.element.nativeElement,e=this.rootElementSelector?iE(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?iE(this.element.nativeElement,t):u_(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:h_(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a}=t;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(XS,12),Oo(Ih),Oo(jc),Oo(bl),Oo(QS,8),Oo(g_,8),Oo(qS),Oo(Yr),Oo(JS,10))},t.\u0275dir=ye({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(pc(n,eE,!0),pc(n,tE,!0),pc(n,JS,!0)),2&t&&(cc(i=fc())&&(e._previewTemplate=i.first),cc(i=fc())&&(e._placeholderTemplate=i.first),cc(i=fc())&&(e._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&la("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._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:[Wa([{provide:GS,useExisting:t}]),Ra]}),t})();function iE(t,e){let n=t.parentElement;for(;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}let sE=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[qS],imports:[U_]}),t})();var rE=n("EcEN");function oE(t){return getComputedStyle(t)}function aE(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function lE(t){var e=document.createElement("div");return e.className=t,e}var cE="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function hE(t,e){if(!cE)throw new Error("No element matching method supported");return cE.call(t,e)}function uE(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function dE(t,e){return Array.prototype.filter.call(t.children,(function(t){return hE(t,e)}))}var pE=function(t){return"ps__thumb-"+t},gE=function(t){return"ps__rail-"+t},fE=function(t){return"ps--active-"+t},mE=function(t){return"ps--scrolling-"+t},_E={x:null,y:null};function vE(t,e){var n=t.element.classList,i=mE(e);n.contains(i)?clearTimeout(_E[e]):n.add(i)}function yE(t,e){_E[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(mE(e))}),t.settings.scrollingThreshold)}var bE=function(t){this.element=t,this.handlers={}},wE={isEmpty:{configurable:!0}};bE.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},bE.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter((function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)}))},bE.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},wE.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(bE.prototype,wE);var CE=function(){this.eventElements=[]};function SE(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function EE(t,e,n,i,s){var r;if(void 0===i&&(i=!0),void 0===s&&(s=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,s){var r=n[0],o=n[1],a=n[2],l=n[3],c=n[4],h=n[5];void 0===i&&(i=!0),void 0===s&&(s=!1);var u=t.element;t.reach[l]=null,u[a]<1&&(t.reach[l]="start"),u[a]>t[r]-t[o]-1&&(t.reach[l]="end"),e&&(u.dispatchEvent(SE("ps-scroll-"+l)),e<0?u.dispatchEvent(SE("ps-scroll-"+c)):e>0&&u.dispatchEvent(SE("ps-scroll-"+h)),i&&function(t,e){vE(t,e),yE(t,e)}(t,l)),t.reach[l]&&(e||s)&&u.dispatchEvent(SE("ps-"+l+"-reach-"+t.reach[l]))}(t,n,r,i,s)}function IE(t){return parseInt(t,10)||0}CE.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new bE(t),this.eventElements.push(e)),e},CE.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},CE.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},CE.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},CE.prototype.once=function(t,e,n){var i=this.eventElement(t),s=function(t){i.unbind(e,s),n(t)};i.bind(e,s)};var xE={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function TE(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(dE(e,gE("x")).forEach((function(t){return uE(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(dE(e,gE("y")).forEach((function(t){return uE(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=PE(t,IE(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=IE((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=PE(t,IE(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=IE(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,aE(e.scrollbarXRail,n);var s={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,aE(e.scrollbarYRail,s),aE(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),aE(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(fE("x")):(e.classList.remove(fE("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(fE("y")):(e.classList.remove(fE("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function PE(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function kE(t,e){var n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),u[l]=d+g*(e[s]-p),vE(t,c),TE(t),e.stopPropagation(),e.preventDefault()}function m(){yE(t,c),t[h].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function _(e,o){d=u[l],o&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[i]-t[n])/(t[r]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[h].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[o],"mousedown",(function(t){_(t)})),t.event.bind(t[o],"touchstart",(function(t){_(t,!0)}))}var ME={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,TE(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,TE(t),e.stopPropagation()}))},"drag-thumb":function(t){kE(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),kE(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(hE(e,":hover")||hE(t.scrollbarX,":focus")||hE(t.scrollbarY,":focus"))){var i,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(hE(i=s,"input,[contenteditable]")||hE(i,"select,[contenteditable]")||hE(i,"textarea,[contenteditable]")||hE(i,"button,[contenteditable]"))return}var r=0,o=0;switch(n.which){case 37:r=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:o=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:r=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:o=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:o=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==r||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=r,TE(t),function(n,i){var s=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===s&&i>0||s>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===r&&n<0||r>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(r,o)&&n.preventDefault())}}))},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),s=i[0],r=i[1];if(!function(t,n,i){if(!xE.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var r=oE(s);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=s.scrollHeight-s.clientHeight;if(o>0&&(s.scrollTop>0&&i<0||s.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(n.target,s,r)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(r?e.scrollTop-=r*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=r*t.settings.wheelSpeed,o=!0):(e.scrollTop-=r*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),TE(t),(o=o||function(n,i){var s=Math.floor(e.scrollTop),r=0===e.scrollTop,o=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?r||o:a||l)||!t.settings.wheelPropagation}(s,r))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(xE.supportsTouch||xE.supportsIePointer){var e=t.element,n={},i=0,s={},r=null;xE.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",h),t.event.bind(e,"touchend",u)):xE.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",h),t.event.bind(e,"pointerup",u)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",h),t.event.bind(e,"MSPointerUp",u)))}function o(n,i){e.scrollTop-=i,e.scrollLeft-=n,TE(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(l(t)){var e=a(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==r&&clearInterval(r)}}function h(r){if(l(r)){var c=a(r),h={pageX:c.pageX,pageY:c.pageY},u=h.pageX-n.pageX,d=h.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var r=oE(s);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=s.scrollHeight-s.clientHeight;if(o>0&&(s.scrollTop>0&&i<0||s.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(r.target,u,d))return;o(u,d),n=h;var p=(new Date).getTime(),g=p-i;g>0&&(s.x=u/g,s.y=d/g,i=p),function(n,i){var s=Math.floor(e.scrollTop),r=e.scrollLeft,o=Math.abs(n),a=Math.abs(i);if(a>o){if(i<0&&s===t.contentHeight-t.containerHeight||i>0&&0===s)return 0===window.scrollY&&i>0&&xE.isChrome}else if(o>a&&(n<0&&r===t.contentWidth-t.containerWidth||n>0&&0===r))return!0;return!0}(u,d)&&r.preventDefault()}}function u(){t.settings.swipeEasing&&(clearInterval(r),r=setInterval((function(){t.isInitialized?clearInterval(r):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(r):(o(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(r)}),10))}}},DE=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,r,o=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===oE(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(r=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=r,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new CE,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=lE(gE("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=lE(pE("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=oE(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=IE(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=IE(l.borderLeftWidth)+IE(l.borderRightWidth),aE(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=IE(l.marginLeft)+IE(l.marginRight),aE(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=lE(gE("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=lE(pE("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=oE(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=IE(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=oE(t);return IE(e.width)+IE(e.paddingLeft)+IE(e.paddingRight)+IE(e.borderLeftWidth)+IE(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=IE(c.borderTopWidth)+IE(c.borderBottomWidth),aE(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=IE(c.marginTop)+IE(c.marginBottom),aE(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return ME[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),TE(this)};DE.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,aE(this.scrollbarXRail,{display:"block"}),aE(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=IE(oE(this.scrollbarXRail).marginLeft)+IE(oE(this.scrollbarXRail).marginRight),this.railYMarginHeight=IE(oE(this.scrollbarYRail).marginTop)+IE(oE(this.scrollbarYRail).marginBottom),aE(this.scrollbarXRail,{display:"none"}),aE(this.scrollbarYRail,{display:"none"}),TE(this),EE(this,"top",0,!1,!0),EE(this,"left",0,!1,!0),aE(this.scrollbarXRail,{display:""}),aE(this.scrollbarYRail,{display:""}))},DE.prototype.onScroll=function(t){this.isAlive&&(TE(this),EE(this,"top",this.element.scrollTop-this.lastScrollTop),EE(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},DE.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),uE(this.scrollbarX),uE(this.scrollbarY),uE(this.scrollbarXRail),uE(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},DE.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var AE=DE,OE=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var s=i[n];t.call(e,s[1],s[0])}},e}()}(),RE="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,LE="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),NE="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(LE):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},zE=["top","right","bottom","left","width","height","size","weight"],FE="undefined"!=typeof MutationObserver,VE=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,s=0;function r(){n&&(n=!1,t()),i&&a()}function o(){NE(r)}function a(){var t=Date.now();if(n){if(t-s<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);s=t}return a}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){RE&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FE?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){RE&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;zE.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),UE=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];Object.defineProperty(t,s,{value:e[s],enumerable:!1,writable:!1,configurable:!0})}return t},jE=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||LE},BE=qE(0,0,0,0);function HE(t){return parseFloat(t)||0}function WE(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+HE(t["border-"+n+"-width"])}),0)}var $E="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof jE(t).SVGGraphicsElement}:function(t){return t instanceof jE(t).SVGElement&&"function"==typeof t.getBBox};function qE(t,e,n,i){return{x:t,y:e,width:n,height:i}}var GE=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qE(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t,e=(t=this.target,RE?$E(t)?function(t){var e=t.getBBox();return qE(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return BE;var i=jE(t).getComputedStyle(t),s=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var s=i[n];e[s]=HE(t["padding-"+s])}return e}(i),r=s.left+s.right,o=s.top+s.bottom,a=HE(i.width),l=HE(i.height);if("border-box"===i.boxSizing&&(Math.round(a+r)!==e&&(a-=WE(i,"left","right")+r),Math.round(l+o)!==n&&(l-=WE(i,"top","bottom")+o)),!function(t){return t===jE(t).document.documentElement}(t)){var c=Math.round(a+r)-e,h=Math.round(l+o)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return qE(s.left,s.top,a,l)}(t):BE);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),YE=function(t,e){var n,i,s,r,o,a,l,c=(i=(n=e).x,s=n.y,r=n.width,o=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),UE(l,{x:i,y:s,width:r,height:o,top:s,right:i+r,bottom:o+s,left:i}),l);UE(this,{target:t,contentRect:c})},QE=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new OE,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof jE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new GE(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof jE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new YE(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),KE="undefined"!=typeof WeakMap?new WeakMap:new OE,XE=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=VE.getInstance(),i=new QE(e,n,this);KE.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){XE.prototype[t]=function(){var e;return(e=KE.get(this))[t].apply(e,arguments)}}));var ZE=void 0!==LE.ResizeObserver?LE.ResizeObserver:XE;const JE=new Ft("PERFECT_SCROLLBAR_CONFIG");class tI{constructor(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}}class eI{constructor(t,e){this.x=t,this.y=e}}const nI=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class iI{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let sI=(()=>{class t{constructor(t,e,n,i,s){this.zone=t,this.differs=e,this.elementRef=n,this.platformId=i,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new I,this.disabled=!1,this.psScrollY=new Zl,this.psScrollX=new Zl,this.psScrollUp=new Zl,this.psScrollDown=new Zl,this.psScrollLeft=new Zl,this.psScrollRight=new Zl,this.psYReachEnd=new Zl,this.psYReachStart=new Zl,this.psXReachEnd=new Zl,this.psXReachStart=new Zl}ngOnInit(){if(!this.disabled&&su(this.platformId)){const t=new iI(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new AE(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ZE(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{nI.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>"-"+t.toLowerCase());n_(this.elementRef.nativeElement,e).pipe(R_(20),o_(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){su(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&su(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&su(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new tI(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new eI(this.instance.reach.x||0,this.instance.reach.y||0):new eI(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,n){this.disabled||(null==e&&null==n?this.animateScrolling("scrollTop",t,n):(null!=t&&this.animateScrolling("scrollLeft",t,n),null!=e&&this.animateScrolling("scrollTop",e,n)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,n){if("string"==typeof t&&(t=this.elementRef.nativeElement.querySelector(t)),t){const i=t.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",i.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),n),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",i.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),n)}}animateScrolling(t,e,n){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),n&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let i=0,s=0,r=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,l=c=>{s+=Math.PI/(n/(c-r)),i=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===o&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=i,o=this.elementRef.nativeElement[t],r=c,this.animation=window.requestAnimationFrame(l)))};window.requestAnimationFrame(l)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(Oo(jc),Oo(gl),Oo(Ya),Oo(Ic),Oo(JE,8))},t.\u0275dir=ye({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[Ra]}),t})(),rI=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu],iu]}),t})();function oI(t,e){1&t&&(zo(0,"div",3),Vo(1,"img-selection"),Fo())}function aI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openSmall()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",11),Fo()}}function lI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openSmall()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",12),Fo()}}function cI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openFull()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",12),Fo()}}function hI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).onClose()})),zo(1,"span"),wa(2,"Close"),Fo(),Vo(3,"i",13),Fo()}}function uI(t,e){if(1&t&&(zo(0,"div",8),Do(1,aI,4,0,"button",9),Do(2,lI,4,0,"button",9),Do(3,cI,4,0,"button",9),Do(4,hI,4,0,"button",9),Fo()),2&t){const t=Yo(2);ws(1),Lo("ngIf","full"===t.stateDisplayed),ws(1),Lo("ngIf","closed"===t.stateDisplayed),ws(1),Lo("ngIf","small"===t.stateDisplayed),ws(1),Lo("ngIf","closed"!==t.stateDisplayed)}}const dI=function(t,e,n,i){return{"wz-img-manager__module--small":t,"wz-img-manager__module--full":e,"wz-img-manager__module--window":n,"wz-img-manager__module--edit":i}},pI=function(t){return{"wz-block--window":t}};function gI(t,e){if(1&t){const t=Bo();zo(0,"div",4),Do(1,uI,5,4,"div",5),zo(2,"div",6),zo(3,"img-tabs",7),$o("imgManagerClosed",(function(){return Xe(t),Yo().onImgManagerClosed()}))("switchDisplayWindow",(function(){return Xe(t),Yo().changeDisplayTab()}))("currentTab",(function(e){return Xe(t),Yo().setCurrentTab(e)})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",jl(6,dI,"small"===t.stateDisplayed,"full"===t.stateDisplayed,"window"===t.stateDisplayed,t.hideTab)),ws(1),Lo("ngIf","window"!==t.stateDisplayed),ws(1),Lo("ngClass",Fl(11,pI,"window"===t.stateDisplayed)),ws(1),Lo("stateDisplayed",t.stateDisplayed)("multipleImgMode",t.multipleImgMode)("listDisplayed",t.listDisplayed)}}const fI=["dragAndDropBox"];function mI(t,e){1&t&&(zo(0,"div",8),Vo(1,"wz-loader",9),Fo()),2&t&&(ws(1),Lo("small",!0)("position","relative"))}function _I(t,e){1&t&&Vo(0,"img",15),2&t&&Lo("src",Yo(2).assetsIcon,Ji)}function vI(t,e){if(1&t&&(Uo(0),zo(1,"div",10),Do(2,_I,1,1,"img",11),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),zo(6,"p",12),wa(7),ql(8,"translate"),Fo(),zo(9,"div",13),Vo(10,"i",14),wa(11),ql(12,"translate"),Fo(),jo()),2&t){const t=Yo();ws(2),Lo("ngIf",t.assetsIcon),ws(2),Ca(Gl(5,4,"ImgManager.ImgUpload.dropImg")),ws(3),Ca(Gl(8,6,"ImgManager.ImgUpload.or")),ws(4),Sa("",Gl(12,8,"ImgManager.ImgUpload.selectImg")," ")}}const yI=function(t){return{"img-upload--small":t}},bI=function(t){return{"img-upload__container--small":t}};function wI(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),jo()),2&t&&(ws(1),Ca(Gl(2,1,"ImgManager.UploadList.imgSuccessImport")))}function CI(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),jo()),2&t&&(ws(1),Ca(Gl(2,1,"ImgManager.UploadList.imgSuccessImportOne")))}function SI(t,e){if(1&t){const t=Bo();zo(0,"div",16),zo(1,"img-card",17),$o("toggleImgSelected",(function(){Xe(t);const n=e.index;return Yo().onToggleSelectImg(n)}))("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowCard()}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)})),Fo(),zo(2,"div",18),zo(3,"button",19),Vo(4,"i",13),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit,n=Yo();ws(1),Lo("picture",t)("stateDisplayed",n.stateDisplayed)}}const EI=function(t){return{smallDisplay:t}},II=function(t,e){return{"upload-list__scroll--smallDisplay":t,"upload-list__scroll--window":e}},xI=["imgUploadedImg"],TI=function(t){return{"is-active":t}};function PI(t,e){if(1&t&&(zo(0,"li",14),zo(1,"a"),wa(2),ql(3,"translate"),Fo(),Fo()),2&t){const t=Yo();Lo("ngClass",Fl(4,TI,t.tabActive.value===t.tabs[3].value)),ws(2),Ca(Gl(3,2,t.tabs[3].name))}}function kI(t,e){if(1&t){const t=Bo();zo(0,"images-view",23),$o("switchDisplayWindow",(function(){return Xe(t),Yo(2).switchDisplayWindowImgView()})),Fo()}if(2&t){const t=Yo(2);Lo("stateDisplayed",t.stateDisplayed)("listDisplayed",!1)("multipleImgMode",t.multipleImgMode)("tabDisplayed",t.tabActive.value)("nbRowToShow",2)("fullSize",!1)}}const MI=function(t,e){return{"img-tabs__tabsFirst--small":t,"img-tabs__tabsFirst--window":e}},DI=function(t){return{"img-tabs__tabsFirst__list--upload":t}};function AI(t,e){if(1&t){const t=Bo();zo(0,"div",15),zo(1,"div",16),zo(2,"img-upload",17),$o("imgUploaded",(function(e){return Xe(t),Yo().onImgUploaded(e)})),Fo(),Fo(),zo(3,"div",18),Do(4,kI,1,6,"images-view",19),zo(5,"div",20),zo(6,"upload-list",21,22),$o("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowImgView()})),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Vl(8,MI,"small"===t.stateDisplayed,"window"===t.stateDisplayed)),ws(2),Lo("stateDisplayed",t.stateDisplayed),ws(1),Lo("ngClass",Fl(11,DI,t.imgUpload)),ws(1),Lo("ngIf",!t.imgUpload),ws(1),Lo("hidden",!t.imgUpload),ws(1),Lo("stateDisplayed",t.stateDisplayed)("tabDisplayed",t.tabActive.value)("multipleImgMode",t.multipleImgMode)}}function OI(t,e){if(1&t){const t=Bo();zo(0,"div",24),zo(1,"div",25),zo(2,"images-view",26),$o("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowImgView()})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)("listDisplayed",t.listDisplayed)("multipleImgMode",t.multipleImgMode)("tabDisplayed",t.tabActive.value)("fullSize",!0)}}function RI(t,e){if(1&t){const t=Bo();zo(0,"div",27),zo(1,"div",25),zo(2,"pexels-lib",7),$o("showImgUploaded",(function(){return Xe(t),Yo().onShowImgUploaded()})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)}}function LI(t,e){if(1&t){const t=Bo();zo(0,"div",28),zo(1,"div",25),zo(2,"img-editor",29),$o("editClosed",(function(e){return Xe(t),Yo().onEditClosed(e)})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)("imgToEdit",t.imgToEdit)}}const NI=function(t){return{small:t}},zI=function(t,e){return{"tabs--notWindow":t,"tabs--notDisplayed":e}},FI=function(t){return{"img-tabs__canva--window":t}},VI=["outerElement"],UI=function(t){return{"pexels-lib__search--smallDisplay":t}};function jI(t,e){if(1&t){const t=Bo();zo(0,"div",8),zo(1,"wz-input-search",9),$o("ngModelChange",(function(e){return Xe(t),Yo().searchValue=e}))("changeDebounced",(function(){return Xe(t),Yo().onSearchNameChanged()})),ql(2,"translate"),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(6,UI,"small"===t.stateDisplayed)),ws(1),Lo("ngModel",t.searchValue)("placeholder",Gl(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===t.stateDisplayed)}}function BI(t,e){if(1&t&&(zo(0,"p",14),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(2);ws(1),Ea("",Gl(2,2,"ImgManager.PexelLib.nbImgFound")," : ",t.nbResult,"")}}function HI(t,e){1&t&&(Uo(0),wa(1," \xa0"),Vo(2,"i",35),jo())}function WI(t,e){if(1&t){const t=Bo();zo(0,"div",32),$o("click",(function(){Xe(t);const e=Yo().$implicit;return Yo(3).uploadPhoto(e,e.src.large2x)})),zo(1,"span"),wa(2),ql(3,"translate"),Fo(),zo(4,"span",33),Vo(5,"i",34),Fo(),Do(6,HI,3,0,"ng-container",6),Fo()}if(2&t){const t=Yo().$implicit;ws(2),Ca(Gl(3,2,"ImgManager.PexelLib.import")),ws(4),Lo("ngIf",t.uploaded)}}function $I(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),Vo(3,"span",36),jo()),2&t&&(ws(1),Sa(" ",Gl(2,1,"ImgManager.PexelLib.importation")," "))}const qI=function(t){return{"is-hoverable":t}};function GI(t,e){if(1&t){const t=Bo();zo(0,"div",17),Vo(1,"img",18),zo(2,"div",19),zo(3,"span",20),wa(4),Fo(),zo(5,"div",21),zo(6,"div",22),zo(7,"button",23),Do(8,WI,7,4,"div",24),Do(9,$I,4,3,"ng-container",6),Fo(),Fo(),zo(10,"div",25),zo(11,"div",26),zo(12,"div",27),zo(13,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.portrait)})),zo(14,"p"),wa(15),ql(16,"translate"),Fo(),Vo(17,"i",29),Fo(),zo(18,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.landscape)})),zo(19,"p"),wa(20),ql(21,"translate"),Fo(),Vo(22,"i",30),Fo(),zo(23,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.large2x)})),zo(24,"p"),wa(25),ql(26,"translate"),Fo(),Vo(27,"i",31),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;ws(1),Lo("alt",t.src.medium)("src",t.src.medium,Ji),ws(3),Ea(" ",t.width," x ",t.height," "),ws(1),Lo("ngClass",Fl(16,qI,!t.uploading)),ws(3),Lo("ngIf",!t.uploading),ws(1),Lo("ngIf",t.uploading),ws(6),Ca(Gl(16,10,"ImgManager.PexelLib.portrait")),ws(5),Ca(Gl(21,12,"ImgManager.PexelLib.landscape")),ws(5),Ca(Gl(26,14,"ImgManager.PexelLib.original"))}}function YI(t,e){if(1&t&&(zo(0,"div",15),Do(1,GI,28,18,"div",16),Fo()),2&t){const t=e.$implicit;Lo("@listAnimation",t.photos.length),ws(1),Lo("ngForOf",t.photos)}}function QI(t,e){if(1&t&&(zo(0,"div",10),Do(1,BI,3,4,"p",11),zo(2,"div",12),Do(3,YI,2,2,"div",13),Fo(),Fo()),2&t){const t=Yo();ws(1),Lo("ngIf",t.nbResult),ws(2),Lo("ngForOf",t.photosColumns)}}function KI(t,e){1&t&&(Uo(0),Vo(1,"wz-loader"),jo())}function XI(t,e){1&t&&(zo(0,"div",37),zo(1,"wz-alert",38),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(1),Lo("warning",!0),ws(1),Sa(" ",Gl(3,3,"ImgManager.PexelLib.noResult")," "))}const ZI=function(t){return{"pexels-lib__scroll--smallDisplay":t}};function JI(t,e){1&t&&Vo(0,"i",26)}function tx(t,e){1&t&&Vo(0,"i",27)}function ex(t,e){if(1&t){const t=Bo();zo(0,"button",23),$o("click",(function(){return Xe(t),Yo(2).onToggleImgSelected()})),Do(1,JI,1,0,"i",24),Do(2,tx,1,0,"i",25),zo(3,"span"),wa(4),ql(5,"translate"),Fo(),Fo()}if(2&t){const t=Yo(2);ws(1),Lo("ngIf",!t.picture.selected),ws(1),Lo("ngIf",t.picture.selected),ws(2),Ca(Gl(5,3,"ImgManager.ImgCard.select"))}}function nx(t,e){if(1&t){const t=Bo();zo(0,"div",13),zo(1,"button",14),Vo(2,"i",15),zo(3,"span"),wa(4),Fo(),Fo(),zo(5,"button",16),$o("click",(function(){Xe(t);const e=Yo();return e.onDownloadImg(e.picture.display_name,e.picture.file_name)})),Vo(6,"i",17),zo(7,"span"),wa(8),ql(9,"translate"),Fo(),Fo(),zo(10,"button",18),$o("click",(function(){Xe(t);const e=Yo();return e.onEdit(e.picture)})),Vo(11,"i",19),zo(12,"span"),wa(13),ql(14,"translate"),Fo(),Fo(),zo(15,"button",20),$o("click",(function(){return Xe(t),Yo().activeConfirmDelete=!0})),Vo(16,"i",21),zo(17,"span"),wa(18),ql(19,"translate"),Fo(),Fo(),Do(20,ex,6,5,"button",22),Fo()}if(2&t){const t=Yo();ws(4),Ea("",t.picture.raw_height,"x",t.picture.raw_width,""),ws(4),Ca(Gl(9,6,"ImgManager.ImgCard.download")),ws(5),Ca(Gl(14,8,"ImgManager.ImgCard.edit")),ws(5),Ca(Gl(19,10,"ImgManager.ImgCard.del")),ws(2),Lo("ngIf","window"!==t.stateDisplayed)}}function ix(t,e){if(1&t){const t=Bo();zo(0,"div",28),zo(1,"button",29),$o("click",(function(){return Xe(t),Yo().displayLargeWindow()})),Vo(2,"i",30),Fo(),Fo()}}function sx(t,e){1&t&&(zo(0,"div",31),Vo(1,"i",32),zo(2,"span"),wa(3),ql(4,"translate"),Fo(),Fo()),2&t&&(ws(3),Ca(Gl(4,1,"ImgManager.ImgCard.validImgSmall")))}const rx=function(t){return{"img-card__container__overlay--smallDisplay":t}};function ox(t,e){if(1&t){const t=Bo();zo(0,"div",33),zo(1,"i",34),$o("click",(function(){return Xe(t),Yo().onToggleImgSelected()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(1,rx,"small"===t.stateDisplayed||t.isUploadSection))}}function ax(t,e){1&t&&Vo(0,"span",35)}const lx=function(t){return{fullSize:t}},cx=function(t,e,n){return{smallDisplay:t,imgSelected:e,deletion:n}},hx=function(t){return{show:t}},ux=function(t,e){return{smallNameDisplay:t,focus:e}};function dx(t,e){1&t&&Vo(0,"span",12)}const px=function(t,e,n){return{"img-editor__scroll--full":t,"img-editor__scroll--smallDisplay":e,"img-editor__scroll--window":n}},gx=function(t){return{"img-editor__infoSection__actions__save--disable":t}};function fx(t,e){1&t&&Vo(0,"span",13)}function mx(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"div",15),$o("click",(function(){Xe(t);const e=Yo();return e.onOpenCanva(e.expectedWidth,e.expectedHeight)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),zo(5,"p"),wa(6),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(3),Ca(Gl(4,3,"ImgManager.CanvaBtn.recommanded")),ws(3),Ea("",t.expectedWidth,"*",t.expectedHeight,"")}}function _x(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"div",16),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onOpenCanva(n.value.width,n.value.height)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),zo(5,"p"),wa(6),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;ws(3),Ca(Gl(4,3,t.key)),ws(3),Ea("",t.value.width,"*",t.value.height,"")}}const vx=function(t,e){return{"is-up":t,noTooltip:e}},yx=function(t){return{displayDropDownMenu:t}};function bx(t,e){if(1&t&&(Vo(0,"img",12),ql(1,"imgSrc")),2&t){const t=Yo().$implicit;Lo("src",Yl(1,2,t.file_name,"400"),Ji)("title",t.display_name)}}function wx(t,e){if(1&t&&(Vo(0,"img",12),ql(1,"imgSrc")),2&t){const t=Yo().$implicit;Lo("src",Yl(1,2,t.file_name,"200"),Ji)("title",t.display_name)}}function Cx(t,e){if(1&t){const t=Bo();zo(0,"div",8),$o("cdkDragStarted",(function(){return Xe(t),Yo(2).dragStart=!0}))("cdkDragEnded",(function(){return Xe(t),Yo(2).dragStart=!1})),Do(1,bx,2,5,"img",9),Do(2,wx,2,5,"img",9),zo(3,"div",10),$o("click",(function(){Xe(t);const n=e.index;return Yo(2).removeImg(n)})),wa(4),ql(5,"translate"),Fo(),zo(6,"span",11),wa(7),ql(8,"translate"),Fo(),Fo()}if(2&t){const t=e.index;ws(1),Lo("ngIf",t<1),ws(1),Lo("ngIf",t>0),ws(2),Ca(Gl(5,4,"ImgManager.ImgSelection.deleteImg")),ws(3),Ca(Gl(8,6,"ImgManager.ImgSelection.tooltips"))}}const Sx=function(t){return{"img-selection--visible":t}},Ex=function(t){return[t]};function Ix(t,e){if(1&t){const t=Bo();zo(0,"div",4),zo(1,"div",5,6),$o("cdkDropListDropped",(function(e){return Xe(t),Yo().drop(e)})),Do(3,Cx,9,8,"div",7),Fo(),Fo()}if(2&t){const t=Yo(),e=Ao(1);Lo("ngClass",Fl(3,Sx,t.imgSelectedList&&t.imgSelectedList.length)),ws(1),Lo("cdkDropListConnectedTo",Fl(5,Ex,e)),ws(2),Lo("ngForOf",t.imgSelectedList)}}function xx(t,e){1&t&&(Uo(0),Vo(1,"wz-loader"),jo())}const Tx=[[["","label",""]],[["","item",""]]],Px=["[label]","[item]"];function kx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"div",15),$o("click",(function(){return Xe(t),Yo().confirmCrop()})),ql(2,"translate"),Vo(3,"i",16),zo(4,"p"),wa(5),ql(6,"translate"),Fo(),Fo(),Fo()}2&t&&(ws(1),Lo("nwbToolTip",Gl(2,2,"ImgManager.ImgEditor.ValidtToolTip")),ws(4),Ca(Gl(6,4,"ImgManager.ImgEditor.Valid")))}const Mx=function(t){return{"active-item":t}};function Dx(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.index;return Yo().changeResolutionSize(n)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(4,Mx,t.active)),ws(2),Ca(Gl(4,2,t.label))}}function Ax(t,e){1&t&&Vo(0,"i",20),2&t&&Lo("ngClass",Yo().$implicit.icon)}function Ox(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().applyMethod(n.method)})),Do(2,Ax,1,1,"i",19),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(5,Mx,t.active)),ws(1),Lo("ngIf",t.icon),ws(2),Ca(Gl(5,3,t.label))}}function Rx(t,e){1&t&&Vo(0,"i",20),2&t&&Lo("ngClass",Yo().$implicit.icon)}function Lx(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().applyMethod(n.method)})),Do(2,Rx,1,1,"i",19),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(5,Mx,t.active)),ws(1),Lo("ngIf",t.icon),ws(2),Ca(Gl(5,3,t.label))}}const Nx=["imgLibContainer"];function zx(t,e){if(1&t&&(zo(0,"div"),zo(1,"p",10),wa(2),ql(3,"translate"),Fo(),Fo()),2&t){const t=Yo(2);ws(2),Ea("",Gl(3,2,"ImgManager.ImgLib.nbImg")," : ",t.length,"")}}function Fx(t,e){1&t&&(zo(0,"div"),zo(1,"p",10),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.ImgLib.lastImgs")))}function Vx(t,e){if(1&t){const t=Bo();zo(0,"button",25),$o("click",(function(){return Xe(t),Yo(3).selectImgChosen()})),Vo(1,"i",26),wa(2),ql(3,"translate"),Fo()}if(2&t){const t=Yo(3);Lo("@insertRemoveAnnim",void 0),ws(2),Ea(" ",Gl(3,3,"ImgManager.ImgLib.select")," (",t.nbImgToDelSelected,") ")}}function Ux(t,e){1&t&&Vo(0,"span",30)}function jx(t,e){if(1&t){const t=Bo();zo(0,"button",27),$o("click",(function(){return Xe(t),Yo(3).displayConfirmImgSup()})),Vo(1,"i",28),wa(2),ql(3,"translate"),Do(4,Ux,1,0,"span",29),Fo()}if(2&t){const t=Yo(3);Lo("@insertRemoveAnnim",void 0),ws(2),Ea("",Gl(3,4,"ImgManager.ImgLib.delMlt")," (",t.nbImgToDelSelected,") "),ws(2),Lo("ngIf",t.delListImgLoader)}}const Bx=function(t){return{nbImage:t}};function Hx(t,e){if(1&t&&(zo(0,"p",31),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(3);ws(1),Ca(Yl(2,1,"ImgManager.ImgLib.confirmSupQuestions",Fl(4,Bx,t.nbImgToDelSelected)))}}function Wx(t,e){if(1&t&&(zo(0,"p",31),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(3);ws(1),Ca(Yl(2,1,"ImgManager.ImgLib.confirmSupQuestion",Fl(4,Bx,t.nbImgToDelSelected)))}}const $x=function(t){return{"images-view__container__boxAction__confirmSup--visible":t}},qx=function(t){return{actifDisplayed:t}};function Gx(t,e){if(1&t){const t=Bo();zo(0,"div",11),zo(1,"div",12),Do(2,Vx,4,5,"button",13),Do(3,jx,5,6,"button",14),zo(4,"div",15),Do(5,Hx,3,6,"p",16),Do(6,Wx,3,6,"p",16),zo(7,"div"),zo(8,"button",17),$o("click",(function(){return Xe(t),Yo(2).cancelSup()})),wa(9),ql(10,"translate"),Fo(),zo(11,"button",18),$o("click",(function(){return Xe(t),Yo(2).removeListImg()})),wa(12),ql(13,"translate"),Fo(),Fo(),Fo(),Fo(),zo(14,"div",19),zo(15,"div",20),zo(16,"div",21),$o("click",(function(){return Xe(t),Yo(2).onSwitchFormatDisplayed(!1)})),zo(17,"span",22),Vo(18,"i",23),Fo(),Fo(),Fo(),zo(19,"div",20),zo(20,"div",21),$o("click",(function(){return Xe(t),Yo(2).onSwitchFormatDisplayed(!0)})),zo(21,"span",22),Vo(22,"i",24),Fo(),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo(2);ws(2),Lo("ngIf",t.listDisplayed&&t.nbImgToDelSelected&&!t.confirmImgSup&&!t.delListImgLoader&&t.multipleImgMode),ws(1),Lo("ngIf",t.listDisplayed&&t.nbImgToDelSelected&&!t.confirmImgSup),ws(1),Lo("ngClass",Fl(13,$x,t.confirmImgSup)),ws(1),Lo("ngIf",t.nbImgToDelSelected>1),ws(1),Lo("ngIf",1===t.nbImgToDelSelected),ws(3),Sa(" ",Gl(10,9,"ImgManager.ImgLib.cancel")," "),ws(3),Sa(" ",Gl(13,11,"ImgManager.ImgLib.confirm")," "),ws(4),Lo("ngClass",Fl(15,qx,!t.listDisplayed)),ws(4),Lo("ngClass",Fl(17,qx,t.listDisplayed))}}const Yx=function(t,e){return{"images-view__container--uploadTab":t,"images-view__container--window":e}};function Qx(t,e){if(1&t&&(zo(0,"div",8),Do(1,zx,4,4,"div",6),Do(2,Fx,4,3,"div",6),Do(3,Gx,23,19,"div",9),Fo()),2&t){const t=Yo();Lo("ngClass",Vl(4,Yx,"img-upload"===t.tabDisplayed,"window"===t.stateDisplayed)),ws(1),Lo("ngIf","img-upload"!==t.tabDisplayed),ws(1),Lo("ngIf","img-upload"===t.tabDisplayed),ws(1),Lo("ngIf","img-upload"!==t.tabDisplayed)}}function Kx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"mosaic-view",32),$o("picturesListChange",(function(){return Xe(t),Yo().onPicturesListChange()}))("filtersChange",(function(){return Xe(t),Yo().onFiltersChange()}))("disableChange",(function(e){return Xe(t),Yo().disable=e}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)}))("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowMosaic()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("picturesList",t.picturesList)("tableFilters",t.tableFilters)("disable",t.disable)("nbFakeImg",t.nbFakeImg)("stateDisplayed",t.stateDisplayed)("tabDisplayed",t.tabDisplayed)("displayPexelsResults",t.displayPexelsResults)("isLoading",t.isLoading)("fullSize",t.fullSize)}}function Xx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"table-view",33),$o("picturesListChange",(function(){return Xe(t),Yo().onPicturesListChange()}))("filtersChange",(function(){return Xe(t),Yo().onFiltersChange()}))("disableChange",(function(e){return Xe(t),Yo().disable=e}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("picturesList",t.picturesList)("tableFilters",t.tableFilters)("disable",t.disable)("displayPexelsResults",t.displayPexelsResults)("stateDisplayed",t.stateDisplayed)("isLoading",t.isLoading)}}function Zx(t,e){if(1&t){const t=Bo();zo(0,"div",34),zo(1,"pexels-lib",35),$o("showImgUploaded",(function(){return Xe(t),Yo().onShowImgUploaded()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("searchValue",t.tableFilters.searchValue)("disableSearch",!0)}}const Jx=function(t,e){return{fullSize:t,small:e}},tT=function(t,e,n,i,s,r,o){return{"images-view__scroll--hide--mosaic":t,"images-view__scroll--hide--mosaic--small":e,"images-view__scroll--hide--table":n,"images-view__scroll--full":i,"images-view__scroll--smallDisplay":s,"images-view__scroll--smallUploadDisplay":r,"images-view__scroll--window":o}},eT=function(t){return{"mosaic__search--small":t}};function nT(t,e){if(1&t){const t=Bo();zo(0,"div",5),zo(1,"wz-input-search",6),$o("ngModelChange",(function(e){return Xe(t),Yo().tableFilters.searchValue=e}))("changeDebounced",(function(e){return Xe(t),Yo().onSearchChange(e)})),ql(2,"translate"),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(6,eT,"small"===t.stateDisplayed)),ws(1),Lo("ngModel",t.tableFilters.searchValue)("placeholder",Gl(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===t.stateDisplayed)}}function iT(t,e){if(1&t){const t=Bo();zo(0,"img-card",10),$o("toggleImgSelected",(function(){Xe(t);const n=e.index;return Yo(2).onToggleSelectImg(n)}))("pictureNameChange",(function(e){return Xe(t),Yo(2).onCardRenamePicture(e)}))("switchDisplayWindow",(function(){return Xe(t),Yo(2).switchDisplayWindowCard()})),Fo()}if(2&t){const t=e.$implicit,n=Yo(2);Lo("picture",t)("stateDisplayed",n.stateDisplayed)("tabDisplayed",n.tabDisplayed)("disable",n.disable)("fullSize",n.fullSize)}}const sT=function(t){return{"mosaic__container__cards__fakeImg--smallFakeImg":t}};function rT(t,e){if(1&t&&Vo(0,"div",11),2&t){const t=Yo(2);Lo("ngClass",Fl(1,sT,"small"===t.stateDisplayed||"img-upload"===t.tabDisplayed))}}const oT=function(t){return{"mosaic__container__cards--padding":t}};function aT(t,e){if(1&t&&(zo(0,"div",7),Do(1,iT,1,5,"img-card",8),Do(2,rT,1,3,"div",9),ql(3,"numberToArray"),Fo()),2&t){const t=Yo();Lo("ngClass",Fl(6,oT,"window"!==t.stateDisplayed))("@listAnimation",t.picturesList.length),ws(1),Lo("ngForOf",t.picturesList),ws(1),Lo("ngForOf",Gl(3,4,t.nbFakeImg))}}function lT(t,e){1&t&&(zo(0,"div",12),Vo(1,"wz-loader",13),Fo()),2&t&&(ws(1),Lo("small",!0))}function cT(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"wz-pagination",15),$o("pageChange",(function(){return Xe(t),Yo().onFiltersChange()})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("pagination",t.tableFilters)}}const hT=function(t,e,n){return{fullSize:t,small:e,"mosaic--displayPexelsImg":n}};function uT(t,e){1&t&&(zo(0,"div",25),Vo(1,"i",26),Fo())}const dT=function(t){return{imgSelected:t}},pT=function(t){return{pictureDeletion:t}},gT=function(t){return{desabled:t}};function fT(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("checkBoxValueChange",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),zo(1,"div",7),zo(2,"div",8),zo(3,"div",9),$o("click",(function(){Xe(t);const n=e.index;return Yo().onToggleSelectImg(n)})),zo(4,"img",10),$o("error",(function(n){Xe(t);const i=e.$implicit,s=Yo();return i.imgNotLoaded=!0,s.onPictureNotLoading(n)})),ql(5,"imgSrc"),Fo(),Do(6,uT,2,0,"div",11),Fo(),zo(7,"input",12),$o("ngModelChange",(function(n){return Xe(t),e.$implicit.display_name=n}))("focus",(function(){Xe(t);const n=e.$implicit;return Yo().previousName=n.display_name}))("blur",(function(){Xe(t);const n=e.$implicit;return Yo().onNameChange(n.id_file)}))("click",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),Fo(),Fo(),Fo(),zo(8,"div",13),$o("click",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),zo(9,"p",14),wa(10),Fo(),Fo(),zo(11,"div",15),zo(12,"dropdown",16),Uo(13,17),zo(14,"div",18),zo(15,"span"),Vo(16,"i",19),Fo(),Fo(),jo(),Uo(17,20),zo(18,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onDownloadImg(n.display_name,n.file_name)})),Vo(19,"i",22),wa(20,"\xa0 "),zo(21,"p"),wa(22),ql(23,"translate"),Fo(),Fo(),jo(),Uo(24,20),zo(25,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onEdit(n)})),Vo(26,"i",23),wa(27,"\xa0 "),zo(28,"p"),wa(29),ql(30,"translate"),Fo(),Fo(),jo(),Uo(31,20),zo(32,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onRemoveImg(n)})),Vo(33,"i",24),wa(34,"\xa0 "),zo(35,"p"),wa(36),ql(37,"translate"),Fo(),Fo(),jo(),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;Lo("checkBoxValue",t.delSelected),ws(3),Lo("ngClass",Fl(23,dT,t.selected)),ws(1),Lo("src",Yl(5,14,t.file_name,"100"),Ji)("ngClass",Fl(25,pT,t.deleted)),ws(2),Lo("ngIf",t.imgNotLoaded),ws(1),Lo("ngModel",t.display_name)("ngClass",Fl(27,gT,t.deleted))("disabled",t.deleted),ws(3),Ea("",t.raw_height,"x",t.raw_width,""),ws(2),Lo("disable",t.deleted),ws(10),Ca(Gl(23,17,"ImgManager.ImgList.download")),ws(7),Ca(Gl(30,19,"ImgManager.ImgList.edit")),ws(7),Ca(Gl(37,21,"ImgManager.ImgList.remove"))}}function mT(t,e){if(1&t){const t=Bo();zo(0,"div",8),zo(1,"wz-checkbox",9),$o("change",(function(e){return Xe(t),Yo().onToggleAllCheckBox(e)})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("id",t.headerCheckBoxId)("alone",!0)}}function _T(t,e){if(1&t){const t=Bo();zo(0,"div",10),zo(1,"wz-input-search",11),$o("ngModelChange",(function(e){return Xe(t),Yo().tableFilters.searchValue=e}))("changeDebounced",(function(e){return Xe(t),Yo().searchChange(e)})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("ngModel",t.tableFilters.searchValue)("placeholder",t.placeholder)("smallPadding",!0)}}function vT(t,e){1&t&&(zo(0,"div",12),Vo(1,"wz-loader",13),Fo()),2&t&&(ws(1),Lo("small",!0))}function yT(t,e){1&t&&Xo(0,1,["*ngIf","!isLoading"])}function bT(t,e){if(1&t){const t=Bo();zo(0,"wz-pagination",14),$o("pageChange",(function(){return Xe(t),Yo().pageChange()})),Fo()}2&t&&Lo("pagination",Yo().tableFilters)}const wT=[[["","headerCell",""]],[["","tableRow",""]]],CT=["[headerCell]","[tableRow]"],ST=function(t){return{"wz-pagination__wrapper__arrows__arrow--disabled":t}};function ET(t,e){if(1&t){const t=Bo();zo(0,"div",1),zo(1,"div",2),zo(2,"div",3),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),zo(6,"wz-page-selector",4),$o("pageChange",(function(e){return Xe(t),Yo().onGotoPageChange(e)})),Fo(),Fo(),zo(7,"div",5),zo(8,"p"),wa(9),ql(10,"customPagniationText"),Fo(),Fo(),zo(11,"div",6),zo(12,"div",7),$o("click",(function(){return Xe(t),Yo().decrementPage()})),Vo(13,"span",8),Fo(),zo(14,"div",9),$o("click",(function(){return Xe(t),Yo().incrementPage()})),ql(15,"IsLastPage"),Vo(16,"span",8),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(4),Ca(Gl(5,6,"PaginationComponent.page")),ws(2),Lo("pagination",t.pagination)("totalItems",t.pagination.totalItems),ws(3),Ca(Ql(10,8,t.pagination.currentPage,t.pagination.totalItems,t.pagination.itemsPerPage)),ws(3),Lo("ngClass",Fl(16,ST,1===t.pagination.currentPage)),ws(2),Lo("ngClass",Fl(18,ST,Ql(15,12,t.pagination.currentPage,t.pagination.totalItems,t.pagination.itemsPerPage)))}}const IT=function(t,e){return{"field--nowrap":t,alone:e}};function xT(t,e){1&t&&Vo(0,"p",3),2&t&&Lo("innerHTML",Yo().text,Xi)}const TT=function(t){return{"is-small":t}},PT=function(t){return{position:t}};function kT(t,e){1&t&&Vo(0,"i",2),2&t&&Lo("ngClass",Yo().iconClass)}const MT=function(t,e){return{success:t,warning:e}},DT=["*"],AT=function(t){return{width:t}};function OT(t,e){if(1&t){const t=Bo();zo(0,"div",5),$o("click",(function(){Xe(t);const e=Yo();return e.openAbsoluteSelect=!e.openAbsoluteSelect})),zo(1,"input",6),$o("change",(function(e){Xe(t);const n=Yo();return n.onGotoPageChange(e,!1),n.openAbsoluteSelect=!1})),Fo(),Vo(2,"i",7),Fo()}if(2&t){const t=Yo();ws(1),Lo("value",t.pagination.currentPage)("ngStyle",Fl(2,AT,40+10*t.pagination.currentPage.toString().length+"px"))}}const RT=function(t){return{selected:t}};function LT(t,e){if(1&t){const t=Bo();zo(0,"div",10),zo(1,"div",11),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(2).onGotoPageChange(n.value,!0)})),zo(2,"span"),wa(3),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit,n=Yo(2);ws(1),Lo("ngClass",Fl(2,RT,t.value===n.pagination.currentPage)),ws(2),Ca(t.display)}}function NT(t,e){if(1&t&&(zo(0,"div",8),Do(1,LT,4,4,"div",9),ql(2,"LargeNumberOfPage"),Fo()),2&t){const t=Yo();ws(1),Lo("ngForOf",Ql(2,1,t.pagination.totalItems,t.pagination.itemsPerPage,t.pagination.currentPage).slice().reverse())}}function zT(t,e){if(1&t&&(Uo(0),zo(1,"option",14),wa(2),Fo(),jo()),2&t){const t=e.$implicit,n=Yo(2);ws(1),Lo("selected",t===n.pagination.currentPage)("value",t),ws(1),Sa(" ",t," ")}}function FT(t,e){if(1&t){const t=Bo();Uo(0),zo(1,"select",12),$o("change",(function(e){return Xe(t),Yo().onGotoPageChange(e,!1)})),Do(2,zT,3,3,"ng-container",13),ql(3,"ArrayTotalPages"),Fo(),jo()}if(2&t){const t=Yo();ws(1),Lo("ngStyle",Fl(5,AT,40+10*t.pagination.currentPage.toString().length+"px")),ws(1),Lo("ngForOf",Yl(3,2,t.pagination.totalItems,t.pagination.itemsPerPage))}}const VT=["search"];function UT(t,e){1&t&&Vo(0,"p",5),2&t&&Lo("innerHTML",Yo().label,Xi)}function jT(t,e){if(1&t&&Vo(0,"span",10),2&t){const t=Yo(2);Lo("innerHTML",t.items[t.indexItemSelected].icon,Xi)}}const BT=function(t){return{"select-disabled":t}};function HT(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("click",(function(){Xe(t);const e=Yo();return!e.disabled&&(e.openCategories=!e.openCategories)})),Do(1,jT,1,1,"span",7),Vo(2,"span",8),ql(3,"translate"),zo(4,"span"),Vo(5,"i",9),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(5,BT,t.disabled)),ws(1),Lo("ngIf",-1!==t.indexItemSelected),ws(1),Lo("innerHTML",Gl(3,3,-1!==t.indexItemSelected?t.items[t.indexItemSelected].name:t.placeholder),Xi)}}function WT(t,e){if(1&t){const t=Bo();zo(0,"div",16),Vo(1,"i",17),zo(2,"input",18,19),$o("ngModelChange",(function(e){return Xe(t),Yo(2).searchValue=e})),Fo(),Fo()}if(2&t){const t=Yo(2);ws(2),Lo("ngModel",t.searchValue)}}function $T(t,e){if(1&t){const t=Bo();zo(0,"span",20),$o("click",(function(){Xe(t);const e=Yo(2);return e.openCategories=!e.openCategories})),Fo()}if(2&t){const t=Yo(2);Lo("innerHTML",t.items[t.indexItemSelected].icon,Xi)}}const qT=function(t,e){return{"select-disabled":t,"open-search":e}};function GT(t,e){if(1&t){const t=Bo();zo(0,"div",11),Do(1,WT,4,1,"div",12),Do(2,$T,1,1,"span",13),zo(3,"span",14),$o("click",(function(){return Xe(t),Yo().showCategories()})),Fo(),zo(4,"span",15),$o("click",(function(){Xe(t);const e=Yo();return e.openCategories=!e.openCategories})),Vo(5,"i",9),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Vl(4,qT,t.disabled,t.openCategories)),ws(1),Lo("ngIf",t.openCategories&&!t.disabled),ws(1),Lo("ngIf",(null==t.items[t.indexItemSelected]?null:t.items[t.indexItemSelected].icon)&&!t.openCategories),ws(1),Lo("innerHTML",null!=t.items[t.indexItemSelected]&&t.items[t.indexItemSelected].name?t.items[t.indexItemSelected].name:t.placeholder,Xi)}}function YT(t,e){1&t&&Vo(0,"i",30),2&t&&Lo("classList",Yo(4).callToAction.icon)}function QT(t,e){if(1&t&&(zo(0,"strong"),wa(1),Fo()),2&t){const t=Yo(4);ws(1),Ca(t.callToAction.boldText)}}function KT(t,e){if(1&t){const t=Bo();zo(0,"div",27),zo(1,"div",15),$o("click",(function(){return Xe(t),Yo(3).onClickCallToAction()})),Do(2,YT,1,1,"i",28),Do(3,QT,2,1,"strong",29),zo(4,"span"),wa(5),Fo(),Fo(),Fo()}if(2&t){const t=Yo(3);ws(2),Lo("ngIf",t.callToAction.icon),ws(1),Lo("ngIf",t.callToAction.boldText),ws(2),Ca(null==t.callToAction?null:t.callToAction.name)}}function XT(t,e){1&t&&Vo(0,"span",10),2&t&&Lo("innerHTML",Yo(2).$implicit.icon,Xi)}const ZT=function(t){return{selected:t}};function JT(t,e){if(1&t){const t=Bo();zo(0,"div",33),$o("click",(function(){Xe(t);const e=Yo().$implicit;return Yo(3).onSelectItem(e.id)})),Do(1,XT,1,1,"span",7),wa(2),ql(3,"translate"),Fo()}if(2&t){const t=Yo().$implicit;Lo("ngClass",Fl(5,ZT,t.selected)),ws(1),Lo("ngIf",t.icon),ws(1),Sa("",Gl(3,3,t.name)," ")}}function tP(t,e){if(1&t){const t=Bo();zo(0,"div",31),$o("click",(function(){return Xe(t),Yo(3).onClose()})),Do(1,JT,4,7,"div",32),Fo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngIf",!t.hide)}}const eP=function(){return{suppressScrollX:!0}};function nP(t,e){if(1&t&&(zo(0,"div",24),Do(1,KT,6,3,"div",25),Do(2,tP,2,1,"div",26),ql(3,"selectFilters"),Fo()),2&t){const t=Yo(2);Lo("perfectScrollbar",function(t,e,n){const i=rn()+6,s=Qe();return s[i]===ms?So(s,i,e()):Eo(s,i)}(0,eP)),ws(1),Lo("ngIf",t.callToAction),ws(1),Lo("ngForOf",Yl(3,3,t.items,t.searchValue))}}function iP(t,e){1&t&&(zo(0,"div",34),zo(1,"span"),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(ws(2),Ca(Gl(3,1,"wac.datatable.noresult")))}const sP=function(t,e){return{hidden:t,open:e}},rP=function(t){return{"max-width":t}};function oP(t,e){if(1&t&&(zo(0,"div",21),Do(1,nP,4,7,"div",22),Do(2,iP,4,3,"div",23),ql(3,"selectFilters"),Fo()),2&t){const t=Yo();var n;const e=!(null!=(n=Yl(3,4,t.items,t.searchValue))&&n.length);Lo("ngClass",Vl(7,sP,!t.openCategories,"open"===t.type))("ngStyle",Fl(10,rP,t.maxWidthItems)),ws(1),Lo("ngIf",t.items.length),ws(1),Lo("ngIf",e)}}let aP=(()=>{let t=class{constructor(){this.imgSelectedList=[],this.multipleImgMode=!1,this.imgSelectionSubscriber=[],this.imgListLoading=new yg}getImgSelection(){return this.imgSelectedList}setImgSelection(t){this.imgSelectedList.length=0,t&&t.length&&t.forEach(t=>this.imgSelectedList.push(t)),this.emitImgSelectionChange()}addImgSelected(t){this.multipleImgMode?this.imgSelectedList.push(t):this.imgSelectedList=[t],this.emitImgSelectionChange()}getImgSelectionChange(){return new b(t=>{this.imgSelectionSubscriber.push(t)})}emitImgSelectionChange(){this.imgSelectionSubscriber.map(t=>t.next(JSON.parse(JSON.stringify(this.imgSelectedList))))}removeImgSelectedByIndex(t){this.imgSelectedList.splice(t,1),this.emitImgSelectionChange()}removeImgSelectedById(t){if(!this.multipleImgMode)return void(this.imgSelectedList=[]);let e=0;for(const n of this.imgSelectedList){if(n.id_file===t){this.removeImgSelectedByIndex(e);break}e++}}removeImgSelectionByIds(t){if(this.multipleImgMode)for(let e=this.imgSelectedList.length-1;e>-1;e--)-1!==t.indexOf(this.imgSelectedList[e].id_file)&&this.removeImgSelectedByIndex(e);else this.imgSelectedList=[]}removeAllImgSelected(){this.imgSelectedList.length=0,this.emitImgSelectionChange()}setMultipleImgMode(t){this.multipleImgMode=t}initImgSelectedList(t){t?this.imgSelectedList=t:this.imgSelectedList&&this.imgSelectedList.length?this.imgSelectedList.splice(0,this.imgSelectedList.length):this.imgSelectedList=[]}emitImgListLoading(t){this.imgListLoading.next(t)}getImgListLoadingEventListner(){return this.imgListLoading.asObservable()}moveImgOrder(t){this.imgSelectedList.splice(t.currentIndex,0,this.imgSelectedList.splice(t.previousIndex,1)[0]),this.emitImgSelectionChange()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class lP{}let cP=(()=>{let t=class{constructor(t){this.http=t,this.params=(new Og).set("limit","20").set("page","1"),this.pageFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!0,pageficheProduct:!0},this.angularFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!1,pageficheProduct:!0},this.wiziblockConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1},this.simpleWithButtonOpenerConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!0},this.fullWindowConfig={stateDisplayed:"window",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1}}setApiConfig(t,e){this.imgManagerRoute=t,this.shopToken=e}getOptionsHeaders(t){const e={headers:new Mg({Authorization:"Bearer "+this.shopToken})};return t&&(this.getParams(t),e.params=this.params),e}getShopImgList(t){return this.http.get(this.imgManagerRoute+"/images",this.getOptionsHeaders(t))}getShopTotalImgList(t){return this.http.get(this.imgManagerRoute+"/total/image",this.getOptionsHeaders(t))}getShopImg(t){return this.http.get(`${this.imgManagerRoute}/images/${t}`,this.getOptionsHeaders())}getParams(t){this.params=new Og,this.params=this.params.set("id_file:sort","desc");for(const e in t)this.params=this.params.set(e,t[e])}uploadFile(t){return this.http.post(this.imgManagerRoute+"/images/template",t,this.getOptionsHeaders())}uploadFileByUrl(t,e){return this.http.post(this.imgManagerRoute+"/images/template",{url:t,fileName:e},this.getOptionsHeaders())}replaceImg(t,e){return this.http.put(`${this.imgManagerRoute}/images/${e}/replace`,{imageBase64:t,type:"RAW"},this.getOptionsHeaders())}changeImgName(t,e){return this.http.put(`${this.imgManagerRoute}/images/${e}?file_name=${t}`,null,this.getOptionsHeaders())}removeImg(t){return this.http.delete(`${this.imgManagerRoute}/images/${t}`,this.getOptionsHeaders())}removeMultipleImg(t){return this.http.post(this.imgManagerRoute+"/images-multiple-delete",{id_array:t},this.getOptionsHeaders())}getImgManagerDisplayConfig(t){switch(t){case"window":return this.fullWindowConfig;case"wizi-block":return this.wiziblockConfig;case"fiche-product":return this.pageFicheProductConfig;case"simple-with-button":return this.simpleWithButtonOpenerConfig;case"angular-fiche-product":return this.angularFicheProductConfig;default:return}}getAllImgManagerDisplayConfig(){return[this.fullWindowConfig,this.wiziblockConfig,this.pageFicheProductConfig,this.simpleWithButtonOpenerConfig]}};return t.\u0275fac=function(e){return new(e||t)(Yt(Wg))},t.\u0275prov=ht({factory:function(){return new t(Yt(Wg))},token:t,providedIn:"root"}),t})(),hP=(()=>{let t=class{constructor(){this.imgCDNConfig=null}setImgCDNConfig(t){this.imgCDNConfig=t}getUrlImg(t){const e=Object.keys(this.imgCDNConfig).filter(e=>new RegExp(t,"i").test(e))[0];return this.imgCDNConfig[e]}getAllSize(){return Object.keys(this.imgCDNConfig).map(t=>t.match(/_(\w+)_/)[1])}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),uP=(()=>{let t=class{constructor(t,e){this.imgManagerService=t,this.imgCDNService=e}setExternalConfig(t){this.externalConfig=t,this.imgManagerService.setApiConfig(t.api.image_manager_route,t.api.shop_token),this.imgCDNService.setImgCDNConfig(t.imgCDNConfig)}getCanvaApiURL(){return this.externalConfig.api.canva_url}getCanvaApiToken(){return this.externalConfig.api.canva_token}getRouteAssets(){return this.externalConfig.api.assets_route}getPexelsApiURL(){return this.externalConfig.api.pexels_route}getPexelsApiToken(){return this.externalConfig.api.pexels_token}getShopCategory(){return this.externalConfig.api.shop_category}};return t.\u0275fac=function(e){return new(e||t)(Yt(cP),Yt(hP))},t.\u0275prov=ht({factory:function(){return new t(Yt(cP),Yt(hP))},token:t,providedIn:"root"}),t})(),dP=(()=>{let t=class{constructor(){this.userdisplayPreference="WzImgManagerListDisplayed"}setUserDisplayPreference(t){localStorage.setItem(this.userdisplayPreference,""+t)}getUserDisplayPreference(){return"true"==localStorage.getItem(this.userdisplayPreference)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),pP=(()=>{let t=class{constructor(t){this.externalConfigService=t,this.bindExpectedImgSizeEvent=new wg(null),this.bindExpectedSizeDone=this.bindExpectedImgSizeEvent.asObservable()}setCanvaApiConfig(){this.canvaApiURL=this.externalConfigService.getCanvaApiURL(),this.canvaApiKey=this.externalConfigService.getCanvaApiToken()}getCanvaLogo(){return this.externalConfigService.getRouteAssets()+"canva/icon_canva.svg"}bindEventExepectedImgSizeChange(){return this.bindExpectedSizeDone}expectedImgSizesChange(t){this.bindExpectedImgSizeEvent.next(t)}getCanvaApi(){return this.canvaApiURL&&this.canvaApiKey||this.setCanvaApiConfig(),new b(t=>{this.loadCanva().subscribe({complete:()=>{this.canvaApi&&Canva.DesignButton?(t.next(this.canvaApi),t.complete()):this.initializeCanva(t)}})})}initializeCanva(t){Canva.DesignButton&&Canva.DesignButton.initialize({apiKey:this.canvaApiKey}).then(e=>{this.canvaApi=e,t.next(this.canvaApi),t.complete()})}loadCanva(){return new b(t=>{this.canvaApi?t.complete():this.loadCanvaScript(t)})}loadCanvaScript(t){const e=document.createElement("script");e.src=this.canvaApiURL,e.type="text/javascript",e.async=!1,e.charset="utf-8",e.onload=()=>{t.complete()},document.getElementsByTagName("head")[0].appendChild(e)}};return t.\u0275fac=function(e){return new(e||t)(Yt(uP))},t.\u0275prov=ht({factory:function(){return new t(Yt(uP))},token:t,providedIn:"root"}),t})(),gP=(()=>{let t=class{constructor(){this.imgToEditEvent=new I,this.imgRemoved=new I,this.imgAdded=new I,this.listDisplayedChange=new I}emitImgRemoved(t){this.imgRemoved.next(t)}getImgRemovedEventListner(){return this.imgRemoved.asObservable()}emitImgToEdit(t){this.imgToEditEvent.next(t)}getImgToEditEventListner(){return this.imgToEditEvent.asObservable()}emitImgAdded(t){this.imgAdded.next(t)}getImgAddedEventListner(){return this.imgAdded.asObservable()}emitlistDisplayedChange(t){this.listDisplayedChange.next(t)}getlistDisplayedChange(){return this.listDisplayedChange.asObservable()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),fP=(()=>{let t=class{constructor(){this.documentEventSource=new I,this.documentEventDone=this.documentEventSource.asObservable(),this.documentScrollSource=new I,this.documentScrollDone=this.documentScrollSource.asObservable()}documentEvent(){return this.documentEventDone}setDocumentEventListener(){document.body.addEventListener("click",t=>{this.documentEventSource.next(t.target)})}documentScroll(){return this.documentScrollDone}setScrollEventListener(){window.onscroll=()=>{this.documentScrollSource.next(window)}}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),mP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.imgSelectionService=t,this.externalConfigService=e,this.userSettingsService=n,this.canvaService=i,this.imgEventService=s,this.domService=r,this.showSelection=!1,this.imgManagerClosed=new Zl,this._multipleImgMode=!1,this._showImgManagerModule=!1,this.close=!1,this.listDisplayed=!1,this.hideTab=!1}set multipleImgMode(t){this._multipleImgMode=t,this.imgSelectionService.setMultipleImgMode(this._multipleImgMode)}get multipleImgMode(){return this._multipleImgMode}set showImgManagerModule(t){this._showImgManagerModule=t,t&&this.displaySmall()}get showImgManagerModule(){return this._multipleImgMode}onKeydownHandler(t){this.stateDisplayed&&"window"!==this.stateDisplayed&&this.onClose()}ngOnInit(){this.externalConfigService.setExternalConfig(this.externalConfig),this.imgSelectionService.setMultipleImgMode(this._multipleImgMode),this.imgSelectionService.initImgSelectedList(null),this.selectImgEvent=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{t&&t.length&&this.checkCloseImgManager()&&this.onClose()}),this.checkUserDisplayPreference(),this.listDisplayedEvent=this.imgEventService.getlistDisplayedChange().subscribe(t=>this.listDisplayed=t),this.domService.setDocumentEventListener()}checkUserDisplayPreference(){"window"!==this.stateDisplayed&&"full"!==this.stateDisplayed||(this.listDisplayed=this.userSettingsService.getUserDisplayPreference())}setCurrentTab(t){this.hideTab="img-edition"===t}displaySmall(){"window"!==this.stateDisplayed&&setTimeout(()=>{this.stateDisplayed="small",this.addBodyBottomPaddingForModule()},10)}openSmall(){this.stateDisplayed="small",this.setBodyMainScroll(),this.listDisplayed=!1}openFull(){this.stateDisplayed="full",this.checkUserDisplayPreference(),this.hideBodyMainScroll()}onClose(){this.stateDisplayed="closed",this.hideTab=!1,this.setBodyMainScroll(),this.removeBodyBottomPaddingForModule(),setTimeout(()=>{this.imgManagerClosed.emit()},250)}onImgManagerClosed(){this.onClose()}checkCloseImgManager(){return!this.multipleImgMode&&"window"!==this.stateDisplayed}hideBodyMainScroll(){const t=document.getElementsByTagName("html")[0];this.overflowHTML||(this.overflowHTML=t.style.overflowY),t.style.overflowY="hidden"}setBodyMainScroll(){document.getElementsByTagName("html")[0].style.overflowY=this.overflowHTML?this.overflowHTML:"scroll"}addBodyBottomPaddingForModule(){const t=document.getElementsByTagName("body")[0];this.bodyPadding=this.bodyPadding?parseInt(t.style.paddingBottom):0,t.style.paddingBottom=this.bodyPadding+300+"px"}removeBodyBottomPaddingForModule(){void 0!==this.bodyPadding&&(document.getElementsByTagName("body")[0].style.paddingBottom=this.bodyPadding+"px",this.bodyPadding=0)}changeDisplayTab(){this.stateDisplayed="full"}ngOnDestroy(){this.selectImgEvent.unsubscribe(),this.canvaService.expectedImgSizesChange(null),this.listDisplayedEvent.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP),Oo(uP),Oo(dP),Oo(pP),Oo(gP),Oo(fP))},t.\u0275cmp=pe({type:t,selectors:[["wz-img-manager"]],hostBindings:function(t,e){1&t&&$o("keydown.escape",(function(t){return e.onKeydownHandler(t)}),!1,Hn)},inputs:{showSelection:"showSelection",multipleImgMode:"multipleImgMode",showImgManagerModule:"showImgManagerModule",stateDisplayed:"stateDisplayed",externalConfig:"externalConfig"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:3,vars:2,consts:[[1,"wz-img-manager"],["class","wz-img-manager__selectionHandler",4,"ngIf"],["class","wz-img-manager__module",3,"ngClass",4,"ngIf"],[1,"wz-img-manager__selectionHandler"],[1,"wz-img-manager__module",3,"ngClass"],["class","wz-img-manager__module__header",4,"ngIf"],[1,"wz-img-manager__module__content","wz-block",3,"ngClass"],[3,"stateDisplayed","multipleImgMode","listDisplayed","imgManagerClosed","switchDisplayWindow","currentTab"],[1,"wz-img-manager__module__header"],[3,"click",4,"ngIf"],[3,"click"],[1,"fal","fa-compress-alt"],[1,"fal","fa-expand-alt"],[1,"fal","fa-times"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,oI,2,0,"div",1),Do(2,gI,4,13,"div",2),Fo()),2&t&&(ws(1),Lo("ngIf",e.showSelection),ws(1),Lo("ngIf",e._showImgManagerModule))},directives:function(){return[Xh,DP,Gh,CP]},encapsulation:2}),t})();const _P=Fu("easeInOut",[Bu("in",ju({opacity:1})),Wu(":enter",[ju({opacity:0}),Vu("0.5s ease-in-out")])]);let vP=(()=>{let t=class{constructor(t,e){this.nwbAlertService=t,this.translateService=e,this.actionMsg="ImgManager.alert.action",this.alertConfig={message:"",duration:5e3}}openAlert(t){this.closePreviousAlert(),this.translateService.get(t).subscribe(e=>{this.alertConfig.message=e,this.setAlertColor(t),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}openAlertWithBackendRespons(t,e){this.translateService.get(t).subscribe(t=>{this.alertConfig.message=t,this.alertConfig.message+="<br/>"+JSON.parse(e).message,this.closePreviousAlert(),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}closePreviousAlert(){this.alertRefComponent&&this.alertRefComponent.dismiss()}setAlertColor(t){const e=/error/i.test(t);this.alertConfig.color=e?"is-danger":"is-success"}};return t.\u0275fac=function(e){return new(e||t)(Yt(Fw),Yt(Ff))},t.\u0275prov=ht({factory:function(){return new t(Yt(Fw),Yt(Ff))},token:t,providedIn:"root"}),t})(),yP=(()=>{let t=class{constructor(t,e,n){this.imgManager=t,this.alertService=e,this.externalConfigService=n,this.files=[],this.isLoading=!1,this.imgUploaded=new Zl,this.loadingText="ImgManager.ImgUpload.loading",this.errorUploadingImg="ImgManager.ImgUpload.errorUploadingImg",this.errorNotImg="ImgManager.ImgUpload.errorNotImg"}ngOnInit(){this.assetsIcon=this.getAssets()}filesChangeByClick(t){this.uploadFile(t.target.files)}getAssets(){return this.externalConfigService.getRouteAssets()+"img/icon_picture.svg"}filesChangeByDragAndDrop(t){this.removeDragAndDropStyle(),this.uploadFile(t)}uploadFile(t){if(t&&!t.length)return;this.isLoading=!0;const e=[];for(const n of t){const t=new FormData;t.append("image",n,n.name),this.isFileImage(n.type)?e.push(this.imgManager.uploadFile(t)):(this.alertService.openAlert(this.errorNotImg),this.isLoading=!1)}Cg(e).subscribe(t=>{this.onImgUpload(t),this.isLoading=!1},t=>{this.alertService.openAlert(this.errorUploadingImg),this.isLoading=!1})}onImgUpload(t){this.imgUploaded.emit(t)}isFileImage(t){return"image"===t.split("/")[0]}removeDragAndDropStyle(){this.dragAndDropBox.nativeElement.style=""}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(vP),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["img-upload"]],viewQuery:function(t,e){var n;1&t&&uc(fI,!0),2&t&&cc(n=fc())&&(e.dragAndDropBox=n.first)},inputs:{stateDisplayed:"stateDisplayed"},outputs:{imgUploaded:"imgUploaded"},decls:8,vars:9,consts:[["appDragDrop","",1,"img-upload","has-text-centered",3,"ngClass","click","onFileDropped"],["dragAndDropBox",""],["hidden","","type","file","accept","image/*","multiple","",3,"change"],["fileInput",""],[1,"img-upload__container",3,"ngClass"],[1,"img-upload__container__wrapper"],["class","img-upload__container__loader",4,"ngIf"],[4,"ngIf"],[1,"img-upload__container__loader"],[3,"small","position"],[1,"blueColor","img-upload__container__dropImgIconDiv"],["alt","icon picture",3,"src",4,"ngIf"],[1,"img-upload__container__or"],[1,"img-upload__container__text"],[1,"fal","fa-file-upload"],["alt","icon picture",3,"src"]],template:function(t,e){if(1&t){const t=Bo();zo(0,"div",0,1),$o("click",(function(){return Xe(t),Ao(3).click()}))("onFileDropped",(function(t){return e.filesChangeByDragAndDrop(t)})),zo(2,"input",2,3),$o("change",(function(t){return e.filesChangeByClick(t)})),Fo(),zo(4,"div",4),zo(5,"div",5),Do(6,mI,2,2,"div",6),Do(7,vI,13,10,"ng-container",7),Fo(),Fo(),Fo()}2&t&&(Lo("ngClass",Fl(5,yI,"small"===e.stateDisplayed))("@easeInOut","in"),ws(4),Lo("ngClass",Fl(7,bI,"small"===e.stateDisplayed)),ws(2),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading))},directives:function(){return[SP,Gh,Xh,ok]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),bP=(()=>{let t=class{constructor(t,e){this.imgManager=t,this.alertService=e,this.picturesList=[],this.pictureNameChanged=new I,this.errorRenameImg="ImgManager.ImgList.errorRenameImg",this.msgSavingImgName="ImgManager.ImgLib.savingImgName",this.msgImgNameSaved="ImgManager.ImgLib.imgNameSaved",this.setEvents()}setPicturesList(t){this.picturesList=t}onRenamePicture(t){this.pictureNameChanged.next(t)}setEvents(){this.pictureNameChanged.pipe(hC(800)).subscribe(t=>{this.renamePicture(t)})}renamePicture(t){const e=this.getPictureById(t.id);e?(this.alertService.openAlert(this.msgSavingImgName),this.imgManager.changeImgName(e.display_name,e.id_file).subscribe(t=>{e.display_name=t.display_name,this.alertService.openAlert(this.msgImgNameSaved)},n=>{e.display_name=t.previousName,this.alertService.openAlert(this.errorRenameImg)})):this.alertService.openAlert(this.errorRenameImg)}getPictureById(t){if(this.picturesList){for(const e of this.picturesList)if(e.id_file===t)return e;return null}}};return t.\u0275fac=function(e){return new(e||t)(Yt(cP),Yt(vP))},t.\u0275prov=ht({factory:function(){return new t(Yt(cP),Yt(vP))},token:t,providedIn:"root"}),t})(),wP=(()=>{let t=class{constructor(t,e){this.imgSelectionService=t,this.renamePictureService=e,this.picturesList=[],this.multipleImgMode=!1,this.switchDisplayWindow=new Zl}ngOnInit(){this.setEvents()}onImgUploaded(t){t.forEach(t=>this.picturesList.push(t)),this.renamePictureService.setPicturesList(this.picturesList)}onToggleSelectImg(t){"window"!==this.stateDisplayed&&(this.picturesList[t].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[t].id_file),this.picturesList[t].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[t]),this.picturesList[t].selected=!0))}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}onRenamePicture(t){this.renamePictureService.onRenamePicture(t)}setEvents(){this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{const e=[];t.map(t=>e.push(t.id_file));for(const n of this.picturesList)-1===e.indexOf(n.id_file)&&(n.selected=!1)})}ngOnDestroy(){this.imgSelectionChange.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP),Oo(bP))},t.\u0275cmp=pe({type:t,selectors:[["upload-list"]],inputs:{multipleImgMode:"multipleImgMode",stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:45,vars:25,consts:[[1,"upload-list",3,"ngClass"],[1,"upload-list__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"upload-list__box"],[1,"upload-list__box__container"],[1,"mainColor"],[4,"ngIf"],[1,"dropdown","is-hoverable"],[1,"dropdown-trigger"],["aria-haspopup","true","aria-controls","dropdown-menuInfoSeo",1,"fas","fa-info-circle"],["id","dropdown-menuInfoSeo","role","menu",1,"dropdown-menu","dropDownShadow"],[1,"dropdown-content"],[1,"dropdown-item"],[1,"fal","fa-check"],[1,"upload-list__box__cards"],["class","upload-list__box__cards__card",4,"ngFor","ngForOf"],[1,"upload-list__box__cards__card"],[3,"picture","stateDisplayed","toggleImgSelected","switchDisplayWindow","pictureNameChange"],[1,"upload-list__box__cards__card__btnBox"],[1,"button","success","upload-list__box__cards__card__btnBox__btn"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"ng-scrollbar",1,2),zo(3,"div",3),zo(4,"div",4),zo(5,"div"),zo(6,"p",5),wa(7),Do(8,wI,3,3,"ng-container",6),Do(9,CI,3,3,"ng-container",6),Fo(),zo(10,"div",7),zo(11,"div",8),Vo(12,"i",9),Fo(),zo(13,"div",10),zo(14,"div",11),zo(15,"div",12),zo(16,"p"),wa(17),ql(18,"translate"),Fo(),zo(19,"p"),Vo(20,"i",13),wa(21," 100%"),Fo(),Fo(),zo(22,"div",12),zo(23,"p"),wa(24),ql(25,"translate"),Fo(),zo(26,"p"),Vo(27,"i",13),wa(28," 100%"),Fo(),Fo(),zo(29,"div",12),zo(30,"p"),wa(31),ql(32,"translate"),Fo(),zo(33,"p"),Vo(34,"i",13),wa(35," 100%"),Fo(),Fo(),zo(36,"div",12),zo(37,"p"),wa(38),ql(39,"translate"),Fo(),zo(40,"p"),Vo(41,"i",13),wa(42," 100%"),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),zo(43,"div",14),Do(44,SI,5,2,"div",15),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Fl(20,EI,"small"===e.stateDisplayed))("@easeInOut","in"),ws(1),Lo("visibility","native")("ngClass",Vl(22,II,"small"===e.stateDisplayed,"window"===e.stateDisplayed)),ws(6),Sa(" ",e.picturesList?e.picturesList.length:""," "),ws(1),Lo("ngIf",e.picturesList&&e.picturesList.length>1),ws(1),Lo("ngIf",e.picturesList&&1===e.picturesList.length),ws(8),Ca(Gl(18,12,"ImgManager.UploadList.seo.rezise")),ws(7),Ca(Gl(25,14,"ImgManager.UploadList.seo.webp")),ws(7),Ca(Gl(32,16,"ImgManager.UploadList.seo.cdn")),ws(7),Ca(Gl(39,18,"ImgManager.UploadList.seo.lazyloading")),ws(6),Lo("ngForOf",e.picturesList))},directives:function(){return[Gh,zC,Xh,Qh,PP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),CP=(()=>{let t=class{constructor(t,e,n){this.imgEventEditService=t,this.alertService=e,this.route=n,this.multipleImgMode=!1,this.listDisplayed=!1,this.imgManagerClosed=new Zl,this.currentTab=new Zl,this.switchDisplayWindow=new Zl,this.tabs=[{name:"ImgManager.Tabs.addImg",value:"img-upload",selected:!0,id:0},{name:"ImgManager.Tabs.imgLib",value:"images-view",id:1},{name:"ImgManager.Tabs.freeImgLib",value:"pexels-lib",id:2},{name:"ImgManager.Tabs.Editor",value:"img-edition",hide:!0,id:3}],this.tabActive=this.tabs[0],this.editTab=!1,this.imgUpload=!1,this.snackBarNewVersionConfig={message:"",duration:3e3}}ngOnInit(){this.imgEventEditService.getImgToEditEventListner().subscribe(t=>{this.tabActive=this.tabs[3],this.imgToEdit=t,this.editTab=!0,this.currentTab.emit(this.tabs[3])})}toggleTabs(t){this.imgUpload=!1,this.editTab=!1,this.tabActive=t}onImgUploaded(t){this.imgUpload=!0,this.imgUploadedComponent.onImgUploaded(t)}onEditClosed(t){this.editTab=!1,this.toggleTabs(this.tabs[1]),t&&this.alertService.openAlert(t),this.currentTab.emit("close")}onShowImgUploaded(){this.tabActive=this.tabs[1]}switchDisplayWindowImgView(){this.switchDisplayWindow.emit(!0)}switchRouterLink(t){}onImgManagerClosed(){this.imgManagerClosed.emit()}};return t.\u0275fac=function(e){return new(e||t)(Oo(gP),Oo(vP),Oo(Ab))},t.\u0275cmp=pe({type:t,selectors:[["img-tabs"]],viewQuery:function(t,e){var n;1&t&&uc(xI,!0),2&t&&cc(n=fc())&&(e.imgUploadedComponent=n.first)},inputs:{multipleImgMode:"multipleImgMode",listDisplayed:"listDisplayed",stateDisplayed:"stateDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed",currentTab:"currentTab",switchDisplayWindow:"switchDisplayWindow"},decls:25,vars:36,consts:[[1,"img-tabs",3,"ngClass"],[1,"wrapper-tabs"],[1,"tabs",3,"ngClass"],[1,"is-active",3,"ngClass","click"],[3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[1,"img-tabs__canva",3,"ngClass"],[3,"stateDisplayed","showImgUploaded"],[1,"select-mobile-page"],["name","tabs",3,"ngModel","items","ngModelChange"],["class","columns img-tabs__tabsFirst",3,"ngClass",4,"ngIf"],["class","columns img-tabs__tabsSecond",4,"ngIf"],["class","columns img-tabs__tabsThird",4,"ngIf"],["class","columns img-tabs__tabsEdit",4,"ngIf"],[3,"ngClass"],[1,"columns","img-tabs__tabsFirst",3,"ngClass"],[1,"column","img-tabs__tabsFirst__upload"],[3,"stateDisplayed","imgUploaded"],[1,"column","img-tabs__tabsFirst__list",3,"ngClass"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow",4,"ngIf"],[3,"hidden"],[3,"stateDisplayed","tabDisplayed","multipleImgMode","switchDisplayWindow"],["imgUploadedImg",""],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsSecond"],[1,"column"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsThird"],[1,"columns","img-tabs__tabsEdit"],[3,"stateDisplayed","imgToEdit","editClosed"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div",2),zo(3,"ul"),zo(4,"li",3),$o("click",(function(){return e.toggleTabs(e.tabs[0])})),zo(5,"a"),wa(6),ql(7,"translate"),Fo(),Fo(),zo(8,"li",4),$o("click",(function(){return e.toggleTabs(e.tabs[1])})),zo(9,"a"),wa(10),ql(11,"translate"),Fo(),Fo(),zo(12,"li",4),$o("click",(function(){return e.toggleTabs(e.tabs[2])})),zo(13,"a"),wa(14),ql(15,"translate"),Fo(),Fo(),Do(16,PI,4,6,"li",5),Fo(),zo(17,"div",6),zo(18,"canva-btn",7),$o("showImgUploaded",(function(){return e.onShowImgUploaded()})),Fo(),Fo(),Fo(),zo(19,"div",8),zo(20,"wac-select",9),$o("ngModelChange",(function(t){return e.tabActive=t})),Fo(),Fo(),Fo(),Do(21,AI,8,13,"div",10),Do(22,OI,3,5,"div",11),Do(23,RI,3,1,"div",12),Do(24,LI,3,2,"div",13),Fo()),2&t&&(Lo("ngClass",Fl(23,NI,"small"===e.stateDisplayed)),ws(2),Lo("ngClass",Vl(25,zI,"window"!==e.stateDisplayed,"window"===e.stateDisplayed&&e.tabActive.value===e.tabs[3].value)),ws(2),Lo("ngClass",Fl(28,TI,e.tabActive.value===e.tabs[0].value)),ws(2),Ca(Gl(7,17,e.tabs[0].name)),ws(2),Lo("ngClass",Fl(30,TI,e.tabActive.value===e.tabs[1].value)),ws(2),Ca(Gl(11,19,e.tabs[1].name)),ws(2),Lo("ngClass",Fl(32,TI,e.tabActive.value===e.tabs[2].value)),ws(2),Ca(Gl(15,21,e.tabs[2].name)),ws(2),Lo("ngIf",e.editTab),ws(1),Lo("ngClass",Fl(34,FI,"window"===e.stateDisplayed)),ws(1),Lo("stateDisplayed",e.stateDisplayed),ws(2),Lo("ngModel",e.tabActive)("items",e.tabs),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[0].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[1].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[2].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[3].value))},directives:function(){return[Gh,Xh,MP,dk,Zf,Km,yP,wP,VP,xP,kP]},pipes:function(){return[Vf]},encapsulation:2}),t})(),SP=(()=>{let t=class{constructor(){this.onFileDropped=new Zl,this.background="#fff",this.opacity="1"}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.background="#f5f5f5",this.opacity="0.8"}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.background="#fff",this.opacity="1"}ondrop(t){t.preventDefault(),t.stopPropagation(),this.background="#f5f5f5",this.opacity="1";const e=t.dataTransfer.files;e.length>0&&this.onFileDropped.emit(e)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["","appDragDrop",""]],hostVars:4,hostBindings:function(t,e){1&t&&$o("dragover",(function(t){return e.onDragOver(t)}))("dragleave",(function(t){return e.onDragLeave(t)}))("drop",(function(t){return e.ondrop(t)})),2&t&&aa("background-color",e.background)("opacity",e.opacity)},outputs:{onFileDropped:"onFileDropped"}}),t})(),EP=(()=>{let t=class{constructor(t,e,n){this.http=t,this.externalConfigService=e,this.translateService=n,this.languages={fr:"fr-FR",en:"en-US",it:"it-IT",es:"es-ES"},this.setLang(this.translateService.currentLang),this.translateService.onLangChange.subscribe(t=>{this.setLang(t.lang)})}setLang(t){this.lang=this.languages[t]?this.languages[t]:"fr-FR"}searchOnPexels(t,e,n){this.apiBaseUrl&&!this.apiKey||(this.apiBaseUrl=this.externalConfigService.getPexelsApiURL(),this.apiKey=this.externalConfigService.getPexelsApiToken());const i={headers:new Mg({Authorization:"Bearer "+this.apiKey})};let s;if(t&&!/^\s*$/.test(t))s=`/search?query=${t}&per_page=${e}&page=${n}&locale=${this.lang}`;else{const t=this.externalConfigService.getShopCategory();s=t&&"other"!==t&&"btob"!==t?`/search?query=${t}&per_page=${e}&page=${n}&locale=en-US`:`/curated?per_page=${e}&page=${n}`}return this.http.get(this.apiBaseUrl+s,i).pipe(z(t=>t))}};return t.\u0275fac=function(e){return new(e||t)(Yt(Wg),Yt(uP),Yt(Ff))},t.\u0275prov=ht({factory:function(){return new t(Yt(Wg),Yt(uP),Yt(Ff))},token:t,providedIn:"root"}),t})();const IP=Fu("listAnimation",[Wu(":enter, * => 0, * => -1",[]),Wu(":increment",[$u(":enter",[ju({opacity:0,transform:"translateY(100px)"}),qu(50,[Vu("500ms cubic-bezier(0.35, 0, 0.25, 1)",ju({opacity:1,transform:"none"}))])],{optional:!0})])]);let xP=(()=>{let t=class{constructor(t,e,n,i){this.wzImgLibService=t,this.imgManager=e,this.alertService=n,this.translateService=i,this.searchValue="",this.disableSearch=!1,this.showImgUploaded=new Zl,this.perPage=30,this.searchUpdated=new I,this.nbResult=0,this.currentPage=1,this.isLoading=!0,this.initComponent=!0,this.photosColumns=[],this.nbColumuns=6,this.responsiveColumns=[1250,1050,750,500],this.outerElement=null,this.uploadingImg="ImgManager.PexelLib.uploadingImg",this.untitled="ImgManager.PexelLib.untitled",this.successUploadPhoto="ImgManager.PexelLib.successImport",this.errorUploadPhoto="ImgManager.PexelLib.errorUploadPhoto",this.errorRetrievePhotos="ImgManager.PexelLib.errorRetrievePhotos",this.subs=[]}set content(t){this.outerElement=t}ngOnInit(){}ngAfterViewInit(){this.oldSearchValue=this.searchValue,this.isLoading=!1,this.setNbColumnsToDisplayPhoto(),this.setPhotosColumns(),this.search()}setNbColumnsToDisplayPhoto(){const t=this.outerElement.nativeElement.offsetWidth;"window"!==this.stateDisplayed&&(this.nbColumuns=8),this.responsiveColumns.forEach(e=>{t<e&&this.nbColumuns--})}onSearchNameChanged(){this.onSearchChange()}onBottomReached(){this.scrollHandler()}onSearchChange(){this.search()}search(){if(this.isLoading)return;if(this.searchValue!==this.oldSearchValue&&this.resetSearch(),this.nbResult&&this.nbResult<=(this.currentPage-1)*this.perPage)return;this.isLoading=!0;const t=this.wzImgLibService.searchOnPexels(this.searchValue,this.perPage,this.currentPage).subscribe(t=>{this.wzImgLibDto=t,this.nbResult=this.wzImgLibDto.total_results,this.nbResult&&t.photos.forEach(t=>{const e=this.getBestColumn();this.photosColumns[e].height+=t.height/t.width*1e3,this.photosColumns[e].photos.push(t)}),this.isLoading=!1,this.initComponent=!1},t=>{this.isLoading=!1,this.initComponent=!1,this.alertService.openAlert(this.errorRetrievePhotos)});this.subs.push(t)}scrollHandler(){if(this.isLoading)return;const t=this.getBestColumn(),e=this.photosColumns[t].photos[this.photosColumns[t].photos.length-1];e&&document.querySelector('img[src="'+e.src.medium+'"]')&&(this.isLoading||(this.currentPage+=1,this.search()))}setPhotosColumns(){for(let t=0;t<this.nbColumuns;t++)this.photosColumns.push({height:0,photos:[]})}getBestColumn(){const t={index:0,height:this.photosColumns[0].height};return this.photosColumns.forEach((e,n)=>{t.height>e.height&&(t.index=n,t.height=e.height)}),t.index}resetSearch(){this.oldSearchValue=this.searchValue,this.photosColumns=[],this.currentPage=1,this.setPhotosColumns()}uploadPhoto(t,e){t.uploading=!0;const n=this.imgManager.uploadFileByUrl(e,this.translateService.instant(this.untitled)).subscribe(e=>{t.uploading=!1,t.uploaded=!0,this.alertService.openAlert(this.successUploadPhoto)},e=>{t.uploading=!1,406===e.error.code&&e.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadPhoto,e.error.message):this.alertService.openAlert(this.errorUploadPhoto)});this.alertService.openAlert(this.uploadingImg),this.subs.push(n)}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(Oo(EP),Oo(cP),Oo(vP),Oo(Ff))},t.\u0275cmp=pe({type:t,selectors:[["pexels-lib"]],viewQuery:function(t,e){var n;1&t&&uc(VI,!0),2&t&&cc(n=fc())&&(e.content=n.first)},inputs:{searchValue:"searchValue",disableSearch:"disableSearch",stateDisplayed:"stateDisplayed"},outputs:{showImgUploaded:"showImgUploaded"},decls:8,vars:9,consts:[[1,"pexels-lib"],["outerElement",""],["reachedOffset","50",1,"pexels-lib__scroll",3,"visibility","ngClass","reachedBottom"],["scrollable",""],["class","pexels-lib__search",3,"ngClass",4,"ngIf"],["class","pexels-lib__wrapper",4,"ngIf"],[4,"ngIf"],["class","pexels-lib__alert",4,"ngIf"],[1,"pexels-lib__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"pexels-lib__wrapper"],["class","pexels-lib__wrapper__result-nb",4,"ngIf"],[1,"pexels-lib__wrapper__result"],["class","pexels-lib__wrapper__result__column",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result-nb"],[1,"pexels-lib__wrapper__result__column"],["class","pexels-lib__wrapper__result__column__element",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result__column__element"],[1,"pexels-lib__wrapper__result__column__element__img",3,"alt","src"],[1,"pexels-lib__wrapper__result__column__element__wrapper"],[1,"pexels-lib__wrapper__result__column__element__wrapper__infos"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],["aria-haspopup","true","aria-controls","dropdown-menu",1,"button","pexels-lib__wrapper__result__column__element__wrapper__button"],[3,"click",4,"ngIf"],["id","dropdown-menu","role","menu",1,"dropdown-menu","pexels-lib__wrapper__result__column__element__wrapper__dropdown"],[1,"dropdown-content"],[1,"dropdown-content__wrapper"],[1,"dropdown-item",3,"click"],[1,"fal","fa-check","iPortrait"],[1,"fal","fa-check","iLandscape"],[1,"fal","fa-check","iOriginal"],[3,"click"],[1,"icon","is-small"],["aria-hidden","true",1,"fas","fa-angle-up"],[1,"fal","fa-check"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"pexels-lib__alert"],[3,"warning"]],template:function(t,e){1&t&&(zo(0,"div",0,1),zo(2,"ng-scrollbar",2,3),$o("reachedBottom",(function(){return e.onBottomReached()})),Do(4,jI,3,8,"div",4),Do(5,QI,4,2,"div",5),Do(6,KI,2,0,"ng-container",6),Do(7,XI,4,5,"div",7),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(2),Lo("visibility","hover")("ngClass",Fl(7,ZI,"small"===e.stateDisplayed)),ws(2),Lo("ngIf",!e.disableSearch),ws(1),Lo("ngIf",!e.initComponent),ws(1),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading&&!e.nbResult))},directives:function(){return[zC,Gh,nS,Xh,$P,Zf,Km,Qh,AP,ok,ak]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P,IP]}}),t})(),TP=(()=>{let t=class{constructor(t,e,n,i,s,r,o,a){this.imgManager=t,this.imgSelectionService=e,this.http=n,this.imgCDNService=i,this.imgEventCardService=s,this.alertService=r,this.translateService=o,this.externalService=a,this.picturesList=[],this.picturesListChange=new Zl,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:30,currentPage:1},this.displayPexelsResults=!1,this.disable=!1,this.disableChange=new Zl,this.filtersChange=new Zl,this.pictureNameChange=new Zl,this.isLoading=!1,this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg",this.errorAlreadyUsedImg="ImgManager.ImgList.errorAlreadyUsed",this.fakeImgRoute=this.externalService.getRouteAssets()+"img/fake.png"}onToggleAllCheckBoxRow(t){this.picturesList.forEach(e=>{e.delSelected=t}),this._pictureListeChange()}onToggleDelSelection(t){this.disable||(this.picturesList[t].delSelected=!this.picturesList[t].delSelected,this._pictureListeChange())}onFiltersChange(){this.filtersChange.emit()}onEdit(t){this.imgEventCardService.emitImgToEdit(t)}onToggleSelectImg(t){this.disable||"window"===this.stateDisplayed||(this.picturesList[t].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[t].id_file),this.picturesList[t].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[t]),this.picturesList[t].selected=!0))}onRemoveImg(t){t.deleted=!0,this.imgManager.removeImg(t.id_file).subscribe(e=>{this.imgEventCardService.emitImgRemoved(t.id_file),this.imgSelectionService.removeImgSelectedById(t.id_file)},e=>{const n=409===e.status?this.errorAlreadyUsedImg:this.errorRemoveImg;t.deleted=!1,this.alertService.openAlert(n)})}onPictureNotLoading(t){t.target.src=this.fakeImgRoute}onDownloadImg(t,e){this.http.get(this.getRAWImgRoute(e),{responseType:"blob"}).subscribe(e=>{let n=URL.createObjectURL(e);this.downloadUrl(n,t),URL.revokeObjectURL(n)})}onNameChange(t){this.pictureNameChange.emit({id:t,previousName:this.previousName})}getRAWImgRoute(t){return this.imgCDNService.getUrlImg("raw")+t}_pictureListeChange(){this.picturesListChange.emit()}downloadUrl(t,e){const n=document.createElement("a");n.href=t,n.download=e,n.click()}ngDestroy(){this.getDataAPISub&&this.getDataAPISub.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275dir=ye({type:t,inputs:{picturesList:"picturesList",tableFilters:"tableFilters",displayPexelsResults:"displayPexelsResults",disable:"disable",isLoading:"isLoading",stateDisplayed:"stateDisplayed"},outputs:{picturesListChange:"picturesListChange",disableChange:"disableChange",filtersChange:"filtersChange",pictureNameChange:"pictureNameChange"}}),t})(),PP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.focusInput=!1,this.toggleImgSelected=new Zl,this.switchDisplayWindow=new Zl,this.isUploadSection=!1,this.activeConfirmDelete=!1}ngOnInit(){this.isUploadSection="img-upload"===this.tabDisplayed}displayLargeWindow(){this.switchDisplayWindow.emit(!0)}onToggleImgSelected(){this.toggleImgSelected.next()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["img-card"]],inputs:{tabDisplayed:"tabDisplayed",fullSize:"fullSize",picture:"picture",index:"index"},outputs:{toggleImgSelected:"toggleImgSelected",switchDisplayWindow:"switchDisplayWindow"},features:[Pa],decls:25,vars:37,consts:[[1,"addCssPriority",3,"ngClass"],[1,"img-card"],[1,"img-card__container",3,"ngClass"],[1,"img-card__container__img",3,"src","alt","click","error"],["class","img-card__container__config",4,"ngIf"],["class","img-card__container__config img-card__container__config--small",4,"ngIf"],[1,"img-card__container__delete",3,"ngClass"],[3,"click"],["class","img-card__container__valid",4,"ngIf"],["class","img-card__container__overlay",3,"ngClass",4,"ngIf"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"img-card__nameContainer",3,"ngClass"],["type","text",1,"wzImgMngInput","img-card__nameContainer__name",3,"ngModel","ngModelChange","focus","blur"],[1,"img-card__container__config"],[1,"size"],[1,"fal","fa-image-polaroid"],[1,"dl",3,"click"],[1,"fal","fa-download"],[1,"edit",3,"click"],[1,"far","fa-crop-alt"],[1,"deleted",3,"click"],[1,"fal","fa-times"],["class","selected",3,"click",4,"ngIf"],[1,"selected",3,"click"],["class","fal fa-square",4,"ngIf"],["class","fas fa-check-square checked",4,"ngIf"],[1,"fal","fa-square"],[1,"fas","fa-check-square","checked"],[1,"img-card__container__config","img-card__container__config--small"],[1,"show-edit",3,"click"],[1,"fas","fa-edit"],[1,"img-card__container__valid"],[1,"far","fa-check"],[1,"img-card__container__overlay",3,"ngClass"],[1,"fad","fa-folder-times",3,"click"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div",2),zo(3,"img",3),$o("click",(function(){return e.onToggleImgSelected()}))("error",(function(t){return e.picture.imgNotLoaded=!0,e.onPictureNotLoading(t)})),ql(4,"imgSrc"),Fo(),Do(5,nx,21,12,"div",4),Do(6,ix,3,0,"div",5),zo(7,"div",6),zo(8,"span"),wa(9),ql(10,"translate"),Fo(),zo(11,"div"),zo(12,"button",7),$o("click",(function(){return e.activeConfirmDelete=!1})),wa(13),ql(14,"translate"),Fo(),zo(15,"button",7),$o("click",(function(){return e.onRemoveImg(e.picture),e.activeConfirmDelete=!1})),wa(16),ql(17,"translate"),Fo(),Fo(),Fo(),Do(18,sx,5,3,"div",8),Do(19,ox,2,3,"div",9),Do(20,ax,1,0,"span",10),Fo(),zo(21,"div",11),zo(22,"input",12),$o("ngModelChange",(function(t){return e.picture.display_name=t}))("ngModelChange",(function(){return e.onNameChange(e.picture.id_file)}))("focus",(function(){return e.previousName=e.picture.display_name,e.focusInput=!0}))("blur",(function(){return e.focusInput=!1})),Fo(),zo(23,"span"),wa(24),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("@easeInOut","in")("ngClass",Fl(26,lx,e.fullSize)),ws(2),Lo("ngClass",Ul(28,cx,"small"===e.stateDisplayed||e.isUploadSection,e.picture.selected,e.picture.deleted)),ws(1),Lo("src",Yl(4,17,e.picture.file_name,"400"),Ji)("alt",e.picture.display_name),ws(2),Lo("ngIf",!e.picture.deleted&&"small"!==e.stateDisplayed),ws(1),Lo("ngIf",!e.picture.deleted&&"small"===e.stateDisplayed),ws(1),Lo("ngClass",Fl(32,hx,e.activeConfirmDelete)),ws(2),Ca(Gl(10,20,"ImgManager.ImgCard.confirmDeleteImg")),ws(4),Ca(Gl(14,22,"no")),ws(3),Ca(Gl(17,24,"yes")),ws(2),Lo("ngIf","small"===e.stateDisplayed&&"img-upload"==e.tabDisplayed),ws(1),Lo("ngIf",e.picture.imgNotLoaded),ws(1),Lo("ngIf",e.picture.deleted),ws(1),Lo("ngClass",Vl(34,ux,"small"===e.stateDisplayed||e.isUploadSection,e.focusInput)),ws(1),Lo("ngModel",e.picture.display_name),ws(2),Ca(e.picture.display_name))},directives:function(){return[Gh,Xh,qf,Zf,Km,AP]},pipes:function(){return[ik,Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),kP=(()=>{let t=class{constructor(t){this.imgManagerService=t,this.editClosed=new Zl,this.isLoading=!1,this.isImgModified=!1,this.isNameModified=!1,this.currentCroppedImage="",this.msgFailSave="ImgManager.ImgEditor.msgFailSave",this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.msgSuccessEdit="Les modifications de l'image ont bien \xe9t\xe9 enregistr\xe9es."}ngOnInit(){this.previousName=this.imgToEdit.display_name}onSave(){if(this.isLoading)return;this.isLoading=!0,this.isImgModified||this.isNameModified||(this.isLoading=!1,this.onEditClosed());const t=this.imgManagerService.replaceImg(this.currentCroppedImage,this.imgToEdit.id_file),e=this.imgManagerService.changeImgName(this.imgToEdit.display_name,this.imgToEdit.id_file);this.isImgModified&&this.isNameModified?this.ranameAndReplaceImg(e,t):this.isImgModified?t.subscribe(t=>{this.isLoading=!1,this.onEditClosed(this.msgSuccessEdit)},t=>{this.isLoading=!1,this.currentCroppedImage="",this.onEditClosed(this.msgFailSave)}):(this.isNameModified&&e.subscribe(t=>{this.isLoading=!1,this.previousName=this.imgToEdit.display_name,this.onEditClosed(this.msgSuccessEdit)},t=>{this.isLoading=!1,this.imgToEdit.display_name=this.previousName,this.onEditClosed(this.msgFailSave)}),this.isNameModified=!1)}onEditClosed(t){this.editClosed.emit(t)}onRestartEdit(){this.isImgModified=!1,this.isNameModified=!1,this.imgToEdit.display_name=this.previousName}onCancel(){this.onEditClosed("")}onImgCropped(t){this.currentCroppedImage=t}ranameAndReplaceImg(t,e){t.subscribe(t=>{e.subscribe(t=>{this.onEditClosed(this.msgSuccessEdit)},t=>{this.onEditClosed(this.msgFailSave)})},t=>{this.onEditClosed(this.msgFailSave)})}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP))},t.\u0275cmp=pe({type:t,selectors:[["img-editor"]],inputs:{stateDisplayed:"stateDisplayed",imgToEdit:"imgToEdit"},outputs:{editClosed:"editClosed"},decls:17,vars:22,consts:[[1,"img-editor"],[1,"img-editor__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"columns"],[1,"column","is-one-third","img-editor__infoSection"],[3,"imgToEdit","isNameModified","isNameModifiedChange"],[1,"img-editor__infoSection__actions"],[1,"button","img-editor__infoSection__actions__cancel",3,"disabled","click"],[1,"button","danger","button","img-editor__infoSection__actions__save",3,"ngClass","click"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"column","img-editor__container"],[3,"imgToEdit","isImgModified","isImgModifiedChange","currentCroppedImageChange","editClosed"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"ng-scrollbar",1,2),zo(3,"div",3),zo(4,"div",4),zo(5,"info-section",5),$o("isNameModifiedChange",(function(t){return e.isNameModified=t})),Fo(),zo(6,"div",6),zo(7,"div"),zo(8,"button",7),$o("click",(function(){return e.onCancel()})),wa(9),ql(10,"translate"),Fo(),zo(11,"div",8),$o("click",(function(){return e.onSave()})),wa(12),ql(13,"translate"),Do(14,dx,1,0,"span",9),Fo(),Fo(),Fo(),Fo(),zo(15,"div",10),zo(16,"cropper",11),$o("isImgModifiedChange",(function(t){return e.isImgModified=t}))("currentCroppedImageChange",(function(t){return e.onImgCropped(t)}))("editClosed",(function(t){return e.onEditClosed(t)})),Fo(),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(1),Lo("visibility","native")("ngClass",Ul(16,px,"full"===e.stateDisplayed,"small"===e.stateDisplayed,"window"===e.stateDisplayed)),ws(4),Lo("imgToEdit",e.imgToEdit)("isNameModified",e.isNameModified),ws(3),Lo("disabled",e.isLoading||!e.isImgModified&&!e.isNameModified),ws(1),Sa(" ",Gl(10,12,"ImgManager.ImgLib.cancel")," "),ws(2),Lo("ngClass",Fl(20,gx,e.isLoading)),ws(1),Sa(" ",Gl(13,14,"ImgManager.ImgEditor.saveBtn")," "),ws(2),Lo("ngIf",e.isLoading),ws(2),Lo("imgToEdit",e.imgToEdit)("isImgModified",e.isImgModified))},directives:function(){return[zC,Gh,NP,Xh,FP,AP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),MP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.canvaService=t,this.imgManager=e,this.wzImgEventService=n,this.translateService=i,this.alertService=s,this.renderer=r,this.showImgUploaded=new Zl,this.imgLoading=!1,this.availableFormat={"ImgManager.CanvaBtn.smallSquare":{width:500,height:500},"ImgManager.CanvaBtn.mediumSquare":{width:1e3,height:1e3},"ImgManager.CanvaBtn.bigSquare":{width:2500,height:2500}},this.openDropDownMenu=!1,this.subs=[],this.uploadingImg="ImgManager.CanvaBtn.uploadingImg",this.successUploadPhoto="ImgManager.CanvaBtn.successImport",this.errorUploadCanvaImg="ImgManager.CanvaBtn.errorUploadCanvaImg",this.errorRenameCanvaImg="ImgManager.CanvaBtn.errorRenameCanvaImg"}ngOnInit(){this.canvaLogoRouteAssets=this.canvaService.getCanvaLogo(),this.listenCanvaExpectedSize()}listenCanvaExpectedSize(){const t=this.canvaService.bindEventExepectedImgSizeChange().subscribe(t=>{t?(this.expectedWidth=parseInt(t.image_width,10),this.expectedHeight=parseInt(t.image_height,10)):(this.expectedWidth=void 0,this.expectedHeight=void 0)});this.subs.push(t)}onOpenCanva(t,e){if(this.imgLoading)return;const n=this.canvaService.getCanvaApi().subscribe(n=>{this.canvaApi=n,this.addOverflowBody(),this.createDesign(t,e)});this.subs.push(n)}createDesign(t,e){const n={type:"EtsyShopIcon",dimensions:{units:"px",width:t||void 0,height:e||void 0},publishLabel:this.translateService.instant("ImgManager.CanvaBtn.publish")};this.canvaApi.createDesign({design:n,onDesignPublish:({exportUrl:t,designTitle:e})=>this.designPublished(t,e),onDesignClose:()=>{this.removeOverflowBody()}})}designPublished(t,e){this.alertService.openAlert(this.uploadingImg),this.imgLoading=!0;const n=this.imgManager.uploadFileByUrl(t,e).subscribe(t=>{this.imgLoading=!1,this.removeOverflowBody(),this.wzImgEventService.emitImgAdded(t.id_file),this.alertService.openAlert(this.successUploadPhoto)},t=>{this.imgLoading=!1,this.removeOverflowBody(),406===t.error.code&&t.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadCanvaImg,t.error.message):this.alertService.openAlert(this.errorUploadCanvaImg)});this.subs.push(n)}addOverflowBody(){this.renderer.addClass(document.body,"ovh-canva")}removeOverflowBody(){this.renderer.removeClass(document.body,"ovh-canva")}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(Oo(pP),Oo(cP),Oo(gP),Oo(Ff),Oo(vP),Oo(Za))},t.\u0275cmp=pe({type:t,selectors:[["canva-btn"]],inputs:{stateDisplayed:"stateDisplayed"},outputs:{showImgUploaded:"showImgUploaded"},decls:24,vars:23,consts:[["wzAutoHide","",1,"canva","dropdown","is-right","is-hoverable",3,"ngClass","clickOutside"],[1,"dropdown-trigger"],["aria-controls","dropdown-menuCanva",1,"button","canva-btn",3,"click"],[1,"canva-btn__logo",3,"src"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["id","dropdown-menuCanva","role","menu",1,"dropdown-menu","dropDownShadow",3,"ngClass"],[1,"smallScroll",3,"visibility"],["scrollable",""],[1,"dropdown-content"],[1,"dropdownTitle"],[1,"infoItem"],["class","dropdown-item-wrapper",4,"ngIf"],["class","dropdown-item-wrapper",4,"ngFor","ngForOf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"dropdown-item-wrapper"],[1,"dropdown-item","expectedSizes",3,"click"],[1,"dropdown-item",3,"click"]],template:function(t,e){1&t&&(zo(0,"div",0),$o("clickOutside",(function(){return e.openDropDownMenu=!1})),zo(1,"div",1),zo(2,"div",2),$o("click",(function(){return e.openDropDownMenu=!0})),zo(3,"span"),wa(4),ql(5,"translate"),Fo(),Vo(6,"img",3),Do(7,fx,1,0,"span",4),Fo(),Fo(),zo(8,"div",5),zo(9,"ng-scrollbar",6,7),zo(11,"div",8),zo(12,"div",9),zo(13,"p"),wa(14),ql(15,"translate"),Fo(),Fo(),zo(16,"div",10),zo(17,"p"),wa(18),ql(19,"translate"),Fo(),Fo(),Uo(20),Do(21,mx,7,5,"div",11),jo(),Do(22,_x,7,5,"div",12),ql(23,"keyvalue"),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(18,vx,"small"===e.stateDisplayed,"small"!==e.stateDisplayed)),ws(4),Ca(Gl(5,10,"ImgManager.CanvaBtn.createImg")),ws(2),Lo("src",e.canvaLogoRouteAssets,Ji),ws(1),Lo("ngIf",e.imgLoading),ws(1),Lo("ngClass",Fl(21,yx,e.openDropDownMenu)),ws(1),Lo("visibility","hover"),ws(5),Ca(Gl(15,12,"ImgManager.CanvaBtn.createImg.title")),ws(4),Ca(Gl(19,14,"ImgManager.CanvaBtn.info")),ws(3),Lo("ngIf",e.expectedWidth&&e.expectedHeight),ws(1),Lo("ngForOf",Gl(23,16,e.availableFormat)))},directives:function(){return[OP,Gh,Xh,zC,Qh,AP]},pipes:function(){return[Vf,eu]},encapsulation:2}),t})(),DP=(()=>{let t=class{constructor(t){this.imgSelectionService=t,this.imgManagerClosed=new Zl,this.imgSelectedList=[],this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1,this.dragStart=!1,this.isLoading=!1,this.trashPositionIndex=0,this.trashPositionLeft="-5px"}ngOnInit(){this.getImgSelected(),this.imgSelectionService.getImgListLoadingEventListner().subscribe(t=>{this.isLoading=t})}init(){this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1}getImgSelected(){this.imgSelectedList=this.imgSelectionService.getImgSelection()}removeImg(t){this.imgSelectionService.removeImgSelectedByIndex(t)}drop(t){t.previousIndex!==t.currentIndex&&this.imgSelectionService.moveImgOrder(t)}removeImgFromSelection(t){this.imgSelectionService.removeImgSelectedByIndex(t.previousIndex)}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP))},t.\u0275cmp=pe({type:t,selectors:[["img-selection"]],inputs:{tabDisplayed:"tabDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:7,vars:5,consts:[["cdkDropList","",1,"trash",3,"cdkDropListDropped"],["unSelectList","cdkDropList"],["class","img-selection",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"img-selection",3,"ngClass"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"list_img_selection",3,"cdkDropListConnectedTo","cdkDropListDropped"],["selectionList","cdkDropList"],["class","img_box","cdkDrag","",3,"cdkDragStarted","cdkDragEnded",4,"ngFor","ngForOf"],["cdkDrag","",1,"img_box",3,"cdkDragStarted","cdkDragEnded"],["class","drag__img",3,"src","title",4,"ngIf"],[1,"delete-btn",3,"click"],[1,"drag__tooltips"],[1,"drag__img",3,"src","title"]],template:function(t,e){1&t&&(zo(0,"div",0,1),$o("cdkDropListDropped",(function(t){return e.removeImgFromSelection(t)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),Fo(),Do(5,Ix,4,7,"div",2),Do(6,xx,2,0,"ng-container",3)),2&t&&(ws(3),Ca(Gl(4,3,"ImgManager.ImgSelection.unselect")),ws(2),Lo("ngIf",!e.isLoading),ws(1),Lo("ngIf",e.isLoading))},directives:function(){return[ZS,Xh,Gh,Qh,nE,ok]},pipes:function(){return[Vf,ik]},encapsulation:2}),t})(),AP=(()=>{let t=class{constructor(t){this.currentLoading=0,this.interval=null,this.element=t,this.launchLoading()}launchLoading(){null===this.interval&&(this.currentLoading=10,this.element.nativeElement.style.width=this.currentLoading+"%",this.interval=setInterval(()=>{this.currentLoading<80&&(this.currentLoading+=Math.floor(15*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%"),this.currentLoading>=80&&this.currentLoading<95&&(this.currentLoading+=Math.floor(2*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%")},70))}ngOnDestroy(){this.interval&&(clearInterval(this.interval),this.interval=null)}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","btnLoadingAnim",""]]}),t})(),OP=(()=>{let t=class{constructor(t,e){this._elementRef=t,this.domService=e,this.forceOn=null,this.clickOutside=new Zl}ngAfterViewInit(){this.domService.documentEvent().subscribe(t=>{const e=this._elementRef.nativeElement.contains(t),n=t.getAttribute("class");if(e||null!==n&&n.includes(this.triggerElement)||this.clickOutside.emit(null),null!=this.forceOn&&null!==n){let t=!0;this.forceOn.forEach(e=>{n.includes(e)||(t=!1)}),t&&this.clickOutside.emit(null)}})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(fP))},t.\u0275dir=ye({type:t,selectors:[["","wzAutoHide",""]],inputs:{forceOn:"forceOn",triggerElement:"triggerElement"},outputs:{clickOutside:"clickOutside"}}),t})(),RP=(()=>{let t=class{constructor(){this.copied=new Zl}onClick(t){if(t.preventDefault(),!this.payload)return;let e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["","copy-clipboard",""]],hostBindings:function(t,e){1&t&&$o("click",(function(t){return e.onClick(t)}))},inputs:{payload:["copy-clipboard","payload"]},outputs:{copied:"copied"}}),t})(),LP=(()=>{let t=class{constructor(){this.disable=!1}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["dropdown"]],inputs:{disable:"disable",dropDownMenuClass:"dropDownMenuClass"},ngContentSelectors:Px,decls:6,vars:4,consts:[[1,"dropdown","dropdownWizi",3,"ngClass"],[1,"dropdown-trigger"],["role","menu",1,"dropdown-menu",3,"ngClass"],[1,"dropdown-content"]],template:function(t,e){1&t&&(Ko(Tx),zo(0,"div",0),zo(1,"div",1),Xo(2),Fo(),zo(3,"div",2),zo(4,"div",3),Xo(5,1),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Fl(2,qI,!e.disable)),ws(3),Lo("ngClass",e.dropDownMenuClass))},directives:[Gh],encapsulation:2}),t})(),NP=(()=>{let t=class{constructor(t){this.alertService=t,this._isNameModified=!1,this.isNameModifiedChange=new Zl,this.msgCopyToClipBoard="ImgManager.ImgEditor.copytoClipBoard"}set isNameModified(t){this._isNameModified=t}get isNameModified(){return this._isNameModified}ngOnInit(){this.init()}init(){this.imgName=this.imgToEdit.display_name}getFileSize(){return this.imgToEdit?Math.round(parseInt(this.imgToEdit.size)/1e3):"-"}copyToClipBoard(t){this.alertService.openAlert(this.msgCopyToClipBoard)}onNameChange(){this.isNameModifiedChange.emit(!0)}};return t.\u0275fac=function(e){return new(e||t)(Oo(vP))},t.\u0275cmp=pe({type:t,selectors:[["info-section"]],inputs:{isNameModified:"isNameModified",imgToEdit:"imgToEdit"},outputs:{isNameModifiedChange:"isNameModifiedChange"},decls:76,vars:60,consts:[[1,"img-editor__infoSection__propertyEditable"],[1,"mainColor"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertyEditable__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"],[1,"fas","fa-info-circle"],["type","text","debounceKeyUp","",1,"img-editor__infoSection__propertyEditable__input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],[3,"copy-clipboard","copied"],[1,"img-editor__infoSection__propertyEditable__span"],[1,"far","fa-copy"],[1,"img-editor__infoSection__property"],[1,"img-editor__infoSection__divider"],[1,"img-editor__infoSection__titleSEO"],[1,"img-editor__infoSection__propertySEO"],[1,"fal","fa-check"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertySEO__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"p",1),wa(2),ql(3,"translate"),zo(4,"span",2),ql(5,"translate"),Vo(6,"i",3),Fo(),Fo(),zo(7,"input",4),$o("ngModelChange",(function(t){return e.imgToEdit.display_name=t}))("onEventChange",(function(){return e.onNameChange()})),ql(8,"translate"),Fo(),Fo(),zo(9,"div",0),zo(10,"p",1),wa(11),ql(12,"translate"),Fo(),zo(13,"button",5),$o("copied",(function(t){return e.copyToClipBoard(t)})),ql(14,"imgSrc"),zo(15,"span",6),wa(16),Fo(),wa(17,"\xa0\xa0"),Vo(18,"i",7),Fo(),Fo(),zo(19,"div",8),zo(20,"p",1),wa(21),ql(22,"translate"),Fo(),zo(23,"p"),wa(24),Fo(),Fo(),zo(25,"div",8),zo(26,"p",1),wa(27),ql(28,"translate"),Fo(),zo(29,"p"),wa(30),Fo(),Fo(),Vo(31,"span",9),zo(32,"div",10),zo(33,"p",1),wa(34),ql(35,"translate"),Fo(),Fo(),zo(36,"div",11),zo(37,"p",1),wa(38),ql(39,"translate"),Fo(),zo(40,"p"),Vo(41,"i",12),wa(42,"\xa0100%"),Fo(),zo(43,"p",13),ql(44,"translate"),Vo(45,"i",3),Fo(),Fo(),zo(46,"div",11),zo(47,"p",1),wa(48),ql(49,"translate"),Fo(),zo(50,"p"),Vo(51,"i",12),wa(52,"\xa0100%"),Fo(),zo(53,"p",13),ql(54,"translate"),Vo(55,"i",3),Fo(),Fo(),zo(56,"div",11),zo(57,"p",1),wa(58),ql(59,"translate"),Fo(),zo(60,"p"),Vo(61,"i",12),wa(62,"\xa0100%"),Fo(),zo(63,"p",13),ql(64,"translate"),Vo(65,"i",3),Fo(),Fo(),zo(66,"div",11),zo(67,"p",1),wa(68),ql(69,"translate"),Fo(),zo(70,"p"),Vo(71,"i",12),wa(72,"\xa0100%"),Fo(),zo(73,"p",13),ql(74,"translate"),Vo(75,"i",3),Fo(),Fo()),2&t&&(ws(2),Sa(" ",Gl(3,27,"ImgManager.UploadList.properties.imgName")," "),ws(2),Lo("nwbToolTip",Gl(5,29,"ImgManager.ImgEditor.NameInfo"))("nwbToolTipIsMultiline",!0),ws(3),Jo("placeholder","",Gl(8,31,"ImgManager.ImgEditor.nameEx")," "),Lo("ngModel",e.imgToEdit.display_name)("debounceTime",500),ws(4),Ca(Gl(12,33,"ImgManager.UploadList.properties.imgURL")),ws(2),Lo("copy-clipboard",Yl(14,35,e.imgToEdit.file_name,"raw")),ws(3),Ca(e.imgToEdit.file_name),ws(5),Sa("",Gl(22,38,"ImgManager.UploadList.properties.imgSize"),"\xa0:"),ws(3),Ea("",e.imgToEdit.raw_height,"*",e.imgToEdit.raw_width,"px"),ws(3),Sa("",Gl(28,40,"ImgManager.UploadList.properties.imgWeight"),"\xa0:"),ws(3),Sa("",e.getFileSize(),"\xa0ko"),ws(4),Ca(Gl(35,42,"ImgManager.UploadList.seo.title")),ws(4),Ca(Gl(39,44,"ImgManager.UploadList.seo.rezise")),ws(5),Lo("nwbToolTip",Gl(44,46,"ImgManager.UploadList.seo.reziseTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(49,48,"ImgManager.UploadList.seo.webp")),ws(5),Lo("nwbToolTip",Gl(54,50,"ImgManager.UploadList.seo.webpTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(59,52,"ImgManager.UploadList.seo.cdn")),ws(5),Lo("nwbToolTip",Gl(64,54,"ImgManager.UploadList.seo.cdnTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(69,56,"ImgManager.UploadList.seo.lazyloading")),ws(5),Lo("nwbToolTip",Gl(74,58,"ImgManager.UploadList.seo.lazyloadingTooltips"))("nwbToolTipIsMultiline",!0))},directives:function(){return[Pw,rk,qf,Zf,Km,RP]},pipes:function(){return[Vf,ik]},encapsulation:2}),t})();const zP=Fu("insertRemoveAnnim",[Wu(":enter",[ju({opacity:0}),Vu("0.5s ease-in-out",ju({opacity:1}))])]);let FP=(()=>{let t=class{constructor(t){this.imgCDNService=t,this._isImgModified=!1,this.isImgModifiedChange=new Zl,this.editClosed=new Zl,this.currentCroppedImageChange=new Zl,this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.isNameModified=!1,this.isCropperReady=!1,this.currentCroppedImage="",this.isCropped=!1,this.isLoading=!1,this.isImgCropped=!1,this.isImgCroppedInitilized=!1,this.imageChangedEvent="",this.croppedImage="",this.canvasRotation=0,this.rotation=0,this.scale=1,this.showCropper=!1,this.containWithinAspectRatio=!1,this.transform={},this.resolutionConfig=[{label:"ImgManager.ImgEditor.config.origin",config:{maintainAspectRatio:!0}},{label:"ImgManager.ImgEditor.config.free",config:{maintainAspectRatio:!1},active:!0},{label:"ImgManager.ImgEditor.config.square",config:{maintainAspectRatio:!0,aspectRatio:1}},{label:"ImgManager.ImgEditor.config.Portrait",config:{maintainAspectRatio:!0,aspectRatio:3/4}},{label:"ImgManager.ImgEditor.config.landscape",config:{maintainAspectRatio:!0,aspectRatio:5/3}}],this.rotationConfig=[{label:"ImgManager.ImgEditor.config.schedule",icon:"fal fa-redo-alt",method:"rotateRight",active:!0},{label:"ImgManager.ImgEditor.config.AntiSchedule",icon:"fal fa-undo-alt",method:"rotateLeft"},{label:"ImgManager.ImgEditor.config.flipVert",icon:"fal fa-sort-alt",method:"flipVertical"},{label:"ImgManager.ImgEditor.config.flipHoriz",icon:"fal fa-exchange-alt",method:"flipHorizontal"}],this.zoomConfig=[{label:"ImgManager.ImgEditor.config.zoom",icon:"fal fa-search-plus",method:"zoomIn",active:!0},{label:"ImgManager.ImgEditor.config.dezoom",icon:"fal fa-search-minus",method:"zoomOut"}],this.imgCropperConfig={maintainAspectRatio:!1,aspectRatio:void 0}}set isImgModified(t){this._isImgModified=t,t||this.restartEdit()}get isImgModified(){return this._isImgModified}ngOnInit(){this.init()}init(){this.imgRoute=this.getRAWImgRoute(),this.imgType=this.getImgType(),this.croppedImage=null,this.setDefautAspectRatio()}getRAWImgRoute(){return this.imgCDNService.getUrlImg("raw")+this.imgToEdit.file_name}getImgType(){return this.imgToEdit.file_name?this.imgToEdit.file_name.split(".").pop():void 0}setDefautAspectRatio(){const t=parseInt(this.imgToEdit.raw_height),e=parseInt(this.imgToEdit.raw_width);this.defaultAspectRatio=t/e,this.resolutionConfig[0].config.aspectRatio=this.defaultAspectRatio,this.imgCropperConfig.aspectRatio=this.defaultAspectRatio}onEditClosed(t){this.editClosed.emit(t)}onRestart(){this.isImgModifiedChange.emit(!1)}restartEdit(){this.init(),this.resetConfCropper()}onImgModified(){this.isImgModified=!0,this.isImgModifiedChange.emit(!0)}fileChangeEvent(t){this.imageChangedEvent=t}imageCropped(t){this.detectImgCropperChange(),this.currentCroppedImage=t.base64,this.currentCroppedImageChange.emit(this.currentCroppedImage)}imageLoaded(){this.showCropper=!0}cropperReady(){this.isCropperReady=!0}loadImageFailed(){this.onEditClosed(this.msgFailLoad)}changeResolutionSize(t){this.setActiveItem(this.resolutionConfig,t),this.setCropperProperties(this.resolutionConfig[t].config)}confirmCrop(){this.imgRoute=null,this.croppedImage=this.currentCroppedImage,this.isImgCropped=!1,this.isImgCroppedInitilized=!1,this.resetConfCropper(),this.onImgModified()}resetConfCropper(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}setActiveItem(t,e){t.forEach((t,n)=>{t.active=n===e})}setCropperProperties(t){for(const e in t)this.imgCropperConfig[e]=t[e]}detectImgCropperChange(){this.isImgCropped=this.isImgCroppedInitilized,this.isImgCroppedInitilized=!0}rotateLeft(){this.canvasRotation--,this.flipAfterRotate(),this.onImgModified()}rotateRight(){this.canvasRotation++,this.flipAfterRotate(),this.onImgModified()}flipHorizontal(){this.transform=Object.assign(Object.assign({},this.transform),{flipH:!this.transform.flipH}),this.onImgModified()}flipVertical(){this.transform=Object.assign(Object.assign({},this.transform),{flipV:!this.transform.flipV}),this.onImgModified()}flipAfterRotate(){const t=this.transform.flipH,e=this.transform.flipV;this.transform=Object.assign(Object.assign({},this.transform),{flipH:e,flipV:t})}zoomOut(){this.scale-=this.scale<.2?0:.1,this.transform=Object.assign(Object.assign({},this.transform),{scale:this.scale}),this.onImgModified()}zoomIn(){this.scale+=.1,this.transform=Object.assign(Object.assign({},this.transform),{scale:this.scale}),this.onImgModified()}applyMethod(t){this[t]()}};return t.\u0275fac=function(e){return new(e||t)(Oo(hP))},t.\u0275cmp=pe({type:t,selectors:[["cropper"]],inputs:{isImgModified:"isImgModified",imgToEdit:"imgToEdit"},outputs:{isImgModifiedChange:"isImgModifiedChange",editClosed:"editClosed",currentCroppedImageChange:"currentCroppedImageChange"},decls:33,vars:31,consts:[[1,"img-editor__container__toolsContainer"],[4,"ngIf"],["dropdownId","dropdown-resolution"],["label",""],[1,"img-editor__container__toolsContainer__tool"],[1,"far","fa-crop"],["item","",4,"ngFor","ngForOf"],["dropdownId","dropdown-rotation"],[1,"img-editor__container__toolsContainer__tool",3,"click"],[1,"far","fa-expand-arrows-alt"],["dropdownId","dropdown-rotation","dropDownMenuClass","img-editor__container__toolsContainer__RotationDropdown"],[1,"far","fa-redo"],[1,"far","fa-retweet-alt"],[1,"img-editor__image-cropper"],[3,"imageURL","imageBase64","maintainAspectRatio","containWithinAspectRatio","aspectRatio","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","format","backgroundColor","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["nwbToolTipPosition","left",1,"img-editor__container__toolsContainer__tool","img-editor__container__toolsContainer__tool--button",3,"nwbToolTip","click"],[1,"far","fa-check"],["item",""],[1,"dropdown-item",3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,kx,7,6,"div",1),zo(2,"dropdown",2),Uo(3,3),zo(4,"div",4),Vo(5,"i",5),zo(6,"p"),wa(7),ql(8,"translate"),Fo(),Fo(),jo(),Do(9,Dx,5,6,"ng-container",6),Fo(),zo(10,"dropdown",7),Uo(11,3),zo(12,"div",8),$o("click",(function(){return e.zoomIn()})),Vo(13,"i",9),zo(14,"p"),wa(15),ql(16,"translate"),Fo(),Fo(),jo(),Do(17,Ox,6,7,"ng-container",6),Fo(),zo(18,"dropdown",10),Uo(19,3),zo(20,"div",8),$o("click",(function(){return e.rotateRight()})),Vo(21,"i",11),zo(22,"p"),wa(23),ql(24,"translate"),Fo(),Fo(),jo(),Do(25,Lx,6,7,"ng-container",6),Fo(),zo(26,"div",8),$o("click",(function(){return e.onRestart()})),Vo(27,"i",12),zo(28,"p"),wa(29),ql(30,"translate"),Fo(),Fo(),Fo(),zo(31,"div",13),zo(32,"image-cropper",14),$o("imageCropped",(function(t){return e.imageCropped(t)}))("imageLoaded",(function(){return e.imageLoaded()}))("cropperReady",(function(){return e.cropperReady()}))("loadImageFailed",(function(){return e.loadImageFailed()})),Fo(),Fo()),2&t&&(ws(1),Lo("ngIf",e.isImgCropped),ws(6),Ca(Gl(8,23,"ImgManager.ImgEditor.crop")),ws(2),Lo("ngForOf",e.resolutionConfig),ws(6),Ca(Gl(16,25,"ImgManager.ImgEditor.display")),ws(2),Lo("ngForOf",e.zoomConfig),ws(6),Ca(Gl(24,27,"ImgManager.ImgEditor.rotation")),ws(2),Lo("ngForOf",e.rotationConfig),ws(1),Lo("@insertRemoveAnnim",void 0),ws(3),Ca(Gl(30,29,"ImgManager.ImgEditor.restart")),ws(3),aa("display",e.showCropper?null:"none"),Lo("imageURL",e.imgRoute)("imageBase64",e.croppedImage)("maintainAspectRatio",e.imgCropperConfig.maintainAspectRatio)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",e.imgCropperConfig.aspectRatio)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","center")("format",e.imgType)("backgroundColor","white"))},directives:[Xh,LP,Qh,hS,Pw,Gh],pipes:[Vf],encapsulation:2,data:{animation:[zP]}}),t})(),VP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.imgManager=t,this.imgEventService=e,this.imgSelectionService=n,this.alertService=i,this.userSettingsService=s,this.renamePictureService=r,this.listDisplayed=!1,this.multipleImgMode=!1,this.switchDisplayWindow=new Zl,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:0,currentPage:1},this.widthLargeCard=219,this.widthSmallCard=160,this.nbFakeImg=0,this.imgFullWidthConfig=[{max:419,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:499,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:719,largeImgWidthFactor:.5,smallImgWidthFactor:.3333},{max:1023,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1599,largeImgWidthFactor:.2,smallImgWidthFactor:.1111},{largeImgWidthFactor:.1666,smallImgWidthFactor:.1}],this.imgWidthConfig=[{max:1024,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1199,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1299,largeImgWidthFactor:.3333,smallImgWidthFactor:.1666},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.1666},{max:1599,largeImgWidthFactor:.25,smallImgWidthFactor:.14},{largeImgWidthFactor:.25,smallImgWidthFactor:.125}],this.searchQueryChanged=new I,this.filtersChanged=new I,this.picturesList=[],this.savePictureList=[],this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!0,this.isTotalRetieved=!1,this.delListImgLoader=!1,this.initComponent=!0,this.failLoaded=!1,this.displayPexelsResults=!1,this.confirmImgSup=!1,this.pageIndex=0,this.length=0,this.pageSize=30,this.pageSizeOptions=[25,50,100,250],this.errorGetAllImg="ImgManager.ImgLib.errorGetAllImg",this.errorGetTotalImg="ImgManager.ImgLib.errorGetTotalImg",this.errorGetImg="ImgManager.ImgLib.errorGetCanvaImg",this.msgNoImgFound="ImgManager.ImgLib.noImgFound",this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg"}ngOnInit(){this.setEvents(),this.imgSelectedList=this.imgSelectionService.getImgSelection()}ngAfterViewInit(){this.setNbImgToDisplay(),this._getImgList(),this.savePictureList||(this.savePictureList=this.picturesList)}getImgList(){this.filtersChanged.next()}onSwitchFormatDisplayed(t){this.listDisplayed=t,this.userSettingsService.setUserDisplayPreference(t),this.imgEventService.emitlistDisplayedChange(t)}onImgSelected(){this.setNbImgToDelSelected()}onShowImgUploaded(){this.searchText=null,this.searchedValue=null,this.getImgList()}onRenamePicture(t){console.log("onRenamePicture pictureRenamed",t),this.renamePictureService.onRenamePicture(t)}removeListImg(){if(this.disable)return;this.disable=!0,this.delListImgLoader=!0,this.confirmImgSup=!1;const t=[];this.picturesList.forEach(e=>{e.delSelected&&(e.deleted=!0,t.push(e.id_file))}),this.imgManager.removeMultipleImg(t).subscribe(()=>{this.getImgList(),this.imgSelectionService.removeImgSelectionByIds(t)},t=>{this.getImgList(),this.alertService.openAlert(this.errorRemoveImg)})}selectImgChosen(){if(this.disable)return;const t=[];this.picturesList.map(e=>{e.delSelected&&(e.delSelected=!1,e.selected=!0),e.selected&&t.push(e)}),this.setNbImgToDelSelected(),this.imgSelectionService.setImgSelection(t)}displayConfirmImgSup(){this.disable||(this.confirmImgSup=!0)}cancelSup(){this.confirmImgSup=!1}onPicturesListChange(){this.setNbImgToDelSelected()}onFiltersChange(){this.getImgList()}setNbImgToDisplay(){const t=this.imgLibContainer.nativeElement.offsetWidth+30,e=window.innerWidth-document.body.offsetWidth,[n,i]=this.getImgWidthFactors(),s=Math.floor(t*i),r=Math.ceil((t+e)*n);this.nbMaxImgPerLine=Math.floor(t/s),this.nbMinImgPerLine=Math.floor((t+e)/r),this.pageSize=this.getTotalImgPerPage()}getImgWidthFactors(){const t=window.innerWidth;let e=0,n=[];const i=this.fullSize?this.imgFullWidthConfig:this.imgWidthConfig;for(const s of i){if(!s.max){n=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}if(e<t&&t<=s.max){n=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}e=s.max}return n}getTotalImgPerPage(){if(this.nbRowToShow)return("full"===this.stateDisplayed?this.nbMinImgPerLine:this.nbMaxImgPerLine)*this.nbRowToShow;let t=this.nbMinImgPerLine;for(;t<30||t%this.nbMaxImgPerLine!=0||t%this.nbMinImgPerLine!=0;)t+=this.nbMinImgPerLine;return t}setParams(){var t;this.params={limit:(null===(t=this.maxLengthCardShow)||void 0===t?void 0:t.toString())||(this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage.toString():this.pageSize.toString()),page:this.tableFilters.currentPage.toString()},this.tableFilters.searchValue&&(this.params["display_name:contains"]=this.tableFilters.searchValue.toString())}initVariables(t){this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!1,this.delListImgLoader=!1,this.initComponent=!1,this.displayPexelsResults=!1,this.failLoaded=!t,this.nbFakeImg=0}selectImgSelected(){if(!this.imgSelectedList||!this.imgSelectedList.length)return;const t=[];this.imgSelectedList.forEach(e=>t.push(e.id_file)),this.picturesList.forEach(e=>{-1!==t.indexOf(e.id_file)&&(e.selected=!0)})}displayPexelsLib(){this.displayPexelsResults=!0,this.alertService.openAlert(this.msgNoImgFound)}calculNbImgFake(t){const e="small"===this.stateDisplayed||"img-upload"===this.tabDisplayed?this.nbMaxImgPerLine:this.nbMinImgPerLine;t%e!=0&&(this.nbFakeImg=e-t%e)}getImg(t){this.imgManager.getShopImg(t).pipe(df(1)).subscribe(t=>{this.imgAlreadyExist(t.id_file)||(this.picturesList.unshift(t),this.length+=1)},t=>{this.alertService.openAlert(this.errorGetImg)})}imgAlreadyExist(t){for(const e of this.picturesList)if(e.id_file===t)return!0;return!1}setNbImgToDelSelected(){this.nbImgToDelSelected=this.picturesList.filter(t=>t.delSelected).length,this.nbImgToDelSelected||(this.confirmImgSup=!1)}setEvents(){this.searchQueryChanged.pipe(hC(400)).subscribe(t=>{this.getImgList()}),this.filtersChanged.pipe(hC(800)).subscribe(t=>{this._getImgList()}),this.imgRemovedEvent=this.imgEventService.getImgRemovedEventListner().subscribe(t=>{this.getImgList()}),this.imgAddedEvent=this.imgEventService.getImgAddedEventListner().subscribe(t=>{t&&!this.imgAlreadyExist(t)&&this.getImg(t)}),this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{if(this.listDisplayed)return;const e=[];t.map(t=>e.push(t.id_file));for(const n of this.picturesList)-1===e.indexOf(n.id_file)&&(n.selected=!1)})}_getImgList(){this.isLoading=!0,this.displayPexelsResults=!1,this.setParams(),this.refreshTotalImgList(),this.imgManager.getShopImgList(this.params).pipe(df(1)).subscribe(t=>{this.initVariables(!0),this.calculNbImgFake(t.data.length),this.picturesList=t.data,this.renamePictureService.setPicturesList(this.picturesList),this.selectImgSelected(),this.length=this.isTotalRetieved?this.length:t.totalRecords,this.tableFilters.totalItems=this.isTotalRetieved?this.tableFilters.totalItems:t.totalRecords,this.tableFilters.itemsPerPage=this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage:this.pageSize,0===t.totalRecords&&this.displayPexelsLib()},t=>{this.alertService.openAlert(this.errorGetAllImg),this.initVariables(!1)})}refreshTotalImgList(){const t=this.tableFilters.searchValue;this.isTotalRetieved&&t===this.previousSearchValue||(this.isTotalRetieved=!1,this.imgManager.getShopTotalImgList(this.params).pipe(df(1)).subscribe(e=>{this.previousSearchValue=t,this.isTotalRetieved=!0,this.length=e.totalRecords,this.tableFilters.totalItems=e.totalRecords},t=>{this.initVariables(!1)}))}switchDisplayWindowMosaic(){this.switchDisplayWindow.emit(!0)}ngOnDestroy(){this.searchQueryChanged.unsubscribe(),this.imgRemovedEvent.unsubscribe(),this.imgAddedEvent.unsubscribe(),this.imgSelectionChange.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(gP),Oo(aP),Oo(vP),Oo(dP),Oo(bP))},t.\u0275cmp=pe({type:t,selectors:[["images-view"]],viewQuery:function(t,e){var n;1&t&&uc(Nx,!0),2&t&&cc(n=fc())&&(e.imgLibContainer=n.first)},inputs:{listDisplayed:"listDisplayed",multipleImgMode:"multipleImgMode",stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed",fullSize:"fullSize",maxLengthCardShow:"maxLengthCardShow",nbRowToShow:"nbRowToShow"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:9,vars:19,consts:[[1,"images-view",3,"ngClass"],["class","images-view__container",3,"ngClass",4,"ngIf"],[1,"images-view__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"images-view__wrapper"],["imgLibContainer",""],[4,"ngIf"],["class","images-view--pexels",4,"ngIf"],[1,"images-view__container",3,"ngClass"],["class","field has-addons subHeaderActions",4,"ngIf"],[1,"mainColor"],[1,"field","has-addons","subHeaderActions"],[1,"images-view__container__boxAction"],["class","button success images-view__container__boxAction__import",3,"click",4,"ngIf"],["class","button images-view__container__boxAction__delBtn danger",3,"click",4,"ngIf"],[1,"images-view__container__boxAction__confirmSup",3,"ngClass"],["class","images-view__container__boxAction__confirmSup__text",4,"ngIf"],[1,"button","images-view__container__boxAction__confirmSup__cancel",3,"click"],[1,"button","images-view__container__delBtn","danger",3,"click"],[1,"field","has-addons","images-view__container__buttonBox"],[1,"control"],[1,"button","is-lighted","images-view__container__buttonBox__btn",3,"ngClass","click"],[1,"icon","is-small"],[1,"far","fa-th"],[1,"fas","fa-bars"],[1,"button","success","images-view__container__boxAction__import",3,"click"],[1,"fal","fa-check"],[1,"button","images-view__container__boxAction__delBtn","danger",3,"click"],[1,"fal","fa-times"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"images-view__container__boxAction__confirmSup__text"],[3,"picturesList","tableFilters","disable","nbFakeImg","stateDisplayed","tabDisplayed","displayPexelsResults","isLoading","fullSize","picturesListChange","filtersChange","disableChange","pictureNameChange","switchDisplayWindow"],[3,"picturesList","tableFilters","disable","displayPexelsResults","stateDisplayed","isLoading","picturesListChange","filtersChange","disableChange","pictureNameChange"],[1,"images-view--pexels"],[3,"searchValue","disableSearch","showImgUploaded"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,Qx,4,7,"div",1),Fo(),zo(2,"ng-scrollbar",2,3),zo(4,"div",4,5),Do(6,Kx,2,10,"div",6),Do(7,Xx,2,7,"div",6),Fo(),Fo(),Do(8,Zx,2,3,"div",7)),2&t&&(Lo("ngClass",Vl(8,Jx,e.fullSize,"small"===e.stateDisplayed))("@easeInOut","in"),ws(1),Lo("ngIf","small"!==e.stateDisplayed||"img-upload"===e.tabDisplayed),ws(1),Lo("visibility","native")("ngClass",function(t,e,n,i,s,r,o,a,l,c){const h=rn()+11,u=Qe();let d=Po(u,h,n,i,s,r);return To(u,h+4,o,a,l)||d?So(u,h+7,e(n,i,s,r,o,a,l)):Eo(u,h+7)}(0,tT,e.displayPexelsResults&&!e.listDisplayed,e.displayPexelsResults&&!e.listDisplayed&&"small"===e.stateDisplayed,e.displayPexelsResults&&e.listDisplayed,"full"===e.stateDisplayed,"small"===e.stateDisplayed&&"img-upload"!==e.tabDisplayed,"small"===e.stateDisplayed&&"img-upload"===e.tabDisplayed,"window"===e.stateDisplayed)),ws(4),Lo("ngIf",!e.listDisplayed||"small"===e.stateDisplayed),ws(1),Lo("ngIf",e.listDisplayed&&"small"!==e.stateDisplayed),ws(1),Lo("ngIf",e.displayPexelsResults))},directives:function(){return[Gh,Xh,zC,AP,UP,jP,xP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P,zP]}}),t})(),UP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.nbFakeImg=0,this.switchDisplayWindow=new Zl}ngOnInit(){}onSearchChange(t){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.filtersChange.emit(this.tableFilters)}onCardRenamePicture(t){this.pictureNameChange.next(t)}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["mosaic-view"]],inputs:{nbFakeImg:"nbFakeImg",tabDisplayed:"tabDisplayed",fullSize:"fullSize"},outputs:{switchDisplayWindow:"switchDisplayWindow"},features:[Pa],decls:5,vars:9,consts:[[1,"mosaic",3,"ngClass"],["class","mosaic__search",3,"ngClass",4,"ngIf"],["class","mosaic__container__cards",3,"ngClass",4,"ngIf"],["class","mosaic__container__loader",4,"ngIf"],["class","mosaic__pagination",4,"ngIf"],[1,"mosaic__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"mosaic__container__cards",3,"ngClass"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow",4,"ngFor","ngForOf"],["class","mosaic__container__cards__fakeImg",3,"ngClass",4,"ngFor","ngForOf"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow"],[1,"mosaic__container__cards__fakeImg",3,"ngClass"],[1,"mosaic__container__loader"],[3,"small"],[1,"mosaic__pagination"],[3,"pagination","pageChange"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,nT,3,8,"div",1),Do(2,aT,4,8,"div",2),Do(3,lT,2,1,"div",3),Do(4,cT,2,1,"div",4),Fo()),2&t&&(Lo("ngClass",Ul(5,hT,e.fullSize,"small"===e.stateDisplayed,e.displayPexelsResults)),ws(1),Lo("ngIf","img-upload"!==e.tabDisplayed),ws(1),Lo("ngIf",!e.isLoading&&!e.displayPexelsResults),ws(1),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",e.picturesList.length&&"img-upload"!==e.tabDisplayed&&!e.displayPexelsResults))},directives:function(){return[Gh,Xh,$P,Zf,Km,Qh,PP,ok,GP]},pipes:function(){return[Vf,lk]},encapsulation:2,data:{animation:[IP]}}),t})(),jP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.dataTableName="imgagesView"}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["table-view"]],features:[Pa],decls:9,vars:15,consts:[[1,"table-view"],[3,"checkbox","tableFilters","placeholder","disablePagniation","isLoading","toggleAllCheckBox","tableFiltersChange"],["headerCell","","columnSize","2","sortName","name",3,"headerName"],["headerCell","","centerCell","center",3,"headerName"],["headerCell","","columnSize","0"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange",4,"ngFor","ngForOf"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange"],["tableColumn","","columnSize","2"],[1,"table-view__row__container"],[1,"table-view__row__container__imgContainer",3,"ngClass","click"],["alt","picture.display_name",1,"table-view__row__container__imgContainer__img",3,"src","ngClass","error"],["class","table-view__row__container__imgContainer__overlay",4,"ngIf"],["type","text",1,"wzImgMngInput","table-view__row__container__name",3,"ngModel","ngClass","disabled","ngModelChange","focus","blur","click"],["tableColumn","","centerCell","center",3,"click"],[1,"grey"],["tableColumn","","centerCell","center","columnSize","0",1,"table-view__dropdown-options"],["dropdownId","dropdown-options",3,"disable"],["label",""],[1,"table-view__dropdown-options__label","rotate"],["aria-haspopup","true","aria-controls","dropdown-menu",1,"far","fa-ellipsis-h","is-size-4"],["item",""],[1,"dropdown-item",3,"click"],[1,"far","fa-download","download"],[1,"far","fa-crop-alt","edit"],[1,"fal","fa-times","deleted"],[1,"table-view__row__container__imgContainer__overlay"],[1,"fad","fa-folder-times"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"wz-table",1),$o("toggleAllCheckBox",(function(t){return e.onToggleAllCheckBoxRow(t)}))("tableFiltersChange",(function(t){return e.tableFilters=t}))("tableFiltersChange",(function(){return e.onFiltersChange()})),ql(2,"translate"),Vo(3,"div",2),ql(4,"translate"),Vo(5,"div",3),ql(6,"translate"),Vo(7,"div",4),Do(8,fT,38,29,"div",5),Fo(),Fo()),2&t&&(Lo("@listAnimation",e.picturesList.length),ws(1),Lo("checkbox",!0)("tableFilters",e.tableFilters)("placeholder",Gl(2,9,"ImgManager.SearchBar.placeholder"))("disablePagniation",e.displayPexelsResults)("isLoading",e.isLoading),ws(2),Lo("headerName",Gl(4,11,"ImgManager.ImgList.titleImgName")),ws(2),Lo("headerName",Gl(6,13,"ImgManager.ImgList.titleResolution")),ws(3),Lo("ngForOf",e.picturesList))},directives:function(){return[HP,ek,Qh,nk,ZP,tk,Gh,Xh,qf,Zf,Km,LP]},pipes:function(){return[Vf,ik]},encapsulation:2,data:{animation:[IP]}}),t})(),BP=(()=>{let t=class{constructor(t){this.filterRoutingBuilder=t,this.filterGroups=new Map,this.dataTableFilters={sort:void 0,order:void 0,searchValue:void 0,totalItems:0,itemsPerPage:0,currentPage:0},this.sortSubject=new I}getTableFilterGroup(t){if(this.filterGroups.has(t))return this.filterGroups.get(t);const e=this.filterRoutingBuilder.group(this.dataTableFilters,t);return this.filterGroups.set(t,e),e}emitSortChange(t,e,n){this.sortSubject.next({dataTableName:t,sortName:e,order:n})}getSortChangeListner(){return this.sortSubject.asObservable()}setPaginationFilters(t,e,n,i){this.getTableFilterGroup(t).setValues({itemsPerPage:n,currentPage:i})}setInitialPaginationFiltersIfNotExist(t,e,n){const i=this.getTableFilterGroup(t);i.setValues({itemsPerPage:i.get("itemsPerPage")?parseInt(i.get("itemsPerPage")):e,currentPage:i.get("currentPage")?parseInt(i.get("currentPage")):n})}};return t.\u0275fac=function(e){return new(e||t)(Yt(Dw))},t.\u0275prov=ht({factory:function(){return new t(Yt(Dw))},token:t,providedIn:"root"}),t})(),HP=(()=>{let t=class{constructor(t){this.filtersTableService=t,this.tableFiltersChange=new Zl,this.placeholder="",this.checkbox=!1,this.toggleAllCheckBox=new Zl,this.disableSearch=!1,this.disablePagniation=!1,this.isLoading=!1}ngOnInit(){this.headerCheckBoxId=Object(rE.v4)(),this.tableRoutingName&&(this._filterGroup=this.filtersTableService.getTableFilterGroup(this.tableRoutingName),this._filterGroup.valuesChange$.next([]),this.setTablesFilters(),this.filterGroupChangeSub=this._filterGroup.valuesChange$.subscribe(t=>{this.setTablesFilters()}))}onToggleAllCheckBox(t){this.toggleAllCheckBox.emit(t.target.checked)}searchChange(t){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({searchValue:this.tableFilters.searchValue,sort:void 0,order:void 0,currentPage:1})}pageChange(){this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({itemsPerPage:this.tableFilters.itemsPerPage,currentPage:this.tableFilters.currentPage})}setTablesFilters(){this.tableFilters={sort:this._filterGroup.get("sort"),order:this._filterGroup.get("order"),searchValue:this._filterGroup.get("searchValue"),itemsPerPage:this._filterGroup.get("itemsPerPage")?parseInt(this._filterGroup.get("itemsPerPage")):0,currentPage:this._filterGroup.get("currentPage")?parseInt(this._filterGroup.get("currentPage")):0,totalItems:this.tableFilters.totalItems},this.tableFiltersChange.emit(this.tableFilters)}ngDestroy(){this.filterGroupChangeSub&&this.filterGroupChangeSub.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(BP))},t.\u0275cmp=pe({type:t,selectors:[["wz-table"]],inputs:{placeholder:"placeholder",checkbox:"checkbox",disableSearch:"disableSearch",disablePagniation:"disablePagniation",isLoading:"isLoading",tableFilters:"tableFilters",tableRoutingName:"tableRoutingName"},outputs:{tableFiltersChange:"tableFiltersChange",toggleAllCheckBox:"toggleAllCheckBox"},ngContentSelectors:CT,decls:9,vars:5,consts:[[1,"wz-table"],["id","headerTable",1,"wz-table__head"],["class","wz-table__head__cell wz-table__head__cell--checkbox",4,"ngIf"],["class","wz-table__search",4,"ngIf"],[1,"wz-table__body"],["class","wz-table__body__loader",4,"ngIf"],[4,"ngIf"],[3,"pagination","pageChange",4,"ngIf"],[1,"wz-table__head__cell","wz-table__head__cell--checkbox"],[3,"id","alone","change"],[1,"wz-table__search"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"wz-table__body__loader"],[3,"small"],[3,"pagination","pageChange"]],template:function(t,e){1&t&&(Ko(wT),zo(0,"div",0),zo(1,"div",1),Do(2,mT,2,2,"div",2),Xo(3),Fo(),Do(4,_T,2,3,"div",3),zo(5,"div",4),Do(6,vT,2,1,"div",5),Do(7,yT,1,0,void 0,6),Fo(),Do(8,bT,1,1,"wz-pagination",7),Fo()),2&t&&(ws(2),Lo("ngIf",e.checkbox),ws(2),Lo("ngIf",!e.disableSearch),ws(2),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading),ws(1),Lo("ngIf",!e.disablePagniation))},directives:function(){return[Xh,XP,$P,Zf,Km,ok,GP]},encapsulation:2}),t})();var WP;let $P=(()=>{let t=WP=class{constructor(){this.placeholder="",this.smallPadding=!1,this.innerValue="",this.changeDebounced=new Zl,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}get value(){return this.innerValue}set value(t){t!==this.innerValue&&(this.innerValue=t,this.onChangeCallback(t))}writeValue(t){t!==this.innerValue&&(this.innerValue=t)}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}handleDebouncedKeyUp(t){this.changeDebounced.emit(t.target.value)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-input-search"]],inputs:{placeholder:"placeholder",smallPadding:"smallPadding",id:"id"},outputs:{changeDebounced:"changeDebounced"},features:[Wa([{provide:jf,useExisting:WP,multi:!0}])],decls:4,vars:5,consts:[[1,"input-search","field",3,"ngClass"],[1,"control","has-icons-left","has-icons-right"],["value","","type","text","debounceKeyUp","",1,"input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],[1,"icon","fal","fa-search"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"p",1),zo(2,"input",2),$o("ngModelChange",(function(t){return e.value=t}))("onEventChange",(function(t){return e.handleDebouncedKeyUp(t)})),Fo(),Vo(3,"i",3),Fo(),Fo()),2&t&&(Lo("ngClass",e.smallPadding?"small-padding":""),ws(2),Lo("placeholder",e.placeholder)("ngModel",e.value)("debounceTime",1e3),ko("id",e.id))},directives:function(){return[Gh,rk,qf,Zf,Km]},encapsulation:2}),t})(),qP=(()=>{let t=class{transform(t,e,n){if(!(t>=0&&e>=0&&n>=0))throw new Error("currentPage or totalItems or itemsPerPage is/are missing in PagniationIsLastPage pipe.");return t===Math.ceil(e/n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"IsLastPage",type:t,pure:!0}),t})(),GP=(()=>{let t=class{constructor(){this.pageChange=new Zl}set pagination(t){this._pagination=t}get pagination(){return this._pagination}decrementPage(){this.pagination.currentPage<=1||(this.pagination.currentPage--,this.pageChange.emit(this.pagination))}incrementPage(){(new qP).transform(this.pagination.currentPage,this.pagination.totalItems,this.pagination.itemsPerPage)||(this.pagination.currentPage++,this.pageChange.emit(this.pagination))}onGotoPageChange(t){this.pagination.currentPage=parseInt(t),this.pageChange.emit(this.pagination)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-pagination"]],inputs:{pagination:"pagination"},outputs:{pageChange:"pageChange"},decls:1,vars:1,consts:[["class","wz-pagination",4,"ngIf"],[1,"wz-pagination"],[1,"wz-pagination__wrapper"],[1,"wz-pagination__wrapper__page"],[3,"pagination","totalItems","pageChange"],[1,"wz-pagination__wrapper__elements"],[1,"wz-pagination__wrapper__arrows"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--left",3,"ngClass","click"],[1,"wz-pagination__wrapper__arrows__arrow__icon"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--right",3,"ngClass","click"]],template:function(t,e){1&t&&Do(0,ET,17,20,"div",0),2&t&&Lo("ngIf",e.pagination&&e.pagination.itemsPerPage)},directives:function(){return[Xh,ck,Gh]},pipes:function(){return[Vf,QP,qP]},encapsulation:2}),t})(),YP=(()=>{let t=class{transform(t,e){if(!(t>=0&&e>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const n=Math.ceil(t/e);return Array.apply(null,{length:n}).map(Number.call,Number).map(t=>t+1)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"ArrayTotalPages",type:t,pure:!0}),t})(),QP=(()=>{let t=class{constructor(t){this.translateService=t}transform(t,e,n){let i=0,s=0;return e&&(i=(t-1)*n+1,s=t*n),s>e&&(s=e),this.translateService.instant("PaginationComponent.on",{low:i,high:s,total:e})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ff))},t.\u0275pipe=be({name:"customPagniationText",type:t,pure:!0}),t})();var KP;let XP=(()=>{let t=KP=class{constructor(){this.label="",this.alone=!1,this.checked=!1,this.id="",this.disabled=!1}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}writeValue(t){this.value=t}onChange(t){this._onChange&&this._onChange(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-checkbox"]],inputs:{label:"label",alone:"alone",checked:"checked",id:"id",value:"value",type:"type",name:"name"},features:[Wa([{provide:jf,useExisting:KP,multi:!0}])],decls:5,vars:12,consts:[[1,"checkBoxField","field",3,"ngClass"],[1,"field__row"],["type","checkbox",1,"is-checkradio",3,"id","name","value","disabled","ngModel","checked","ngModelChange"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"input",2),$o("ngModelChange",(function(t){return e.value=t}))("ngModelChange",(function(t){return e.onChange(t)})),Fo(),zo(3,"label"),wa(4),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(9,IT,"column"===e.type,e.alone)),ws(2),Lo("id",e.id)("name",e.name)("value",e.value)("disabled",e.disabled)("ngModel",e.value)("checked",e.checked),ws(1),ko("for",e.id),ws(1),Ca(e.label))},directives:[Gh,Hf,Zf,Km],encapsulation:2}),t})(),ZP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.currentRow=t,this.appRef=e,this.renderer=n,this.document=i,this.resolver=s,this.injector=r,this.checkBoxValueChange=new Zl}set checkBoxValue(t){this._value=t,this.checkboxComponentRef&&this.setCheckBoxValue()}get checkBoxValue(){return this._value}ngOnInit(){this.createCheckBoxComponent(),this.handleChecboxInputs(),this.handleCheckboxOutputs()}createCheckBoxComponent(){const t=document.createElement("div");t.className="wz-table__body__line__cell wz-table__body__line__cell--checkbox",this.renderer.insertBefore(this.currentRow.nativeElement,t,this.currentRow.nativeElement.firstChild),this.htmlContainer=new JP(t,this.appRef,this.resolver,this.injector),this.checkboxComponentRef=this.htmlContainer.attach(XP)}handleChecboxInputs(){this.checkboxComponentRef.instance.id=this.checkBoxId?this.checkBoxId:Object(rE.v4)(),this.checkboxComponentRef.instance.name=this.checkBoxName?this.checkBoxName:void 0,this.checkboxComponentRef.instance.alone=!0,this.setCheckBoxValue()}setCheckBoxValue(){this.checkboxComponentRef.instance.value=this.checkBoxValue}handleCheckboxOutputs(){this.checkboxComponentRef.instance.registerOnChange(()=>{this._toggleCheckbox()})}_toggleCheckbox(){this.checkBoxValue=!this.checkBoxValue,this.checkBoxValueChange.emit(this.checkBoxValue)}ngOnDestroy(){this.htmlContainer.dispose()}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(ah),Oo(Za),Oo(Ih),Oo(Ga),Oo(ho))},t.\u0275dir=ye({type:t,selectors:[["","checkBoxRow",""]],inputs:{checkBoxValue:"checkBoxValue",checkBoxId:"checkBoxId",checkBoxName:"checkBoxName"},outputs:{checkBoxValueChange:"checkBoxValueChange"}}),t})();class JP{constructor(t,e,n,i){this.hostElement=t,this.appRef=e,this.componentFactoryResolver=n,this.injector=i,this.attached=!1}attach(t){if(this.attached)throw new Error("component has already been attached");this.attached=!0;let e=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector);return this.appRef.attachView(e.hostView),this.disposeFn=()=>{this.appRef.detachView(e.hostView),e.destroy()},this.hostElement.appendChild(e.hostView.rootNodes[0]),e}dispose(){this.attached&&this.disposeFn()}}let tk=(()=>{let t=class{constructor(t,e,n){this.currentCell=t,this.renderer=e,this.document=n,this.centerCellValue=["left","center","right"]}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=void 0!==this.columnSize?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell--center--"+this.centerCell)}}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","tableColumn",""]],inputs:{columnSize:"columnSize",centerCell:"centerCell"}}),t})(),ek=(()=>{let t=class{constructor(t,e,n,i){this.currentCell=t,this.renderer=e,this.document=n,this.filtersTableService=i,this._headerName="",this.filterRouting=!1,this.onSortChange=new Zl,this.tableFiltersChange=new Zl,this.centerCellValue=["left","center","right"],this.subscriptions=[]}set headerName(t){this._headerName=t,this.setHeaderName()}get headerName(){return this._headerName}ngOnInit(){this.tableName&&this.sortName&&(this.filterRouting?this.handleSortRouting():this.handleSortBasic())}ngAfterViewInit(){this.applyCustomStylesOnCell(),this.renderHeaderColumn()}handleSortRouting(){this.filterGroup=this.filtersTableService.getTableFilterGroup(this.tableName);const t=this.filterGroup.valuesChange$.subscribe(t=>{const e=t.filter(t=>"sort"===t.key)[0];this.sortName!==e.value&&this.resetSortIcon()});this.subscriptions.push(t)}handleSortBasic(){const t=this.filtersTableService.getSortChangeListner().subscribe(t=>{this.tableName===t.dataTableName&&this.sortName!==t.sortName&&this.resetSortIcon()});this.subscriptions.push(t)}resetSortIcon(){this.contentHeader.className=this.contentHeader.className.replace(this.getCurrentSortIcon(),"idle")}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=void 0!==this.columnSize?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell--center--"+this.centerCell)}}renderHeaderColumn(){this.createHeaderContent(),this.renderer.appendChild(this.currentCell.nativeElement,this.contentHeader)}createHeaderContent(){this.contentHeader=document.createElement("a"),this.contentHeader.className="wz-table__head__cell__search",this.setHeaderName(),this.tableName&&this.sortName&&this.handleSort()}setHeaderName(){this.contentHeader&&(this.contentHeader.innerHTML=this.headerName)}handleSort(){this.contentHeader.className+=" wz-table__head__cell__search--"+this.getInitialSortIcon(),this.renderer.listen(this.contentHeader,"click",()=>{const t=this.getCurrentSortIcon();let e,n,i;switch(t){case"idle":e="up",n=this.sortName,i=!0;break;case"up":e="down",n=this.sortName,i=!1;break;case"down":default:e="idle"}this.contentHeader.className=this.contentHeader.className.replace(t,e),this.emitEvents(n,i)})}getInitialSortIcon(){if(!this.filterRouting)return"idle";let t="idle";return this.filterGroup.get("sort")===this.sortName&&(t="true"==this.filterGroup.get("order")?"up":"down"),t}getCurrentSortIcon(){const{groups:t}=/wz-table__head__cell__search--(?<icon>\w+)/.exec(this.contentHeader.className);return t.icon}emitEvents(t,e){this.filterRouting?this.filterGroup.setValues({sort:t,order:e,currentPage:1}):this.filtersTableService.emitSortChange(this.tableName,this.sortName,e),this.tableFilters&&(this.tableFilters.sort=this.sortName,this.tableFilters.order=e,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters)),this.onSortChange.emit(e)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih),Oo(BP))},t.\u0275dir=ye({type:t,selectors:[["","headerCell",""]],inputs:{filterRouting:"filterRouting",headerName:"headerName",columnSize:"columnSize",tableName:"tableName",sortName:"sortName",centerCell:"centerCell",tableFilters:"tableFilters"},outputs:{onSortChange:"onSortChange",tableFiltersChange:"tableFiltersChange"}}),t})(),nk=(()=>{let t=class{constructor(t,e,n){this.currentCell=t,this.renderer=e,this.document=n}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line")}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","tableRow",""]]}),t})(),ik=(()=>{let t=class{constructor(t){this.imgCDNService=t}transform(t,e){if(!e)throw"The size is undefined in ImageSrcPipe.";const n=this.imgCDNService.getUrlImg(e);if(!n)throw"The expected size is not defined in ImageSrcPipe.";return n+t}};return t.\u0275fac=function(e){return new(e||t)(Oo(hP))},t.\u0275pipe=be({name:"imgSrc",type:t,pure:!0}),t})(),sk=(()=>{let t=class{constructor(){this.debounceTime=500,this.onEventChange=new Zl,this.emitEvent$=new I,this.subscription$=new I}ngOnInit(){this.emitEvent$.pipe(o_(this.subscription$),hC(this.debounceTime),x_(),gv(t=>this.emitChange(t))).subscribe()}emitChange(t){this.onEventChange.emit(t)}ngOnDestroy(){this.subscription$.next(),this.subscription$.complete()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["AbstractDebounceDirective"]],inputs:{debounceTime:"debounceTime"},outputs:{onEventChange:"onEventChange"}}),t})(),rk=(()=>{let t=class extends sk{constructor(){super()}onKeyUp(t){t.preventDefault(),this.emitEvent$.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["input","debounceKeyUp",""]],hostBindings:function(t,e){1&t&&$o("keyup",(function(t){return e.onKeyUp(t)}))},features:[Pa]}),t})(),ok=(()=>{let t=class{constructor(){this.small=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-loader"]],inputs:{small:"small",text:"text",position:"position"},decls:9,vars:7,consts:[[1,"wz-loader",3,"ngClass","ngStyle"],[1,"loader","loader1"],["class","is-textcentered",3,"innerHTML",4,"ngIf"],[1,"is-textcentered",3,"innerHTML"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div"),zo(3,"div"),zo(4,"div"),zo(5,"div"),zo(6,"div"),Vo(7,"div"),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Do(8,xT,1,1,"p",2),Fo()),2&t&&(Lo("ngClass",Fl(3,TT,e.small))("ngStyle",Fl(5,PT,e.position)),ws(8),Lo("ngIf",e.text))},directives:[Gh,tu,Xh],encapsulation:2}),t})(),ak=(()=>{let t=class{constructor(){this.icon=!0,this.warning=!1,this.success=!1,this.iconClass="fas fa-info"}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-alert"]],inputs:{icon:"icon",warning:"warning",success:"success",iconClass:"iconClass"},ngContentSelectors:DT,decls:4,vars:5,consts:[[1,"wz-alert",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(t,e){1&t&&(Ko(),zo(0,"div",0),Do(1,kT,1,1,"i",1),zo(2,"p"),Xo(3),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(2,MT,e.success,e.warning)),ws(1),Lo("ngIf",e.icon))},directives:[Gh,Xh],styles:[".wz-alert[_ngcontent-%COMP%]{width:100%;background-color:rgba(82,174,205,.15);color:#52aecd;border-radius:3px;display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:20px}.wz-alert.success[_ngcontent-%COMP%]{background-color:rgba(46,204,113,.15)}.wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#11552e}.wz-alert.success[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#2ecc71}.wz-alert.warning[_ngcontent-%COMP%]{background-color:rgba(233,86,86,.15)}.wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#3a0505}.wz-alert.warning[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e95656}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:rem(14);line-height:rem(25);margin:0;padding:0;color:#1e5568}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#1e5568}.wz-alert[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:auto;margin:0 10px 0 0;color:inherit;font-size:rem(14);line-height:rem(25)}"]}),t})(),lk=(()=>{let t=class{transform(t){return Array.from("x".repeat(t))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"numberToArray",type:t,pure:!0}),t})(),ck=(()=>{let t=class{constructor(){this.openAbsoluteSelect=!1,this.largeNumberOfPage=!1,this.numberOfPage=0,this.pageChange=new Zl}set pagination(t){this._pagination=t}get pagination(){return this._pagination}set totalItems(t){this.numberOfPage=Math.ceil(t/this.pagination.itemsPerPage),this.largeNumberOfPage=this.numberOfPage>30}get totalItems(){return this._totalItems}onGotoPageChange(t,e){e?(this.pageChange.emit(t),this.openAbsoluteSelect=!1):this.pageChange.emit(parseInt(t.target.value))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-page-selector"]],inputs:{pagination:"pagination",totalItems:"totalItems"},outputs:{pageChange:"pageChange"},decls:5,vars:6,consts:[[1,"wz-selector"],[1,"wz-selector__default",3,"ngStyle"],["class","wz-selector__default__base",3,"click",4,"ngIf"],["class","wz-selector__default__absolute",4,"ngIf"],[4,"ngIf"],[1,"wz-selector__default__base",3,"click"],["name","page-input",3,"value","ngStyle","change"],[1,"fas","fa-sort-down"],[1,"wz-selector__default__absolute"],["class","wz-selector__default__absolute__wrapper",4,"ngFor","ngForOf"],[1,"wz-selector__default__absolute__wrapper"],[1,"wz-selector__default__absolute__wrapper__item",3,"ngClass","click"],["name","page",3,"ngStyle","change"],[4,"ngFor","ngForOf"],[3,"selected","value"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),Do(2,OT,3,4,"div",2),Do(3,NT,3,5,"div",3),Fo(),Do(4,FT,4,7,"ng-container",4),Fo()),2&t&&(ws(1),Lo("ngStyle",Fl(4,AT,40+10*e.pagination.currentPage.toString().length+"px")),ws(1),Lo("ngIf",e.largeNumberOfPage),ws(1),Lo("ngIf",e.openAbsoluteSelect),ws(1),Lo("ngIf",!e.largeNumberOfPage))},directives:function(){return[tu,Xh,Qh,Gh,wm,Im]},pipes:function(){return[hk,YP]},encapsulation:2}),t})(),hk=(()=>{let t=class{transform(t,e,n){if(!(t>=0&&e>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const i=n<=15?0:n-15,s=Math.ceil(t/e),r=Array.apply(null,{length:32}).map(Number.call,Number).map(t=>{const e={display:i+t+1,value:i+t+1};return 30===t&&(e.display="..."),31===t&&(e.display=s,e.value=s),e});return i&&r.unshift({display:1,value:1},{display:"...",value:2}),r}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"LargeNumberOfPage",type:t,pure:!0}),t})();var uk;let dk=(()=>{let t=uk=class{constructor(t){this.translateService=t,this.search=!1,this.type="default",this.maxWidth="100%",this.disabled=!1,this.selectValue=new Zl,this.clickOnCallToAction=new Zl,this.openCategories=!1,this.searchValue="",this.indexItemSelected=-1,this.onChange=()=>{},this.onTouch=()=>{}}ngOnInit(){this.indexItemSelected=this.items.findIndex(t=>t.selected)}onClose(){this.openCategories=!1}customTB(t,e){return`${t.id}-${e}`}onSelectItem(t){this.unselectAll(),this.setIndexItemSelected(t);const e=this.getItemSelected();e.selected=!0,this.selectValue.emit(this.indexItemSelected),this.onChange(e)}onClickCallToAction(){this.onClose(),this.clickOnCallToAction.emit(this.callToAction.value)}getItemSelected(){return this.items[this.indexItemSelected]}showCategories(){this.openCategories=!0,setTimeout(()=>{this.searchElement.nativeElement.focus()},0)}unselectAll(){this.items.forEach(t=>t.selected=!1)}setIndexItemSelected(t){this.indexItemSelected=this.items.findIndex(e=>e.id===t)}writeValue(t){t&&(this.unselectAll(),t.selected=!0,this.setIndexItemSelected(t.id))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ff))},t.\u0275cmp=pe({type:t,selectors:[["wac-select"]],viewQuery:function(t,e){var n;1&t&&uc(VT,!0),2&t&&cc(n=fc())&&(e.searchElement=n.first)},inputs:{search:"search",type:"type",maxWidth:"maxWidth",disabled:"disabled",items:"items",placeholder:"placeholder",label:"label",maxWidthItems:"maxWidthItems",callToAction:"callToAction"},outputs:{selectValue:"selectValue",clickOnCallToAction:"clickOnCallToAction"},features:[Wa([{provide:jf,useExisting:uk,multi:!0}])],decls:5,vars:8,consts:[["class","wac-select__label",3,"innerHTML",4,"ngIf"],["wzAutoHide","",1,"wac-select",3,"ngStyle","zIndexToggle","clickOutside"],["class","wac-select__current",3,"ngClass","click",4,"ngIf"],["class","wac-select__current wac-select__current--withSearch",3,"ngClass",4,"ngIf"],["class","wac-select__content",3,"ngClass","ngStyle",4,"ngIf"],[1,"wac-select__label",3,"innerHTML"],[1,"wac-select__current",3,"ngClass","click"],["class","icon",3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"fas","fa-chevron-down"],[1,"icon",3,"innerHTML"],[1,"wac-select__current","wac-select__current--withSearch",3,"ngClass"],["class","wac-select__current__search",4,"ngIf"],["class","icon",3,"innerHTML","click",4,"ngIf"],[3,"innerHTML","click"],[3,"click"],[1,"wac-select__current__search"],[1,"far","fa-search"],["type","text",3,"ngModel","ngModelChange"],["search",""],[1,"icon",3,"innerHTML","click"],[1,"wac-select__content",3,"ngClass","ngStyle"],[3,"perfectScrollbar",4,"ngIf"],["class","wac-select__content__empty",4,"ngIf"],[3,"perfectScrollbar"],["class","wac-select__content__cta",4,"ngIf"],["class","wac-select__content__item",3,"click",4,"ngFor","ngForOf"],[1,"wac-select__content__cta"],[3,"classList",4,"ngIf"],[4,"ngIf"],[3,"classList"],[1,"wac-select__content__item",3,"click"],[3,"ngClass","click",4,"ngIf"],[3,"ngClass","click"],[1,"wac-select__content__empty"]],template:function(t,e){1&t&&(Do(0,UT,1,1,"p",0),zo(1,"div",1),$o("clickOutside",(function(){return e.onClose()})),Do(2,HT,6,7,"div",2),Do(3,GT,6,7,"div",3),Do(4,oP,4,12,"div",4),Fo()),2&t&&(Lo("ngIf",e.label),ws(1),Lo("ngStyle",Fl(6,rP,e.maxWidth))("zIndexToggle",e.openCategories),ws(1),Lo("ngIf",!e.search),ws(1),Lo("ngIf",e.search),ws(1),Lo("ngIf",!e.disabled))},directives:function(){return[Xh,OP,tu,gk,Gh,qf,Zf,Km,sI,Qh]},pipes:function(){return[Vf,pk]},encapsulation:2}),t})(),pk=(()=>{let t=class{transform(t,e){return t.filter(t=>new RegExp(e,"i").test(t.name))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"selectFilters",type:t,pure:!0}),t})(),gk=(()=>{let t=class{constructor(t,e){this.currentElement=t,this.renderer=e,this.isActived=!1}set isActive(t){this.isActived=t,this.switchToggle()}get isActive(){return this.isActived}ngOnInit(){}switchToggle(){this.isActived?this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle"):this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle")}ngOnDestroy(){}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","zIndexToggle",""]],inputs:{isActive:["zIndexToggle","isActive"]},outputs:{onEventChange:"onEventChange"}}),t})(),fk=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,of,t_,ZC,iS,cC,uS,B_,sE,Uf,rI]]}),t})();class mk{constructor(){this.image_manager_route="",this.pexels_route="",this.canva_url="",this.assets_route="assets/img-manager/"}}class _k{constructor(){this.url_raw_image="",this.url_100_image="",this.url_200_image="",this.url_400_image="",this.url_800_image=""}}class vk{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let yk=(()=>{class t{constructor(){}sendImgSelectedToPage(t){t&&(t.cdn_img_src=`${Ch.CDN_URL}${t.id_shop}/`);const e=new CustomEvent("imgSelected",{detail:{file:t,from:this.emitter}});document.getElementById("imgManagerModule").dispatchEvent(e)}pageAskForImg(){return n_(document.getElementById("imgManagerModule"),"openImgManager")}setEmitter(t){this.emitter=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bk=(()=>{class t{constructor(t,e,n,i){this.http=t,this.imgSelectionService=e,this.eventService=n,this.canvaService=i,this.image_manager_api=Ch.wizi_api+"/image-manager/shops/",this.isPhotosTab=!1,this.isPreviousTabPhotos=!1,this.isVariantsTab=!1,this.loadProductImgSelection=!1,this.expectedMediaDto={id:void 0,image_url:void 0,image_width:"900",image_height:"900"},this.subscriptions=[]}setApiConfig(t,e){this.shopToken=e,this.shopId=t;const n=window.location.pathname.match(/\/(\w+)\/products\/(\d+)\/edit/);this.productSheetApiRoute=Ch.wizi_admin_api+(n&&n[1]?n[1]:"fr")+Ch.product_sheet_endpoint,this.productId=n&&n[2]?n[2]:"0",this.isProductCreation=/\/products\/create/.test(window.location.pathname)}handleTabs(){return new b(t=>{const e=this.switchTabs().subscribe(e=>{if(!e||!e.detail||!e.detail.currentTab)return;const n=e.detail.currentTab;this.isPreviousTabPhotos=this.isPhotosTab,this.isPhotosTab="photos"===n,this.isVariantsTab="variation"===n,this.isPhotosTab?(this.loadProductImgSelection=!0,this.currentProductImgSelection&&this.currentProductImgSelection.length?(this.applyCurrentImgSelection(),this.loadProductImgSelection=!1):this.initProductImgSelection()):this.isPreviousTabPhotos&&this.saveCurrentImgSelection(),t.next(this.isPhotosTab)});this.subscriptions.push(e)})}getShopImg(t){return this.http.get(`${this.image_manager_api}${this.shopId}/images/${t}`,this.getOptionsHeadersWithBearer())}initProductImgSelection(){this.imgSelectionService.emitImgListLoading(!0);const t=this.retrieveImgSelection().subscribe(t=>{if(!(t&&t.photos&&t.photos.infos&&t.photos.infos.files&&t.photos.infos.files.length))return this.loadProductImgSelection=!1,void this.imgSelectionService.emitImgListLoading(!1);const e=[];t.photos.infos.files.forEach(t=>e.push(this.getShopImg(t.toString()).pipe(df(1))));const n=Cg(e).subscribe(t=>{this.saveCurrentImgSelection(t),this.applyCurrentImgSelection(),this.loadProductImgSelection=!1},t=>{this.loadProductImgSelection=!1,this.imgSelectionService.emitImgListLoading(!1)});this.subscriptions.push(n)});this.subscriptions.push(t),this.canvaService.expectedImgSizesChange(this.expectedMediaDto)}retrieveImgSelection(){const t=new FormData;return t.append("rub","main"),t.append("action","getAllInfos"),t.append("prodId",this.productId),t.append("_token",""),t.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,t,this.getOptionsHeaders())}updateImgSelectionOnChange(){const t=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{if(t)if(this.isPhotosTab&&!this.loadProductImgSelection){const e=[];t.forEach(t=>{e.push(parseInt(t.id_file))}),this.updateProductImgSelection(e)}else!this.isPhotosTab&&t.length&&this.eventService.sendImgSelectedToPage(t[0])});this.subscriptions.push(t)}updateProductImgSelection(t){if(this.productId&&"0"!==this.productId||!Wizi._produit.global.PROD_ID||(this.productId=Wizi._produit.global.PROD_ID.toString()),Wizi._produit._dataTmp.photos.infos={},Wizi._produit._dataTmp.photos.infos.files=t,this.emitImgSelectionChange(t),this.productId&&"0"!==this.productId){const e=this.submitProductImg(t).subscribe();return void this.subscriptions.push(e)}const e=this.createProduct().subscribe(e=>{if(!e)throw"No product id created. Can not link image(s) to the new product.";Wizi._produit.global.PROD_ID=e,this.productId=e.toString(),this.submitProductImg(t).subscribe()});this.subscriptions.push(e)}submitProductImg(t){const e={files:t,couls:[]},n=new FormData;return n.append("rub","photos"),n.append("action","save"),n.append("newProd",this.isProductCreation?"1":"0"),n.append("prodId",this.productId),n.append("_token",this.shopToken),n.append("_shid",this.shopId.toString()),n.append("data",JSON.stringify(e)),this.http.post(this.productSheetApiRoute,n,this.getOptionsHeaders())}createProduct(){const t=new FormData;return t.append("rub","main"),t.append("action","createProd"),t.append("_token",""),t.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,t,this.getOptionsHeaders())}switchTabs(){return n_(document.getElementById("imgManagerModule"),"switchTab")}emitImgSelectionChange(t){const e=new CustomEvent("onImgSelectionChange",{detail:{idsImgList:t}});document.getElementById("imgManagerModule").dispatchEvent(e)}saveCurrentImgSelection(t){this.currentProductImgSelection=t||JSON.parse(JSON.stringify(this.imgSelectionService.getImgSelection()))}applyCurrentImgSelection(){this.imgSelectionService.setImgSelection(this.currentProductImgSelection),this.imgSelectionService.emitImgListLoading(!1)}getOptionsHeaders(){return{headers:new Mg({"Access-Control-Allow-Origin":"*"})}}getOptionsHeadersWithBearer(){return{headers:new Mg({Authorization:"Bearer "+this.shopToken})}}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(Yt(Wg),Yt(aP),Yt(yk),Yt(pP))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wk=(()=>{class t{constructor(){this.subscriptions=new Map,window.addEventListener("storage",t=>{this.subscriptions.has(t.key)&&this.subscriptions.get(t.key).next(this.unserialize(t.newValue))})}unserialize(t){let e=null;if(t)try{e=JSON.parse(t).data}catch(n){}return e}serialize(t){return JSON.stringify({data:t})}subscribe(t){return this.subscriptions.has(t)||this.subscriptions.set(t,new I),this.subscriptions.get(t)}get(t){const e=localStorage.getItem(t);return Promise.resolve(this.unserialize(e))}set(t,e){return localStorage.setItem(t,this.serialize(e)),Promise.resolve(!0)}remove(t){return localStorage.removeItem(t),Promise.resolve(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ck=(()=>{class t{constructor(t){this.storage=t,this.credentials=null,this.credentials$=this.storage.subscribe(Ch.wiziApiCredentialsKey)}get(){return this.credentials?Promise.resolve(this.credentials):this.storage.get(Ch.wiziApiCredentialsKey).then(t=>(this.credentials=t,this.credentials))}set(t){return this.storage.set(Ch.wiziApiCredentialsKey,t).then(e=>(e&&(this.credentials=t),e))}remove(){return this.storage.remove(Ch.wiziApiCredentialsKey).then(t=>(t&&(this.credentials=null),t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(wk))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Sk(t,e){1&t&&(Uo(0),zo(1,"h3",3),wa(2),ql(3,"translate"),Fo(),jo()),2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.webElement.photosTitle")))}function Ek(t,e){if(1&t){const t=Bo();zo(0,"p",8),zo(1,"a",9),$o("click",(function(){return Xe(t),Yo(2).open()})),wa(2),ql(3,"translate"),Fo(),Fo()}2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.webElement.OpenBtn")))}function Ik(t,e){if(1&t){const t=Bo();Uo(0),Do(1,Ek,4,3,"p",4),zo(2,"div",5),zo(3,"wz-img-manager",6,7),$o("imgManagerClosed",(function(){return Xe(t),Yo().onImgManagerClosed()})),Fo(),Fo(),jo()}if(2&t){const t=Yo();ws(1),Lo("ngIf",t.imgManagerDisplayConfig.displayBtn&&t.isPhotosTab),ws(2),Lo("stateDisplayed",t.imgManagerDisplayConfig.stateDisplayed)("multipleImgMode",t.imgManagerDisplayConfig.multipleImgMode)("showImgManagerModule",t.imgManagerDisplayConfig.showImgManagerModule&&t.openImgManager)("showSelection",t.imgManagerDisplayConfig.showSelection)("externalConfig",t.imgExternalConfig)}}let xk=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.translateService=t,this.imgSelectionService=e,this.canvaService=n,this.ficheProductService=i,this.authCredentialsService=s,this.http=r,this.eventService=o,this.imgManagerService=a,this.openImgManager=!1,this.loading=!0,this.isPhotosTab=Ch.isPhotosTab,this.subscriptions=[]}ngOnInit(){console.log("AppComponent"),this.loading=!0,this.pageficheProductConfig=this.imgManagerService.getImgManagerDisplayConfig("fiche-product"),this.pageEventConfig=this.imgManagerService.getImgManagerDisplayConfig("wizi-block"),this.setCurrentLanguage(),this.setDisplayedPageConfig();const t=this.getCredentials().subscribe(t=>{this.loading=!1,this.initVariables(t),this.imgManagerDisplayConfig.pageficheProduct?this.setFicheProductPage():this.setPageWithEvents()});this.subscriptions.push(t)}initVariables(t){if(!t){if(Ch.isWizishopcom)return;return this.setAppVars(null,Ch.local.shopId,null,Ch.local.token),this.setImgManagerExtraConfig(),void(this.imgManagerDisplayConfig=this.pageficheProductConfig)}this.setAppVars(t.user_id,t.shop_id,t.account_id,t.token),this.setImgManagerExtraConfig()}setFicheProductPage(){this.ficheProductService.setApiConfig(this.id_shop,this.token_shop),this.handleFicheProductTab(),this.closeImgManagerOnSwitchingTab(),this.subscribePageAskForImg(),this.ficheProductService.updateImgSelectionOnChange()}setPageWithEvents(){this.subscribePageAskForImg();const t=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{t&&t.length&&this.eventService.sendImgSelectedToPage(t[0])});this.subscriptions.push(t)}subscribePageAskForImg(){const t=this.eventService.pageAskForImg().subscribe(t=>{this.eventService.setEmitter(t&&t.detail?t.detail.from:null),this.imgSelectionService.setImgSelection(null),this.open()});this.subscriptions.push(t)}open(){this.openImgManager=!0}onImgManagerClosed(){this.openImgManager=!1}setCurrentLanguage(){const t=window.location.pathname.match(/^\/(\w+)\//);this.translateService.use(t&&t[1]?t[1]:"fr")}setDisplayedPageConfig(){const t=/\/products\/(\d+\/edit|create)/.test(window.location.pathname);this.imgManagerDisplayConfig=t?this.pageficheProductConfig:this.pageEventConfig}handleFicheProductTab(){const t=this.ficheProductService.handleTabs().subscribe(t=>{this.imgManagerDisplayConfig=t?this.pageficheProductConfig:this.pageEventConfig,this.isPhotosTab=t});this.subscriptions.push(t)}closeImgManagerOnSwitchingTab(){const t=this.ficheProductService.switchTabs().subscribe(t=>{this.openImgManager=!1});this.subscriptions.push(t)}getCredentials(){return j(this.authCredentialsService.get())}setAppVars(t,e,n,i){this.userId=t,this.id_shop=e,this.accountId=n,this.token_shop=i}setImgManagerExtraConfig(){const t=new mk;t.shop_token=this.token_shop,t.image_manager_route=Ch.wizi_api+"/image-manager/shops/"+this.id_shop,t.canva_token="wdByHayF5v57nj2ZSLvu055O",t.canva_url="https://sdk.canva.com/designbutton/v2/api.js",t.pexels_token="563492ad6f91700001000001e39215727d8b42c1b08498a9ce1e6b94",t.pexels_route="https://api.pexels.com/v1",t.shop_category="other",t.assets_route=Ch.assets_route;const e=new _k;e.url_raw_image=`${Ch.CDN_URL}${this.id_shop}/RAW-`,e.url_100_image=`${Ch.CDN_URL}${this.id_shop}/m100-`,e.url_200_image=`${Ch.CDN_URL}${this.id_shop}/cs200-`,e.url_400_image=`${Ch.CDN_URL}${this.id_shop}/cs400-`,e.url_800_image=`${Ch.CDN_URL}${this.id_shop}/cs800-`,this.imgExternalConfig=new lP,this.imgExternalConfig.api=t,this.imgExternalConfig.imgCDNConfig=e;const n=this.getShopCategory().subscribe(t=>{t&&t.category&&(this.imgExternalConfig.api.shop_category=t.category)});this.subscriptions.push(n)}getShopCategory(){return this.http.get(`${Ch.wizi_api}/shops/${this.id_shop}`,this.getOptionsHeadersWithBearer())}getOptionsHeadersWithBearer(){return{headers:new Mg({Authorization:"Bearer "+this.token_shop})}}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ff),Oo(aP),Oo(pP),Oo(bk),Oo(Ck),Oo(Wg),Oo(yk),Oo(cP))},t.\u0275cmp=pe({type:t,selectors:[["img-manager"]],decls:5,vars:5,consts:[[1,"info-bulle"],[1,"info-bulle-content",3,"innerHTML"],[4,"ngIf"],[1,"wizicss-sous-titre"],["class","img-manager-open",4,"ngIf"],[1,"imgManagerBox"],[3,"stateDisplayed","multipleImgMode","showImgManagerModule","showSelection","externalConfig","imgManagerClosed"],["wzImgManager",""],[1,"img-manager-open"],[3,"click"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"p",1),ql(2,"translate"),Do(3,Sk,4,3,"ng-container",2),Do(4,Ik,5,6,"ng-container",2),Fo()),2&t&&(ws(1),Lo("innerHTML",Gl(2,3,"ImgManager.webElement.infoBulle"),Xi),ws(2),Lo("ngIf",e.imgManagerDisplayConfig.pageficheProduct&&e.isPhotosTab),ws(1),Lo("ngIf",!e.loading&&e.id_shop&&e.imgManagerDisplayConfig))},directives:[Xh,mP],pipes:[Vf],styles:[""]}),t})();const Tk=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Pk={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pk.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pk.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function kk(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Tk.call(t,e)}(t,e)||(i=n,0))),i}class Mk{constructor(t,e){this.componentFactory=e.get(Ga).resolveComponentFactory(t)}create(t){return new Dk(this.componentFactory,t)}}class Dk{constructor(t,e){this.componentFactory=t,this.injector=e,this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}connect(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)}disconnect(){null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Pk.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))}getInputValue(t){return null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t]}setInputValue(t,e){var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)}initializeComponent(t){const e=ho.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=kk(t,e,s);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ah).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(z(t=>({name:n,value:t}))));this.events=G(...e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pk.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Oa(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}}class Ak extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ok(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}function Rk(t){return new vk(t,Ch.translations_route,".json?version=1.0.2")}Yp.prototype.containsElement=(t,e)=>{let n=e;for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1};let Lk=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(Ga).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Mk(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Ak{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),s=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?s.forEach(([t])=>delete this[t]):Ok(n,this),s.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}}return r.observedAttributes=Object.keys(s),Ok(n,r.prototype),r}(xk,{injector:this.injector});customElements.get("img-manager")||customElements.define("img-manager",t)}}return t.\u0275mod=_e({type:t,bootstrap:[xk]}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(ho))},providers:[{provide:zh,useValue:"/"}],imports:[[Nu,rg,fk,$b.forRoot([{path:"**",component:xk}]),Uf.forRoot({defaultLanguage:"fr",loader:{provide:yf,useFactory:Rk,deps:[Wg]}})]]}),t})();Ch.production&&function(){if(Si)throw new Error("Cannot enable prod mode after platform setup.");Ci=!1}(),Ru().bootstrapModule(Lk).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);
1
+ !function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++)0!==o[t[a]]&&(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.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},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="",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([]);(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(e,t,n){e.exports=n("hN/g")},KJ4T:function(e,t){!function(e,t){"use strict";function n(){var e=L.splice(0,L.length);for(Ke=0;e.length;)e.shift().call(null,e.shift())}function o(e,t){for(var n=0,o=e.length;n<o;n++)d(e[n],t)}function r(e){return function(t){Ae(t)&&(d(t,e),ae.length&&o(t.querySelectorAll(ae),e))}}function a(e){var t=Ve.call(e,"is"),n=e.nodeName.toUpperCase(),o=se.call(oe,t?ee+t.toUpperCase():Q+n);return t&&-1<o&&!i(n,t)?-1:o}function i(e,t){return-1<ae.indexOf(e+'[is="'+t+'"]')}function s(e){var t=e.currentTarget,n=e.attrChange,o=e.attrName,r=e.target,a=e[$]||2,i=e[X]||3;!ot||r&&r!==t||!t[V]||"style"===o||e.prevValue===e.newValue&&(""!==e.newValue||n!==a&&n!==i)||t[V](o,n===a?null:e.prevValue,n===i?null:e.newValue)}function l(e){var t=r(e);return function(e){L.push(t,e.target),Ke&&clearTimeout(Ke),Ke=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(K,c)),ae.length&&o((e.target||E).querySelectorAll(ae),e.detail===x?x:j),Ne&&function(){for(var e,t=0,n=Ie.length;t<n;t++)ie.contains(e=Ie[t])||(n--,Ie.splice(t--,1),d(e,x))}()}function u(e,t){var n=this;Be.call(n,e,t),M.call(n,{target:n})}function h(e,t,n){var o=t.apply(e,n),r=a(o);return-1<r&&Z(o,re[r]),n.pop()&&ae.length&&function(e){for(var t,n=0,o=e.length;n<o;n++)Z(t=e[n],re[a(t)])}(o.querySelectorAll(ae)),o}function p(e,t){He(e,t),D?D.observe(e,Xe):(tt&&(e.setAttribute=u,e[A]=S(e),e[I](Y,M)),e[I](J,s)),e[G]&&ot&&(e.created=!0,e[G](),e.created=!1)}function f(e){throw new Error("A "+e+" type is already registered")}function d(e,t){var n,o,r=a(e);-1<r&&!xe.call(e,"TEMPLATE")&&(O(e,re[r]),r=0,t!==j||e[j]?t!==x||e[x]||(e[j]=!1,e[x]=!0,o="disconnected",r=1):(e[x]=!1,e[j]=!0,o="connected",r=1,Ne&&se.call(Ie,e)<0&&Ie.push(e)),r&&(n=e[t+R]||e[o+R])&&n.call(e))}function m(){}function g(e,t,n){var o=n&&n[F]||"",r=t.prototype,a=De(r),i=t.observedAttributes||pe,s={prototype:a};ze(a,G,{value:function(){if(we)we=!1;else if(!this[ye]){this[ye]=!0,new t(this),r[G]&&r[G].call(this);var e=Le[Ce.get(t)];(!_e||e.create.length>1)&&v(this)}}}),ze(a,V,{value:function(e){-1<se.call(i,e)&&r[V]&&r[V].apply(this,arguments)}}),r[q]&&ze(a,U,{value:r[q]}),r[B]&&ze(a,W,{value:r[B]}),o&&(s[F]=o),e=e.toUpperCase(),Le[e]={constructor:t,create:o?[o,Se(e)]:[e]},Ce.set(t,e),E[N](e.toLowerCase(),s),_(e),Me[e].r()}function T(e){var t=Le[e.toUpperCase()];return t&&t.constructor}function y(e){return"string"==typeof e?e:e&&e.is||""}function v(e){for(var t,n=e[V],o=n?e.attributes:pe,r=o.length;r--;)n.call(e,(t=o[r]).name||t.nodeName,null,t.value||t.nodeValue)}function _(e){return(e=e.toUpperCase())in Me||(Me[e]={},Me[e].p=new be((function(t){Me[e].r=t}))),Me[e].p}function k(){ve&&delete e.customElements,he(e,"customElements",{configurable:!0,value:new m}),he(e,"CustomElementRegistry",{configurable:!0,value:m});for(var t=w.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,o;return e||(e=this),e[ye]||(we=!0,t=Le[Ce.get(e.constructor)],(e=(o=_e&&1===t.create.length)?Reflect.construct(n,pe,t.constructor):E.createElement.apply(E,t.create))[ye]=!0,we=!1,o||v(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(o){he(n,ye,{value:e[t]})}}}(t[n]));E.createElement=function(e,t){var n=y(t);return n?$e.call(this,e,Se(n)):$e.call(this,e)},Ye||(et=!0,E[N](""))}var E=e.document,b=e.Object,w=function(e){var t,n,o,r,a=/^[A-Z]+[a-z]/,i=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(b.create||b)(null),l={};for(n in e)for(r in e[n])for(s[r]=o=e[n][r],t=0;t<o.length;t++)s[o[t].toLowerCase()]=s[o[t].toUpperCase()]=r;return l.get=function(e){return"string"==typeof e?s[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},l.set=function(e,t){return a.test(e)?i(e,t):i(t,e),l},l}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var L,M,C,S,D,H,O,Z,P,N="registerElement",z=1e5*e.Math.random()>>0,A="__"+N+z,I="addEventListener",j="attached",R="Callback",x="detached",F="extends",V="attributeChanged"+R,U=j+R,q="connected"+R,B="disconnected"+R,G="created"+R,W=x+R,$="ADDITION",X="REMOVAL",J="DOMAttrModified",K="DOMContentLoaded",Y="DOMSubtreeModified",Q="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],oe=[],re=[],ae="",ie=E.documentElement,se=oe.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},le=b.prototype,ce=le.hasOwnProperty,ue=le.isPrototypeOf,he=b.defineProperty,pe=[],fe=b.getOwnPropertyDescriptor,de=b.getOwnPropertyNames,me=b.getPrototypeOf,ge=b.setPrototypeOf,Te=!!b.__proto__,ye="__dreCEv1",ve=e.customElements,_e=!/^force/.test(t.type)&&!!(ve&&ve.define&&ve.get&&ve.whenDefined),ke=b.create||b,Ee=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[se.call(t,e)]},set:function(o,r){(e=se.call(t,o))<0?n[t.push(o)-1]=r:n[e]=r}}},be=e.Promise||function(e){function t(e){for(o=!0;n.length;)n.shift()(e)}var n=[],o=!1,r={catch:function(){return r},then:function(e){return n.push(e),o&&setTimeout(t,1),r}};return e(t),r},we=!1,Le=ke(null),Me=ke(null),Ce=new Ee,Se=function(e){return e.toLowerCase()},De=b.create||function e(t){return t?(e.prototype=t,new e):this},He=ge||(Te?function(e,t){return e.__proto__=t,e}:de&&fe?function(){function e(e,t){for(var n,o=de(t),r=0,a=o.length;r<a;r++)ce.call(e,n=o[r])||he(e,n,fe(t,n))}return function(t,n){do{e(t,n)}while((n=me(n))&&!ue.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Oe=e.MutationObserver||e.WebKitMutationObserver,Ze=e.HTMLAnchorElement,Pe=(e.HTMLElement||e.Element||e.Node).prototype,Ne=!ue.call(Pe,ie),ze=Ne?function(e,t,n){return e[t]=n.value,e}:he,Ae=Ne?function(e){return 1===e.nodeType}:function(e){return ue.call(Pe,e)},Ie=Ne&&[],je=Pe.attachShadow,Re=Pe.cloneNode,xe=Pe.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},Fe=Pe.dispatchEvent,Ve=Pe.getAttribute,Ue=Pe.hasAttribute,qe=Pe.removeAttribute,Be=Pe.setAttribute,Ge=E.createElement,We=E.importNode,$e=Ge,Xe=Oe&&{attributes:!0,characterData:!0,attributeOldValue:!0},Je=Oe||function(e){tt=!1,ie.removeEventListener(J,Je)},Ke=0,Ye=N in E&&!/^force-all/.test(t.type),Qe=!0,et=!1,tt=!0,nt=!0,ot=!0;if(Oe&&((P=E.createElement("div")).innerHTML="<div><div></div></div>",new Oe((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(P=fe(Pe,"innerHTML"))&&P.set;n&&he(Pe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),P=null})).observe(P,{childList:!0,subtree:!0}),P.innerHTML=""),Ye||(ge||Te?(O=function(e,t){ue.call(t,e)||p(e,t)},Z=p):Z=O=function(e,t){e[A]||(e[A]=b(!0),p(e,t))},Ne?(tt=!1,function(){var e=fe(Pe,I),t=e.value,n=function(e){var t=new CustomEvent(J,{bubbles:!0});t.attrName=e,t.prevValue=Ve.call(this,e),t.newValue=null,t[X]=t.attrChange=2,qe.call(this,e),Fe.call(this,t)},o=function(e,t){var n=Ue.call(this,e),o=n&&Ve.call(this,e),r=new CustomEvent(J,{bubbles:!0});Be.call(this,e,t),r.attrName=e,r.prevValue=n?o:null,r.newValue=t,n?r.MODIFICATION=r.attrChange=1:r[$]=r.attrChange=0,Fe.call(this,r)},r=function(e){var t,n=e.currentTarget,o=n[A],r=e.propertyName;o.hasOwnProperty(r)&&(o=o[r],(t=new CustomEvent(J,{bubbles:!0})).attrName=o.name,t.prevValue=o.value||null,t.newValue=o.value=n[r]||null,null==t.prevValue?t[$]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,Fe.call(n,t))};e.value=function(e,a,i){e===J&&this[V]&&this.setAttribute!==o&&(this[A]={className:{name:"class",value:this.className}},this.setAttribute=o,this.removeAttribute=n,t.call(this,"propertychange",r)),t.call(this,e,a,i)},he(Pe,I,e)}()):Oe||(ie[I](J,Je),ie.setAttribute(A,1),ie.removeAttribute(A),tt&&(M=function(e){var t,n,o,r=this;if(r===e.target){for(o in t=r[A],r[A]=n=S(r),n){if(!(o in t))return C(0,r,o,t[o],n[o],$);if(n[o]!==t[o])return C(1,r,o,t[o],n[o],"MODIFICATION")}for(o in t)if(!(o in n))return C(2,r,o,t[o],n[o],X)}},C=function(e,t,n,o,r,a){var i={attrChange:e,currentTarget:t,attrName:n,prevValue:o,newValue:r};i[a]=e,s(i)},S=function(e){for(var t,n,o={},r=e.attributes,a=0,i=r.length;a<i;a++)"setAttribute"!==(n=(t=r[a]).name)&&(o[n]=t.value);return o})),E[N]=function(e,t){if(n=e.toUpperCase(),Qe&&(Qe=!1,Oe?(D=function(e,t){function n(e,t){for(var n=0,o=e.length;n<o;t(e[n++]));}return new Oe((function(o){for(var r,a,i,s=0,l=o.length;s<l;s++)"childList"===(r=o[s]).type?(n(r.addedNodes,e),n(r.removedNodes,t)):(a=r.target,ot&&a[V]&&"style"!==r.attributeName&&(i=Ve.call(a,r.attributeName))!==r.oldValue&&a[V](r.attributeName,r.oldValue,i))}))}(r(j),r(x)),(H=function(e){return D.observe(e,{childList:!0,subtree:!0}),e})(E),je&&(Pe.attachShadow=function(){return H(je.apply(this,arguments))})):(L=[],E[I]("DOMNodeInserted",l(j)),E[I]("DOMNodeRemoved",l(x))),E[I](K,c),E[I]("readystatechange",c),E.importNode=function(e,t){switch(e.nodeType){case 1:return h(E,We,[e,!!t]);case 11:for(var n=E.createDocumentFragment(),o=e.childNodes,r=o.length,a=0;a<r;a++)n.appendChild(E.importNode(o[a],!!t));return n;default:return Re.call(e,!!t)}},Pe.cloneNode=function(e){return h(this,Re,[!!e])}),et)return et=!1;if(-2<se.call(oe,ee+n)+se.call(oe,Q+n)&&f(e),!te.test(n)||-1<se.call(ne,n))throw new Error("The type "+e+" is invalid");var n,a,i=function(){return u?E.createElement(p,n):E.createElement(p)},s=t||le,u=ce.call(s,F),p=u?t[F].toUpperCase():n;return u&&-1<se.call(oe,Q+p)&&f(p),a=oe.push((u?ee:Q)+n)-1,ae=ae.concat(ae.length?",":"",u?p+'[is="'+e.toLowerCase()+'"]':p),i.prototype=re[a]=ce.call(s,"prototype")?s.prototype:De(Pe),ae.length&&o(E.querySelectorAll(ae),j),i},E.createElement=$e=function(e,t){var n=y(t),o=n?Ge.call(E,e,Se(n)):Ge.call(E,e),r=""+e,a=se.call(oe,(n?ee:Q)+(n||r).toUpperCase()),s=-1<a;return n&&(o.setAttribute("is",n=n.toLowerCase()),s&&(s=i(r.toUpperCase(),n))),ot=!E.createElement.innerHTMLHelper,s&&Z(o,re[a]),o}),addEventListener("beforeunload",(function(){delete E.createElement,delete E.importNode,delete E[N]}),!1),m.prototype={constructor:m,define:_e?function(e,t,n){if(n)g(e,t,n);else{var o=e.toUpperCase();Le[o]={constructor:t,create:[o]},Ce.set(t,o),ve.define(e,t)}}:g,get:_e?function(e){return ve.get(e)||T(e)}:T,whenDefined:_e?function(e){return be.race([ve.whenDefined(e),_(e)])}:_},!ve||/^force/.test(t.type))k();else if(!t.noBuiltIn)try{!function(t,n,o){var r=new RegExp("^<a\\s+is=('|\")"+o+"\\1></a>$");if(n[F]="a",(t.prototype=De(Ze.prototype)).constructor=t,e.customElements.define(o,t,n),!r.test(E.createElement("a",{is:o}).outerHTML)||!r.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(Ze,[],e)}),{},"document-register-element-a"+z)}catch(rt){k()}if(!t.noBuiltIn)try{if(Ge.call(E,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(at){Se=function(e){return{is:e.toLowerCase()}}}}(window)},"hN/g":function(e,t,n){"use strict";n.r(t),n("pDpN"),n("KJ4T")},pDpN:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function a(e){return r+e}const i=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(i||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class s{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return O.zone}static get currentTask(){return Z}static __load_patch(t,r){if(D.hasOwnProperty(t)){if(i)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const a="Zone:"+t;n(a),D[t]=r(e,s,H),o(a,a)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{O=O.parent}}runGuarded(e,t=null,n,o){O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{O=O.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");if(e.state===_&&(e.type===S||e.type===C))return;const o=e.state!=b;o&&e._transitionTo(b,E),e.runCount++;const r=Z;Z=e,O={parent:O,zone:this};try{e.type==C&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==_&&e.state!==L&&(e.type==S||e.data&&e.data.isPeriodic?o&&e._transitionTo(E,b):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(_,b,_))),O=O.parent,Z=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(k,_);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(L,k,_),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(E,k),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(M,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(C,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(S,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");e._transitionTo(w,E,b);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(L,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(_,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}s.__symbol__=a;const l={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,a)=>e.invokeTask(n,o,r,a),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class c{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=M)throw new Error("Task is missing scheduleFn.");T(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,a,i){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=a,this.cancelFn=i,!o)throw new Error("callback is not defined");this.callback=o;const s=this;this.invoke=t===S&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,s,this,arguments)}}static invokeTask(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&y(),P--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(_,k)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==_&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=a("setTimeout"),p=a("Promise"),f=a("then");let d,m=[],g=!1;function T(t){if(0===P&&0===m.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,y)}else e[h](y,0);t&&m.push(t)}function y(){if(!g){for(g=!0;m.length;){const t=m;m=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){H.onUnhandledError(e)}}}H.microtaskDrainDone(),g=!1}}const v={name:"NO ZONE"},_="notScheduled",k="scheduling",E="scheduled",b="running",w="canceling",L="unknown",M="microTask",C="macroTask",S="eventTask",D={},H={symbol:a,currentZoneFrame:()=>O,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:T,showUncaughtError:()=>!s[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N};let O={parent:null,zone:new s(null,null)},Z=null,P=0;function N(){}o("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,a=n.symbol,i=[],s=!0===e[a("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=a("Promise"),c=a("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;i.length;){const t=i.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=a("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return C.reject(e)}const m=a("state"),g=a("value"),T=a("finally"),y=a("parentPromiseValue"),v=a("parentPromiseState");function _(e,t){return n=>{try{E(e,t,n)}catch(o){E(e,!1,o)}}}const k=a("currentTaskTrace");function E(e,o,a){const l=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===a)throw new TypeError("Promise resolved with itself");if(null===e[m]){let h=null;try{"object"!=typeof a&&"function"!=typeof a||(h=a&&a.then)}catch(u){return l(()=>{E(e,!1,u)})(),e}if(!1!==o&&a instanceof C&&a.hasOwnProperty(m)&&a.hasOwnProperty(g)&&null!==a[m])w(a),E(e,a[m],a[g]);else if(!1!==o&&"function"==typeof h)try{h.call(a,l(_(e,o)),l(_(e,!1)))}catch(u){l(()=>{E(e,!1,u)})()}else{e[m]=o;const l=e[g];if(e[g]=a,e[T]===T&&!0===o&&(e[m]=e[v],e[g]=e[y]),!1===o&&a instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(a,k,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)L(e,l[t++],l[t++],l[t++],l[t++]);if(0==l.length&&0==o){e[m]=0;let o=a;if(!s)try{throw new Error("Uncaught (in promise): "+((c=a)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(a&&a.stack?"\n"+a.stack:""))}catch(u){o=u}o.rejection=a,o.promise=e,o.zone=t.current,o.task=t.currentTask,i.push(o),n.scheduleMicroTask()}}}var c;return e}const b=a("rejectionHandledHandler");function w(e){if(0===e[m]){try{const n=t[b];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(n){}e[m]=!1;for(let t=0;t<i.length;t++)e===i[t].promise&&i.splice(t,1)}}function L(e,t,n,o,r){w(e);const a=e[m],i=a?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[g],r=!!n&&T===n[T];r&&(n[y]=o,n[v]=a);const s=t.run(i,void 0,r&&i!==d&&i!==f?[]:[o]);E(n,!0,s)}catch(o){E(n,!1,o)}},n)}const M=function(){};class C{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return E(new this(null),!0,e)}static reject(e){return E(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function a(e){n(e)}for(let i of e)p(i)||(i=this.resolve(i)),i.then(r,a);return o}static all(e){return C.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof C?this:C).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),a=2,i=0;const s=[];for(let c of e){p(c)||(c=this.resolve(c));const e=i;try{c.then(o=>{s[e]=t?t.thenCallback(o):o,a--,0===a&&n(s)},r=>{t?(s[e]=t.errorCallback(r),a--,0===a&&n(s)):o(r)})}catch(l){o(l)}a++,i++}return a-=2,0===a&&n(s),r}constructor(e){const t=this;if(!(t instanceof C))throw new Error("Must be an instanceof Promise.");t[m]=null,t[g]=[];try{e&&e(_(t,!0),_(t,!1))}catch(n){E(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return C}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||C);const r=new o(M),a=t.current;return null==this[m]?this[g].push(a,r,e,n):L(this,a,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=C);const o=new n(M);o[T]=T;const r=t.current;return null==this[m]?this[g].push(r,o,e,e):L(this,r,o,e,e),o}}C.resolve=C.resolve,C.reject=C.reject,C.race=C.race,C.all=C.all;const S=e[l]=e.Promise,D=t.__symbol__("ZoneAwarePromise");let H=o(e,"Promise");H&&!H.configurable||(H&&delete H.writable,H&&delete H.value,H||(H={configurable:!0,enumerable:!0}),H.get=function(){return e[D]?e[D]:e[l]},H.set=function(t){t===C?e[D]=t:(e[l]=t,t.prototype[c]||Z(t),n.setNativePromise(t))},r(e,"Promise",H)),e.Promise=C;const O=a("thenPatched");function Z(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[c]=r,e.prototype.then=function(e,t){return new C((e,t)=>{r.call(this,e,t)}).then(e,t)},e[O]=!0}if(n.patchThen=Z,S){Z(S);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(P=t,function(){let e=P.apply(this,arguments);if(e instanceof C)return e;let t=e.constructor;return t[O]||Z(t),e}))}var P;return Promise[t.__symbol__("uncaughtPromiseErrors")]=i,C});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,a=Zone.__symbol__("addEventListener"),i=Zone.__symbol__("removeEventListener"),s=Zone.__symbol__("");function l(e,t){return Zone.current.wrap(e,t)}function c(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function m(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=l(e[n],t+"_"+n));return e}function g(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,y=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),v=!y&&!T&&!(!h||!p.HTMLElement),_=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!T&&!(!h||!p.HTMLElement),k={},E=function(e){if(!(e=e||f.event))return;let t=k[e.type];t||(t=k[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(v&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function b(n,o,r){let a=e(n,o);if(!a&&r&&e(r,o)&&(a={enumerable:!0,configurable:!0}),!a||!a.configurable)return;const i=u("on"+o+"patched");if(n.hasOwnProperty(i)&&n[i])return;delete a.writable,delete a.value;const s=a.get,l=a.set,c=o.substr(2);let h=k[c];h||(h=k[c]=u("ON_PROPERTY"+c)),a.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(c,E),l&&l.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(c,E,!1)):t[h]=null)},a.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(s){let t=s&&s.call(this);if(t)return a.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,a),n[i]=!0}function w(e,t,n){if(t)for(let o=0;o<t.length;o++)b(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)b(e,t[o],n)}}const L=u("originalInstance");function M(e){const n=f[e];if(!n)return;f[u(e)]=n,f[e]=function(){const t=m(arguments,e);switch(t.length){case 0:this[L]=new n;break;case 1:this[L]=new n(t[0]);break;case 2:this[L]=new n(t[0],t[1]);break;case 3:this[L]=new n(t[0],t[1],t[2]);break;case 4:this[L]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},D(f[e],n);const o=new n((function(){}));let r;for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?f[e].prototype[n]=function(){return this[L][n].apply(this[L],arguments)}:t(f[e].prototype,n,{set:function(t){"function"==typeof t?(this[L][n]=l(t,e+"."+n),D(this[L][n],t)):this[L][n]=t},get:function(){return this[L][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(f[e][r]=n[r])}function C(t,o,r){let a=t;for(;a&&!a.hasOwnProperty(o);)a=n(a);!a&&t[o]&&(a=t);const i=u(o);let s=null;if(a&&!(s=a[i])&&(s=a[i]=a[o],g(a&&e(a,o)))){const e=r(s,i,o);a[o]=function(){return e(this,arguments)},D(a[o],s)}return s}function S(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=C(e,t,e=>function(t,o){const a=n(t,o);return a.cbIdx>=0&&"function"==typeof o[a.cbIdx]?c(a.name,o[a.cbIdx],a,r):e.apply(t,o)})}function D(e,t){e[u("OriginalDelegate")]=t}let H=!1,O=!1;function Z(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function P(){if(H)return O;H=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(O=!0)}catch(e){}return O}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),a=function(){if("function"==typeof this){const a=this[n];if(a)return"function"==typeof a?t.call(a):Object.prototype.toString.call(a);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;const i=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":i.call(this)}});let N=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){N=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(se){N=!1}const z={useG:!0},A={},I={},j=new RegExp("^"+s+"(\\w+)(true|false)$"),R=u("propagationStopped");function x(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=s+n,a=s+o;A[e]={},A[e].false=r,A[e].true=a}function F(e,t,o){const r=o&&o.add||"addEventListener",a=o&&o.rm||"removeEventListener",i=o&&o.listeners||"eventListeners",l=o&&o.rmAll||"removeAllListeners",c=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[a].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[A[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[R]);o++)p(e[o],n,t)}},d=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[A[t.type].true];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[R]);o++)p(e[o],n,t)}};function m(t,o){if(!t)return!1;let p=!0;o&&void 0!==o.useG&&(p=o.useG);const m=o&&o.vh;let g=!0;o&&void 0!==o.chkDup&&(g=o.chkDup);let T=!1;o&&void 0!==o.rt&&(T=o.rt);let v=t;for(;v&&!v.hasOwnProperty(r);)v=n(v);if(!v&&t[r]&&(v=t),!v)return!1;if(v[c])return!1;const _=o&&o.eventNameToString,k={},E=v[c]=v[r],b=v[u(a)]=v[a],w=v[u(i)]=v[i],L=v[u(l)]=v[l];let M;function C(e,t){return!N&&"object"==typeof e&&e?!!e.capture:N&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}o&&o.prepend&&(M=v[u(o.prepend)]=v[o.prepend]);const S=p?function(e){if(!k.isExisting)return E.call(k.target,k.eventName,k.capture?d:f,k.options)}:function(e){return E.call(k.target,k.eventName,e.invoke,k.options)},H=p?function(e){if(!e.isRemoved){const t=A[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return b.call(e.target,e.eventName,e.capture?d:f,e.options)}:function(e){return b.call(e.target,e.eventName,e.invoke,e.options)},O=o&&o.diff?o.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},Z=Zone[u("BLACK_LISTED_EVENTS")],P=e[u("PASSIVE_EVENTS")],R=function(t,n,r,a,i=!1,s=!1){return function(){const l=this||e;let c=arguments[0];o&&o.transferEventName&&(c=o.transferEventName(c));let u=arguments[1];if(!u)return t.apply(this,arguments);if(y&&"uncaughtException"===c)return t.apply(this,arguments);let h=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);h=!0}if(m&&!m(t,u,l,arguments))return;const f=N&&!!P&&-1!==P.indexOf(c),d=C(arguments[2],f);if(Z)for(let e=0;e<Z.length;e++)if(c===Z[e])return f?t.call(l,c,u,d):t.apply(this,arguments);const T=!!d&&("boolean"==typeof d||d.capture),v=!(!d||"object"!=typeof d)&&d.once,E=Zone.current;let b=A[c];b||(x(c,_),b=A[c]);const w=b[T?"true":"false"];let L,M=l[w],S=!1;if(M){if(S=!0,g)for(let e=0;e<M.length;e++)if(O(M[e],u))return}else M=l[w]=[];const D=l.constructor.name,H=I[D];H&&(L=H[c]),L||(L=D+n+(_?_(c):c)),k.options=d,v&&(k.options.once=!1),k.target=l,k.capture=T,k.eventName=c,k.isExisting=S;const j=p?z:void 0;j&&(j.taskData=k);const R=E.scheduleEventTask(L,u,j,r,a);return k.target=null,j&&(j.taskData=null),v&&(d.once=!0),(N||"boolean"!=typeof R.options)&&(R.options=d),R.target=l,R.capture=T,R.eventName=c,h&&(R.originalDelegate=u),s?M.unshift(R):M.push(R),i?l:void 0}};return v[r]=R(E,h,S,H,T),M&&(v.prependListener=R(M,".prependListener:",(function(e){return M.call(k.target,k.eventName,e.invoke,k.options)}),H,T,!0)),v[a]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2],a=!!r&&("boolean"==typeof r||r.capture),i=arguments[1];if(!i)return b.apply(this,arguments);if(m&&!m(b,i,t,arguments))return;const l=A[n];let c;l&&(c=l[a?"true":"false"]);const u=c&&t[c];if(u)for(let e=0;e<u.length;e++){const o=u[e];if(O(o,i))return u.splice(e,1),o.isRemoved=!0,0===u.length&&(o.allRemoved=!0,t[c]=null,"string"==typeof n)&&(t[s+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),T?t:void 0}return b.apply(this,arguments)},v[i]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],a=V(t,_?_(n):n);for(let e=0;e<a.length;e++){const t=a[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},v[l]=function(){const t=this||e;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const e=A[n];if(e){const o=t[e.false],r=t[e.true];if(o){const e=o.slice();for(let t=0;t<e.length;t++){const o=e[t];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const e=r.slice();for(let t=0;t<e.length;t++){const o=e[t];this[a].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=j.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[l].call(this,o)}this[l].call(this,"removeListener")}if(T)return this},D(v[r],E),D(v[a],b),L&&D(v[l],L),w&&D(v[i],w),!0}let g=[];for(let n=0;n<t.length;n++)g[n]=m(t[n],o);return g}function V(e,t){if(!t){const n=[];for(let o in e){const r=j.exec(o);let a=r&&r[1];if(a&&(!t||a===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=A[t];n||(x(t),n=A[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function U(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[R]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const a=Zone.__symbol__(o);if(t[a])return;const i=t[a]=t[o];t[o]=function(a,s,l){return s&&s.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,a=s.prototype;if(a.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(a,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(s.prototype,t,n)):a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],r))}else a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],r))})),i.call(t,a,s,l)},e.attachOriginToPatched(t[o],i)}const B=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],G=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],W=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],K=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Y=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],B,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(y&&!_)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(v){const e=window,t=Z?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,G,r),ne(HTMLFrameSetElement.prototype,B.concat($),r),ne(HTMLBodyElement.prototype,B.concat($),r),ne(HTMLFrameElement.prototype,W,r),ne(HTMLIFrameElement.prototype,W,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const a=e.Worker;a&&ne(a.prototype,Q,r)}const a=t.XMLHttpRequest;a&&ne(a.prototype,J,r);const i=t.XMLHttpRequestEventTarget;i&&ne(i&&i.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,K,r),ne(IDBRequest.prototype,K,r),ne(IDBOpenDBRequest.prototype,K,r),ne(IDBDatabase.prototype,K,r),ne(IDBTransaction.prototype,K,r),ne(IDBCursor.prototype,K,r)),o&&ne(WebSocket.prototype,Y,r)}Zone.__load_patch("util",(n,a,i)=>{i.patchOnProperties=w,i.patchMethod=C,i.bindArguments=m,i.patchMacroTask=S;const c=a.__symbol__("BLACK_LISTED_EVENTS"),u=a.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[c]=n[u]),n[c]&&(a[c]=a[u]=n[c]),i.patchEventPrototype=U,i.patchEventTarget=F,i.isIEOrEdge=P,i.ObjectDefineProperty=t,i.ObjectGetOwnPropertyDescriptor=e,i.ObjectCreate=o,i.ArraySlice=r,i.patchClass=M,i.wrapWithCurrentZone=l,i.filterProperties=te,i.attachOriginToPatched=D,i._redefineProperty=Object.defineProperty,i.patchCallbacks=q,i.getGlobalObjects=()=>({globalSources:I,zoneSymbolEventNames:A,eventNames:ee,isBrowser:v,isMix:_,isNode:y,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function ae(e,t,n,o){let r=null,a=null;n+=o;const i={};function s(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete i[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function l(e){return a(e.data.handleId)}r=C(e,t+=o,n=>function(r,a){if("function"==typeof a[0]){const e=c(t,a[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?a[1]||0:void 0,args:a},s,l);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?i[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,a)}),a=C(e,n,t=>function(n,o){const r=o[0];let a;"number"==typeof r?a=i[r]:(a=r&&r[re],a||(a=r)),a&&"string"==typeof a.type?"notScheduled"!==a.state&&(a.cancelFn&&a.data.isPeriodic||0===a.runCount)&&("number"==typeof r?delete i[r]:r&&(r[re]=null),a.zone.cancelTask(a)):t.apply(e,o)})}function ie(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:a,ZONE_SYMBOL_PREFIX:i}=t.getGlobalObjects();for(let l=0;l<n.length;l++){const e=n[l],t=i+(e+a),s=i+(e+r);o[e]={},o[e][a]=t,o[e][r]=s}const s=e.EventTarget;return s&&s.prototype?(t.patchEventTarget(e,[s&&s.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{ae(e,"set","clear","Timeout"),ae(e,"set","clear","Interval"),ae(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ae(e,"request","cancel","AnimationFrame"),ae(e,"mozRequest","mozCancel","AnimationFrame"),ae(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)C(e,n[o],(n,o,r)=>function(o,a){return t.current.run(n,e,a,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ie(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),M("MutationObserver"),M("WebKitMutationObserver"),M("IntersectionObserver"),M("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[a],m=f[i];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[a],m=e[i]}}function g(e){const o=e.data,l=o.target;l[s]=!1,l[h]=!1;const c=l[r];d||(d=l[a],m=l[i]),c&&m.call(l,"readystatechange",c);const u=l[r]=()=>{if(l.readyState===l.DONE)if(!o.aborted&&l[s]&&"scheduled"===e.state){const n=l[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=l[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||"scheduled"!==e.state||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==l[s]||(l[h]=!0)};return d.call(l,"readystatechange",u),l[n]||(l[n]=e),E.apply(l,o.args),l[s]=!0,e}function T(){}function y(e){const t=e.data;return t.aborted=!0,b.apply(t.target,t.args)}const v=C(f,"open",()=>function(e,t){return e[o]=0==t[2],e[l]=t[1],v.apply(e,t)}),_=u("fetchTaskAborting"),k=u("fetchTaskScheduling"),E=C(f,"send",()=>function(e,n){if(!0===t.current[k])return E.apply(e,n);if(e[o])return E.apply(e,n);{const t={target:e,url:e[l],isPeriodic:!1,args:n,aborted:!1},o=c("XMLHttpRequest.send",T,t,g,y);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),b=C(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[_])return b.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),s=u("xhrScheduled"),l=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r<n.length;r++){const a=n[r],i=t[a];if(i){if(!g(e(t,a)))continue;t[a]=(e=>{const t=function(){return e.apply(this,m(arguments,o+"."+a))};return D(t,e),t})(i)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){V(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[1,0]]]);(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"0Tit":function(t,e){var n="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function r(t){return 3*t}function o(t,e,n){return((i(e,n)*t+s(e,n))*t+r(e))*t}function a(t,e,n){return 3*i(e,n)*t*t+2*s(e,n)*t+r(e)}function l(t){return t}t.exports=function(t,e,i,s){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===s)return l;for(var r=n?new Float32Array(11):new Array(11),c=0;c<11;++c)r[c]=o(.1*c,t,i);return function(n){return 0===n?0:1===n?1:o(function(e){for(var n=0,s=1;10!==s&&r[s]<=e;++s)n+=.1;--s;var l=n+(e-r[s])/(r[s+1]-r[s])*.1,c=a(l,t,i);return c>=.001?function(t,e,n,i){for(var s=0;s<4;++s){var r=a(e,n,i);if(0===r)return e;e-=(o(e,n,i)-t)/r}return e}(e,l,t,i):0===c?l:function(t,e,n,i,s){var r,a,l=0;do{(r=o(a=e+(n-e)/2,i,s)-t)>0?n=a:e=a}while(Math.abs(r)>1e-7&&++l<10);return a}(e,n,n+.1,t,i)}(n),e,s)}}},"4fRq":function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},EcEN:function(t,e,n){var i=n("xDdU"),s=n("xk4V"),r=s;r.v1=i,r.v4=s,t.exports=r},I2ZF:function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},xDdU:function(t,e,n){var i,s,r=n("4fRq"),o=n("I2ZF"),a=0,l=0;t.exports=function(t,e,n){var c=e&&n||0,h=e||[],u=(t=t||{}).node||i,d=void 0!==t.clockseq?t.clockseq:s;if(null==u||null==d){var p=r();null==u&&(u=i=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=s=16383&(p[6]<<8|p[7]))}var g=void 0!==t.msecs?t.msecs:(new Date).getTime(),f=void 0!==t.nsecs?t.nsecs:l+1,m=g-a+(f-l)/1e4;if(m<0&&void 0===t.clockseq&&(d=d+1&16383),(m<0||g>a)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=g,l=f,s=d;var _=(1e4*(268435455&(g+=122192928e5))+f)%4294967296;h[c++]=_>>>24&255,h[c++]=_>>>16&255,h[c++]=_>>>8&255,h[c++]=255&_;var v=g/4294967296*1e4&268435455;h[c++]=v>>>8&255,h[c++]=255&v,h[c++]=v>>>24&15|16,h[c++]=v>>>16&255,h[c++]=d>>>8|128,h[c++]=255&d;for(var y=0;y<6;++y)h[c+y]=u[y];return e||o(h)}},xk4V:function(t,e,n){var i=n("4fRq"),s=n("I2ZF");t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[r+a]=o[a];return e||s(o)}},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(s))try{s.call(this)}catch(o){e=o instanceof h?d(o.errors):[o]}if(l(r)){let t=-1,n=r.length;for(;++t<n;){const n=r[t];if(c(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof h?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new g(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends g{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function v(...t){return y(t)}function y(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof g)return t;if(t[p])return t[p]()}return t||e||n?new g(t,e,n):new g(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class E extends g{constructor(t){super(t),this.destination=t}}let I=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new S(this,t))}asObservable(){const t=new b;return t.source=this,t}}return t.create=(t,e)=>new x(t,e),t})();class x extends I{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class P extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const k=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=M(),A=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function O(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return k(t);if(O(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[D])return e=t,t=>{const n=e[D]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function L(t,e,n,i,s=new P(t,n,i)){if(!s.closed)return e instanceof b?e.subscribe(s):R(e)(s)}class N extends g{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function z(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new V(t,this.project,this.thisArg))}}class V extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function U(t,e){return new b(n=>{const i=new u;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[m]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(O(t))return function(t,e){return new b(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return U(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[D](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(R(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(z((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new W(t,this.project,this.concurrent))}}class W extends N{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new P(this,e,n),s=this.destination;s.add(i);const r=L(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return B(_,t)}function q(t,e){return e?U(t,e):new b(k(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return T(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:$(e)(q(t,n))}function Y(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new K(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class K extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class X extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return Y()(this)}}const Z=(()=>{const t=X.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends E{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(){return new I}function et(t){return{toString:t}.toString()}function nt(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const it=nt("Inject",t=>({token:t})),st=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[ft])||pt(t,t[vt])}function pt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(yt))?t[mt]:null}const ft=lt({"\u0275prov":lt}),mt=lt({"\u0275inj":lt}),_t=lt({"\u0275provFallback":lt}),vt=lt({ngInjectableDef:lt}),yt=lt({ngInjectorDef:lt});function bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function St(t){return t.__forward_ref__=St,t.toString=function(){return bt(this())},t}function Et(t){return It(t)?t():t}function It(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===St}const xt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,Pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt="undefined"!=typeof global&&global,Mt=xt||kt||Tt||Pt,Dt=lt({"\u0275cmp":lt}),At=lt({"\u0275dir":lt}),Ot=lt({"\u0275pipe":lt}),Rt=lt({"\u0275mod":lt}),Lt=lt({"\u0275loc":lt}),Nt=lt({"\u0275fac":lt}),zt=lt({__NG_ELEMENT_ID__:lt});class Ft{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Vt=new Ft("INJECTOR",-1),Ut={},jt=/\n/gm,Bt=lt({provide:String,useValue:lt});let Ht,Wt=void 0;function $t(t){const e=Wt;return Wt=t,e}function qt(t){const e=Ht;return Ht=t,e}function Gt(t,e=at.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Kt(t,void 0,e):Wt.get(t,e&at.Optional?null:void 0,e)}function Yt(t,e=at.Default){return(Ht||Gt)(Et(t),e)}const Qt=Yt;function Kt(t,e,n){const i=dt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${bt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const i=Et(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof st||"Optional"===s.ngMetadataName||s===st?n|=at.Optional:s instanceof ot||"SkipSelf"===s.ngMetadataName||s===ot?n|=at.SkipSelf:s instanceof rt||"Self"===s.ngMetadataName||s===rt?n|=at.Self:t=s instanceof it||s===it?s.token:s}e.push(Yt(t,n))}else e.push(Yt(i))}return e}class Zt{get(t,e=Ut){if(e===Ut){const e=new Error(`NullInjectorError: No provider for ${bt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Jt{}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function re(t,e,n){let i=ae(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const le=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),ce=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),he={},ue=[];let de=0;function pe(t){return et(()=>{const e=t.type,n=e.prototype,i={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,o=t.features,a=t.pipes;return s.id+=de++,s.inputs=ve(t.inputs,i),s.outputs=ve(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=r?()=>("function"==typeof r?r():r).map(ge):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(fe):null,s})}function ge(t){return we(t)||function(t){return t[At]||null}(t)}function fe(t){return function(t){return t[Ot]||null}(t)}const me={};function _e(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{me[t.id]=t.type}),e}function ve(t,e){if(null==t)return he;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const ye=pe;function be(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Dt]||null}function Ce(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function Se(t,e){const n=t[Rt]||null;if(!n&&!0===e)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return n}function Ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ie(t){return Array.isArray(t)&&!0===t[1]}function xe(t){return 0!=(8&t.flags)}function Te(t){return 2==(2&t.flags)}function Pe(t){return 1==(1&t.flags)}function ke(t){return null!==t.template}function Me(t){return 0!=(512&t[2])}let De=void 0;function Ae(){return void 0!==De?De:"undefined"!=typeof document?document:void 0}function Oe(t){return!!t.listen}const Re={createRenderer:(t,e)=>Ae()};function Le(t){for(;Array.isArray(t);)t=t[0];return t}function Ne(t,e){return Le(e[t+20])}function ze(t,e){return Le(e[t.index])}function Fe(t,e){return t.data[e+20]}function Ve(t,e){return t[e+20]}function Ue(t,e){const n=e[t];return Ee(n)?n:n[0]}function je(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Be(t){return 4==(4&t[2])}function He(t){return 128==(128&t[2])}function We(t,e){return null===t||null==e?null:t[e]}function $e(t){t[18]=0}function qe(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Ge={lFrame:mn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ye(){return Ge.bindingsEnabled}function Qe(){return Ge.lFrame.lView}function Ke(){return Ge.lFrame.tView}function Xe(t){Ge.lFrame.contextLView=t}function Ze(){return Ge.lFrame.previousOrParentTNode}function Je(t,e){Ge.lFrame.previousOrParentTNode=t,Ge.lFrame.isParent=e}function tn(){return Ge.lFrame.isParent}function en(){Ge.lFrame.isParent=!1}function nn(){return Ge.checkNoChangesMode}function sn(t){Ge.checkNoChangesMode=t}function rn(){const t=Ge.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function on(){return Ge.lFrame.bindingIndex}function an(){return Ge.lFrame.bindingIndex++}function ln(t){const e=Ge.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function cn(t,e){const n=Ge.lFrame;n.bindingIndex=n.bindingRootIndex=t,hn(e)}function hn(t){Ge.lFrame.currentDirectiveIndex=t}function un(){return Ge.lFrame.currentQueryIndex}function dn(t){Ge.lFrame.currentQueryIndex=t}function pn(t,e){const n=fn();Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function gn(t,e){const n=fn(),i=t[1];Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function fn(){const t=Ge.lFrame,e=null===t?null:t.child;return null===e?mn(t):e}function mn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function _n(){const t=Ge.lFrame;return Ge.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const vn=_n;function yn(){const t=_n();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function bn(){return Ge.lFrame.selectedIndex}function wn(t){Ge.lFrame.selectedIndex=t}function Cn(){const t=Ge.lFrame;return Fe(t.tView,t.selectedIndex)}function Sn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function En(t,e,n){Tn(t,e,3,n)}function In(t,e,n,i){(3&t[2])===n&&Tn(t,e,n,i)}function xn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Tn(t,e,n,i){const s=null!=i?i:-1;let r=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=i&&r>=i)break}else e[o]<0&&(t[18]+=65536),(r<s||-1==s)&&(Pn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Pn(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class kn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Mn(t,e,n){const i=Oe(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];An(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Dn(t){return 3===t||4===t||6===t}function An(t){return 64===t.charCodeAt(0)}function On(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Rn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Rn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Ln(t){return-1!==t}function Nn(t){return 32767&t}function zn(t){return t>>16}function Fn(t,e){let n=zn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Vn(t){return"string"==typeof t?t:null==t?"":""+t}function Un(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Vn(t)}const jn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Mt))();function Bn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Hn(t){return{name:"document",target:t.ownerDocument}}function Wn(t){return t instanceof Function?t():t}let $n=!0;function qn(t){const e=$n;return $n=t,e}let Gn=0;function Yn(t,e){const n=Kn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));const s=Xn(t,e),r=t.injectorIndex;if(Ln(s)){const t=Nn(s),n=Fn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Kn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Xn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Zn(t,e,n){!function(t,e,n){let i="string"!=typeof n?n[zt]:n.charCodeAt(0)||0;null==i&&(i=n[zt]=Gn++);const s=255&i,r=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function Jn(t,e,n,i=at.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[zt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){pn(e,t);try{const t=s();if(null!=t||i&at.Optional)return t;throw new Error(`No provider for ${Un(n)}!`)}finally{vn()}}else if("number"==typeof s){if(-1===s)return new oi(t,e);let r=null,o=Kn(t,e),a=-1,l=i&at.Host?e[16][6]:null;for((-1===o||i&at.SkipSelf)&&(a=-1===o?Xn(t,e):e[o+8],ri(i,!1)?(r=e[1],o=Nn(a),e=Fn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(si(s,o,t.data)){const t=ei(o,e,n,r,i,l);if(t!==ti)return t}ri(i,e[1].data[o+8]===l)&&si(s,o,e)?(r=t,o=Nn(a),e=Fn(a,e)):o=-1}}}if(i&at.Optional&&void 0===s&&(s=null),0==(i&(at.Self|at.Host))){const t=e[9],r=qt(void 0);try{return t?t.get(n,s,i&at.Optional):Kt(n,s,i&at.Optional)}finally{qt(r)}}if(i&at.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Un(n)}]`)}const ti={};function ei(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=ni(a,o,n,null==i?Te(a)&&$n:i!=o&&3===a.type,s&at.Host&&r===a);return null!==l?ii(e,o,l,a):ti}function ni(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=65535&r,l=t.directiveStart,c=r>>16,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(s){const t=o[l];if(t&&ke(t)&&t.type===n)return l}return null}function ii(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof kn){const o=s;if(o.resolving)throw new Error("Circular dep for "+Un(r[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qt(o.injectImpl)),pn(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{onChanges:i,onInit:s,doCheck:r}=e;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&qt(l),qn(a),o.resolving=!1,vn()}}return s}function si(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<<t)}function ri(t,e){return!(t&at.Self||t&at.Host&&e)}class oi{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Jn(this._tNode,this._lView,t,void 0,e)}}function ai(t){const e=t;if(It(t))return()=>{const t=ai(Et(e));return t?t():null};let n=Ce(e);if(null===n){const t=gt(e);n=t&&t.factory}return n||null}function li(t){return et(()=>{const e=t.prototype.constructor,n=e[Nt]||ai(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Nt]||ai(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ci(t){return t.ngDebugContext}function hi(t){return t.ngOriginalError}function ui(t,...e){t.error(...e)}class di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ui}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ci(t)?ci(t):this._findContext(hi(t)):null}_findOriginalError(t){let e=hi(t);for(;e&&hi(e);)e=hi(e);return e}}class pi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class gi extends pi{getTypeName(){return"HTML"}}class fi extends pi{getTypeName(){return"Style"}}class mi extends pi{getTypeName(){return"Script"}}class _i extends pi{getTypeName(){return"URL"}}class vi extends pi{getTypeName(){return"ResourceURL"}}function yi(t){return t instanceof pi?t.changingThisBreaksApplicationSecurity:t}function bi(t,e){const n=wi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function wi(t){return t instanceof pi&&t.getTypeName()||null}let Ci=!0,Si=!1;function Ei(){return Si=!0,Ci}class Ii{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const xi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ti=/^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 Pi(t){return(t=String(t)).match(xi)||t.match(Ti)?t:(Ei()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function ki(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Mi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Di=ki("area,br,col,hr,img,wbr"),Ai=ki("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Oi=ki("rp,rt"),Ri=Mi(Oi,Ai),Li=Mi(Di,Mi(Ai,ki("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")),Mi(Oi,ki("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")),Ri),Ni=ki("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zi=ki("srcset"),Fi=Mi(Ni,zi,ki("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"),ki("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")),Vi=ki("script,style,template");class Ui{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Li.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!Fi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Ni[r]&&(o=Pi(o)),zi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Pi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Hi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Li.hasOwnProperty(e)&&!Di.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Hi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bi=/([^\#-~ |!])/g;function Hi(t){return t.replace(/&/g,"&amp;").replace(ji,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Bi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wi;function $i(t,e){let n=null;try{Wi=Wi||new Ii(t);let i=e?String(e):"";n=Wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Wi.getInertBodyElement(i)}while(i!==r);const o=new Ui,a=o.sanitizeChildren(qi(n)||n);return Ei()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=qi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function qi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Gi=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Yi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Qi=/^url\(([^)]+)\)$/;function Ki(t){if(!(t=String(t).trim()))return"";const e=t.match(Qi);return e&&Pi(e[1])===e[1]||t.match(Yi)&&function(t){let e=!0,n=!0;for(let i=0;i<t.length;i++){const s=t.charAt(i);"'"===s&&n?e=!e:'"'===s&&e&&(n=!n)}return e&&n}(t)?t:(Ei()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function Xi(t){const e=es();return e?e.sanitize(Gi.HTML,t)||"":bi(t,"HTML")?yi(t):$i(Ae(),Vn(t))}function Zi(t){const e=es();return e?e.sanitize(Gi.STYLE,t)||"":bi(t,"Style")?yi(t):Ki(Vn(t))}function Ji(t){const e=es();return e?e.sanitize(Gi.URL,t)||"":bi(t,"URL")?yi(t):Pi(Vn(t))}const ts=function(t,e,n){if(void 0===e&&void 0===n)return Zi(t);let i=!0;return 1&(n=n||3)&&(i=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?i?Zi(e):yi(e):i};function es(){const t=Qe();return t&&t[12]}function ns(t,e){t.__ngContext__=e}function is(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ss(){throw new Error("Cannot mix multi providers and regular providers")}function rs(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}function os(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==rs(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function as(t){return 0===t.type&&"ng-template"!==t.tagName}function ls(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function cs(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Dn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!ls(t,l,n)||""===l&&1===e.length){if(hs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!os(t.attrs,c,n)){if(hs(i))return!1;o=!0}continue}const h=us(8&i?"class":l,s,as(t),n);if(-1===h){if(hs(i))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==rs(e,c,0)||2&i&&c!==t){if(hs(i))return!1;o=!0}}}}else{if(!o&&!hs(i)&&!hs(l))return!1;if(o&&hs(l))continue;o=!1,i=l|1&i}}return hs(i)||o}function hs(t){return 0==(1&t)}function us(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function ds(t,e,n=!1){for(let i=0;i<e.length;i++)if(cs(t,e[i],n))return!0;return!1}function ps(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function gs(t,e){return t?":not("+e.trim()+")":e}function fs(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||hs(o)||(e+=gs(r,s),s=""),i=o,r=r||!hs(i);n++}return""!==s&&(e+=gs(r,s)),e}const ms={};function _s(t){const e=t[3];return Ie(e)?e[3]:e}function vs(t){return bs(t[13])}function ys(t){return bs(t[4])}function bs(t){for(;null!==t&&!Ie(t);)t=t[4];return t}function ws(t){Cs(Ke(),Qe(),bn()+t,nn())}function Cs(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&En(e,i,n)}else{const i=t.preOrderHooks;null!==i&&In(e,i,0,n)}wn(n)}function Ss(t,e){return t<<17|e<<2}function Es(t){return t>>17&32767}function Is(t){return 2|t}function xs(t){return(131068&t)>>2}function Ts(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function ks(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];dn(s),n.contentQueries(2,e[r],r)}}}function Ms(t,e,n){return Oe(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ds(t,e,n,i,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|i,$e(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function As(t,e,n,i,s,r){const o=n+20,a=t.data[o]||function(t,e,n,i,s,r){const o=Ze(),a=tn(),l=a?o:o&&o.parent,c=t.data[n]=Bs(0,l&&l!==e?l:null,i,n,s,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,s,r);return Je(a,!0),a}function Os(t,e,n){gn(e,e[6]);try{const i=t.viewQuery;null!==i&&hr(1,i,n);const s=t.template;null!==s&&Ns(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ks(t,e),t.staticViewQueries&&hr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)rr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,yn()}}function Rs(t,e,n,i){const s=e[2];if(256==(256&s))return;gn(e,e[6]);const r=nn();try{$e(e),Ge.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ns(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&En(e,n,null)}else{const n=t.preOrderHooks;null!==n&&In(e,n,0,null),xn(e,0)}if(function(t){for(let e=vs(t);null!==e;e=ys(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&qe(i,1),n[2]|=1024}}}(e),function(t){for(let e=vs(t);null!==e;e=ys(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];He(n)&&Rs(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&ks(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&En(e,n)}else{const n=t.contentHooks;null!==n&&In(e,n,1),xn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,s=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,wn(r),i+=9+n[++t],s=i):i+=o:(null!==o&&(cn(i,s),o(2,e[s])),s++)}}}finally{wn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)sr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&hr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&En(e,n)}else{const n=t.viewHooks;null!==n&&In(e,n,2),xn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qe(e[3],-1))}finally{yn()}}function Ls(t,e,n,i){const s=e[10],r=!nn(),o=Be(e);try{r&&!o&&s.begin&&s.begin(),o&&Os(t,e,i),Rs(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Ns(t,e,n,i,s){const r=bn();try{wn(-1),2&i&&e.length>20&&Cs(t,e,0,nn()),n(i,s)}finally{wn(r)}}function zs(t,e,n){if(xe(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Fs(t,e,n){Ye()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Yn(n,e),ns(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ke(i);r&&tr(e,n,i);const l=ii(e,t,a,n);ns(l,e),null!==o&&er(0,a-s,l,i,0,o),r&&(Ue(n.index,e)[8]=l)}}(t,e,n,ze(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-20,l=Ge.lFrame.currentDirectiveIndex;try{wn(a);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];hn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Ys(i,s):o&&r.push(null)}}finally{wn(-1),hn(l)}}(t,e,n))}function Vs(t,e,n=ze){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Us(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=js(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function js(t,e,n,i,s,r,o,a,l,c){const h=20+i,u=h+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:ms);return n}(h,u);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function Bs(t,e,n,i,s,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Hs(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Ws(t,e,n,i,s,r,o,a){const l=ze(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[i])?(fr(t,n,c,i,s),Te(e)&&function(t,e){const n=Ue(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=o?o(s,e.tagName||"",i):s,Oe(r)?r.setProperty(l,i,s):An(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function $s(t,e,n,i){let s=!1;if(Ye()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];ds(n,o.selectors,!1)&&(s||(s=[]),Zn(Yn(n,e),t,o.type),ke(o)?(2&n.flags&&is(n),Ks(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){let i=0;s=!0,Zs(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Qs(t,n,r.length);let a=!1,l=!1;for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=On(n.mergedAttrs,c.hostAttrs),Js(t,e,c),Xs(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),qs(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||as(e)?null:nr(n,s);r.push(c),o=Hs(n,l,o),a=Hs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),Gs(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=On(n.mergedAttrs,n.attrs),s}function qs(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Gs(t,e,n){for(let i=0;i<n;i++)e.push(ms),t.blueprint.push(ms),t.data.push(null)}function Ys(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Qs(t,e,n){const i=20-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,s,n)}function Ks(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Xs(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ke(e)&&(n[""]=t)}}function Zs(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Js(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Ce(n.type)),s=new kn(i,ke(n),null);t.blueprint.push(s),e.push(s)}function tr(t,e,n){const i=ze(e,t),s=Us(n),r=t[10],o=or(t,Ds(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=o}function er(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function nr(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ir(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function sr(t,e){const n=Ue(e,t);if(He(n)){const t=n[1];80&n[2]?Rs(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=vs(e);null!==i;i=ys(i))for(let e=10;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Rs(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=Ue(n[i],e);He(s)&&s[5]>0&&t(s)}}(n)}}function rr(t,e){const n=Ue(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Os(i,n,n[8])}function or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ar(t){for(;t;){t[2]|=64;const e=_s(t);if(Me(t)&&!e)return t;t=e}return null}function lr(t,e,n){const i=e[10];i.begin&&i.begin();try{Rs(t,e,t.template,n)}catch(s){throw gr(e,s),s}finally{i.end&&i.end()}}function cr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=je(n),s=i[1];Ls(s,i,s.template,n)}}(t[8])}function hr(t,e,n){dn(0),e(t,n)}const ur=(()=>Promise.resolve(null))();function dr(t){return t[7]||(t[7]=[])}function pr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e){const n=t[9],i=n?n.get(di,null):null;i&&i.handleError(e)}function fr(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function mr(t,e,n){const i=Ne(e,t),s=t[11];Oe(s)?s.setValue(i,n):i.textContent=n}function _r(t,e){const n=e[3];return-1===t.index?Ie(n)?n:null:n}function vr(t,e){const n=_r(t,e);return n?Mr(e[11],n[7]):null}function yr(t,e,n,i,s){if(null!=i){let r,o=!1;Ie(i)?r=i:Ee(i)&&(o=!0,i=i[0]);const a=Le(i);0===t&&null!==n?null==s?Pr(e,n,a):Tr(e,n,a,s||null):1===t&&null!==n?Tr(e,n,a,s||null):2===t?function(t,e,n){const i=Mr(t,e);i&&function(t,e,n,i){Oe(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Le(n)&&yr(e,t,i,r,s);for(let o=10;o<n.length;o++){const s=n[o];Lr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function br(t,e,n,i){const s=vr(t.node,e);s&&Lr(t,e,e[11],n?1:2,s,i)}function wr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&qe(e[3],-1),n.splice(i,1)}function Cr(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&wr(s,i),e>0&&(t[n-1][4]=i[4]);const r=ie(t,10+e);br(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Sr(t,e){if(!(256&e[2])){const n=e[11];Oe(n)&&n.destroyNode&&Lr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ir(t[1],t);for(;e;){let n=null;if(Ee(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ee(e)&&Ir(e[1],e),e=Er(e,t);null===e&&(e=t),Ee(e)&&Ir(e[1],e),n=e&&e[4]}e=n}}(e)}}function Er(t,e){let n;return Ee(t)&&(n=t[6])&&2===n.type?_r(n,t):t[3]===e?null:t[3]}function Ir(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof kn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],r="function"==typeof s?s(e):Le(e[s]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Oe(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ie(e[3])){i!==e[3]&&wr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function xr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?vr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return ze(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return ze(i,n)}function Tr(t,e,n,i){Oe(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Pr(t,e,n){Oe(t)?t.appendChild(e,n):e.appendChild(n)}function kr(t,e,n,i){null!==i?Tr(t,e,n,i):Pr(t,e,n)}function Mr(t,e){return Oe(t)?t.parentNode(e):e.parentNode}function Dr(t,e){if(2===t.type){const n=_r(t,e);return null===n?null:Or(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?ze(t,e):null}function Ar(t,e,n,i){const s=xr(t,i,e);if(null!=s){const t=e[11],r=Dr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)kr(t,s,n[e],r);else kr(t,s,n,r)}}function Or(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return ze(n,e);if(0===i)return Or(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return Ie(t)?Or(-1,t):Le(t)}}{const i=e[16],s=i[6],r=_s(i),o=s.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Rr(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;o&&0===e&&(a&&ns(Le(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Rr(t,e,n.child,i,s,r,!1),yr(e,t,s,a,r)):1===l?Nr(t,e,i,n,s,r):yr(e,t,s,a,r)),n=o?n.projectionNext:n.next}}function Lr(t,e,n,i,s,r){Rr(n,i,t.node.child,e,s,r,!1)}function Nr(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)yr(e,t,s,a[l],r);else Rr(t,e,a,o[3],s,r,!0)}function zr(t,e,n){Oe(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Fr(t,e,n){Oe(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Vr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,s,r=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&s.push(Le(o)),Ie(o))for(let e=10;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,s)}const a=i.type;if(4===a||5===a)t(e,n,i.child,s);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))s.push(...r);else{const n=_s(e);t(n[1],n,r,s,!0)}}i=r?i.projectionNext:i.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Sr(this._lView[1],this._lView)}onDestroy(t){var e,n,i;e=this._lView[1],i=t,dr(n=this._lView).push(i),e.firstCreatePass&&pr(e).push(n[7].length-1,null)}markForCheck(){ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){sn(!0);try{lr(t,e,n)}finally{sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Lr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ur extends Vr{constructor(t){super(t),this._view=t}detectChanges(){cr(this._view)}checkNoChanges(){!function(t){sn(!0);try{cr(t)}finally{sn(!1)}}(this._view)}get context(){return null}}let jr,Br,Hr;function Wr(t,e,n){return jr||(jr=class extends t{}),new jr(ze(e,n))}function $r(t,e,n,i){return Br||(Br=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ds(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Os(e,n,t),new Vr(n)}}),0===n.type?new Br(i,n,Wr(e,n,i)):null}function qr(t,e,n,i){let s;Hr||(Hr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Wr(e,this._hostTNode,this._hostView)}get injector(){return new oi(this._hostTNode,this._hostView)}get parentInjector(){const t=Xn(this._hostTNode,this._hostView),e=Fn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=zn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return Ln(t)&&null!=n?new oi(n,e):new oi(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Jt,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ie(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Hr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-10?(e[4]=n[s],ne(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,s),br(i,n,!0,Or(s,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Cr(t,e);n&&Sr(n[1],n)}(this._lContainer,e),ie(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Cr(this._lContainer,e);return n&&null!=ie(this._lContainer[8],e)?new Vr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(Ie(r))s=r;else{let t;if(4===n.type)t=Le(r);else if(t=i[11].createComment(""),Me(i)){const e=i[11],s=ze(n,i);Tr(e,Mr(e,s),t,function(t,e){return Oe(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ar(i[1],i,t,n);i[n.index]=s=ir(r,i,t,n),or(i,s)}return new Hr(s,n,i)}function Gr(t=!1){return function(t,e,n){if(!n&&Te(t)){const n=Ue(t.index,e);return new Vr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Vr(e[16],e):null}(Ze(),Qe(),t)}let Yr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qr(),t})();const Qr=Gr,Kr=new Ft("Set Injector scope."),Xr={},Zr={},Jr=[];let to=void 0;function eo(){return void 0===to&&(to=new Zt),to}function no(t,e=null,n=null,i){return new io(t,n,e||eo(),i)}class io{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],s)),this.records.set(Vt,oo(void 0,this));const r=this.records.get(Kr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ut,n=at.Default){this.assertNotDestroyed();const i=$t(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Ft)&&dt(t);e=n&&this.injectableDefInScope(n)?oo(so(t),Xr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?eo():this.parent).get(t,e=n&at.Optional&&e===Ut?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(bt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=bt(e);if(Array.isArray(e))s=e.map(bt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):bt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(jt,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{$t(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(bt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Et(t)))return!1;let i=gt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=gt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ee(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ee(i,t=>this.processProvider(t,n,i||Jr))}}this.injectorDefTypes.add(r),this.records.set(r,oo(i.factory,Xr));const a=i.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=lo(t=Et(t))?t:Et(t&&t.provide);const s=function(t,e,n){return ao(t)?oo(void 0,t.useValue):oo(ro(t,e,n),Xr)}(t,e,n);if(lo(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ss()}else{let e=this.records.get(i);e?void 0===e.multi&&ss():(e=oo(void 0,Xr,!0),e.factory=()=>Xt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===Zr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(bt(t)):e.value===Xr&&(e.value=Zr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function so(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const i=gt(t);if(null!==i)return i.factory;if(t instanceof Ft)throw new Error(`Token ${bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=se(e,"?");throw new Error(`Can't resolve all parameters for ${bt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[ft]||t[vt]||t[_t]&&t[_t]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ro(t,e,n){let i=void 0;if(lo(t)){const e=Et(t);return Ce(e)||so(e)}if(ao(t))i=()=>Et(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Yt(Et(t.useExisting));else{const s=Et(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${bt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(s)||so(s);i=()=>new s(...Xt(t.deps))}var s;return i}function oo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&Bt in t}function lo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,i){const s=no(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ho=(()=>{class t{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ut,t.NULL=new Zt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Yt(Vt)}),t.__NG_ELEMENT_ID__=-1,t})();const uo=new Ft("AnalyzeForEntryComponents");let po=new Map;const go=new Set;function fo(t){return"string"==typeof t?t:t.text()}function mo(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=wt(s,t):2==r&&(i=wt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}let _o=null;function vo(){if(!_o){const t=Mt.Symbol;if(t&&t.iterator)_o=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(_o=n)}}}return _o}function yo(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class bo{constructor(t){this.wrapped=t}static wrap(t){return new bo(t)}static unwrap(t){return bo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof bo}}function wo(t){return!!Co(t)&&(Array.isArray(t)||!(t instanceof Map)&&vo()in t)}function Co(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function So(t,e,n){return t[e]=n}function Eo(t,e){return t[e]}function Io(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function xo(t,e,n,i){const s=Io(t,e,n);return Io(t,e+1,i)||s}function To(t,e,n,i,s){const r=xo(t,e,n,i);return Io(t,e+2,s)||r}function Po(t,e,n,i,s,r){const o=xo(t,e,n,i);return xo(t,e+2,s,r)||o}function ko(t,e,n,i){const s=Qe();return Io(s,an(),e)&&(Ke(),function(t,e,n,i,s,r){const o=ze(t,e),a=e[11];if(null==i)Oe(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==s?Vn(i):s(i,t.tagName||"",n);Oe(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(Cn(),s,t,e,n,i)),ko}function Mo(t,e,n,i){return Io(t,an(),n)?e+Vn(n)+i:ms}function Do(t,e,n,i,s,r,o,a){const l=Qe(),c=Ke(),h=t+20,u=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,h=As(e,n[6],t,0,o||null,We(c,a));$s(e,n,h,We(c,l)),Sn(e,h);const u=h.tViews=js(2,-1,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Bs(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,i,s,r,o):c.data[h];Je(u,!1);const d=l[11].createComment("");Ar(c,l,d,u),ns(d,l),or(l,l[h]=ir(d,l,d,u)),Pe(u)&&Fs(c,l,u),null!=o&&Vs(l,u,a)}function Ao(t){return Ve(Ge.lFrame.contextLView,t)}function Oo(t,e=at.Default){const n=Qe();return null==n?Yt(t,e):Jn(Ze(),n,Et(t),e)}function Ro(){throw new Error("invalid")}function Lo(t,e,n){const i=Qe();return Io(i,an(),e)&&Ws(Ke(),Cn(),i,t,e,i[11],n,!1),Lo}function No(t,e,n,i,s){const r=s?"class":"style";fr(t,n,e.inputs[r],r,i)}function zo(t,e,n,i){const s=Qe(),r=Ke(),o=20+t,a=s[11],l=s[o]=Ms(e,a,Ge.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=We(a,r),c=As(e,n[6],t,3,s,l);return $s(e,n,c,We(a,o)),null!==c.attrs&&mo(c,c.attrs,!1),null!==c.mergedAttrs&&mo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,s,0,e,n,i):r.data[o];Je(c,!0);const h=c.mergedAttrs;null!==h&&Mn(a,l,h);const u=c.classes;null!==u&&Fr(a,l,u);const d=c.styles;null!==d&&zr(a,l,d),Ar(r,s,l,c),0===Ge.lFrame.elementDepthCount&&ns(l,s),Ge.lFrame.elementDepthCount++,Pe(c)&&(Fs(r,s,c),zs(r,c,s)),null!==i&&Vs(s,c)}function Fo(){let t=Ze();tn()?en():(t=t.parent,Je(t,!1));const e=t;Ge.lFrame.elementDepthCount--;const n=Ke();n.firstCreatePass&&(Sn(n,t),xe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&No(n,e,Qe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&No(n,e,Qe(),e.stylesWithoutHost,!1)}function Vo(t,e,n,i){zo(t,e,n,i),Fo()}function Uo(t,e,n){const i=Qe(),s=Ke(),r=t+20,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=We(r,i),a=As(e,n[6],t,4,"ng-container",o);return null!==o&&mo(a,o,!0),$s(e,n,a,We(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,i,e,n):s.data[r];Je(o,!0);const a=i[r]=i[11].createComment("");Ar(s,i,a,o),ns(a,i),Pe(o)&&(Fs(s,i,o),zs(s,o,i)),null!=n&&Vs(i,o)}function jo(){let t=Ze();const e=Ke();tn()?en():(t=t.parent,Je(t,!1)),e.firstCreatePass&&(Sn(e,t),xe(t)&&e.queries.elementEnd(t))}function Bo(){return Qe()}function Ho(t){return!!t&&"function"==typeof t.then}function Wo(t){return!!t&&"function"==typeof t.subscribe}function $o(t,e,n=!1,i){const s=Qe(),r=Ke(),o=Ze();return function(t,e,n,i,s,r,o=!1,a){const l=Pe(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=dr(e);let u=!0;if(3===i.type){const d=ze(i,e),p=a?a(d):he,g=p.target||d,f=h.length,m=a?t=>a(Le(t[i.index])).target:i.index;if(Oe(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Go(i,e,r,!1);const t=n.listen(p.name||g,s,r);h.push(r,t),c&&c.push(s,m,f,f+1)}}else r=Go(i,e,r,!0),g.addEventListener(s,r,o),h.push(r),c&&c.push(s,m,f,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}(r,s,s[11],o,t,e,n,i),$o}function qo(t,e,n){try{return!1!==e(n)}catch(i){return gr(t,i),!1}}function Go(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?Ue(t.index,e):e;0==(32&e[2])&&ar(o);let a=qo(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=qo(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Yo(t=1){return function(t){return(Ge.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ge.lFrame.contextLView))[8]}(t)}function Qo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?ds(t,r,!0):ps(i,r))return s}else n=s}return n}function Ko(t){const e=Qe()[16][6];if(!e.projection){const n=e.projection=se(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?Qo(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Xo(t,e=0,n){const i=Qe(),s=Ke(),r=As(s,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),en(),function(t,e,n){Nr(e[11],0,e,n,xr(t,n,e),Dr(n.parent||e[6],e))}(s,i,r)}function Zo(t,e,n){return Jo(t,"",e,"",n),Zo}function Jo(t,e,n,i,s){const r=Qe(),o=Mo(r,e,n,i);return o!==ms&&Ws(Ke(),Cn(),r,t,o,r[11],s,!1),Jo}const ta=[];function ea(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?Es(r):xs(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];na(t[a],e)&&(l=!0,t[a+1]=i?Ps(n):Is(n)),a=i?Es(n):xs(n)}l&&(t[n+1]=i?Is(r):Ps(r))}function na(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sa(t){return t.substring(ia.key,ia.keyEnd)}function ra(t,e){const n=ia.textEnd;return n===e?-1:(e=ia.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ia.key=e,n),oa(t,e,n))}function oa(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function aa(t,e,n){return ua(t,e,n,!1),aa}function la(t,e){return ua(t,e,null,!0),la}function ca(t){da(re,ha,t,!0)}function ha(t,e){for(let n=function(t){return function(t){ia.key=0,ia.keyEnd=0,ia.value=0,ia.valueEnd=0,ia.textEnd=t.length}(t),ra(t,oa(t,0,ia.textEnd))}(e);n>=0;n=ra(e,n))re(t,sa(e),!0)}function ua(t,e,n,i){const s=Qe(),r=Ke(),o=ln(2);if(r.firstUpdatePass&&ga(r,t,o,i),e!==ms&&Io(s,o,e)){let a;null==n&&(a=function(){const t=Ge.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),_a(r,r.data[bn()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=bt(yi(t)))),t}(e,n),i,o)}}function da(t,e,n,i){const s=Ke(),r=ln(2);s.firstUpdatePass&&ga(s,null,r,i);const o=Qe();if(n!==ms&&Io(o,r,n)){const a=s.data[bn()+20];if(ba(a,i)&&!pa(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=wt(t,n||"")),No(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===ms&&(s=ta);let l=0,c=0,h=0<s.length?s[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const d=l<s.length?s[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let g=null,f=void 0;h===u?(l+=2,c+=2,d!==p&&(g=u,f=p)):null===u||null!==h&&h<u?(l+=2,g=h):(c+=2,g=u,f=p),null!==g&&_a(t,e,n,i,g,f,o,a),h=l<s.length?s[l]:null,u=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return ta;const i=[],s=yi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function pa(t,e){return e>=t.expandoStartIndex}function ga(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[bn()+20],o=pa(t,n);ba(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=function(t){const e=Ge.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=ma(n=fa(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=fa(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==xs(i))return t[Es(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=fa(null,t,e,n[1],i),n=ma(n,e.attrs,i),function(t,e,n,i){t[Es(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=ma(i,t[r].hostAttrs,n);return ma(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=Es(o),l=xs(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Es(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=Ts(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=Ts(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=Ts(t[l+1],i),l=i;h&&(t[i+1]=Is(t[i+1])),ea(t,c,i,!0),ea(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function fa(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=ma(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function ma(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function _a(t,e,n,i,s,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];ya(1==(1&c)?va(l,e,n,s,xs(c),o):void 0)||(ya(r)||function(t){return 2==(2&t)}(c)&&(r=va(l,null,n,s,a,o)),function(t,e,n,i,s){const r=Oe(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==s?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,s,e):n.style.setProperty(i,s)}}(i,o,Ne(bn(),n),s,r))}function va(t,e,n,i,s,r){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===ms&&(h=c?ta:void 0);let u=c?oe(h,i):l===i?h:void 0;if(r&&!ya(u)&&(u=oe(e,i)),ya(u)&&(a=u,o))return a;const d=t[s+1];s=o?Es(d):xs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,i))}return a}function ya(t){return void 0!==t}function ba(t,e){return 0!=(t.flags&(e?16:32))}function wa(t,e=""){const n=Qe(),i=Ke(),s=t+20,r=i.firstCreatePass?As(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return Oe(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ar(i,n,o,r),Je(r,!1)}function Ca(t){return Sa("",t,""),Ca}function Sa(t,e,n){const i=Qe(),s=Mo(i,t,e,n);return s!==ms&&mr(i,bn(),s),Sa}function Ea(t,e,n,i,s){const r=Qe(),o=function(t,e,n,i,s,r){const o=xo(t,on(),n,s);return ln(2),o?e+Vn(n)+i+Vn(s)+r:ms}(r,t,e,n,i,s);return o!==ms&&mr(r,bn(),o),Ea}function Ia(t,e,n){da(re,ha,Mo(Qe(),t,e,n),!0)}function xa(t,e,n){const i=Qe();return Io(i,an(),e)&&Ws(Ke(),Cn(),i,t,e,i[11],n,!0),xa}function Ta(t,e){const n=je(t)[1],i=n.data.length-1;Sn(n,{directiveStart:i,directiveEnd:i+1})}function Pa(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(ke(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=ka(t.inputs),e.declaredInputs=ka(t.declaredInputs),e.outputs=ka(t.outputs);const n=s.hostBindings;n&&Aa(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Ma(t,r),o&&Da(t,o),ct(t.inputs,s.inputs),ct(t.declaredInputs,s.declaredInputs),ct(t.outputs,s.outputs),ke(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Pa&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=On(s.hostAttrs,n=On(n,s.hostAttrs))}}(i)}function ka(t){return t===he?{}:t===ue?[]:t}function Ma(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Da(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Aa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class Oa{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ra(t){t.type.prototype.ngOnChanges&&(t.setInput=La,t.onChanges=function(){const t=Na(this),e=t&&t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function La(t,e,n,i){const s=Na(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new Oa(l&&l.currentValue,e,o===he),t[i]=e}function Na(t){return t.__ngSimpleChanges__||null}function za(t,e,n,i,s){if(t=Et(t),Array.isArray(t))for(let r=0;r<t.length;r++)za(t[r],e,n,i,s);else{const r=Ke(),o=Qe();let a=lo(t)?t:Et(t.provide),l=ro(t);const c=Ze(),h=65535&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>16;if(lo(t)||!t.multi){const i=new kn(l,s,Oo),p=Ua(a,e,s?h:h+d,u);-1===p?(Zn(Yn(c,o),r,a),Fa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ua(a,e,h+d,u),g=Ua(a,e,h,h+d),f=p>=0&&n[p],m=g>=0&&n[g];if(s&&!m||!s&&!f){Zn(Yn(c,o),r,a);const h=function(t,e,n,i,s){const r=new kn(t,n,Oo);return r.multi=[],r.index=e,r.componentProviders=0,Va(r,s,i&&!n),r}(s?Ba:ja,n.length,s,i,l);!s&&m&&(n[g].providerFactory=h),Fa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(h),o.push(h)}else Fa(r,t,p>-1?p:g,Va(n[s?g:p],l,!s&&i));!s&&i&&m&&n[g].componentProviders++}}}function Fa(t,e,n,i){const s=lo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function Va(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ua(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function ja(t,e,n,i){return Ha(this.multi,[])}function Ba(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ii(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),Ha(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Ha(s,r);return r}function Ha(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Wa(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Ke();if(i.firstCreatePass){const s=ke(t);za(n,i.data,i.blueprint,s,!0),za(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}Ra.ngInherit=!0;class $a{}class qa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${bt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ga=(()=>{class t{}return t.NULL=new qa,t})(),Ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Qa(t),t})();const Qa=function(t){return Wr(t,Ze(),Qe())};class Ka{}const Xa=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ja(),t})();const Ja=function(){const t=Qe(),e=Ue(Ze().index,t);return function(t){const e=t[11];if(Oe(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ee(e)?e:t)};let tl=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class el{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nl=new el("9.1.12");class il{constructor(){}supports(t){return wo(t)}create(t){return new rl(t)}}const sl=(t,e)=>e;class rl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||sl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<cl(n,i,s)?e:n,o=cl(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!wo(t))throw new Error(`Error trying to diff '${bt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&yo(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),yo(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[vo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&yo(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),yo(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(yo(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(yo(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new ol(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ll),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ll),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ol{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class al{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&yo(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ll{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new al,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cl(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class hl{constructor(){}supports(t){return t instanceof Map||Co(t)}create(){return new ul}}class ul{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Co(t)))throw new Error(`Error trying to diff '${bt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new dl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){yo(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class dl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let pl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new il])}),t})(),gl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new hl])}),t})();const fl=[new hl],ml=new pl([new il]),_l=new gl(fl);let vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>yl(t,Ya),t})();const yl=function(t,e){return $r(t,e,Ze(),Qe())};let bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wl(t,Ya),t})();const wl=function(t,e){return qr(t,e,Ze(),Qe())},Cl={};class Sl extends Ga{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new xl(e,this.ngModule)}}function El(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Il=new Ft("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>jn});class xl extends $a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return El(this.componentDef.inputs)}get outputs(){return El(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Cl,s);return r!==Cl||i===Cl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ka,Re),o=s.get(tl,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Oe(t))return t.selectRootElement(e,n===ce.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Ms(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:jn,clean:ur,playerHandler:null,flags:0},p=js(0,-1,null,1,0,null,null,null,null,null),g=Ds(null,p,d,h,null,null,r,a,o,s);let f,m;gn(g,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=As(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(mo(a,l,!0),null!==t&&(Mn(s,t,l),null!==a.classes&&Fr(s,t,a.classes),null!==a.styles&&zr(s,t,a.styles)));const c=i.createRenderer(t,e),h=Ds(n,Us(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(Zn(Yn(a,n),o,e.type),Ks(o,a),Zs(a,n.length,1)),or(n,h),n[20]=h}(c,this.componentDef,g,r,a);if(c)if(n)Mn(a,c,["ng-version",nl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!hs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Mn(a,c,t),e&&e.length>0&&Fr(a,c,e.join(" "))}if(m=Fe(p,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qs(t,i,1),Js(t,e,n));const s=ii(e,t,e.length-1,i);ns(s,e);const r=ze(i,e);return r&&ns(r,e),s}(r,n,e);i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Ze();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){wn(a.index-20);const t=n[1];qs(t,e),Gs(t,n,e.hostVars),Ys(e,o)}return o}(t,this.componentDef,g,d,[Ta]),Os(p,g,null)}finally{yn()}const _=new Tl(this.componentType,f,Wr(Ya,m,g),g,m);return n&&!u||(p.node.child=m),_}}class Tl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Ur(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=Bs(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new oi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Pl=void 0;var kl=["en",[["a","p"],["AM","PM"],Pl],[["AM","PM"],Pl,Pl],[["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"]],Pl,[["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"]],Pl,[["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}",Pl,"{1} 'at' {0}",Pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ml={};function Dl(t){return t in Ml||(Ml[t]=Mt.ng&&Mt.ng.common&&Mt.ng.common.locales&&Mt.ng.common.locales[t]),Ml[t]}const Al=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Ol="en-US";function Rl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ol=t.toLowerCase().replace(/_/g,"-"))}const Ll=new Map;class Nl extends Jt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Sl(this);const n=Se(t),i=t[Lt]||null;i&&Rl(i),this._bootstrapComponents=Wn(n.bootstrap),this._r3Injector=no(t,e,[{provide:Jt,useValue:this},{provide:Ga,useValue:this.componentFactoryResolver}],bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ho.THROW_IF_NOT_FOUND,n=at.Default){return t===ho||t===Jt||t===Vt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class zl extends te{constructor(t){super(),this.moduleType=t,null!==Se(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${bt(e)} vs ${bt(e.name)}`)})(t,Ll.get(t),e),Ll.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Nl(this.moduleType,t)}}function Fl(t,e,n,i){return Hl(Qe(),rn(),t,e,n,i)}function Vl(t,e,n,i,s){return Wl(Qe(),rn(),t,e,n,i,s)}function Ul(t,e,n,i,s,r){return $l(Qe(),rn(),t,e,n,i,s,r)}function jl(t,e,n,i,s,r,o){return function(t,e,n,i,s,r,o,a,l){const c=e+n;return Po(t,c,s,r,o,a)?So(t,c+4,l?i.call(l,s,r,o,a):i(s,r,o,a)):Bl(t,c+4)}(Qe(),rn(),t,e,n,i,s,r,o)}function Bl(t,e){const n=t[e];return n===ms?void 0:n}function Hl(t,e,n,i,s,r){const o=e+n;return Io(t,o,s)?So(t,o+1,r?i.call(r,s):i(s)):Bl(t,o+1)}function Wl(t,e,n,i,s,r,o){const a=e+n;return xo(t,a,s,r)?So(t,a+2,o?i.call(o,s,r):i(s,r)):Bl(t,a+2)}function $l(t,e,n,i,s,r,o,a){const l=e+n;return To(t,l,s,r,o)?So(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Bl(t,l+3)}function ql(t,e){const n=Ke();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Ce(i.type)),o=qt(Oo),a=qn(!1),l=r();return qn(a),qt(o),function(t,e,n,i){const s=n+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,Qe(),t,l),l}function Gl(t,e,n){const i=Qe(),s=Ve(i,t);return Xl(i,Kl(i,t)?Hl(i,rn(),e,s.transform,n,s):s.transform(n))}function Yl(t,e,n,i){const s=Qe(),r=Ve(s,t);return Xl(s,Kl(s,t)?Wl(s,rn(),e,r.transform,n,i,r):r.transform(n,i))}function Ql(t,e,n,i,s){const r=Qe(),o=Ve(r,t);return Xl(r,Kl(r,t)?$l(r,rn(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function Kl(t,e){return t[1].data[e+20].pure}function Xl(t,e){return bo.isWrapped(e)&&(e=bo.unwrap(e),t[on()]=ms),e}class Zl extends I{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}}function Jl(){return this._results[vo()]()}class tc{constructor(){this.dirty=!0,this._results=[],this.changes=new Zl,this.length=0;const t=vo(),e=tc.prototype;e[t]||(e[t]=Jl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(n===e&&(n=e.slice(0,i)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class ec{constructor(t){this.queryList=t,this.matches=null}clone(){return new ec(this.queryList)}setDirty(){this.queryList.setDirty()}}class nc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new nc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==vc(t,e).matches&&this.queries[e].setDirty()}}class ic{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class sc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new sc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class rc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new rc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let i=0;i<n.length;i++)this.matchTNodeWithReadOption(t,e,oc(e,n[i]))}else{const n=this.metadata.predicate;n===vl?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ni(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ya||i===bl||i===vl&&0===e.type)this.addMatch(e.index,-2);else{const n=ni(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function oc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function ac(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Wr(Ya,t,e):0===t.type?$r(vl,Ya,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ya?Wr(Ya,e,t):n===vl?$r(vl,Ya,e,t):n===bl?qr(bl,Ya,e,t):void 0}(t,e,i):ii(t,t[1],n,e)}function lc(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:ac(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function cc(t){const e=Qe(),n=Ke(),i=un();dn(i+1);const s=vc(n,i);if(t.dirty&&Be(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?function t(e,n,i,s){const r=e.queries.getByIndex(i),o=r.matches;if(null!==o){const a=lc(e,n,r,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,s)}}}}}return s}(n,e,i,[]):lc(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}function hc(t,e,n){dc(Ke(),Qe(),t,e,n,!0)}function uc(t,e,n){dc(Ke(),Qe(),t,e,n,!1)}function dc(t,e,n,i,s,r){t.firstCreatePass&&(_c(t,new ic(n,i,r,s),-1),r&&(t.staticViewQueries=!0)),mc(t,e)}function pc(t,e,n,i){gc(Ke(),Qe(),e,n,i,!1,Ze(),t)}function gc(t,e,n,i,s,r,o,a){t.firstCreatePass&&(_c(t,new ic(n,i,r,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),r&&(t.staticContentQueries=!0)),mc(t,e)}function fc(){return t=Qe(),e=un(),t[19].queries[e].queryList;var t,e}function mc(t,e){const n=new tc;!function(t,e,n,i){const s=dr(e);s.push(n),t.firstCreatePass&&pr(t).push(i,s.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new nc),e[19].queries.push(new ec(n))}function _c(t,e,n){null===t.queries&&(t.queries=new sc),t.queries.track(new rc(e,n))}function vc(t,e){return t.queries.getByIndex(e)}const yc=new Ft("Application Initializer");let bc=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ho(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Yt(yc,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const wc=new Ft("AppId"),Cc={provide:wc,useFactory:function(){return`${Sc()}${Sc()}${Sc()}`},deps:[]};function Sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ec=new Ft("Platform Initializer"),Ic=new Ft("Platform ID"),xc=new Ft("appBootstrapListener");let Tc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Pc=new Ft("LocaleId"),kc=new Ft("DefaultCurrencyCode");class Mc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Dc=function(t){return new zl(t)},Ac=Dc,Oc=function(t){return Promise.resolve(Dc(t))},Rc=function(t){const e=Dc(t),n=Wn(Se(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new xl(n)),t},[]);return new Mc(e,n)},Lc=Rc,Nc=function(t){return Promise.resolve(Rc(t))};let zc=(()=>{class t{constructor(){this.compileModuleSync=Ac,this.compileModuleAsync=Oc,this.compileModuleAndAllComponentsSync=Lc,this.compileModuleAndAllComponentsAsync=Nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Fc=new Ft("compilerOptions"),Vc=(()=>Promise.resolve(0))();function Uc(t){"undefined"==typeof Zone?Vc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class jc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!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)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Mt.requestAnimationFrame,e=Mt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Mt,()=>{t.lastRequestAnimationFrameId=-1,$c(t),Wc(t)}),$c(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return qc(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Gc(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return qc(t),e.invoke(i,s,r,o,a)}finally{Gc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,$c(t),Wc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(jc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Hc,Bc,Bc);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Bc(){}const Hc={};function Wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function qc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gc(t){t._nesting--,Wc(t)}class Yc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zl,this.onMicrotaskEmpty=new Zl,this.onStable=new Zl,this.onError=new Zl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Qc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jc.assertNotInAngularZone(),Uc(()=>{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())Uc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Kc=(()=>{class t{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Jc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Zc,Jc=new Xc,th=function(t,e,n){const i=t.get(Fc,[]).concat(e),s=new zl(n);if(0===po.size)return Promise.resolve(s);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(i.map(t=>t.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const t=Mt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=ho.create({providers:r}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function i(t){let e=n.get(t);if(!e){const i=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=i.then(fo))}return e}return po.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(i(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,n)=>{o.push(""),s.push(i(e).then(i=>{o[a+n]=i,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){go.delete(t)}(n));e.push(l)}),po=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const eh=new Ft("AllowMultipleToken");class nh{constructor(t,e){this.name=t,this.token=e}}function ih(t,e,n=[]){const i="Platform: "+e,s=new Ft(i);return(e=[])=>{let r=sh();if(!r||r.injector.get(eh,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Kr,useValue:"platform"});!function(t){if(Zc&&!Zc.destroyed&&!Zc.injector.get(eh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zc=t.get(rh);const e=t.get(Ec,null);e&&e.forEach(t=>t())}(ho.create({providers:t,name:i}))}return function(t){const e=sh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function sh(){return Zc&&!Zc.destroyed?Zc:null}let rh=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Yc:("zone.js"===t?void 0:t)||new jc({enableLongStackTrace:Ei(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:jc,useValue:n}];return n.run(()=>{const e=ho.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(di,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>lh(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Ho(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(bc);return t.runInitializers(),t.donePromise.then(()=>(Rl(s.injector.get(Pc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=oh({},e);return th(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ah);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${bt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function oh(t,e){return Array.isArray(e)?e.reduce(oh,t):Object.assign(Object.assign({},t),e)}let ah=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ei(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{jc.assertNotInAngularZone(),Uc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{jc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(o,a.pipe(t=>{return Y()((e=tt,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Z);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof $a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Jt),s=n.create(ho.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(Qc,null);return r&&s.injector.get(Kc).registerApplication(s.location.nativeElement,r),this._loadComponent(s),Ei()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;lh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(xc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),lh(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(Tc),Yt(ho),Yt(di),Yt(Ga),Yt(bc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function lh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ch{}class hh{}const uh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let dh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||uh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>ph(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>ph(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Yt(zc),Yt(hh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ph(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const gh=ih(null,"core",[{provide:Ic,useValue:"unknown"},{provide:rh,deps:[ho]},{provide:Kc,deps:[]},{provide:Tc,deps:[]}]),fh=[{provide:ah,useClass:ah,deps:[jc,Tc,ho,di,Ga,bc]},{provide:Il,deps:[jc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:bc,useClass:bc,deps:[[new st,yc]]},{provide:zc,useClass:zc,deps:[]},Cc,{provide:pl,useFactory:function(){return ml},deps:[]},{provide:gl,useFactory:function(){return _l},deps:[]},{provide:Pc,useFactory:function(t){return Rl(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(Pc),new st,new ot]]},{provide:kc,useValue:"USD"}];let mh=(()=>{class t{constructor(t){}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(ah))},providers:fh}),t})();const _h={isWizishopcom:!1,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"http://debugshop.wizilocal.com/_i/",assets_route:"assets/img-manager/",translations_route:"./assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:131,token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyX2lkIjo2LCJleHAiOjE2MzczOTQzNDIsImlhdCI6MTYzNDgwMjM0Mn0.1UhLbMA3euzDDr3zdy2KfUzbdordXbTg4lMjdslPZ9QHiTXoYG5n6SlZV7AAOdWjt_t5eKqgVLKIaQQj9jVA2j2DGtzpnv-rbxHGbatXZ8phWEaYGMXxtOX684aogFrTOP8poDVN0bIerFwBfjuu8U2zDqspx0gpbPHToJE-0W-mQcP0WCOh9quFnLpgziQ-gD-SuuQ5zyTF9l8ToNW2jVzEZ3tO_uk7gULzB2HD-uCcmUIKFhai1NQXEzog8tPSWJNifLyF0Ja0kTrIDrN8oZaf2pEj5yX2Z7xfm9s14XIKX-m2wpU10acBiIhq0RWLOKHLiWbyj_iLGvQV6_DfeA"},product_sheet_endpoint:"/products/ajax",isPhotosTab:!0},vh={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.wizilocal.com/",wizi_api:"https://api.wizilocal.com/v3",CDN_URL:"https://media.wizilocal.com/_i/",assets_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},yh={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.wizishop.com/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.wizishop.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},bh={isWizishopcom:!0,production:!1,wizi_admin_api:"https://admin.dropilocal.com/",wizi_api:"https://api.dropilocal.com/v3",CDN_URL:"https://media.dropilocal.com/_i/",assets_route:"https://js.dropilocal.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropilocal.com/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},wh={isWizishopcom:!0,production:!0,wizi_admin_api:"https://admin.dropizi.fr/",wizi_api:"https://api.wizishop.com/v3",CDN_URL:"https://media.cdnws.com/_i/",assets_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/",translations_route:"https://js.dropizi.fr/a/libs/img-manager-webelement/assets/img-manager/i18n/",wiziApiCredentialsKey:"wizi_api_credentials_key",local:{shopId:null,token:null},product_sheet_endpoint:"/products/ajax"},Ch=Object.assign({},function(){const t=!!window.location.hostname.match(/local/),e=!!window.location.hostname.match(/wizi/);return window.location.port?_h:t?e?vh:bh:e?yh:wh}());let Sh=null;function Eh(){return Sh}const Ih=new Ft("DocumentToken");let xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Th,token:t,providedIn:"platform"}),t})();function Th(){return Yt(kh)}const Ph=new Ft("Location Initialized");let kh=(()=>{class t extends xh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Eh().getLocation(),this._history=Eh().getHistory()}getBaseHrefFromDOM(){return Eh().getBaseHref(this._doc)}onPopState(t){Eh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Eh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Mh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Mh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({factory:Dh,token:t,providedIn:"platform"}),t})();function Mh(){return!!window.history.pushState}function Dh(){return new kh(Yt(Ih))}function Ah(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Oh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Rh(t){return t&&"?"!==t[0]?"?"+t:t}let Lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Nh,token:t,providedIn:"root"}),t})();function Nh(t){const e=Yt(Ih).location;return new Fh(Yt(xh),e&&e.origin||"")}const zh=new Ft("appBaseHref");let Fh=(()=>{class t extends Lh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ah(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Rh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+Rh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+Rh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(xh),Yt(zh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vh=(()=>{class t extends Lh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Ah(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+Rh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+Rh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(xh),Yt(zh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uh=(()=>{class t{constructor(t,e){this._subject=new Zl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Oh(Bh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Rh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Bh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Rh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Rh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Lh),Yt(xh))},t.normalizeQueryParams=Rh,t.joinWithSlash=Ah,t.stripTrailingSlash=Oh,t.\u0275prov=ht({factory:jh,token:t,providedIn:"root"}),t})();function jh(){return new Uh(Yt(Lh),Yt(xh))}function Bh(t){return t.replace(/\/index.html$/,"")}const Hh=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class Wh{}let $h=(()=>{class t extends Wh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Dl(e);if(n)return n;const i=e.split("-")[0];if(n=Dl(i),n)return n;if("en"===i)return kl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Al.PluralCase]}(e||this.locale)(t)){case Hh.Zero:return"zero";case Hh.One:return"one";case Hh.Two:return"two";case Hh.Few:return"few";case Hh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Pc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function qh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let Gh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(wo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+bt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Oo(pl),Oo(gl),Oo(Ya),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Yh{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Qh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Ei()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Yh(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Kh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Kh(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(bl),Oo(vl),Oo(pl))},t.\u0275dir=ye({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Kh{constructor(t,e){this.record=t,this.view=e}}let Xh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Zh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Jh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Jh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(bl),Oo(vl))},t.\u0275dir=ye({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Zh{constructor(){this.$implicit=null,this.ngIf=null}}function Jh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bt(e)}'.`)}let tu=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(gl),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),eu=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=nu){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(Oo(gl))},t.\u0275pipe=be({name:"keyvalue",type:t,pure:!1}),t})();function nu(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),r=String(i);return s==r?0:s<r?-1:1}let iu=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Wh,useClass:$h}]}),t})();function su(t){return"browser"===t}let ru=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new ou(Yt(Ih),window,Yt(di))}),t})();class ou{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class au extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new au,Sh||(Sh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=cu||(cu=document.querySelector("base"),cu)?cu.getAttribute("href"):null;return null==e?null:(n=e,lu||(lu=document.createElement("a")),lu.setAttribute("href",n),"/"===lu.pathname.charAt(0)?lu.pathname:"/"+lu.pathname);var n}resetBaseElement(){cu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return qh(document.cookie,t)}}let lu,cu=null;const hu=new Ft("TRANSITION_ID"),uu=[{provide:yc,useFactory:function(t,e,n){return()=>{n.get(bc).donePromise.then(()=>{const n=Eh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[hu,Ih,ho],multi:!0}];class du{static init(){var t;t=new du,Jc=t}addToWindow(t){Mt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Mt.getAllAngularRootElements=()=>t.getAllRootElements(),Mt.frameworkStabilizers||(Mt.frameworkStabilizers=[]),Mt.frameworkStabilizers.push(t=>{const e=Mt.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Eh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const pu=new Ft("EventManagerPlugins");let gu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(pu),Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class fu{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Eh().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let mu=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_u=(()=>{class t extends mu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Eh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const vu={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/"},yu=/%COMP%/g;function bu(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?bu(t,s,n):(s=s.replace(yu,t),n.push(s))}return n}function wu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Cu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Su(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Eu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new Iu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=bu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Yt(gu),Yt(_u),Yt(wc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Su{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(vu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=vu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=vu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&Xa.DashCase?t.style.setProperty(e,n,i&Xa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Xa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,wu(n)):this.eventManager.addEventListener(t,e,wu(n))}}class Eu extends Su{constructor(t,e,n,i){super(t),this.component=n;const s=bu(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(yu,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(yu,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Iu extends Su{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=bu(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let xu=(()=>{class t extends fu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Tu=["alt","control","meta","shift"],Pu={"\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"},ku={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"},Mu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Du=(()=>{class t extends fu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Eh().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Tu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&ku.hasOwnProperty(e)&&(e=ku[e]))}return Pu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tu.forEach(i=>{i!=n&&(0,Mu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Yt(Ou)},token:t,providedIn:"root"}),t})(),Ou=(()=>{class t extends Au{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Gi.NONE:return e;case Gi.HTML:return bi(e,"HTML")?yi(e):$i(this._doc,String(e));case Gi.STYLE:return bi(e,"Style")?yi(e):Ki(e);case Gi.SCRIPT:if(bi(e,"Script"))return yi(e);throw new Error("unsafe value used in a script context");case Gi.URL:return wi(e),bi(e,"URL")?yi(e):Pi(String(e));case Gi.RESOURCE_URL:if(bi(e,"ResourceURL"))return yi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new gi(t)}bypassSecurityTrustStyle(t){return new fi(t)}bypassSecurityTrustScript(t){return new mi(t)}bypassSecurityTrustUrl(t){return new _i(t)}bypassSecurityTrustResourceUrl(t){return new vi(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih))},t.\u0275prov=ht({factory:function(){return t=Yt(Vt),new Ou(t.get(Ih));var t},token:t,providedIn:"root"}),t})();const Ru=ih(gh,"browser",[{provide:Ic,useValue:"browser"},{provide:Ec,useValue:function(){au.makeCurrent(),du.init()},multi:!0},{provide:Ih,useFactory:function(){return function(t){De=t}(document),document},deps:[]}]),Lu=[[],{provide:Kr,useValue:"root"},{provide:di,useFactory:function(){return new di},deps:[]},{provide:pu,useClass:xu,multi:!0,deps:[Ih,jc,Ic]},{provide:pu,useClass:Du,multi:!0,deps:[Ih]},[],{provide:Cu,useClass:Cu,deps:[gu,_u,wc]},{provide:Ka,useExisting:Cu},{provide:mu,useExisting:_u},{provide:_u,useClass:_u,deps:[Ih]},{provide:Qc,useClass:Qc,deps:[jc]},{provide:gu,useClass:gu,deps:[pu,jc]},[]];let Nu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:wc,useValue:e.appId},{provide:hu,useExisting:wc},uu]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(t,12))},providers:Lu,imports:[iu,mh]}),t})();"undefined"!=typeof window&&window;class zu{}function Fu(t,e){return{type:7,name:t,definitions:e,options:{}}}function Vu(t,e=null){return{type:4,styles:e,timings:t}}function Uu(t,e=null){return{type:2,steps:t,options:e}}function ju(t){return{type:6,styles:t,offset:null}}function Bu(t,e,n){return{type:0,name:t,styles:e,options:n}}function Hu(t){return{type:5,steps:t}}function Wu(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function $u(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function qu(t,e){return{type:12,timings:t,animation:e}}function Gu(t){Promise.resolve(null).then(t)}class Yu{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Qu{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Gu(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Ku(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xu(t){switch(t.length){case 0:return new Yu;case 1:return t[0];default:return new Qu(t)}}function Zu(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Ju(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&td(n,"start",t)));break;case"done":t.onDone(()=>i(n&&td(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&td(n,"destroy",t)))}}function td(t,e,n){const i=n.totalTime,s=ed(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function ed(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function nd(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function id(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let sd=(t,e)=>!1,rd=(t,e)=>!1,od=(t,e,n)=>[];const ad=Ku();(ad||"undefined"!=typeof Element)&&(sd=(t,e)=>t.contains(e),rd=(()=>{if(ad||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):rd}})(),od=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ld=null,cd=!1;function hd(t){ld||(ld=("undefined"!=typeof document?document.body:null)||{},cd=!!ld.style&&"WebkitAppearance"in ld.style);let e=!0;return ld.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ld.style,!e&&cd)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ld.style),e}const ud=rd,dd=sd,pd=od;function gd(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let fd=(()=>{class t{validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Yu(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),md=(()=>{class t{}return t.NOOP=new fd,t})();function _d(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:vd(parseFloat(e[1]),e[2])}function vd(t,e){switch(e){case"s":return 1e3*t;default:return t}}function yd(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=vd(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=vd(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function bd(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function wd(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else bd(t,n);return n}function Cd(t,e,n){return n?e+":"+n+";":""}function Sd(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Cd(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Cd(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ed(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Ad(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),Ku()&&Sd(t))}function Id(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Ad(e);t.style[n]=""}),Ku()&&Sd(t))}function xd(t){return Array.isArray(t)?1==t.length?t[0]:Uu(t):t}const Td=new RegExp("{{\\s*(.+?)\\s*}}","g");function Pd(t){let e=[];if("string"==typeof t){let n;for(;n=Td.exec(t);)e.push(n[1]);Td.lastIndex=0}return e}function kd(t,e,n){const i=t.toString(),s=i.replace(Td,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function Md(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Dd=/-+([a-z0-9])/g;function Ad(t){return t.replace(Dd,(...t)=>t[1].toUpperCase())}function Od(t,e){return 0===t||0===e}function Rd(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach((function(e){n[e]=Nd(t,e)}))}}return e}function Ld(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Nd(t,e){return window.getComputedStyle(t)[e]}function zd(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(Ud(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Ud(o,s))}(t,n,e)):n.push(t),n}const Fd=new Set(["true","1"]),Vd=new Set(["false","0"]);function Ud(t,e){const n=Fd.has(t)||Vd.has(t),i=Fd.has(e)||Vd.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?Fd.has(t):Vd.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Fd.has(e):Vd.has(e)),o&&a}}const jd=new RegExp("s*:selfs*,?","g");function Bd(t,e,n){return new Hd(t).build(e,n)}class Hd{constructor(t){this._driver=t}build(t,e){const n=new Wd(e);return this._resetContextStyleTimingState(n),Ld(this,xd(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if($d(t)){const e=t;Object.keys(e).forEach(t=>{Pd(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Md(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ld(this,xd(t.animation),e);return{type:1,matchers:zd(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:qd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ld(this,t,e)),options:qd(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Ld(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:qd(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Gd(yd(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Gd(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||yd(i,e),Gd(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:ju({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=ju(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if($d(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Pd(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if($d(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if($d(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return l.forEach((t,i)=>{const r=h>0?i==u?1:h*i:s[i],o=r*g;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ld(this,xd(t.animation),e),options:qd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:qd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:qd(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(jd,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,nd(e.collectedStyles,e.currentQuerySelector,{});const o=Ld(this,xd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:qd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:yd(t.timings,e.errors,!0);return{type:12,animation:Ld(this,xd(t.animation),e),timings:n,options:null}}}class Wd{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $d(t){return!Array.isArray(t)&&"object"==typeof t}function qd(t){var e;return t?(t=bd(t)).params&&(t.params=(e=t.params)?bd(e):null):t={},t}function Gd(t,e,n){return{duration:t,delay:e,easing:n}}function Yd(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Qd{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Kd=new RegExp(":enter","g"),Xd=new RegExp(":leave","g");function Zd(t,e,n,i,s,r={},o={},a,l,c=[]){return(new Jd).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class Jd{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new Qd;const h=new ep(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),Ld(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Yd(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?_d(n.duration):null,r=null!=n.delay?_d(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Ld(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tp);const t=_d(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ld(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?_d(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Ld(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return yd(e.params?kd(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?_d(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tp);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Ld(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ld(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const tp={};class ep{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new np(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=_d(n.duration)),null!=n.delay&&(i.delay=_d(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=kd(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new ep(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=tp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new ip(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Kd,"."+this._enterClassName)).replace(Xd,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class np{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new np(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):wd(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=kd(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=wd(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Md(t.values()):[],r=e.size?Md(e.values()):[];if(n){const t=i[0],e=bd(t);t.offset=0,e.offset=1,i=[t,e]}return Yd(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class ip extends np{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=wd(t[0],!1);a.offset=0,s.push(a);const l=wd(t[0],!1);l.offset=sp(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=wd(t[i],!1);o.offset=sp((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Yd(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function sp(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class rp{}class op extends rp{normalizePropertyName(t,e){return Ad(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(ap[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const ap=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function lp(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const cp={};class hp{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||cp,d=this.buildStyles(n,o&&o.params||cp,h),p=a&&a.params||cp,g=this.buildStyles(i,p,h),f=new Set,m=new Map,_=new Map,v="void"===i,y={params:Object.assign(Object.assign({},u),p)},b=c?[]:Zd(t,e,this.ast.animation,s,r,d,g,y,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return lp(e,this._triggerName,n,i,v,d,g,[],[],m,_,w,h);b.forEach(t=>{const n=t.element,i=nd(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=nd(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&f.add(n)});const C=Md(f.values());return lp(e,this._triggerName,n,i,v,d,g,b,C,m,_,w)}}class up{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=bd(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=kd(r,i,e)),n[t]=r})}}),n}}class dp{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new up(t.style,t.options&&t.options.params||{})}),pp(this.states,"true","1"),pp(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new hp(t,e,this.states))}),this.fallbackTransition=new hp(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function pp(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const gp=new Qd;class fp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Bd(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=Zu(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=Zd(this._driver,e,s,"ng-enter","ng-leave",{},{},n,gp,i),r.forEach(t=>{const e=nd(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=Xu(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const s=ed(e,"","","");return Ju(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const mp=[],_p={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class yp{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=bd(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const bp=new yp("void");class wp{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Pp(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=nd(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=nd(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Pp(t,"ng-trigger"),Pp(t,"ng-trigger-"+e),a[e]=bp),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Sp(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Pp(t,"ng-trigger"),Pp(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new yp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=bp),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Id(t,n),Ed(t,i)})}return}const c=nd(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(Pp(t,"ng-animate-queued"),r.onStart(()=>{kp(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Xu(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||bp,o=new yp("void"),a=new Sp(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==_p||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Pp(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=ed(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Ju(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cp{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new wp(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Ep(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Ep(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pp(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),kp(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Ep(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Ep(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Xu(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=_p,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Pp(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xu(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Qd,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=Tp(u,this.collectedEnterElements),p=new Map;let g=0;d.forEach((t,e)=>{const n="ng-enter"+g++;p.set(e,n),t.forEach(t=>Pp(t,n))});const f=[],m=new Set,_=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):_.add(t))}const v=new Map,y=Tp(u,Array.from(m));y.forEach((t,e)=>{const n="ng-leave"+g++;v.set(e,n),t.forEach(t=>Pp(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>kp(t,n))}),y.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>kp(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=v.get(s),d=p.get(s),g=this._buildInstruction(t,n,d,u,c);if(g.errors&&g.errors.length)w.push(g);else{if(c)return e.onStart(()=>Id(s,g.fromStyles)),e.onDestroy(()=>Ed(s,g.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Id(s,g.fromStyles)),e.onDestroy(()=>Ed(s,g.toStyles)),void i.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>nd(o,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,S=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{nd(C,e,[]).push(t),t.destroy()})});const E=f.filter(t=>Dp(t,a,l)),I=new Map;xp(I,this.driver,_,l,"*").forEach(t=>{Dp(t,a,l)&&E.push(t)});const x=new Map;d.forEach((t,e)=>{xp(x,this.driver,new Set(t),a,"!")}),E.forEach(t=>{const e=I.get(t),n=x.get(t);I.set(t,Object.assign(Object.assign({},e),n))});const T=[],P=[],k={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Ed(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=k;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,x,I);if(r.setRealPlayer(n),t===k)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Xu(e)),i.push(r)}}else Id(e,o.fromStyles),r.onDestroy(()=>Ed(e,o.toStyles)),P.push(r),c.has(e)&&i.push(r)}),P.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Xu(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<f.length;M++){const t=f[M],e=t.__ng_removed;if(kp(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Mp(this,t,i):this.processLeaveNode(t)}return f.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=nd(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Id(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new Yu(e.duration,e.delay);const p=u!==a,g=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const s=e[i];s instanceof Qu?t(s.players,n):n.push(s)}}(t,e),e}((n.get(u)||mp).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),f=s.get(u),m=r.get(u),_=Zu(0,this._normalizer,0,e.keyframes,f,m),v=this._buildPlayer(e,_,g);if(e.subTimeline&&i&&h.add(u),p){const e=new Sp(t,o,u);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{nd(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Pp(t,"ng-animating"));const d=Xu(u);return d.onDestroy(()=>{c.forEach(t=>kp(t,"ng-animating")),Ed(a,e.toStyles)}),h.forEach(t=>{nd(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Yu(t.duration,t.delay)}}class Sp{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Yu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Ju(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){nd(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ep(t){return t&&1===t.nodeType}function Ip(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function xp(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Ip(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=vp,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Ip(t,r[a++])),o}function Tp(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Pp(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function kp(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Mp(t,e,n){Xu(n).onDone(()=>t.processLeaveNode(e))}function Dp(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Ap{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cp(t,e,n),this._timelineEngine=new fp(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Bd(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new dp(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=id(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=id(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Op(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Lp(e[0]),e.length>1&&(i=Lp(e[e.length-1]))):e&&(n=Lp(e)),n||i?new Rp(t,n,i):null}let Rp=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ed(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ed(this._element,this._initialStyles),this._endStyles&&(Ed(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Id(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Id(this._element,this._endStyles),this._endStyles=null),Ed(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Lp(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];Np(s)&&(e=e||{},e[s]=t[s])}return e}function Np(t){return"display"===t||"position"===t}class zp{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Hp(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Bp(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),jp(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Fp(this._element,this._name,"paused")}resume(){Fp(this._element,this._name,"running")}setPosition(t){const e=Vp(this._element,this._name);this._position=t*this._duration,Bp(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),jp(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Hp(t,"").split(","),i=Up(n,e);i>=0&&(n.splice(i,1),Bp(t,"",n.join(",")))}(this._element,this._name))}}function Fp(t,e,n){Bp(t,"PlayState",n,Vp(t,e))}function Vp(t,e){const n=Hp(t,"");return n.indexOf(",")>0?Up(n.split(","),e):Up([n],e)}function Up(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function jp(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Bp(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Hp(t,e){return t.style["animation"+e]}class Wp{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new zp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Nd(this.element,n))})}this.currentSnapshot=t}}class $p extends Yu{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=gd(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class qp{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>gd(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof Wp),l={};Od(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Rd(t,e,l));if(0==n)return new $p(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Op(t,e),p=new Wp(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Gp{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Nd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Yp{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Qp().toString()),this._cssKeyframesDriver=new qp}validateStyleProperty(t){return hd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return dd(t,e)}query(t,e,n){return pd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Gp);Od(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=Op(t,e=Rd(t,e=e.map(t=>wd(t,!1)),l));return new Gp(t,e,a,h)}}function Qp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Kp=(()=>{class t extends zu{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Uu(t):t;return Jp(this._renderer,null,e,"register",[n]),new Xp(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ka),Yt(Ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xp extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Zp(this._id,t,e||{},this._renderer)}}class Zp{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Jp(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Jp(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let tg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new eg("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new ng(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ka),Yt(Ap),Yt(jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class eg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ng extends eg{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ig=(()=>{class t extends Ap{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(md),Yt(rp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const sg=[{provide:md,useFactory:function(){return"function"==typeof Qp()?new Yp:new qp}},{provide:new Ft("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:zu,useClass:Kp},{provide:rp,useFactory:function(){return new op}},{provide:Ap,useClass:ig},{provide:Ka,useFactory:function(t,e,n){return new tg(t,e,n)},deps:[Cu,Ap,jc]}];let rg=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:sg,imports:[Nu]}),t})();class og extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class ag extends og{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class lg extends ag{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let cg=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class hg extends cg{constructor(t,e=cg.now){super(t,()=>hg.delegate&&hg.delegate!==this?hg.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return hg.delegate&&hg.delegate!==this?hg.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class ug extends hg{}const dg=new ug(lg),pg=new b(t=>t.complete());function gg(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):pg}function fg(...t){let e=t[t.length-1];return T(e)?(t.pop(),U(t,e)):q(t)}let mg=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return fg(this.value);case"E":return t=this.error,new b(e=>e.error(t));case"C":return gg()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class _g extends g{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(_g.dispatch,this.delay,new vg(t,this.destination)))}_next(t){this.scheduleMessage(mg.createNext(t))}_error(t){this.scheduleMessage(mg.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(mg.createComplete()),this.unsubscribe()}}class vg{constructor(t,e){this.notification=t,this.destination=e}}class yg extends I{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new bg(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new S(this,t)),i&&t.add(t=new _g(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||dg).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class bg{constructor(t,e){this.time=t,this.value=e}}class wg extends I{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}function Cg(...t){if(1===t.length){const e=t[0];if(l(e))return Sg(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Sg(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Sg(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(z(t=>e(...t)))}return Sg(t,null)}function Sg(t,e){return new b(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=j(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}function Eg(t,e){return B(t,e,1)}function Ig(t,e){return function(n){return n.lift(new xg(t,e))}}class xg{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Tg(t,this.predicate,this.thisArg))}}class Tg extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Pg{}class kg{}class Mg{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Mg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Mg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Mg?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Dg{encodeKey(t){return Ag(t)}encodeValue(t){return Ag(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ag(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Og{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Dg,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Og({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Rg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Lg(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ng(t){return"undefined"!=typeof FormData&&t instanceof FormData}class zg{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Mg),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Og,this.urlWithParams=e}serializeBody(){return null===this.body?null:Rg(this.body)||Lg(this.body)||Ng(this.body)||"string"==typeof this.body?this.body:this.body instanceof Og?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||Ng(this.body)?null:Lg(this.body)?this.body.type||null:Rg(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Og?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new zg(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}const Fg=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Vg{constructor(t,e=200,n="OK"){this.headers=t.headers||new Mg,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ug extends Vg{constructor(t={}){super(t),this.type=Fg.ResponseHeader}clone(t={}){return new Ug({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class jg extends Vg{constructor(t={}){super(t),this.type=Fg.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new jg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Bg extends Vg{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Hg(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Wg=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof zg)i=t;else{let s=void 0;s=n.headers instanceof Mg?n.headers:new Mg(n.headers);let r=void 0;n.params&&(r=n.params instanceof Og?n.params:new Og({fromObject:n.params})),i=new zg(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=fg(i).pipe(Eg(t=>this.handler.handle(t)));if(t instanceof zg||"events"===n.observe)return s;const r=s.pipe(Ig(t=>t instanceof jg));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(z(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(z(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Og).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Hg(n,e))}post(t,e,n={}){return this.request("POST",t,Hg(n,e))}put(t,e,n={}){return this.request("PUT",t,Hg(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Pg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $g{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const qg=new Ft("HTTP_INTERCEPTORS");let Gg=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Yg=/^\)\]\}',?\n/;class Qg{}let Kg=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Xg=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new b(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Mg(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Ug({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Yg,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new jg({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Bg({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Bg({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:Fg.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:Fg.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:Fg.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Yt(Qg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Zg=new Ft("XSRF_COOKIE_NAME"),Jg=new Ft("XSRF_HEADER_NAME");class tf{}let ef=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(Ic),Yt(Zg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),nf=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(tf),Yt(Jg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sf=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(qg,[]);this.chain=t.reduceRight((t,e)=>new $g(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(kg),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),rf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:nf,useClass:Gg}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Zg,useValue:e.cookieName}:[],e.headerName?{provide:Jg,useValue:e.headerName}:[]]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[nf,{provide:qg,useExisting:nf,multi:!0},{provide:tf,useClass:ef},{provide:Zg,useValue:"XSRF-TOKEN"},{provide:Jg,useValue:"X-XSRF-TOKEN"}]}),t})(),of=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Wg,{provide:Pg,useClass:sf},Xg,{provide:kg,useExisting:Xg},Kg,{provide:Qg,useExisting:Kg}],imports:[[rf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function af(t){return!!t&&(t instanceof b||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function lf(){return $(1)}function cf(...t){return lf()(fg(...t))}function hf(t){return new b(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):gg()).subscribe(e)})}const uf=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function df(t){return e=>0===t?gg():e.lift(new pf(t))}class pf{constructor(t){if(this.total=t,this.total<0)throw new uf}call(t,e){return e.subscribe(new gf(t,this.total))}}class gf extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ff(t,e,n){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let s,r,o=0,a=!1,l=!1;return function(c){o++,s&&!a||(a=!1,s=new yg(t,e,i),r=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,r=void 0,s.complete()}}));const h=s.subscribe(this);this.add(()=>{o--,h.unsubscribe(),r&&!l&&n&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(i))}function mf(t,e){return"function"==typeof e?n=>n.pipe(mf((n,i)=>j(t(n,i)).pipe(z((t,s)=>e(n,t,i,s))))):e=>e.lift(new _f(t))}class _f{constructor(t){this.project=t}call(t,e){return e.subscribe(new vf(t,this.project))}}class vf extends N{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new P(this,e,n),r=this.destination;r.add(s),this.innerSubscription=L(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}class yf{}let bf=(()=>{class t extends yf{getTranslation(t){return fg({})}}return t.\u0275fac=function(e){return wf(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const wf=li(bf);class Cf{}let Sf=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Ef(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,i,s,r=typeof t;if(r==typeof e&&"object"==r){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(i in s=Object.create(null),t){if(!Ef(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&void 0!==e[i])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(i=0;i<n;i++)if(!Ef(t[i],e[i]))return!1;return!0}}return!1}function If(t){return null!=t}function xf(t){return t&&"object"==typeof t&&!Array.isArray(t)}class Tf{}let Pf=(()=>{class t extends Tf{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!If(t)||!If(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let i=this.getValue(e,n);return If(i)?i:t}):t}}return t.\u0275fac=function(e){return kf(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const kf=li(Pf);class Mf{}let Df=(()=>{class t extends Mf{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return Af(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Af=li(Df);class Of{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Zl,this.onLangChange=new Zl,this.onDefaultLangChange=new Zl}}const Rf=new Ft("USE_STORE"),Lf=new Ft("USE_DEFAULT_LANG"),Nf=new Ft("DEFAULT_LANGUAGE"),zf=new Ft("USE_EXTEND");let Ff=(()=>{class t{constructor(t,e,n,i,s,r=!0,o=!1,a=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=r,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new Zl,this._onLangChange=new Zl,this._onDefaultLangChange=new Zl,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(df(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return fg(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(df(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),fg(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(ff(1),df(1));return this.loadingTranslations=e.pipe(z(e=>this.compiler.compileTranslations(e,t)),ff(1),df(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let i=Object.assign({},e);return xf(e)&&xf(n)&&Object.keys(n).forEach(s=>{xf(n[s])?s in e?i[s]=t(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let i;if(e instanceof Array){let i={},s=!1;for(let r of e)i[r]=this.getParsedResult(t,r,n),af(i[r])&&(s=!0);return s?Cg(e.map(t=>af(i[t])?i[t]:fg(i[t]))).pipe(z(t=>{let n={};return t.forEach((t,i)=>{n[e[i]]=t}),n})):i}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===i){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),i=this.missingTranslationHandler.handle(t)}return void 0!==i?i:e}get(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Eg(n=>af(n=this.getParsedResult(n,t,e))?n:fg(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return af(n)?n:fg(n)}}getStreamOnTranslationChange(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');return cf(hf(()=>this.get(t,e)),this.onTranslationChange.pipe(mf(n=>{const i=this.getParsedResult(n.translations,t,e);return"function"==typeof i.subscribe?i:fg(i)})))}stream(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');return cf(hf(()=>this.get(t,e)),this.onLangChange.pipe(mf(n=>{const i=this.getParsedResult(n.translations,t,e);return af(i)?i:fg(i)})))}instant(t,e){if(!If(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(af(n)){if(t instanceof Array){let e={};return t.forEach((n,i)=>{e[t[i]]=t[i]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(Yt(Of),Yt(yf),Yt(Mf),Yt(Tf),Yt(Cf),Yt(Lf),Yt(Rf),Yt(zf),Yt(Nf))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vf=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let i=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,t,e);af(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(t,e).subscribe(i)}transform(t,...e){if(!t||!t.length)return t;if(Ef(t,this.lastKey)&&Ef(e,this.lastParams))return this.value;let n;if(If(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(i){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ff),function(t=at.Default){const e=Gr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=be({name:"translate",type:t,pure:!1}),t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uf=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:yf,useClass:bf},e.compiler||{provide:Mf,useClass:Df},e.parser||{provide:Tf,useClass:Pf},e.missingTranslationHandler||{provide:Cf,useClass:Sf},Of,{provide:Rf,useValue:e.isolate},{provide:Lf,useValue:e.useDefaultLang},{provide:zf,useValue:e.extend},{provide:Nf,useValue:e.defaultLanguage},Ff]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:yf,useClass:bf},e.compiler||{provide:Mf,useClass:Df},e.parser||{provide:Tf,useClass:Pf},e.missingTranslationHandler||{provide:Cf,useClass:Sf},{provide:Rf,useValue:e.isolate},{provide:Lf,useValue:e.useDefaultLang},{provide:zf,useValue:e.extend},{provide:Nf,useValue:e.defaultLanguage},Ff]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const jf=new Ft("NgValueAccessor"),Bf={provide:jf,useExisting:St(()=>Hf),multi:!0};let Hf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Wa([Bf])]}),t})();const Wf={provide:jf,useExisting:St(()=>qf),multi:!0},$f=new Ft("CompositionEventMode");let qf=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Eh()?Eh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya),Oo($f,8))},t.\u0275dir=ye({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&$o("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Wa([Wf])]}),t})(),Gf=(()=>{class t{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(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t}),t})(),Yf=(()=>{class t extends Gf{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Qf(e||t)},t.\u0275dir=ye({type:t,features:[Pa]}),t})();const Qf=li(Yf);function Kf(){throw new Error("unimplemented")}class Xf extends Gf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Kf()}get asyncValidator(){return Kf()}}let Zf=(()=>{class t extends class{constructor(t){this._cd=t}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}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Xf,2))},t.\u0275dir=ye({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&la("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Pa]}),t})();function Jf(t){return null==t||0===t.length}const tm=new Ft("NgValidators"),em=new Ft("NgAsyncValidators"),nm=/^(?=.{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 im{static min(t){return e=>{if(Jf(e.value)||Jf(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Jf(e.value)||Jf(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Jf(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Jf(t.value)||nm.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Jf(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return im.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Jf(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){return om(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){return Cg(function(t,e){return e.map(e=>e(t))}(t,e).map(rm)).pipe(z(om))}}}function sm(t){return null!=t}function rm(t){const e=Ho(t)?j(t):t;if(!Wo(e))throw new Error("Expected validator to return Promise or Observable.");return e}function om(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function am(t){return t.validate?e=>t.validate(e):t}function lm(t){return t.validate?e=>t.validate(e):t}const cm={provide:jf,useExisting:St(()=>hm),multi:!0};let hm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Wa([cm])]}),t})();const um={provide:jf,useExisting:St(()=>pm),multi:!0};let dm=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),pm=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Xf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya),Oo(dm),Oo(ho))},t.\u0275dir=ye({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Wa([um])]}),t})();const gm={provide:jf,useExisting:St(()=>fm),multi:!0};let fm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Wa([gm])]}),t})();const mm='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_m='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',vm={provide:jf,useExisting:St(()=>bm),multi:!0};function ym(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let bm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=yo}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=ym(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Wa([vm])]}),t})(),wm=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(ym(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(bm,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Cm={provide:jf,useExisting:St(()=>Em),multi:!0};function Sm(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Em=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=yo}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),s=this._getOptionValue(i.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Za),Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&$o("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Wa([Cm])]}),t})(),Im=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Sm(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Sm(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Em,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function xm(t,e){return[...e.path,t]}function Tm(t,e){t||km(e,"Cannot find control with"),e.valueAccessor||km(e,"No value accessor for form control with"),t.validator=im.compose([t.validator,e.validator]),t.asyncValidator=im.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Pm(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Pm(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Pm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function km(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Mm(t){return null!=t?im.compose(t.map(am)):null}function Dm(t){return null!=t?im.composeAsync(t.map(lm)):null}const Am=[Hf,fm,hm,bm,Em,pm];function Om(t){const e=Lm(t)?t.validators:t;return Array.isArray(e)?Mm(e):e||null}function Rm(t,e){const n=Lm(e)?e.asyncValidators:t;return Array.isArray(n)?Dm(n):n||null}function Lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Nm{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}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(t){this.validator=Om(t)}setAsyncValidators(t){this.asyncValidator=Rm(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=rm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof Fm?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Vm&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Zl,this.statusChanges=new Zl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Lm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class zm extends Nm{constructor(t=null,e,n){super(Om(e),Rm(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Fm extends Nm{constructor(t,e,n){super(Om(e),Rm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof zm?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,i)=>{e=e||this.contains(i)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Vm extends Nm{constructor(t,e,n){super(Om(e),Rm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof zm?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Um={provide:Yf,useExisting:St(()=>Bm)},jm=(()=>Promise.resolve(null))();let Bm=(()=>{class t extends Yf{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Zl,this.form=new Fm({},Mm(t),Dm(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){jm.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Tm(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){jm.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){jm.then(()=>{const e=this._findContainer(t.path),n=new Fm({});(function(t,e){null==t&&km(e,"Cannot find control with"),t.validator=im.compose([t.validator,e.validator]),t.asyncValidator=im.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){jm.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){jm.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Oo(tm,10),Oo(em,10))},t.\u0275dir=ye({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&$o("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wa([Um]),Pa]}),t})(),Hm=(()=>{class t extends Yf{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Mm(this._validators)}get asyncValidator(){return Dm(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Wm(e||t)},t.\u0275dir=ye({type:t,features:[Pa]}),t})();const Wm=li(Hm);class $m{static modelParentException(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${mm}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${_m}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${mm}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${_m}`)}}const qm={provide:Yf,useExisting:St(()=>Gm)};let Gm=(()=>{class t extends Hm{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof Bm||$m.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Yf,5),Oo(tm,10),Oo(em,10))},t.\u0275dir=ye({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Wa([qm]),Pa]}),t})();const Ym={provide:Xf,useExisting:St(()=>Km)},Qm=(()=>Promise.resolve(null))();let Km=(()=>{class t extends Xf{constructor(t,e,n,i){super(),this.control=new zm,this._registered=!1,this.update=new Zl,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||km(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,s=void 0;return e.forEach(e=>{var r;e.constructor===qf?n=e:(r=e,Am.some(t=>r.constructor===t)?(i&&km(t,"More than one built-in value accessor matches form control with"),i=e):(s&&km(t,"More than one custom value accessor matches form control with"),s=e))}),s||i||n||(km(t,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!yo(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?xm(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Mm(this._rawValidators)}get asyncValidator(){return Dm(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Tm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Gm)&&this._parent instanceof Hm?$m.formGroupNameException():this._parent instanceof Gm||this._parent instanceof Bm||$m.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$m.missingNameException()}_updateValue(t){Qm.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Qm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Oo(Yf,9),Oo(tm,10),Oo(em,10),Oo(jf,10))},t.\u0275dir=ye({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Wa([Ym]),Pa,Ra]}),t})();const Xm=new Ft("NgModelWithFormControlWarning");let Zm=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Jm=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Fm(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new zm(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new Vm(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof zm||t instanceof Fm||t instanceof Vm?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),t_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[dm],imports:[Zm]}),t})(),e_=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xm,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Jm,dm],imports:[Zm]}),t})();function n_(t,e,n,s){return i(n)&&(s=n,n=void 0),s?n_(t,e,n).pipe(z(t=>l(t)?s(...t):s(t))):new b(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,s,r)}s.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}function i_(t){return e=>e.lift(new s_(t))}class s_{constructor(t){this.callback=t}call(t,e){return e.subscribe(new r_(t,this.callback))}}class r_ extends g{constructor(t,e){super(t),this.add(new u(e))}}function o_(t){return e=>e.lift(new a_(t))}class a_{constructor(t){this.notifier=t}call(t,e){const n=new l_(t),i=L(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class l_ extends N{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}function c_(t){return null!=t&&""+t!="false"}function h_(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function u_(t){return t instanceof Ya?t.nativeElement:t}const d_=new Ft("cdk-dir-doc",{providedIn:"root",factory:function(){return Qt(Ih)}});let p_,g_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Zl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Yt(d_,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(d_,8))},token:t,providedIn:"root"}),t})(),f_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();try{p_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Nk){p_=!1}let m_,__,v_,y_=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?su(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&&!p_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ic))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ic))},token:t,providedIn:"root"}),t})(),b_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function w_(t){return function(){if(null==m_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>m_=!0}))}finally{m_=m_||!1}return m_}()?t:!!t.capture}function C_(){if("object"!=typeof document||!document)return 0;if(null==__){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),__=0,0===t.scrollLeft&&(t.scrollLeft=1,__=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return __}class S_ extends ag{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class E_ extends hg{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}const I_=new E_(S_);function x_(t,e){return n=>n.lift(new T_(t,e))}class T_{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new P_(t,this.compare,this.keySelector))}}class P_ extends g{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const k_=new hg(ag);class M_{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new D_(t,this.durationSelector))}}class D_ extends N{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=L(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function A_(t){return!l(t)&&t-parseFloat(t)+1>=0}function O_(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function R_(t,e=k_){return n=()=>function(t=0,e,n){let i=-1;return A_(e)?i=Number(e)<1?1:Number(e):T(e)&&(n=e),T(n)||(n=k_),new b(e=>{const s=A_(t)?t:+t-n.now();return n.schedule(O_,s,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new M_(n))};var n}function L_(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>cf(t,n,e)):e=>cf(t,e)}class N_{call(t,e){return e.subscribe(new z_(t))}}class z_ extends g{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}let F_=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new I,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new b(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(R_(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):fg()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ig(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>n_(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(y_),Yt(Ih,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(jc),Yt(y_),Yt(Ih,8))},token:t,providedIn:"root"}),t})(),V_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new I,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(R_(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Yt(y_),Yt(jc),Yt(Ih,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(y_),Yt(jc),Yt(Ih,8))},token:t,providedIn:"root"}),t})(),U_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),j_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[f_,b_,U_],f_,U_]}),t})(),B_=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[j_]]}),t})();const H_=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),W_={};class $_{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new q_(t,this.resultSelector))}}class q_ extends N{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(W_),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(L(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,i,s){const r=this.values,o=this.toRespond?r[n]===W_?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function G_(t){return function(e){return 0===t?gg():e.lift(new Y_(t))}}class Y_{constructor(t){if(this.total=t,this.total<0)throw new uf}call(t,e){return e.subscribe(new Q_(t,this.total))}}class Q_ extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}function K_(t=J_){return e=>e.lift(new X_(t))}class X_{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Z_(t,this.errorFactory))}}class Z_ extends g{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function J_(){return new H_}function tv(t=null){return e=>e.lift(new ev(t))}class ev{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new nv(t,this.defaultValue))}}class nv extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function iv(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ig((e,n)=>t(e,n,i)):_,G_(1),n?tv(e):K_(()=>new H_))}function sv(t){return function(e){const n=new rv(t),i=e.lift(n);return n.caught=i}}class rv{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ov(t,this.selector,this.caught))}}class ov extends N{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new P(this,void 0,void 0);this.add(i);const s=L(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function av(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Ig((e,n)=>t(e,n,i)):_,df(1),n?tv(e):K_(()=>new H_))}class lv{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new cv(t,this.predicate,this.thisArg,this.source))}}class cv extends g{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function hv(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new uv(t,e,n))}}class uv{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new dv(t,this.accumulator,this.seed,this.hasSeed))}}class dv extends g{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function pv(){}function gv(t,e,n){return function(i){return i.lift(new fv(t,e,n))}}class fv{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new mv(t,this.nextOrObserver,this.error,this.complete))}}class mv extends g{constructor(t,e,n,s){super(t),this._tapNext=pv,this._tapError=pv,this._tapComplete=pv,this._tapError=n||pv,this._tapComplete=s||pv,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||pv,this._tapError=e.error||pv,this._tapComplete=e.complete||pv)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class _v{constructor(t,e){this.id=t,this.url=e}}class vv extends _v{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yv extends _v{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class bv extends _v{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class wv extends _v{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Cv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ev extends _v{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Iv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xv extends _v{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tv{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Pv{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class kv{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mv{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dv{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Av{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ov{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Vo(0,"router-outlet")},directives:function(){return[Lb]},encapsulation:2}),t})();class Lv{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Nv(t){return new Lv(t)}function zv(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Fv(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}class Vv{constructor(t,e){this.routes=t,this.module=e}}function Uv(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];jv(i,Bv(e,i))}}function jv(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Uv(t.children,e)}function Bv(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Hv(t){const e=t.children&&t.children.map(Hv),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Rv),n}function Wv(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!$v(t[s],e[s]))return!1;return!0}function $v(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function qv(t){return Array.prototype.concat.apply([],t)}function Gv(t){return t.length>0?t[t.length-1]:null}function Yv(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Qv(t){return Wo(t)?t:Ho(t)?j(Promise.resolve(t)):fg(t)}function Kv(t,e,n){return n?function(t,e){return Wv(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!ty(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>$v(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,s){if(n.segments.length>s.length)return!!ty(n.segments.slice(0,s.length),s)&&!i.hasChildren();if(n.segments.length===s.length){if(!ty(n.segments,s))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!ty(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,r)}}(e,n,n.segments)}(t.root,e.root)}class Xv{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nv(this.queryParams)),this._queryParamMap}toString(){return sy.serialize(this)}}class Zv{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Yv(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ry(this)}}class Jv{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Nv(this.parameters)),this._parameterMap}toString(){return uy(this)}}function ty(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function ey(t,e){let n=[];return Yv(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Yv(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class ny{}class iy{parse(t){const e=new my(t);return new Xv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return ry(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return Yv(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=ey(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${ry(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ay(e)}=${ay(t)}`).join("&"):`${ay(e)}=${ay(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const sy=new iy;function ry(t){return t.segments.map(t=>uy(t)).join("/")}function oy(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ay(t){return oy(t).replace(/%3B/gi,";")}function ly(t){return oy(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cy(t){return decodeURIComponent(t)}function hy(t){return cy(t.replace(/\+/g,"%20"))}function uy(t){return`${ly(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${ly(t)}=${ly(e[t])}`).join("")}`;var e}const dy=/^[^\/()?;=#]+/;function py(t){const e=t.match(dy);return e?e[0]:""}const gy=/^[^=?&#]+/,fy=/^[^?&#]+/;class my{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zv([],{}):new Zv([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Zv(t,e)),n}parseSegment(){const t=py(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Jv(cy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=py(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=py(this.remaining);t&&(n=t,this.capture(n))}t[cy(e)]=cy(n)}parseQueryParam(t){const e=function(t){const e=t.match(gy);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(fy);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=hy(e),s=hy(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=py(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Zv([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class _y{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=vy(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=vy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=yy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return yy(t,this._root).map(t=>t.value)}}function vy(t,e){if(t===e.value)return e;for(const n of e.children){const e=vy(t,n);if(e)return e}return null}function yy(t,e){if(t===e.value)return[e];for(const n of e.children){const i=yy(t,n);if(i.length)return i.unshift(e),i}return[]}class by{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function wy(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Cy extends _y{constructor(t,e){super(t),this.snapshot=e,Py(this,t)}toString(){return this.snapshot.toString()}}function Sy(t,e){const n=function(t,e){const n=new xy([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Ty("",new by(n,[]))}(t,e),i=new wg([new Jv("",{})]),s=new wg({}),r=new wg({}),o=new wg({}),a=new wg(""),l=new Ey(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new Cy(new by(l,[]),n)}class Ey{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>Nv(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>Nv(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Iy(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class xy{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Nv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ty extends _y{constructor(t,e){super(e),this.url=t,Py(this,e)}toString(){return ky(this._root)}}function Py(t,e){e.value._routerState=t,e.children.forEach(e=>Py(t,e))}function ky(t){const e=t.children.length>0?` { ${t.children.map(ky).join(", ")} } `:"";return`${t.value}${e}`}function My(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Wv(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Wv(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Wv(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Wv(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Dy(t,e){var n,i;return Wv(t.params,e.params)&&ty(n=t.url,i=e.url)&&n.every((t,e)=>Wv(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Dy(t.parent,e.parent))}function Ay(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Oy(t,e,n,i,s){let r={};return i&&Yv(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Xv(n.root===t?e:function t(e,n,i){const s={};return Yv(e.children,(e,r)=>{s[r]=e===n?i:t(e,n,i)}),new Zv(e.segments,s)}(n.root,t,e),r,s)}class Ry{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ay(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==Gv(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ly{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Ny(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function zy(t,e,n){if(t||(t=new Zv([],{})),0===t.segments.length&&t.hasChildren())return Fy(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],o=Ny(n[i]),a=i<n.length-1?n[i+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!By(o,a,e))return r;i+=2}else{if(!By(o,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Zv(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new Zv(t.segments.slice(i.pathIndex),t.children),Fy(e,0,s)}return i.match&&0===s.length?new Zv(t.segments,{}):i.match&&!t.hasChildren()?Vy(t,e,n):i.match?Fy(t,0,s):Vy(t,e,n)}function Fy(t,e,n){if(0===n.length)return new Zv(t.segments,{});{const i=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),s={};return Yv(i,(n,i)=>{null!==n&&(s[i]=zy(t.children[i],e,n))}),Yv(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Zv(t.segments,s)}}function Vy(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=Uy(n[s].outlets);return new Zv(i,t)}if(0===s&&Ay(n[0])){i.push(new Jv(t.segments[e].path,n[0])),s++;continue}const r=Ny(n[s]),o=s<n.length-1?n[s+1]:null;r&&o&&Ay(o)?(i.push(new Jv(r,jy(o))),s+=2):(i.push(new Jv(r,{})),s++)}return new Zv(i,{})}function Uy(t){const e={};return Yv(t,(t,n)=>{null!==t&&(e[n]=Vy(new Zv([],{}),0,t))}),e}function jy(t){const e={};return Yv(t,(t,n)=>e[n]=""+t),e}function By(t,e,n){return t==n.path&&Wv(e,n.parameters)}class Hy{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),My(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=wy(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Yv(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=wy(t),s=t.value.component?n.children:e;Yv(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=wy(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Av(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Mv(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(My(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Wy(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Wy(t){My(t.value),t.children.forEach(Wy)}function $y(t){return"function"==typeof t}function qy(t){return t instanceof Xv}class Gy{constructor(t){this.segmentGroup=t||null}}class Yy{constructor(t){this.urlTree=t}}function Qy(t){return new b(e=>e.error(new Gy(t)))}function Ky(t){return new b(e=>e.error(new Yy(t)))}function Xy(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Zy{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Jt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(z(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(sv(t=>{if(t instanceof Yy)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Gy)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(z(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(sv(t=>{if(t instanceof Gy)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Zv([],{primary:t}):t;return new Xv(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(z(t=>new Zv([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return fg({});const n=[],i=[],s={};return Yv(t,(t,r)=>{const o=e(r,t).pipe(z(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),fg.apply(null,n.concat(i)).pipe(lf(),iv(),z(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,r){return fg(...n).pipe(z(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sv(t=>{if(t instanceof Gy)return fg(null);throw t}))),lf(),av(t=>!!t),sv((t,n)=>{if(t instanceof H_||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return fg(new Zv([],{}));throw new Gy(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return nb(i)!==r?Qy(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Qy(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ky(s):this.lineralizeSegments(n,s).pipe(B(n=>{const s=new Zv(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Jy(e,i,s);if(!o)return Qy(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ky(h):this.lineralizeSegments(i,h).pipe(B(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(z(t=>(n._loadedConfig=t,new Zv(i,{})))):fg(new Zv(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=Jy(e,n,i);if(!s)return Qy(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>eb(t,e,n)&&"primary"!==nb(n))}(t,n,i)?{segmentGroup:tb(new Zv(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==nb(i)&&(n[nb(i)]=new Zv([],{}));return n}(i,new Zv(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>eb(t,e,n))}(t,n,i)?{segmentGroup:tb(new Zv(t.segments,function(t,e,n,i){const s={};for(const r of n)eb(t,e,r)&&!i[nb(r)]&&(s[nb(r)]=new Zv([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(z(t=>new Zv(r,t))):0===i.length&&0===o.length?fg(new Zv(r,{})):this.expandSegment(n,s,i,o,"primary",!0).pipe(z(t=>new Zv(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?fg(new Vv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?fg(e._loadedConfig):function(t,e,n){const i=e.canLoad;return i&&0!==i.length?j(i).pipe(z(i=>{const s=t.get(i);let r;if(function(t){return t&&$y(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!$y(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return Qv(r)})).pipe(lf(),(s=t=>!0===t,t=>t.lift(new lv(s,void 0,t)))):fg(!0);var s}(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(zv(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):fg(new Vv([],t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return fg(n);if(i.numberOfChildren>1||!i.children.primary)return Xy(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Xv(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Yv(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Yv(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Zv(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Jy(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Fv)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function tb(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Zv(t.segments.concat(e.segments),e.children)}return t}function eb(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function nb(t){return t.outlet||"primary"}class ib{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class sb{constructor(t,e){this.component=t,this.route=e}}function rb(t,e,n){const i=t._root;return function t(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=wy(n);return e.children.forEach(e=>{!function(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ty(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ty(t.url,e.url)||!Wv(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dy(t,e)||!Wv(t.queryParams,e.queryParams);case"paramsChange":default:return!Dy(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ib(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:i,s,r),c&&r.canDeactivateChecks.push(new sb(l&&l.outlet&&l.outlet.component||null,a))}else a&&ab(n,l,r),r.canActivateChecks.push(new ib(s)),t(e,null,o.component?l?l.children:null:i,s,r)}(e,o[e.value.outlet],i,s.concat([e.value]),r),delete o[e.value.outlet]}),Yv(o,(t,e)=>ab(t,i.getContext(e),r)),r}(i,e?e._root:null,n,[i.value])}function ob(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function ab(t,e,n){const i=wy(t),s=t.value;Yv(i,(t,i)=>{ab(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new sb(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const lb=Symbol("INITIAL_VALUE");function cb(){return mf(t=>function(...t){let e=null,n=null;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new $_(e))}(...t.map(t=>t.pipe(df(1),L_(lb)))).pipe(hv((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==lb)return t;if(i===lb&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||qy(i))return i}return t},t)},lb),Ig(t=>t!==lb),z(t=>qy(t)?t:!0===t),df(1)))}function hb(t,e){return null!==t&&e&&e(new Dv(t)),fg(!0)}function ub(t,e){return null!==t&&e&&e(new kv(t)),fg(!0)}function db(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?fg(i.map(i=>hf(()=>{const s=ob(i,e,n);let r;if(function(t){return t&&$y(t.canActivate)}(s))r=Qv(s.canActivate(e,t));else{if(!$y(s))throw new Error("Invalid CanActivate guard");r=Qv(s(e,t))}return r.pipe(av())}))).pipe(cb()):fg(!0)}function pb(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>hf(()=>fg(e.guards.map(s=>{const r=ob(s,e.node,n);let o;if(function(t){return t&&$y(t.canActivateChild)}(r))o=Qv(r.canActivateChild(i,t));else{if(!$y(r))throw new Error("Invalid CanActivateChild guard");o=Qv(r(i,t))}return o.pipe(av())})).pipe(cb())));return fg(s).pipe(cb())}class gb{}class fb{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=vb(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new xy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new by(n,e),s=new Ty(this.url,i);return this.inheritParamsAndData(s._root),fg(s)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Iy(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=ey(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof gb))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new gb}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new gb;if((t.outlet||"primary")!==i)throw new gb;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?Gv(n).parameters:{};s=new xy(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),i,t.component,t,mb(e),_b(e)+n.length,Cb(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new gb;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Fv)(n,t,e);if(!i)throw new gb;const s={};Yv(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new xy(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wb(t),i,t.component,t,mb(e),_b(e)+r.length,Cb(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=vb(e,r,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new by(s,t)]}if(0===a.length&&0===c.length)return[new by(s,[])];const h=this.processSegment(a,l,c,"primary");return[new by(s,h)]}}function mb(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function _b(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function vb(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>yb(t,e,n)&&"primary"!==bb(n))}(t,n,i)){const s=new Zv(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==bb(r)){const n=new Zv([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[bb(r)]=n}return s}(t,e,i,new Zv(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>yb(t,e,n))}(t,n,i)){const r=new Zv(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(yb(t,n,a)&&!s[bb(a)]){const n=new Zv([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[bb(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Zv(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function yb(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function bb(t){return t.outlet||"primary"}function wb(t){return t.data||{}}function Cb(t){return t.resolve||{}}function Sb(t,e,n,i){const s=ob(t,e,i);return Qv(s.resolve?s.resolve(e,n):s(e,n))}function Eb(t){return function(e){return e.pipe(mf(e=>{const n=t(e);return n?j(n).pipe(z(()=>e)):j([e])}))}}class Ib{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const xb=new Ft("ROUTES");class Tb{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(z(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Vv(qv(i.injector.get(xb)).map(Hv),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):Qv(t()).pipe(B(t=>t instanceof te?fg(t):j(this.compiler.compileModuleAsync(t))))}}class Pb{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function kb(t){throw t}function Mb(t,e,n){return e.parse("/")}function Db(t,e){return fg(null)}let Ab=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=kb,this.malformedUriErrorHandler=Mb,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Db,afterPreactivation:Db},this.urlHandlingStrategy=new Pb,this.routeReuseStrategy=new Ib,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Jt),this.console=s.get(Tc);const l=s.get(jc);this.isNgZoneEnabled=l instanceof jc,this.resetConfig(a),this.currentUrlTree=new Xv(new Zv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tb(r,o,t=>this.triggerEvent(new Tv(t)),t=>this.triggerEvent(new Pv(t))),this.routerState=Sy(this.currentUrlTree,this.rootComponentType),this.transitions=new wg({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Ig(t=>0!==t.id),z(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),mf(t=>{let n=!1,i=!1;return fg(t).pipe(gv(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),mf(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return fg(t).pipe(mf(t=>{const n=this.transitions.getValue();return e.next(new vv(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?pg:[t]}),mf(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(mf(t=>function(t,e,n,i,s){return new Zy(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(z(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),gv(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(B(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new fb(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(z(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),gv(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),gv(t=>{const n=new Cv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new vv(n,this.serializeUrl(i),s,r);e.next(a);const l=Sy(i,this.rootComponentType).snapshot;return fg(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),pg}),Eb(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),gv(t=>{const e=new Sv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),z(t=>Object.assign(Object.assign({},t),{guards:rb(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?fg(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?fg(r.map(r=>{const o=ob(r,e,s);let a;if(function(t){return t&&$y(t.canDeactivate)}(o))a=Qv(o.canDeactivate(t,e,n,i));else{if(!$y(o))throw new Error("Invalid CanDeactivate guard");a=Qv(o(t,e,n,i))}return a.pipe(av())})).pipe(cb()):fg(!0)}(t.component,t.route,n,e,i)),av(t=>!0!==t,!0))}(o,i,s,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(Eg(e=>j([ub(e.route.parent,i),hb(e.route,i),pb(t,e.path,n),db(t,e.route,n)]).pipe(lf(),av(t=>!0!==t,!0))),av(t=>!0!==t,!0))}(i,r,t,e):fg(n)),z(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),gv(t=>{if(qy(t.guardsResult)){const e=zv(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),gv(t=>{const e=new Ev(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ig(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new bv(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Eb(t=>{if(t.guards.canActivateChecks.length)return fg(t).pipe(gv(t=>{const e=new Iv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=t;return s.length?j(s).pipe(Eg(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return fg({});if(1===s.length){const r=s[0];return Sb(t[r],e,n,i).pipe(z(t=>({[r]:t})))}const r={};return j(s).pipe(B(s=>Sb(t[s],e,n,i).pipe(z(t=>(r[s]=t,t))))).pipe(iv(),z(()=>r))}(t._resolve,t,e,i).pipe(z(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Iy(t,n).resolve),null)))}(t.route,i,e,n)),function(t,e){return arguments.length>=2?function(n){return v(hv(t,e),G_(1),tv(e))(n)}:function(e){return v(hv((e,n,i)=>t(e,n,i+1)),G_(1))(e)}}((t,e)=>t),z(e=>t)):fg(t)}))}),gv(t=>{const e=new xv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Eb(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),z(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const s=i.value;s._futureSnapshot=n.value;const r=function(e,n,i){return n.children.map(n=>{for(const s of i.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,i);return new by(s,r)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,t),t}{const i=new Ey(new wg((s=n.value).url),new wg(s.params),new wg(s.queryParams),new wg(s.fragment),new wg(s.data),s.outlet,s.component,s),r=n.children.map(n=>t(e,n));return new by(i,r)}}var s}(t,e._root,n?n._root:void 0);return new Cy(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),gv(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),z(t=>(new Hy(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),gv({next(){n=!0},complete(){n=!0}}),i_(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new bv(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),sv(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=qy(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new bv(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new wv(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return pg}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Uv(t),this.config=t.map(Hv),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;Ei()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let h=null;if(o)switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=r?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,s){if(0===n.length)return Oy(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ry(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Yv(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Ry(n,e,i)}(n);if(r.toRoot())return Oy(e.root,new Zv([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Ly(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Ly(n.snapshot._urlSegment,!0,0);const i=Ay(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Ly(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Fy(o.segmentGroup,o.index,r.commands):zy(o.segmentGroup,o.index,r.commands);return Oy(o.segmentGroup,a,e,i,s)}(l,this.currentUrlTree,t,h,c)}navigateByUrl(t,e={skipLocationChange:!1}){Ei()&&this.isNgZoneEnabled&&!jc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=qy(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(qy(t))return Kv(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Kv(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new yv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){Ro()},t.\u0275dir=ye({type:t}),t})();class Ob{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Rb,this.attachRef=null}}class Rb{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ob,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Lb=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Zl,this.deactivateEvents=new Zl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Nb(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Rb),Oo(bl),Oo(Ga),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let e=0;for(;e<t;){const i=n[e];if(Dn(i))break;if(0===i)e+=2;else if("number"==typeof i)for(e++;e<t&&"string"==typeof n[e];)e++;else{if("name"===i)return n[e+1];e+=2}}}return null}(Ze())),Oo(Yr))},t.\u0275dir=ye({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Nb{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ey?this.route:t===Rb?this.childContexts:this.parent.get(t,e)}}class zb{}class Fb{preload(t,e){return fg(null)}}let Vb=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Tb(e,n,e=>t.triggerEvent(new Tv(e)),e=>t.triggerEvent(new Pv(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ig(t=>t instanceof yv),Eg(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe($(),z(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ab),Yt(ch),Yt(zc),Yt(ho),Yt(zb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ub=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof yv&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ov&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Ov(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){Ro()},t.\u0275dir=ye({type:t}),t})();const jb=new Ft("ROUTER_CONFIGURATION"),Bb=new Ft("ROUTER_FORROOT_GUARD"),Hb=[Uh,{provide:ny,useClass:iy},{provide:Ab,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Ab(null,t,e,n,i,s,r,qv(o));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Eh();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h},deps:[ny,Rb,Uh,ho,ch,zc,xb,jb,[class{},new st],[class{},new st]]},Rb,{provide:Ey,useFactory:function(t){return t.routerState.root},deps:[Ab]},{provide:ch,useClass:dh},Vb,Fb,class{preload(t,e){return e().pipe(sv(()=>fg(null)))}},{provide:jb,useValue:{enableTracing:!1}}];function Wb(){return new nh("Router",Ab)}let $b=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Hb,Qb(e),{provide:Bb,useFactory:Yb,deps:[[Ab,new st,new ot]]},{provide:jb,useValue:n||{}},{provide:Lh,useFactory:Gb,deps:[xh,[new it(zh),new st],jb]},{provide:Ub,useFactory:qb,deps:[Ab,ru,jb]},{provide:zb,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fb},{provide:nh,multi:!0,useFactory:Wb},[Kb,{provide:yc,multi:!0,useFactory:Xb,deps:[Kb]},{provide:Jb,useFactory:Zb,deps:[Kb]},{provide:xc,multi:!0,useExisting:Jb}]]}}static forChild(e){return{ngModule:t,providers:[Qb(e)]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(Bb,8),Yt(Ab,8))}}),t})();function qb(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ub(t,e,n)}function Gb(t,e,n={}){return n.useHash?new Vh(t,e):new Fh(t,e)}function Yb(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Qb(t){return[{provide:uo,multi:!0,useValue:t},{provide:xb,multi:!0,useValue:t}]}let Kb=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new I}appInitializer(){return this.injector.get(Ph,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Ab),i=this.injector.get(jb);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?fg(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(jb),n=this.injector.get(Vb),i=this.injector.get(Ub),s=this.injector.get(Ab),r=this.injector.get(ah);t===r.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Xb(t){return t.appInitializer.bind(t)}function Zb(t){return t.bootstrapListener.bind(t)}const Jb=new Ft("Router Initializer");function tw(t,e){if(1&t&&(zo(0,"span",4),Vo(1,"i"),Fo()),2&t){const t=Yo();ws(1),ca(t.config.icon)}}const ew=function(t){return{"is-active":t}},nw=["componentSection"],iw=["okButton"],sw=["cancelButton"],rw=["backdropButton"],ow=["header"],aw=["footer"];function lw(t,e){if(1&t){const t=Bo();zo(0,"button",13,14),$o("click",(function(){return Xe(t),Yo(2).backdropHandler()})),Fo()}}function cw(t,e){if(1&t&&(zo(0,"header",9,10),zo(2,"p",11),wa(3),Fo(),Do(4,lw,2,0,"button",12),Fo()),2&t){const t=Yo();ws(3),Ca(t.config.title),ws(1),Lo("ngIf",t.config.hasBackdrop)}}function hw(t,e){1&t&&(zo(0,"section",15),Vo(1,"nwb-spinner"),Fo())}function uw(t,e){1&t&&Vo(0,"section",16),2&t&&Lo("innerHTML",Yo().config.message,Xi)}function dw(t,e){if(1&t){const t=Bo();zo(0,"button",21,22),$o("click",(function(){return Xe(t),Yo(2).cancelHandler()})),wa(2),Fo()}if(2&t){const t=Yo(2);ws(2),Sa("",t.config.cancelButtonText," ")}}function pw(t,e){if(1&t){const t=Bo();zo(0,"button",23,24),$o("click",(function(){return Xe(t),Yo(2).okHandler()})),wa(2),Fo()}if(2&t){const t=Yo(2);ws(2),Sa("",t.config.okButtonText," ")}}function gw(t,e){if(1&t&&(zo(0,"footer",17,18),Do(2,dw,3,1,"button",19),Do(3,pw,3,1,"button",20),Fo()),2&t){const t=Yo();ws(2),Lo("ngIf",t.config.cancelButtonText),ws(1),Lo("ngIf",t.config.okButtonText)}}const fw=function(t){return{width:t}},mw=function(t){return{"is-hidden":t}},_w=["inputSearch"];function vw(t,e){1&t&&Vo(0,"header",14,15)}const yw=function(t,e,n,i){return{selected:t,"not-selectable":e,"is-child":n,"is-parent":i}};function bw(t,e){if(1&t){const t=Bo();zo(0,"a",18),$o("mousemove",(function(){return Xe(t),Yo(2).mouseMove()}))("mouseover",(function(){Xe(t);const n=e.index;return Yo(2).mouseOver(n)}))("click",(function(){return Xe(t),Yo(2).selectValue()})),Vo(1,"div",19),Fo()}if(2&t){const t=e.$implicit,n=e.index,i=Yo(2);Lo("ngClass",jl(3,yw,t.isSelectable&&n===i.selectedFoundRow,!t.isSelectable,t.isChild,t.isParent))("tabindex",n),ws(1),Lo("innerHTML",t.text,Xi)}}function ww(t,e){if(1&t&&(zo(0,"div",16),Do(1,bw,2,8,"a",17),Fo()),2&t){const t=Yo();ws(1),Lo("ngForOf",t.foundRows)}}function Cw(t,e){1&t&&Vo(0,"nwb-spinner")}function Sw(t,e){1&t&&Vo(0,"footer",20,21)}const Ew=function(t,e){return{"has-no-header":t,"has-no-footer":e}};function Iw(t,e){if(1&t){const t=Bo();zo(0,"div",3),zo(1,"button",4),$o("click",(function(){return Xe(t),Yo().dismiss(!0)})),wa(2),Fo(),Fo()}if(2&t){const t=Yo();ws(1),ca("button "+(t.config.buttonColor?t.config.buttonColor:"is-success")),ws(1),Sa("",t.config.action," ")}}const xw=function(t){return{"is-half":t}};let Tw=(()=>{class t{constructor(){this.availableColors=["#a2c739","#dbdbdb","#00d1b2","#4baed0"]}ngOnInit(){this.color||(this.color=this.availableColors[Math.floor(Math.random()*this.availableColors.length)])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-spinner"]],hostAttrs:[1,"nwb-spinner"],inputs:{color:"color"},decls:1,vars:2,consts:[[1,"is-spinning"]],template:function(t,e){1&t&&Vo(0,"div",0),2&t&&aa("border-color",e.color)},encapsulation:2}),t})(),Pw=(()=>{class t{constructor(t){this.el=t,this.el.nativeElement.classList.add("tooltip")}set nwbToolTip(t){this.el.nativeElement.setAttribute("data-tooltip",t)}set nwbToolTipPosition(t){this.el.nativeElement.classList.remove("is-tooltip-top"),this.el.nativeElement.classList.remove("is-tooltip-left"),this.el.nativeElement.classList.remove("is-tooltip-right"),this.el.nativeElement.classList.remove("is-tooltip-bottom"),this.el.nativeElement.classList.add("is-tooltip-"+t)}set nwbToolTipIsMultiline(t){t?this.el.nativeElement.classList.add("is-tooltip-multiline"):this.el.nativeElement.classList.remove("is-tooltip-multiline")}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","nwbToolTip",""]],inputs:{nwbToolTip:"nwbToolTip",nwbToolTipPosition:"nwbToolTipPosition",nwbToolTipIsMultiline:"nwbToolTipIsMultiline"}}),t})();class kw{constructor(t,e){this.name=t,this.valuesChange$=new I,this.group=new Map,Object.keys(e).forEach(t=>{const n=e[t],i=new Mw(t,n,n);this.group.set(t,i)})}set(t,e){this._valueChange(t,e)&&this.emitChange()}get(t){if(!this.group.has(t))throw new Error(`FilterGroup: They key ${t} doesn't exist`);return this.group.get(t).value}setValues(t){let e=!1;Object.keys(t).forEach(n=>{this._valueChange(n,t[n])&&(e=!0)}),e&&this.emitChange()}_valueChange(t,e){if(!this.group.has(t))throw new Error(`FilterGroup: They key ${t} doesn't exist`);return"string"==typeof e&&(e=e.trim()),this.group.get(t).value!=e&&(this.group.get(t).value=e,!0)}emitChange(){const t=[];this.group.forEach(e=>t.push(e)),this.valuesChange$.next(t)}getFilters(){const t=[];return this.group.forEach(e=>t.push(e)),t}}class Mw{constructor(t,e,n){this.key=t,this.defaultValue=e,this.value=n}isDefaultValue(){return this.defaultValue===this.value}}let Dw=(()=>{class t{constructor(t,e){this.router=t,this.route=e,this.groupCounter=0,this.filterGroups=new Map,this.route.queryParams.subscribe(t=>{this.queryParamsChange(t)})}queryParamsChange(t){const e=new Map;Object.keys(t).forEach(n=>{const i=this.getParsedKey(n),s=e.has(i.filterGroupName)?e.get(i.filterGroupName):{};s[i.filterKey]=t[n],e.set(i.filterGroupName,s)}),this.filterGroups.forEach(t=>{const n={};t.getFilters().forEach(t=>{n[t.key]=t.defaultValue});const i=e.has(t.name)?e.get(t.name):{};t.setValues(Object.assign(n,i))})}group(t,e){e||(e="fg_"+this.groupCounter++);const n=new kw(e,t);return this.filterGroups.set(n.name,n),n.valuesChange$.subscribe(t=>{this.updateRouting(n.name,t)}),this.route.queryParams.subscribe(t=>{this.queryParamsChange(t)}).unsubscribe(),n}addFilterGroupNameToQueryParamKey(t,e){return t+":"+e}getParsedKey(t){const e=t.split(":");return{filterGroupName:e[0],filterKey:e[1]}}updateRouting(t,e){this.route.queryParamMap.subscribe(n=>{const i={};n.keys.forEach(t=>{i[t]=n.get(t)});const s=Object.assign({},i);e.forEach(e=>{const n=this.addFilterGroupNameToQueryParamKey(t,e.key);if(e.isDefaultValue())s.hasOwnProperty(n)&&delete s[n];else{let t=e.value;t instanceof Date&&(t=t.toISOString()),s[n]=t}}),this.router.navigate([],{queryParams:s,relativeTo:this.route})}).unsubscribe()}remove(t){this.filterGroups.has(t.name)&&this.filterGroups.delete(t.name)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ab),Yt(Ey))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Aw=(()=>{class t{getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=document.createElement("div");t.classList.add("nwb-overlay-container"),document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ow={provide:Aw,deps:[[new st,new ot,Aw]],useFactory:function(t){return t||new Aw}};let Rw=(()=>{class t{constructor(t,e,n,i){this.componentFactoryResolver=t,this.appRef=e,this.injector=n,this.overlayContainer=i}attachComponentPortal(t,e){const n=this.componentFactoryResolver.resolveComponentFactory(t).create(e||this.injector);return this.appRef.attachView(n.hostView),this.overlayContainer.getContainerElement().appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ga),Yt(ah),Yt(ho),Yt(Aw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Lw={provide:Rw,deps:[[new st,new ot,Rw],Ga,ah,ho,Aw],useFactory:function(t,e,n,i,s){return t||new Rw(e,n,i,s)}};let Nw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Ow,Lw,Dw],imports:[[iu,t_]]}),t})(),zw=(()=>{class t{constructor(){this._afterClosed=new I,this.open=!1}ngOnInit(){setTimeout(()=>{this.open=!0},50),this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(),this.config.duration))}dismiss(){this.open=!1,setTimeout(()=>{this._afterClosed.next(!0),this._afterClosed.complete()},200)}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-alert"]],hostAttrs:[1,"nwb-alert"],decls:4,vars:7,consts:[[3,"ngClass"],[1,"alert--message"],["class","icon",4,"ngIf"],[3,"innerHTML"],[1,"icon"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),Do(2,tw,2,2,"span",2),Vo(3,"p",3),Fo(),Fo()),2&t&&(ca("alert "+(e.config.color?e.config.color:" is-primary")+(e.config.extraClasses?" "+e.config.extraClasses:"")+(e.config.position?" "+e.config.position:"")),Lo("ngClass",Fl(5,ew,e.open)),ws(2),Lo("ngIf",e.config.icon),ws(1),Lo("innerHTML",e.config.message,Xi))},directives:[Gh,Xh],encapsulation:2}),t})(),Fw=(()=>{class t{constructor(t){this.domService=t}open(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=this.domService.attachComponentPortal(zw);return t=Object.assign({position:"is-top"},t),e.instance.config=t,e.instance.afterClosed().subscribe(()=>{e.destroy()}),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Fw],imports:[[iu,Nw]]}),t})(),Uw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),jw=(()=>{class t{constructor(t){this.componentFactoryResolver=t,this.ready=new Zl,this.hasComponent=!1,this._afterClosed=new I,this.open=!1,this.fromOkButton=!1}ngOnInit(){this.open=!0,this.ready.next(!0)}_keypress(){this.config.hasBackdrop&&this.dismiss(!1)}backdropHandler(){this.config.hasBackdrop&&this.dismiss(!1)}cancelHandler(){this.config.cancelHandler&&"function"==typeof this.config.cancelHandler?this.config.cancelHandler():this.dismiss(!1)}okHandler(){this.config.okHandler&&"function"==typeof this.config.okHandler?this.config.okHandler():this.dismiss(!0)}disableButtonsAndMakeOkButtonLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.setAttribute("disabled","disabled"),this.okButtonEl.nativeElement.classList.add("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.setAttribute("disabled","disabled")}enableButtonsAndMakeOkButtonNotLoading(){this.cancelButtonEl&&this.cancelButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl&&(this.okButtonEl.nativeElement.removeAttribute("disabled"),this.okButtonEl.nativeElement.classList.remove("is-loading")),this.backdropButtonEl&&this.backdropButtonEl.nativeElement.removeAttribute("disabled")}dismiss(t){this.open=!1,this.fromOkButton=t}animationDone(t){"active"===t.fromState&&"inactive"===t.toState&&(this._afterClosed.next(this.fromOkButton),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}hideSpinner(){this.config.loading=!1}displaySpinner(){this.config.loading=!0}_setComponent(t){let e;if(t instanceof vl)this.componentSection.createEmbeddedView(t);else{e=this.componentFactoryResolver.resolveComponentFactory(t);const n=this.componentSection.createComponent(e);this.componentInstance=n.instance}this.hasComponent=!0}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ga))},t.\u0275cmp=pe({type:t,selectors:[["nwb-dialog"]],viewQuery:function(t,e){var n;1&t&&(hc(nw,!0,bl),uc(iw,!0),uc(sw,!0),uc(rw,!0),uc(ow,!0),uc(aw,!0)),2&t&&(cc(n=fc())&&(e.componentSection=n.first),cc(n=fc())&&(e.okButtonEl=n.first),cc(n=fc())&&(e.cancelButtonEl=n.first),cc(n=fc())&&(e.backdropButtonEl=n.first),cc(n=fc())&&(e.headerEl=n.first),cc(n=fc())&&(e.footerEl=n.first))},hostAttrs:[1,"nwb-dialog"],hostBindings:function(t,e){1&t&&$o("keydown.escape",(function(){return e._keypress()}),!1,Hn)},decls:10,vars:11,consts:[[1,"modal","is-active"],[1,"modal-background",3,"click"],[1,"modal-card",3,"ngStyle"],["class","modal-card-head",4,"ngIf"],["class","modal-card-body",4,"ngIf"],["class","modal-card-body",3,"innerHTML",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],["componentSection",""],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"modal-card-title"],["class","delete",3,"click",4,"ngIf"],[1,"delete",3,"click"],["backdropButton",""],[1,"modal-card-body"],[1,"modal-card-body",3,"innerHTML"],[1,"modal-card-foot"],["footer",""],["class","button column is-medium is-danger is-4",3,"click",4,"ngIf"],["class","button column is-medium is-success is-offset-4",3,"click",4,"ngIf"],[1,"button","column","is-medium","is-danger","is-4",3,"click"],["cancelButton",""],[1,"button","column","is-medium","is-success","is-offset-4",3,"click"],["okButton",""]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),$o("click",(function(){return e.backdropHandler()})),Fo(),zo(2,"div",2),$o("@modalState.done",(function(t){return e.animationDone(t)})),Do(3,cw,5,2,"header",3),Do(4,hw,2,0,"section",4),Do(5,uw,1,1,"section",5),zo(6,"section",6),Vo(7,"div",null,7),Fo(),Do(9,gw,4,2,"footer",8),Fo(),Fo()),2&t&&(ws(2),Lo("@modalState",e.open?"active":"inactive")("ngStyle",Fl(7,fw,e.config.width)),ws(1),Lo("ngIf",e.config.title),ws(1),Lo("ngIf",e.config.loading),ws(1),Lo("ngIf",!e.config.loading&&e.config.message&&e.config.message.length>0),ws(1),Lo("ngClass",Fl(9,mw,!e.hasComponent||e.config.loading)),ws(3),Lo("ngIf",!e.config.loading&&(e.config.cancelButtonText.length>0||e.config.okButtonText.length>0)))},directives:[tu,Xh,Gh,Tw],encapsulation:2,data:{animation:[Fu("modalState",[Wu("void => active",Vu("200ms",Hu([ju({opacity:"0",top:"5%",offset:0}),ju({opacity:"1",top:"0",offset:1})]))),Wu("active => inactive",Vu("200ms",Hu([ju({opacity:"1",offset:0}),ju({opacity:"0",top:"5%",offset:1})])))])]}}),t})();class Bw{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}function Hw(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let Ww=(()=>{class t{constructor(t,e){this.domService=t,this.injector=e}open(t){return this.getComponentRef(t).instance}openFromComponent(t,e){const n=this.getComponentRef(e);return n.instance._setComponent(t),n.instance}getComponentRef(t){const e=new WeakMap;e.set(jw,jw);let n=new Bw(this.injector,e);const i=this.domService.attachComponentPortal(jw,n);return i.instance.config=Hw(new $w,t),i.instance.afterClosed().subscribe(()=>{i.destroy()}),i}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $w{constructor(){this.okButtonText="",this.cancelButtonText="",this.width="",this.hasBackdrop=!0,this.okHandler=null,this.cancelHandler=null,this.loading=!1}}let qw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Ww],imports:[[iu,Nw]]}),t})(),Gw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),Yw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw,t_,e_]]}),t})(),Qw=(()=>{class t{constructor(){this.selectedValue$=new I,this.afterViewInit$=new Zl,this.selectedFoundRow=0,this.isActive=!1,this.foundRows=[],this.isSearching=!1,this.searchString="",this.enabled=!0,this._isMouseNavigating=!1}ngAfterViewInit(){this.afterViewInit$.emit()}open(){this.enabled&&(this._reset(),this.focusInputSearch(),this.isActive=!0,this.searching(""))}close(){this.isActive=!1,this._reset()}_reset(){this.foundRows=[],this.selectedFoundRow=0,this.searchString="",setTimeout(()=>{this.inputSearch.nativeElement.value=""})}inputOnKeyDown(t){27===t.keyCode&&this.close()}documentOnKeyDown(t){let e=!1;this._isMouseNavigating=!1,e=this.openFromKeyboard(t)||e,e=this.keyboardNavigate(t)||e,e=this.onEnter(t)||e,e&&t.preventDefault()}mouseMove(){this._isMouseNavigating=!0}mouseOver(t){this._isMouseNavigating&&(this.selectedFoundRow=t)}getSpecialKey(t){return t.metaKey?navigator.platform.match("Mac")?"cmd":"windows":t.ctrlKey?"ctrl":t.shiftKey?"shift":t.altKey?"alt":null}isSubscribedKey(t){return this.config.keyCodes.filter(e=>this.getSpecialKey(t)===e.specialKey&&t.key===e.key).length>0}openFromKeyboard(t){return!(this.isActive||!this.config||!this.isSubscribedKey(t)||(this.open(),0))}keyboardNavigate(t){const e=t.keyCode;if(!this.isActive)return!1;let n=!1;if(40===e||9===e){do{this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}while(!this.isSelectedFoundRowSelectable());n=!0}else if(38===e){do{this.selectedFoundRow--,this.selectedFoundRow<0&&(this.selectedFoundRow=this.foundRows.length-1)}while(!this.isSelectedFoundRowSelectable());n=!0}if(n){const t=document.querySelector(`a.nwb-modal-search-row[tabindex="${this.selectedFoundRow}"`);t&&(t.focus(),this.focusInputSearch())}return n}focusInputSearch(){setTimeout(()=>{this.inputSearch.nativeElement.focus()})}onEnter(t){if(!this.isActive)return!1;13===t.keyCode&&this.selectValue()}isSelectedFoundRowSelectable(){return this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&this.foundRows[this.selectedFoundRow].isSelectable}selectFirstSelectableRow(){if(0!==this.foundRows.length)for(this.selectedFoundRow=0;!this.isSelectedFoundRowSelectable();)this.selectedFoundRow++,this.selectedFoundRow>=this.foundRows.length&&(this.selectedFoundRow=0)}selectValue(){this.foundRows.length>0&&this.foundRows[this.selectedFoundRow]&&(this.selectedValue$.next(this.foundRows[this.selectedFoundRow]),this.close())}searching(t){let e;this.searchSubscription&&this.searchSubscription.unsubscribe(),"function"==typeof this.config.customSearchFn?e=this.config.customSearchFn(t):this.config.records&&(e=this.searchFromRecords(t)),Array.isArray(e)?(this.foundRows=this.flattenNwbFoundRow(e),this.selectFirstSelectableRow()):e&&(this.isSearching=!0,this.searchSubscription=e.pipe(i_(()=>this.isSearching=!1)).subscribe(t=>{this.foundRows=this.flattenNwbFoundRow(t),this.selectFirstSelectableRow()}))}flattenNwbFoundRow(t){let e=[],n=!1;return t.forEach(t=>{const i={text:t.text,isSelectable:!t.hasOwnProperty("isSelectable")||t.isSelectable,isChild:!1,data:t.data||null,isParent:t.children&&t.children.length>0};i.isSelectable&&(n=!0),e.push(i),t.children&&t.children.forEach(t=>{const i={text:t.text,isSelectable:!t.hasOwnProperty("isSelectable")||t.isSelectable,isChild:!0,data:t.data||null,isParent:!1};i.isSelectable&&(n=!0),e.push(i)})}),!n&&e.length>0&&(console.error("No selectable rows! empty found rows to avoid infinite loop"),e=[]),e}searchFromRecords(t){return b.create(e=>{const n=this.searchAllWordsInFoundRows(t,this.config.records);e.next(n),e.complete()})}searchAllWordsInFoundRows(t,e){const n=t.split(" ").map(t=>`(?=.*${t})`).join(""),i=new RegExp(n,"ig"),s=[];return e.forEach(t=>{let e=[];if(t.children&&(e=t.children.filter(t=>-1!==t.text.search(i))),e.length||-1!==t.text.search(i)){const n=Object.assign({},t);n.children=e,s.push(n)}}),s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-modal-search"]],viewQuery:function(t,e){var n;1&t&&(uc(ow,!0),hc(_w,!0),uc(aw,!0)),2&t&&(cc(n=fc())&&(e.header=n.first),cc(n=fc())&&(e.inputSearch=n.first),cc(n=fc())&&(e.footer=n.first))},hostAttrs:[1,"nwb-modal-search"],hostBindings:function(t,e){1&t&&$o("keydown",(function(t){return e.documentOnKeyDown(t)}),!1,Hn)},decls:14,vars:19,consts:[[3,"ngClass"],[1,"modal-background",3,"click"],[1,"modal-content","modal-card",3,"ngClass","click"],["class","modal-card-head",4,"ngIf"],[1,"modal-card-body",3,"ngClass"],[1,"field","nwb-modal-search"],[1,"control","has-icons-left"],["type","text",1,"input",3,"ngModel","placeholder","ngModelChange","keydown"],["inputSearch",""],[1,"icon","is-large","is-left"],[1,"fa","fa-search"],["class","nwb-modal-search-found-rows",4,"ngIf"],[4,"ngIf"],["class","modal-card-foot",4,"ngIf"],[1,"modal-card-head"],["header",""],[1,"nwb-modal-search-found-rows"],["class","nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click",4,"ngFor","ngForOf"],[1,"nwb-modal-search-row",3,"ngClass","tabindex","mousemove","mouseover","click"],[1,"nwb-modal-search-row-content",3,"innerHTML"],[1,"modal-card-foot"],["footer",""]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),$o("click",(function(){return e.close()})),Fo(),zo(2,"div",2),$o("click",(function(){return e.focusInputSearch()})),Do(3,vw,2,0,"header",3),zo(4,"section",4),zo(5,"div",5),zo(6,"div",6),zo(7,"input",7,8),$o("ngModelChange",(function(t){return e.searching(t)}))("keydown",(function(t){return e.inputOnKeyDown(t)})),Fo(),zo(9,"span",9),Vo(10,"i",10),Fo(),Fo(),Do(11,ww,2,1,"div",11),Do(12,Cw,1,0,"nwb-spinner",12),Fo(),Fo(),Do(13,Sw,2,0,"footer",13),Fo(),Fo()),2&t&&(Ia("modal ",e.config.extraClasses?" "+e.config.extraClasses:"",""),Lo("ngClass",Fl(12,ew,e.isActive)),ws(2),Lo("ngClass",Fl(14,ew,e.isActive)),ws(1),Lo("ngIf",e.config.hasHeader),ws(1),Lo("ngClass",Vl(16,Ew,!e.config.hasHeader,!e.config.hasFooter)),ws(3),Zo("placeholder",e.config.inputPlaceholder),Lo("ngModel",e.searchString),ws(4),Lo("ngIf",!e.isSearching&&e.foundRows.length>0),ws(1),Lo("ngIf",e.isSearching),ws(1),Lo("ngIf",e.config.hasFooter))},directives:[Gh,Xh,qf,Zf,Km,Qh,Tw],encapsulation:2}),t})(),Kw=(()=>{class t{constructor(t,e){this.domService=t,this.injector=e}create(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=new WeakMap;e.set(Qw,Qw);let n=new Bw(this.injector,e);const i=this.domService.attachComponentPortal(Qw,n);return i.instance.config=Hw(new Xw,t),i}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw),Yt(ho))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xw{constructor(){this.hasHeader=!1,this.hasFooter=!1,this.keyCodes=[{specialKey:"cmd",key:"k"},{specialKey:"ctrl",key:"k"}],this.inputPlaceholder="Jump to...",this.extraClasses=""}}let Zw=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Kw],imports:[[iu,t_,Nw]]}),t})(),Jw=(()=>{class t{constructor(){this.changes=new I,this.itemsPerPageLabel="Items per page:",this.ofLabel="of",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 ${this.ofLabel} ${n}`;const i=t*e;return`${i+1} - ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} ${this.ofLabel} ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),tC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Jw],imports:[[iu,Nw]]}),t})(),eC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),nC=(()=>{class t{constructor(){this._afterClosed=new I,this.open=!1,this.manualClose=!1}ngOnInit(){this.open=!0,this.config.duration>0&&(this.timer=setTimeout(()=>this.dismiss(!1),this.config.duration))}dismiss(t){this.open=!1,this.manualClose=t}animationDone(t){"active"===t.fromState&&"inactive"===t.toState&&(this._afterClosed.next(this.manualClose),this._afterClosed.complete())}afterClosed(){return this._afterClosed.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["nwb-snack-bar"]],hostAttrs:[1,"nwb-snack-bar"],decls:4,vars:8,consts:[[1,"columns"],[1,"column","notification--message",3,"ngClass","innerHTML"],["class","column is-half",4,"ngIf"],[1,"column","is-half"],[3,"click"]],template:function(t,e){1&t&&(zo(0,"div"),$o("@state.done",(function(t){return e.animationDone(t)})),zo(1,"div",0),Vo(2,"div",1),Do(3,Iw,3,3,"div",2),Fo(),Fo()),2&t&&(ca("notification is-active "+(e.config.color?e.config.color:"is-transparent")),Lo("@state",e.open?"active":"inactive"),ws(2),Lo("ngClass",Fl(6,xw,e.config.action))("innerHTML",e.config.message,Xi),ws(1),Lo("ngIf",e.config.action))},directives:[Gh,Xh],encapsulation:2,data:{animation:[Fu("state",[Bu("void",ju({bottom:"-100px"})),Bu("inactive",ju({bottom:"-100px"})),Bu("active",ju({bottom:"0px"})),Wu("void => active",Vu(300)),Wu("active => inactive",Vu(300))])]}}),t})(),iC=(()=>{class t{constructor(t){this.domService=t}open(t){return this.getComponentRef(t).instance}getComponentRef(t){const e=this.domService.attachComponentPortal(nC);return e.instance.config=t,e.instance.afterClosed().subscribe(()=>{e.destroy()}),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[iC],imports:[[iu,Nw]]}),t})(),rC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw,B_]]}),t})(),oC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,t_,Nw]]}),t})(),aC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),lC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,Nw]]}),t})(),cC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[],Nw,Vw,Uw,qw,Gw,Zw,tC,eC,sC,rC,oC,aC,Yw,lC]}),t})();function hC(t,e=k_){return n=>n.lift(new uC(t,e))}class uC{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new dC(t,this.dueTime,this.scheduler))}}class dC extends g{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(pC,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function pC(t){t.debouncedNext()}let gC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();class fC{constructor(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}call(t,e){return e.subscribe(new mC(t,this.project,this.concurrent,this.scheduler))}}class mC extends N{constructor(t,e,n,i){super(t),this.project=e,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:n,value:i,index:s}=t;e.subscribeToProjection(n,i,s)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,i=e(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(mC.dispatch,0,{subscriber:this,result:i,value:t,index:n})):this.subscribeToProjection(i,t,n)}catch(i){e.error(i)}}else this.buffer.push(t)}subscribeToProjection(t,e,n){this.active++,this.destination.add(L(this,t,e,n))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this._next(e)}notifyComplete(t){const e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}class _C{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new vC(t,this.predicate,this.inclusive))}}class vC extends g{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var yC=n("0Tit"),bC=n.n(yC);const wC=new Ft("SMOOTH_SCROLL_OPTIONS");let CC=(()=>{class t{constructor(t,e,n){this._document=t,this._platform=e,this._onGoingScrolls=new Map,this._defaultOptions=Object.assign({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},n)}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(t,e,n){t.scrollLeft=e,t.scrollTop=n}_getElement(t,e){return"string"==typeof t?(e||this._document).querySelector(t):u_(t)}_initSmoothScroll(t){return this._onGoingScrolls.has(t)&&this._onGoingScrolls.get(t).next(),this._onGoingScrolls.set(t,new I).get(t)}_isFinished(t,e,n){return t.currentX!==t.x||t.currentY!==t.y||(e.next(),n(),!1)}_interrupted(t,e){return G(n_(t,"wheel",{passive:!0,capture:!0}),n_(t,"touchmove",{passive:!0,capture:!0}),e).pipe(df(1))}_destroy(t,e){e.complete(),this._onGoingScrolls.delete(t)}_step(t){return new b(e=>{let n=(this._now()-t.startTime)/t.duration;n=n>1?1:n;const i=t.easing(n);t.currentX=t.startX+(t.x-t.startX)*i,t.currentY=t.startY+(t.y-t.startY)*i,this._scrollElement(t.scrollable,t.currentX,t.currentY),I_.schedule(()=>e.next(t))})}_applyScrollToOptions(t,e){if(!e.duration)return this._scrollElement(t,e.left,e.top),Promise.resolve();const n=this._initSmoothScroll(t),i={scrollable:t,startTime:this._now(),startX:t.scrollLeft,startY:t.scrollTop,x:null==e.left?t.scrollLeft:~~e.left,y:null==e.top?t.scrollTop:~~e.top,duration:e.duration,easing:bC()(e.easing.x1,e.easing.y1,e.easing.x2,e.easing.y2)};return new Promise(e=>{fg(null).pipe(function(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,i=>i.lift(new fC(t,e,n))}(()=>this._step(i).pipe(function(t,e=!1){return n=>n.lift(new _C(t,e))}(t=>this._isFinished(t,n,e)))),o_(this._interrupted(t,n)),i_(()=>this._destroy(t,n))).subscribe()})}scrollTo(t,e){if(su(this._platform)){const n=this._getElement(t),i="rtl"===getComputedStyle(n).direction,s=C_(),r=Object.assign(Object.assign(Object.assign({},this._defaultOptions),e),{left:null==e.left?i?e.end:e.start:e.left,right:null==e.right?i?e.start:e.end:e.right});return null!=r.bottom&&(r.top=n.scrollHeight-n.clientHeight-r.bottom),i&&0!==s?(null!=r.left&&(r.right=n.scrollWidth-n.clientWidth-r.left),2===s?r.left=r.right:1===s&&(r.left=r.right?-r.right:r.right)):null!=r.right&&(r.left=n.scrollWidth-n.clientWidth-r.right),this._applyScrollToOptions(n,r)}return Promise.resolve()}scrollToElement(t,e,n){const i=this._getElement(t),s=this._getElement(e,i),r=Object.assign(Object.assign({},n),{left:s.offsetLeft+(n.left||0),top:s.offsetTop+(n.top||0)});return s?this.scrollTo(i,r):Promise.resolve()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(Ic),Yt(wC,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(Ic),Yt(wC,8))},token:t,providedIn:"root"}),t})(),SC=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function EC(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>z(function(t,e){return n=>{let i=n;for(let s=0;s<e;s++){const e=i[t[s]];if(void 0===e)return;i=e}return i}}(t,e))(n)}function IC(t,e){if(1&t&&Vo(0,"scrollbar-x"),2&t){const t=Yo(2);ko("scrollable",t.state.isHorizontallyScrollable)("fit",t.state.verticalUsed)}}function xC(t,e){if(1&t&&Vo(0,"scrollbar-y"),2&t){const t=Yo(2);ko("scrollable",t.state.isVerticallyScrollable)("fit",t.state.horizontalUsed)}}function TC(t,e){if(1&t&&(Uo(0),Do(1,IC,1,2,"scrollbar-x",3),Do(2,xC,1,2,"scrollbar-y",3),jo()),2&t){const t=Yo();ws(1),Lo("ngIf",t.state.horizontalUsed),ws(1),Lo("ngIf",t.state.verticalUsed)}}const PC=["*"];function kC(t){return gv(()=>{t.onselectstart=()=>!1})}function MC(t){return gv(()=>{t.onselectstart=null})}function DC(){return gv(t=>t.stopPropagation())}function AC(t,e){return t.clientX>=e.left&&t.clientX<=e.left+e.width&&t.clientY>=e.top&&t.clientY<=e.top+e.height}let OC=(()=>{class t{constructor(t,e){this.viewPort=t,this.document=e,this.nativeElement=t.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement.clientHeight}activatePointerEvents(t,e){this.hovered=new b(n=>{const i=n_(this.nativeElement,"mousemove",{passive:!0});G(t?i:i.pipe(DC()),n_(this.nativeElement,"mouseleave").pipe(z(()=>!1))).pipe(gv(t=>n.next(t)),o_(e)).subscribe()}),this.clicked=new b(t=>{const n=n_(this.nativeElement,"mousedown",{passive:!0}).pipe(gv(e=>t.next(e))),i=n_(this.nativeElement,"mouseup",{passive:!0}).pipe(gv(()=>t.next(!1)));n.pipe(mf(()=>i),o_(e)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(t){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-viewport "+t,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(t){this.nativeElement.scrollTop=t}scrollXTo(t){this.nativeElement.scrollLeft=t}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollViewport",""]]}),t})();const RC=new Ft("NG_SCROLLBAR_OPTIONS"),LC={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0};let NC=(()=>{class t{constructor(t){this.globalOptions=t?Object.assign(Object.assign({},LC),t):LC,this.rtlScrollAxisType=C_()}}return t.\u0275fac=function(e){return new(e||t)(Yt(RC,8))},t.\u0275prov=ht({factory:function(){return new t(Yt(RC,8))},token:t,providedIn:"root"}),t})(),zC=(()=>{class t{constructor(t,e,n,i,s,r){this.el=t,this.zone=e,this.changeDetectorRef=n,this.dir=i,this.smoothScroll=s,this.manager=r,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new Zl,this.state={},this.destroyed=new I}get disabled(){return this._disabled}set disabled(t){this._disabled=c_(t)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(t){this._sensorDisabled=c_(t)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(t){this._pointerEventsDisabled=c_(t)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(t){this._viewportPropagateMouseMove=c_(t)}get nativeElement(){return this.el.nativeElement}updateState(){let t=!1,e=!1,n=!1,i=!1;"all"!==this.track&&"vertical"!==this.track||(n=this.viewport.scrollHeight>this.viewport.clientHeight,t="always"===this.visibility||n),"all"!==this.track&&"horizontal"!==this.track||(i=this.viewport.scrollWidth>this.viewport.clientWidth,e="always"===this.visibility||i),this._updateState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:t,horizontalUsed:e,isVerticallyScrollable:n,isHorizontallyScrollable:i})}_updateState(t){this.state=Object.assign(Object.assign({},this.state),t),this.changeDetectorRef.detectChanges()}getScrolledByDirection(t){let e;return this.scrolled.pipe(gv(t=>e=t),EC("target",t),t=>t.lift(new N_),Ig(([t,e])=>t!==e),z(()=>e))}setHovered(t){this.zone.run(()=>this._updateState(Object.assign({},t)))}setDragging(t){this.zone.run(()=>this._updateState(Object.assign({},t)))}setClicked(t){this.zone.run(()=>this._updateState({scrollbarClicked:t}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let t=n_(this.viewport.nativeElement,"scroll",{passive:!0});t=this.scrollAuditTime?t.pipe(R_(this.scrollAuditTime)):t,this.scrolled=new b(e=>t.pipe(o_(this.destroyed)).subscribe(e)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngAfterViewChecked(){this.updateState()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.state.horizontalUsed||(this.nativeElement.style.height=this.viewport.contentHeight+"px"),this.updated.next(),this.changeDetectorRef.detectChanges()}scrollTo(t){return this.smoothScroll.scrollTo(this.viewport.nativeElement,t)}scrollToElement(t,e){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,t,e)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(jc),Oo(Yr),Oo(g_),Oo(CC),Oo(NC))},t.\u0275cmp=pe({type:t,selectors:[["ng-scrollbar"]],contentQueries:function(t,e,n){var i,s,r;1&t&&(s=n,r=OC,!0,gc(Ke(),Qe(),r,!0,void 0,!0,Ze(),s)),2&t&&cc(i=fc())&&(e.customViewPort=i.first)},viewQuery:function(t,e){var n;1&t&&hc(OC,!0),2&t&&cc(n=fc())&&(e.defaultViewPort=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&la("ng-scrollbar",!0)},inputs:{viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime",disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],ngContentSelectors:PC,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"]],template:function(t,e){1&t&&(Ko(),zo(0,"div",0),zo(1,"div",1),$o("resizeSensor",(function(){return e.update()})),zo(2,"div",2),zo(3,"div"),Xo(4),Fo(),Fo(),Fo(),Do(5,TC,3,2,"ng-container",3),Fo()),2&t&&(Lo("ngAttr",e.state),ws(1),Lo("sensorDebounce",e.sensorDebounce)("sensorDisabled",e.sensorDisabled),ws(4),Lo("ngIf",!e.disabled))},directives:function(){return[UC,BC,OC,VC,Xh,XC,KC]},styles:[".ng-scrollbar-measure{-ms-overflow-style:none;left:0;overflow:scroll;position:fixed;scrollbar-width:none;top:-9999px} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius:7px;--scrollbar-hover-size:var(--scrollbar-size);--scrollbar-padding:4px;--scrollbar-size:5px;--scrollbar-thumb-color:rgba(0,0,0,0.2);--scrollbar-thumb-hover-color:var(--scrollbar-thumb-color);--scrollbar-thumb-transition:height ease-out 150ms,width ease-out 150ms;--scrollbar-track-color:transparent;--scrollbar-track-transition:height ease-out 150ms,width ease-out 150ms;display:block;height:100%;max-height:100%;max-width:100%;position:relative}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--horizontal-scrollbar-size:var(--scrollbar-size);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding)*2);--scrollbar-total-size:calc(var(--scrollbar-size) + var(--scrollbar-padding)*2);--vertical-scrollbar-size:var(--scrollbar-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding)*2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%]{--vertical-scrollbar-size:var(--scrollbar-hover-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding)*2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size:var(--scrollbar-hover-size);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding)*2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{bottom:var(--scrollbar-total-size);top:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{bottom:0;top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{left:var(--native-scrollbar-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-delay:.8s;transition-duration:.4s;transition-property:opacity}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-delay:0ms;transition-duration:.4s}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position} .ng-scroll-content{display:inline-block;min-width:100%;position:relative!important}.ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport{bottom:0;left:0;position:absolute;right:0;top:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{align-items:center;display:flex;justify-content:center;position:absolute;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{background-color:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);cursor:default;height:100%;overflow:hidden;transition:var(--scrollbar-track-transition);width:100%;z-index:1} .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:inherit;box-sizing:border-box;position:relative;transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),t})(),FC=(()=>{class t{constructor(t,e,n){this.document=t,this.manager=e,this.platform=n,this._scrollbarSize=new wg(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),n.isBrowser&&n_(this.document.defaultView,"resize",{passive:!0}).pipe(hC(this.manager.globalOptions.windowResizeDebounce),z(()=>this.getNativeScrollbarSize()),x_(),gv(t=>this._scrollbarSize.next(t))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const t=this.document.createElement("div");t.className="ng-scrollbar-measure",this.document.body.appendChild(t);const e=t.getBoundingClientRect().right;return this.document.body.removeChild(t),e}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(NC),Yt(y_))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(NC),Yt(y_))},token:t,providedIn:"root"}),t})(),VC=(()=>{class t{constructor(t,e,n){this.renderer=e,this.hideNativeScrollbar=n,this._subscriber=u.EMPTY,this._subscriber=n.scrollbarSize.subscribe(e=>{this.renderer.setStyle(t.nativeElement,"--native-scrollbar-size",`-${e}px`,Xa.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(FC))},t.\u0275dir=ye({type:t,selectors:[["","hideNativeScrollbar",""]]}),t})(),UC=(()=>{class t{constructor(t){this.el=t}set ngAttr(t){for(const[e,n]of Object.entries(t))this.el.nativeElement.setAttribute(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),t})(),jC=(()=>{class t{constructor(t,e){if(this.resizeObserverSource=new wg(null),this.resizeObserverLoader=this.resizeObserverSource.asObservable(),e.isBrowser){const e=t.defaultView.ResizeObserver?fg(t.defaultView.ResizeObserver):j(n.e(4).then(n.bind(null,"HR/i"))).pipe(z(t=>t.ResizeObserver),sv(t=>(console.log("Unable to load ResizeObserver polyfill",t),pg)));this.resizeObserverSource.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(y_))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(y_))},token:t,providedIn:"root"}),t})(),BC=(()=>{class t{constructor(t,e,n,i){if(this.zone=t,this.platform=e,this.resizeObserverFactory=n,this.scrollbar=i,this._disabled=!1,this._subscription=null,this.resizeSensor=new Zl,!i)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(t){this._debounce=h_(t),this._subscribe()}get disabled(){return this._disabled}set disabled(t){this._disabled=c_(t),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){this._subscription||this._disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_createObserver(t){return new b(e=>{this._resizeObserver=new t(()=>e.next()),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)})}_subscribe(){this._unsubscribe(),this.platform.isBrowser&&this.zone.runOutsideAngular(()=>{this._subscription=this.resizeObserverFactory.resizeObserverLoader.pipe(mf(t=>t),mf(t=>{if(t){const e=this._createObserver(t);return this.debounce?e.pipe(hC(this._debounce)):e}return pg})).subscribe(()=>this.resizeSensor.emit())})}_unsubscribe(){this._resizeObserver&&this._resizeObserver.disconnect(),this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Oo(jc),Oo(y_),Oo(jC),Oo(zC))},t.\u0275dir=ye({type:t,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{resizeSensor:"resizeSensor"}}),t})(),HC=(()=>{class t{constructor(t,e,n){this.cmp=t,this.trackElement=e,this.document=n}get clicked(){return G(n_(this.trackElement,"mousedown",{passive:!0}).pipe(DC(),kC(this.document)),n_(this.document,"mouseup",{passive:!0}).pipe(DC(),MC(this.document),mf(()=>pg)))}get hovered(){return G(n_(this.trackElement,"mouseenter",{passive:!0}).pipe(DC(),z(()=>!0)),n_(this.trackElement,"mouseleave",{passive:!0}).pipe(DC(),z(()=>!1)))}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(t,e,n){return fg(t).pipe(EC(this.pageProperty),z(t=>(t-this.offset-e/2)/this.size*n),gv(t=>{this.cmp.scrollTo(Object.assign(Object.assign({},this.mapToScrollToOption(t)),{duration:h_(this.cmp.trackClickScrollDuration)}))}))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(HTMLElement),Oo(void 0))},t.\u0275dir=ye({type:t}),t})(),WC=(()=>{class t{constructor(t,e,n){this.cmp=t,this.thumbElement=e,this.document=n,this._dragging=new I,this.dragging=this._dragging.pipe(x_())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return n_(this.thumbElement,"mousedown",{passive:!0}).pipe(DC())}update(){const t=(e=this.track.size,Math.max(~~(e/this.viewportScrollSize*e),this.cmp.minThumbSize));var e;const n=this.viewportScrollOffset*this.trackMax/this.viewportScrollMax;I_.schedule(()=>this.updateStyles(this.handleDirection(n,this.trackMax),t))}dragged(t){let e,n;const i=fg(t).pipe(kC(this.document),gv(()=>{e=this.trackMax,n=this.viewportScrollMax,this.setDragging(!0)})),s=n_(this.document,"mousemove",{capture:!0,passive:!0}).pipe(DC()),r=n_(this.document,"mouseup",{capture:!0}).pipe(DC(),MC(this.document),gv(()=>this.setDragging(!1)));return i.pipe(EC(this.pageProperty),z(t=>t-this.dragStartOffset),B(t=>s.pipe(EC(this.clientProperty),z(t=>t-this.track.offset),z(i=>n*(i-t)/e),z(t=>this.handleDrag(t,n)),gv(t=>this.scrollTo(t)),o_(r))))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(HTMLElement),Oo(void 0))},t.\u0275dir=ye({type:t,inputs:{track:"track"},outputs:{dragging:"dragging"}}),t})(),$C=(()=>{class t extends WC{constructor(t,e,n,i){super(t,e.nativeElement,n),this.cmp=t,this.element=e,this.document=n,this.dir=i}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left}get size(){return this.thumbElement.clientWidth}updateStyles(t,e){this.thumbElement.style.width=e+"px",this.thumbElement.style.transform=`translate3d(${t}px, 0, 0)`}handleDrag(t,e){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return t-e;if(2===this.cmp.manager.rtlScrollAxisType)return e-t}return t}handleDirection(t,e){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-t;if(0===this.cmp.manager.rtlScrollAxisType)return t-e}return t}setDragging(t){this.cmp.setDragging({horizontalDragging:t})}scrollTo(t){this.cmp.viewport.scrollXTo(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih),Oo(g_))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarThumbX",""]],features:[Pa]}),t})(),qC=(()=>{class t extends WC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.element=e,this.document=n}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top}get size(){return this.thumbElement.clientHeight}updateStyles(t,e){this.thumbElement.style.height=e+"px",this.thumbElement.style.transform=`translate3d(0px, ${t}px, 0)`}handleDrag(t){return t}handleDirection(t){return t}setDragging(t){this.cmp.setDragging({verticalDragging:t})}scrollTo(t){this.cmp.viewport.scrollYTo(t)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarThumbY",""]],features:[Pa]}),t})(),GC=(()=>{class t extends HC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.document=n}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(t){return{left:t}}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarTrackX",""]],features:[Pa]}),t})(),YC=(()=>{class t extends HC{constructor(t,e,n){super(t,e.nativeElement,n),this.cmp=t,this.document=n}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(t){return{top:t}}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(Ya),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","scrollbarTrackY",""]],features:[Pa]}),t})(),QC=(()=>{class t{constructor(t,e,n,i){this.cmp=t,this.platform=e,this.document=n,this.zone=i,this.destroyed=new I}activatePointerEvents(){let t=pg,e=pg,n=pg;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new I,this.viewportThumbClicked=new I,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),t=this.viewportThumbClicked,e=this.viewportTrackClicked,n=this.cmp.viewport.hovered.pipe(z(t=>AC(t,this.track.clientRect)),x_(),gv(t=>this.document.onselectstart=t?()=>!1:null)),this.cmp.viewport.clicked.pipe(gv(t=>{t?AC(t,this.thumb.clientRect)?this.viewportThumbClicked.next(t):AC(t,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(t)):this.cmp.setClicked(!1)}),o_(this.destroyed)).subscribe()):(t=this.thumb.clicked,e=this.track.clicked,n=this.track.hovered),G(n.pipe(gv(t=>this.setHovered(t))),t.pipe(mf(t=>this.thumb.dragged(t))),e.pipe(mf(t=>this.track.onTrackClicked(t,this.thumb.size,this.viewportScrollSize))))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.platform.IOS||this.platform.ANDROID||this.cmp.pointerEventsDisabled||this.activatePointerEvents().pipe(o_(this.destroyed)).subscribe();const t=this.cmp.updated.pipe(gv(()=>this.onUpdated()));G(this.cmp.scrolled,t).pipe(gv(()=>this.thumb.update()),o_(this.destroyed)).subscribe(),k_.schedule(()=>this.thumb.update(),100)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(y_),Oo(void 0),Oo(jc))},t.\u0275dir=ye({type:t}),t})(),KC=(()=>{class t extends QC{constructor(t,e,n,i){super(t,e,n,i),this.cmp=t,this.platform=e,this.document=n,this.zone=i}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(t){this.cmp.setHovered({verticalHovered:t})}onUpdated(){}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC),Oo(y_),Oo(Ih),Oo(jc))},t.\u0275cmp=pe({type:t,selectors:[["scrollbar-y"]],viewQuery:function(t,e){var n;1&t&&(hc(YC,!0),hc(qC,!0)),2&t&&(cc(n=fc())&&(e.track=n.first),cc(n=fc())&&(e.thumb=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&la("scrollbar-control",!0)},features:[Pa],decls:2,vars:7,consts:[["scrollbarTrackY",""],["scrollbarThumbY","",3,"track"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"div",1),Fo()),2&t&&(Ia("ng-scrollbar-track ",e.cmp.trackClass,""),ws(1),Ia("ng-scrollbar-thumb ",e.cmp.thumbClass,""),Lo("track",e.track))},directives:[YC,qC],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{height:calc(100% - var(--scrollbar-padding)*2);width:var(--vertical-scrollbar-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{bottom:0;top:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{left:unset;right:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control{left:unset;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true]{bottom:0;top:var(--scrollbar-total-size)}"],changeDetection:0}),t})(),XC=(()=>{class t extends QC{constructor(t,e,n,i,s){super(e,n,i,s),this.el=t,this.cmp=e,this.platform=n,this.document=i,this.zone=s}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get thickness(){return this.el.nativeElement.clientHeight}setHovered(t){this.cmp.setHovered({horizontalHovered:t})}onUpdated(){this.cmp.nativeElement.style.height="standard"===this.cmp.appearance?this.cmp.viewport.contentHeight+this.thickness+"px":this.cmp.viewport.contentHeight+"px"}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(zC),Oo(y_),Oo(Ih),Oo(jc))},t.\u0275cmp=pe({type:t,selectors:[["scrollbar-x"]],viewQuery:function(t,e){var n;1&t&&(hc(GC,!0),hc($C,!0)),2&t&&(cc(n=fc())&&(e.track=n.first),cc(n=fc())&&(e.thumb=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&la("scrollbar-control",!0)},features:[Pa],decls:2,vars:7,consts:[["scrollbarTrackX",""],["scrollbarThumbX","",3,"track"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"div",1),Fo()),2&t&&(Ia("ng-scrollbar-track ",e.cmp.trackClass,""),ws(1),Ia("ng-scrollbar-thumb ",e.cmp.thumbClass,""),Lo("track",e.track))},directives:[GC,$C],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding)*2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:100%;width:0} .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control{bottom:unset;top:0} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{bottom:0;left:0;right:0;top:unset} .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control{bottom:unset;top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{left:0;right:var(--scrollbar-total-size)} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true]{left:0;right:var(--scrollbar-total-size)}"],changeDetection:0}),t})(),ZC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:RC,useValue:e}]}}}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu,f_,gC,b_,SC]]}),t})();class JC{static reachedTop(t,e){return JC.reached(-e.target.scrollTop,0,t)}static reachedBottom(t,e){return JC.reached(e.target.scrollTop+e.target.clientHeight,e.target.scrollHeight,t)}static reachedStart(t,e,n,i){return"rtl"===n?1===i?JC.reached(e.target.scrollLeft,0,t):2===i?JC.reached(-e.target.scrollLeft,0,t):JC.reached(e.target.scrollLeft+e.target.clientWidth,e.target.scrollWidth,t):JC.reached(-e.target.scrollLeft,0,t)}static reachedEnd(t,e,n,i){return"rtl"===n?1===i?JC.reached(-(e.target.scrollLeft-e.target.clientWidth),e.target.scrollWidth,t):2===i?JC.reached(-(e.target.scrollLeft+e.target.clientWidth),e.target.scrollWidth,t):JC.reached(-e.target.scrollLeft,0,t):JC.reached(e.target.scrollLeft+e.target.clientWidth,e.target.scrollWidth,t)}static reached(t,e,n){return t>=e-n}}let tS=(()=>{class t{constructor(t,e){this.scrollbar=t,this.zone=e,this.offset=0,this.scrollEvent=new I,this.subscription=u.EMPTY,this.reachedEvent=new b(t=>this.scrollReached().subscribe(e=>Promise.resolve().then(()=>this.zone.run(()=>t.next(e))))),t||console.warn("[NgScrollbarReached Directive]: Host element must be an NgScrollbar component.")}ngOnDestroy(){this.subscription.unsubscribe()}scrollReached(){let t;return this.scrollEvent.pipe(gv(e=>t=e),z(t=>this.reached(this.offset,t)),x_(),Ig(t=>t),z(()=>t))}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,inputs:{offset:["reachedOffset","offset"]}}),t})(),eS=(()=>{class t extends tS{constructor(t,e){super(t,e),this.scrollbar=t,this.zone=e}ngOnInit(){this.subscription=this.scrollbar.verticalScrolled.subscribe(this.scrollEvent)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,features:[Pa]}),t})(),nS=(()=>{class t extends eS{constructor(t,e){super(t,e),this.scrollbar=t,this.zone=e,this.reachedBottom=this.reachedEvent}ngOnInit(){super.ngOnInit()}reached(t,e){return JC.reachedBottom(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Oo(zC,8),Oo(jc))},t.\u0275dir=ye({type:t,selectors:[["","reachedBottom",""],["","reached-bottom",""]],outputs:{reachedBottom:"reachedBottom"},features:[Pa]}),t})(),iS=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ZC,f_]]}),t})();const sS=["wrapper"],rS=["sourceImage"];function oS(t,e){if(1&t){const t=Bo();zo(0,"img",4,5),$o("load",(function(){return Xe(t),Yo().imageLoadedInView()})),Fo()}if(2&t){const t=Yo();aa("visibility",t.imageVisible?"visible":"hidden")("transform",t.safeTransformStyle),Lo("src",t.safeImgDataUrl,Ji)}}function aS(t,e){if(1&t){const t=Bo();Uo(0),zo(1,"span",9),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topleft")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topleft")})),Vo(2,"span",10),Fo(),zo(3,"span",11),Vo(4,"span",10),Fo(),zo(5,"span",12),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topright")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"topright")})),Vo(6,"span",10),Fo(),zo(7,"span",13),Vo(8,"span",10),Fo(),zo(9,"span",14),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomright")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomright")})),Vo(10,"span",10),Fo(),zo(11,"span",15),Vo(12,"span",10),Fo(),zo(13,"span",16),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomleft")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottomleft")})),Vo(14,"span",10),Fo(),zo(15,"span",17),Vo(16,"span",10),Fo(),zo(17,"span",18),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"top")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"top")})),Fo(),zo(18,"span",19),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"right")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"right")})),Fo(),zo(19,"span",20),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottom")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"bottom")})),Fo(),zo(20,"span",21),$o("mousedown",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"left")}))("touchstart",(function(e){Xe(t);const n=Yo(2);return n.startMove(e,n.moveTypes.Resize,"left")})),Fo(),jo()}}function lS(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("keydown",(function(e){return Xe(t),Yo().keyboardAccess(e)})),zo(1,"div",7),$o("mousedown",(function(e){Xe(t);const n=Yo();return n.startMove(e,n.moveTypes.Move)}))("touchstart",(function(e){Xe(t);const n=Yo();return n.startMove(e,n.moveTypes.Move)})),Fo(),Do(2,aS,21,0,"ng-container",8),Fo()}if(2&t){const t=Yo();aa("top",t.cropper.y1,"px")("left",t.cropper.x1,"px")("width",t.cropper.x2-t.cropper.x1,"px")("height",t.cropper.y2-t.cropper.y1,"px")("margin-left","center"===t.alignImage?t.marginLeft:null)("visibility",t.imageVisible?"visible":"hidden"),la("rounded",t.roundCropper),ws(2),Lo("ngIf",!t.hideResizeSquares)}}const cS={Move:"move",Resize:"resize",Pinch:"pinch"};let hS=(()=>{class t{constructor(t,e){this.sanitizer=t,this.cd=e,this.Hammer="undefined"!=typeof window?window.Hammer:null,this.setImageMaxSizeRetries=0,this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.exifTransform={rotate:0,flip:!1},this.autoRotateSupported=new Promise(t=>{const e=new Image;e.onload=()=>{t(1===e.width&&2===e.height)},e.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="}),this.stepSize=3,this.marginLeft="0px",this.imageVisible=!1,this.moveTypes=cS,this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage="center",this.disabled=!1,this.imageCropped=new Zl,this.startCropImage=new Zl,this.imageLoaded=new Zl,this.cropperReady=new Zl,this.loadImageFailed=new Zl,this.initCropper()}ngOnChanges(t){this.cropperStaticHeight&&this.cropperStaticWidth&&(this.hideResizeSquares=!0,this.cropperMinWidth=this.cropperStaticWidth,this.cropperMinHeight=this.cropperStaticHeight,this.maintainAspectRatio=!1),this.onChangesInputImage(t),this.originalImage&&this.originalImage.complete&&this.exifTransform&&(t.containWithinAspectRatio||t.canvasRotation)&&this.transformOriginalImage(),t.cropper&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.checkCropperPosition(!1),this.doAutoCrop(),this.cd.markForCheck()),t.aspectRatio&&this.imageVisible&&this.resetCropperPosition(),t.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop())}onChangesInputImage(t){(t.imageChangedEvent||t.imageURL||t.imageBase64||t.imageFile)&&this.initCropper(),t.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),t.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),t.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),t.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent&&this.imageChangedEvent.target&&this.imageChangedEvent.target.files&&this.imageChangedEvent.target.files.length>0}setCssTransform(){this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle("scaleX("+(this.transform.scale||1)*(this.transform.flipH?-1:1)+")scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+")rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.stepSize=this.initialStepSize,this.activatePinchGesture()}initCropper(){this.imageVisible=!1,this.transformedImage=null,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.originalSize={width:0,height:0},this.transformedSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImage(t,e){this.isValidImageType(e)?this.loadBase64Image(t):this.loadImageFailed.emit()}loadImageFile(t){const e=new FileReader;e.onload=e=>this.loadImage(e.target.result,t.type),e.readAsDataURL(t)}isValidImageType(t){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp)/.test(t)}loadBase64Image(t){this.autoRotateSupported.then(e=>this.checkExifAndLoadBase64Image(t,e)).then(()=>this.transformOriginalImage()).catch(t=>{this.loadImageFailed.emit(),this.originalImage=null,this.originalBase64=null,console.error(t)})}checkExifAndLoadBase64Image(t,e){return new Promise((n,i)=>{this.originalImage=new Image,this.originalImage.onload=()=>{this.originalBase64=t,this.exifTransform=function(t){switch("string"==typeof t&&(t=function(t){const e=new DataView(function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");const e=atob(t),n=e.length,i=new Uint8Array(n);for(let s=0;s<n;s++)i[s]=e.charCodeAt(s);return i.buffer}(t));if(65496!=e.getUint16(0,!1))return-2;const n=e.byteLength;let i=2;for(;i<n;){if(e.getUint16(i+2,!1)<=8)return-1;const t=e.getUint16(i,!1);if(i+=2,65505==t){if(1165519206!=e.getUint32(i+=2,!1))return-1;const t=18761==e.getUint16(i+=6,!1);i+=e.getUint32(i+4,t);const n=e.getUint16(i,t);i+=2;for(let s=0;s<n;s++)if(274==e.getUint16(i+12*s,t))return e.getUint16(i+12*s+8,t)}else{if(65280!=(65280&t))break;i+=e.getUint16(i,!1)}}return-1}(t)),t){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(e?-1:t),this.originalSize.width=this.originalImage.naturalWidth,this.originalSize.height=this.originalImage.naturalHeight,n()},this.originalImage.onerror=i,this.originalImage.src=t})}loadImageFromURL(t){const e=new Image;e.onerror=()=>this.loadImageFailed.emit(),e.onload=()=>{const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.width,t.height=e.height,n.drawImage(e,0,0),this.loadBase64Image(t.toDataURL())},e.crossOrigin="anonymous",e.src=t}transformOriginalImage(){if(!this.originalImage||!this.originalImage.complete||!this.exifTransform)return Promise.reject(new Error("No image loaded"));const t=this.transformImageBase64();return this.setTransformedImage(t)}transformImageBase64(){const t=this.canvasRotation+this.exifTransform.rotate;if(0===t&&!this.exifTransform.flip&&!this.containWithinAspectRatio)return this.originalBase64;const e=this.getTransformedSize(),n=document.createElement("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");return i.setTransform(this.exifTransform.flip?-1:1,0,0,1,n.width/2,n.height/2),i.rotate(Math.PI*(t/2)),i.drawImage(this.originalImage,-this.originalSize.width/2,-this.originalSize.height/2),n.toDataURL()}getTransformedSize(){const t=this.canvasRotation+this.exifTransform.rotate;if(this.containWithinAspectRatio){if(t%2){const t=this.originalSize.height/this.aspectRatio;return{width:Math.max(this.originalSize.height,this.originalSize.width*this.aspectRatio),height:Math.max(this.originalSize.width,t)}}{const t=this.originalSize.width/this.aspectRatio;return{width:Math.max(this.originalSize.width,this.originalSize.height*this.aspectRatio),height:Math.max(this.originalSize.height,t)}}}return t%2?{height:this.originalSize.width,width:this.originalSize.height}:{width:this.originalSize.width,height:this.originalSize.height}}setTransformedImage(t){return new Promise(e=>{this.transformedBase64=t,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t),this.transformedImage=new Image,this.transformedImage.onload=()=>{this.transformedSize.width=this.transformedImage.naturalWidth,this.transformedSize.height=this.transformedImage.naturalHeight,this.cd.markForCheck(),e()},this.transformedImage.src=this.transformedBase64})}imageLoadedInView(){null!=this.transformedImage&&(this.imageLoaded.emit(),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.resetCropperPosition(),this.cropperReady.emit(Object.assign({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage&&this.sourceImage.nativeElement&&this.sourceImage.nativeElement.offsetWidth>0}onResize(){this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize()}activatePinchGesture(){if(this.Hammer){const t=new this.Hammer(this.wrapper.nativeElement);t.get("pinch").set({enable:!0}),t.on("pinchmove",this.onPinch.bind(this)),t.on("pinchend",this.pinchStop.bind(this)),t.on("pinchstart",this.startPinch.bind(this))}else Ei()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const t=this.sourceImage.nativeElement;this.maxSize.width===t.offsetWidth&&this.maxSize.height===t.offsetHeight||(this.cropper.x1=this.cropper.x1*t.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*t.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*t.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*t.offsetHeight/this.maxSize.height)}resetCropperPosition(){const t=this.sourceImage.nativeElement;if(this.cropperStaticHeight&&this.cropperStaticWidth)this.cropper.x1=0,this.cropper.x2=t.offsetWidth>this.cropperStaticWidth?this.cropperStaticWidth:t.offsetWidth,this.cropper.y1=0,this.cropper.y2=t.offsetHeight>this.cropperStaticHeight?this.cropperStaticHeight:t.offsetHeight;else if(this.maintainAspectRatio)if(t.offsetWidth/this.aspectRatio<t.offsetHeight){this.cropper.x1=0,this.cropper.x2=t.offsetWidth;const e=t.offsetWidth/this.aspectRatio;this.cropper.y1=(t.offsetHeight-e)/2,this.cropper.y2=this.cropper.y1+e}else{this.cropper.y1=0,this.cropper.y2=t.offsetHeight;const e=t.offsetHeight*this.aspectRatio;this.cropper.x1=(t.offsetWidth-e)/2,this.cropper.x2=this.cropper.x1+e}else this.cropper.x1=0,this.cropper.x2=t.offsetWidth,this.cropper.y1=0,this.cropper.y2=t.offsetHeight;this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(t){this.changeKeyboardStepSize(t),this.keyboardMoveCropper(t)}changeKeyboardStepSize(t){t.key>="1"&&t.key<="9"&&(this.stepSize=+t.key)}keyboardMoveCropper(t){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(t.key))return;const e=t.shiftKey?cS.Resize:cS.Move,n=t.altKey?this.getInvertedPositionForKey(t.key):this.getPositionForKey(t.key),i=this.getEventForKey(t.key,this.stepSize);t.preventDefault(),t.stopPropagation(),this.startMove({clientX:0,clientY:0},e,n),this.moveImg(i),this.moveStop()}getPositionForKey(t){switch(t){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}getInvertedPositionForKey(t){switch(t){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}getEventForKey(t,e){switch(t){case"ArrowUp":return{clientX:0,clientY:-1*e};case"ArrowRight":return{clientX:e,clientY:0};case"ArrowDown":return{clientX:0,clientY:e};case"ArrowLeft":default:return{clientX:-1*e,clientY:0}}}startMove(t,e,n=null){this.moveStart&&this.moveStart.active&&this.moveStart.type===cS.Pinch||(t.preventDefault&&t.preventDefault(),this.moveStart=Object.assign({active:!0,type:e,position:n,clientX:this.getClientX(t),clientY:this.getClientY(t)},this.cropper))}startPinch(t){this.safeImgDataUrl&&(t.preventDefault&&t.preventDefault(),this.moveStart=Object.assign({active:!0,type:cS.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}moveImg(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===cS.Move?(this.move(t),this.checkCropperPosition(!0)):this.moveStart.type===cS.Resize&&(this.cropperStaticWidth||this.cropperStaticHeight||this.resize(t),this.checkCropperPosition(!1)),this.cd.detectChanges())}onPinch(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===cS.Pinch&&(this.resize(t),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const t=this.sourceImage.nativeElement;this.maxSize.width=t.offsetWidth,this.maxSize.height=t.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.transformedImage?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.transformedImage.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.transformedImage.height*this.maxSize.height):20}checkCropperPosition(t=!1){this.cropper.x1<0&&(this.cropper.x2-=t?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=t?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=t?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=t?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}move(t){const e=this.getClientX(t)-this.moveStart.clientX,n=this.getClientY(t)-this.moveStart.clientY;this.cropper.x1=this.moveStart.x1+e,this.cropper.y1=this.moveStart.y1+n,this.cropper.x2=this.moveStart.x2+e,this.cropper.y2=this.moveStart.y2+n}resize(t){const e=this.getClientX(t)-this.moveStart.clientX,n=this.getClientY(t)-this.moveStart.clientY;switch(this.moveStart.position){case"left":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth);break;case"topleft":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"top":this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"topright":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.y1+n,this.cropper.y2-this.cropperScaledMinHeight);break;case"right":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth);break;case"bottomright":this.cropper.x2=Math.max(this.moveStart.x2+e,this.cropper.x1+this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"bottom":this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"bottomleft":this.cropper.x1=Math.min(this.moveStart.x1+e,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.y2+n,this.cropper.y1+this.cropperScaledMinHeight);break;case"center":const i=t.scale,s=Math.abs(this.moveStart.x2-this.moveStart.x1)*i,r=Math.abs(this.moveStart.y2-this.moveStart.y1)*i,o=this.cropper.x1,a=this.cropper.y1;this.cropper.x1=Math.min(this.moveStart.clientX-s/2,this.cropper.x2-this.cropperScaledMinWidth),this.cropper.y1=Math.min(this.moveStart.clientY-r/2,this.cropper.y2-this.cropperScaledMinHeight),this.cropper.x2=Math.max(this.moveStart.clientX+s/2,o+this.cropperScaledMinWidth),this.cropper.y2=Math.max(this.moveStart.clientY+r/2,a+this.cropperScaledMinHeight)}this.maintainAspectRatio&&this.checkAspectRatio()}checkAspectRatio(){let t=0,e=0;switch(this.moveStart.position){case"top":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"bottom":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"topleft":this.cropper.y1=this.cropper.y2-(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(0-this.cropper.x1,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x1+=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"topright":this.cropper.y1=this.cropper.y2-(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(0-this.cropper.y1,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y1+=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"right":case"bottomright":this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(this.cropper.x2-this.maxSize.width,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x2-=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"left":case"bottomleft":this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio,t=Math.max(0-this.cropper.x1,0),e=Math.max(this.cropper.y2-this.maxSize.height,0),(t>0||e>0)&&(this.cropper.x1+=e*this.aspectRatio>t?e*this.aspectRatio:t,this.cropper.y2-=e*this.aspectRatio>t?e:t/this.aspectRatio);break;case"center":this.cropper.x2=this.cropper.x1+(this.cropper.y2-this.cropper.y1)*this.aspectRatio,this.cropper.y2=this.cropper.y1+(this.cropper.x2-this.cropper.x1)/this.aspectRatio;const n=Math.max(0-this.cropper.x1,0),i=Math.max(this.cropper.x2-this.maxSize.width,0),s=Math.max(this.cropper.y2-this.maxSize.height,0),r=Math.max(0-this.cropper.y1,0);(n>0||i>0||s>0||r>0)&&(this.cropper.x1+=s*this.aspectRatio>n?s*this.aspectRatio:n,this.cropper.x2-=r*this.aspectRatio>i?r*this.aspectRatio:i,this.cropper.y1+=r*this.aspectRatio>i?r:i/this.aspectRatio,this.cropper.y2-=s*this.aspectRatio>n?s:n/this.aspectRatio)}}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(this.sourceImage&&this.sourceImage.nativeElement&&null!=this.transformedImage){this.startCropImage.emit();const t=this.getImagePosition(),e=t.x2-t.x1,n=t.y2-t.y1,i=document.createElement("canvas");i.width=e,i.height=n;const s=i.getContext("2d");if(s){null!=this.backgroundColor&&(s.fillStyle=this.backgroundColor,s.fillRect(0,0,e,n));const r=(this.transform.scale||1)*(this.transform.flipH?-1:1),o=(this.transform.scale||1)*(this.transform.flipV?-1:1);s.setTransform(r,0,0,o,this.transformedSize.width/2,this.transformedSize.height/2),s.translate(-t.x1/r,-t.y1/o),s.rotate((this.transform.rotate||0)*Math.PI/180),s.drawImage(this.transformedImage,-this.transformedSize.width/2,-this.transformedSize.height/2);const a={width:e,height:n,imagePosition:t,cropperPosition:Object.assign({},this.cropper)};this.containWithinAspectRatio&&(a.offsetImagePosition=this.getOffsetImagePosition());const l=this.getResizeRatio(e,n);return 1!==l&&(a.width=Math.round(e*l),a.height=this.maintainAspectRatio?Math.round(a.width/this.aspectRatio):Math.round(n*l),function(t,e,n){const i=t.width,s=t.height,r=i/(e=Math.round(e)),o=s/(n=Math.round(n)),a=Math.ceil(r/2),l=Math.ceil(o/2),c=t.getContext("2d");if(c){const h=c.getImageData(0,0,i,s),u=c.createImageData(e,n),d=h.data,p=u.data;for(let t=0;t<n;t++)for(let n=0;n<e;n++){const c=4*(n+t*e),h=t*o;let u=0,g=0,f=0,m=0,_=0,v=0,y=0;const b=Math.floor(n*r),w=Math.floor(t*o);let C=Math.ceil((n+1)*r),S=Math.ceil((t+1)*o);C=Math.min(C,i),S=Math.min(S,s);for(let t=w;t<S;t++){const e=Math.abs(h-t)/l,s=n*r,o=e*e;for(let n=b;n<C;n++){const e=Math.abs(s-n)/a,r=Math.sqrt(o+e*e);if(r>=1)continue;u=2*r*r*r-3*r*r+1;const l=4*(n+t*i);y+=u*d[l+3],f+=u,d[l+3]<255&&(u=u*d[l+3]/250),m+=u*d[l],_+=u*d[l+1],v+=u*d[l+2],g+=u}}p[c]=m/g,p[c+1]=_/g,p[c+2]=v/g,p[c+3]=y/f}t.width=e,t.height=n,c.putImageData(u,0,0)}}(i,a.width,a.height)),a.base64=this.cropToBase64(i),this.imageCropped.emit(a),a}}return null}getImagePosition(){const t=this.transformedSize.width/this.sourceImage.nativeElement.offsetWidth,e={x1:Math.round(this.cropper.x1*t),y1:Math.round(this.cropper.y1*t),x2:Math.round(this.cropper.x2*t),y2:Math.round(this.cropper.y2*t)};return this.containWithinAspectRatio||(e.x1=Math.max(e.x1,0),e.y1=Math.max(e.y1,0),e.x2=Math.min(e.x2,this.transformedSize.width),e.y2=Math.min(e.y2,this.transformedSize.height)),e}getOffsetImagePosition(){const t=this.transformedSize.width/this.sourceImage.nativeElement.offsetWidth;let e,n;(this.canvasRotation+this.exifTransform.rotate)%2?(e=(this.transformedSize.width-this.originalSize.height)/2,n=(this.transformedSize.height-this.originalSize.width)/2):(e=(this.transformedSize.width-this.originalSize.width)/2,n=(this.transformedSize.height-this.originalSize.height)/2);const i={x1:Math.round(this.cropper.x1*t)-e,y1:Math.round(this.cropper.y1*t)-n,x2:Math.round(this.cropper.x2*t)-e,y2:Math.round(this.cropper.y2*t)-n};return this.containWithinAspectRatio||(i.x1=Math.max(i.x1,0),i.y1=Math.max(i.y1,0),i.x2=Math.min(i.x2,this.transformedSize.width),i.y2=Math.min(i.y2,this.transformedSize.height)),i}cropToBase64(t){return t.toDataURL("image/"+this.format,this.getQuality())}getQuality(){return Math.min(1,Math.max(0,this.imageQuality/100))}getResizeRatio(t,e){const n=this.resizeToWidth/t,i=this.resizeToHeight/e,s=new Array;this.resizeToWidth>0&&s.push(n),this.resizeToHeight>0&&s.push(i);const r=0===s.length?1:Math.min(...s);return r>1&&!this.onlyScaleDown?r:Math.min(r,1)}getClientX(t){return(t.touches&&t.touches[0]?t.touches[0].clientX:t.clientX)||0}getClientY(t){return(t.touches&&t.touches[0]?t.touches[0].clientY:t.clientY)||0}}return t.\u0275fac=function(e){return new(e||t)(Oo(Au),Oo(Yr))},t.\u0275cmp=pe({type:t,selectors:[["image-cropper"]],viewQuery:function(t,e){var n;1&t&&(hc(sS,!0),uc(rS,!0)),2&t&&(cc(n=fc())&&(e.wrapper=n.first),cc(n=fc())&&(e.sourceImage=n.first))},hostVars:4,hostBindings:function(t,e){1&t&&$o("resize",(function(){return e.onResize()}),!1,Bn)("mousemove",(function(t){return e.moveImg(t)}),!1,Hn)("touchmove",(function(t){return e.moveImg(t)}),!1,Hn)("mouseup",(function(){return e.moveStop()}),!1,Hn)("touchend",(function(){return e.moveStop()}),!1,Hn),2&t&&(aa("text-align",e.alignImage),la("disabled",e.disabled))},inputs:{format:"format",maintainAspectRatio:"maintainAspectRatio",transform:"transform",aspectRatio:"aspectRatio",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",backgroundColor:"backgroundColor"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed"},features:[Ra],decls:5,vars:10,consts:[["wrapper",""],["class","source-image",3,"src","visibility","transform","load",4,"ngIf"],[1,"overlay"],["class","cropper","tabindex","0",3,"rounded","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"source-image",3,"src","load"],["sourceImage",""],["tabindex","0",1,"cropper",3,"keydown"],[1,"move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"resize","topleft",3,"mousedown","touchstart"],[1,"square"],[1,"resize","top"],[1,"resize","topright",3,"mousedown","touchstart"],[1,"resize","right"],[1,"resize","bottomright",3,"mousedown","touchstart"],[1,"resize","bottom"],[1,"resize","bottomleft",3,"mousedown","touchstart"],[1,"resize","left"],[1,"resize-bar","top",3,"mousedown","touchstart"],[1,"resize-bar","right",3,"mousedown","touchstart"],[1,"resize-bar","bottom",3,"mousedown","touchstart"],[1,"resize-bar","left",3,"mousedown","touchstart"]],template:function(t,e){1&t&&(zo(0,"div",null,0),Do(2,oS,2,5,"img",1),Vo(3,"div",2),Do(4,lS,3,15,"div",3),Fo()),2&t&&(aa("background",e.imageVisible&&e.backgroundColor,ts),ws(2),Lo("ngIf",e.safeImgDataUrl),ws(1),aa("width",e.maxSize.width,"px")("height",e.maxSize.height,"px")("margin-left","center"===e.alignImage?e.marginLeft:null),ws(1),Lo("ngIf",e.imageVisible))},directives:[Xh],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color,#fff) solid 100vw;top:0;left:0}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:0 0;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color,rgba(255,255,255,.3)) solid 100vw;touch-action:none}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";top:0;bottom:0;left:0;right:0;pointer-events:none;border:1px dashed;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]:focus .move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%] .square[_ngcontent-%COMP%]{display:inline-block;background:#53535c;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize.left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar.left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw rgba(255,255,255,.3);box-shadow:0 0 0 100vw var(--cropper-outline-color,rgba(255,255,255,.3))}@media (orientation:portrait){[_nghost-%COMP%] .cropper[_ngcontent-%COMP%]{outline-width:100vh}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh rgba(255,255,255,.3);box-shadow:0 0 0 100vh var(--cropper-outline-color,rgba(255,255,255,.3))}}[_nghost-%COMP%] .cropper.rounded[_ngcontent-%COMP%] .move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .move[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .cropper[_ngcontent-%COMP%] .resize-bar[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})(),uS=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu]]}),t})();function dS(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function pS(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function gS(t,e){const n=e?"":"none";pS(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function fS(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function mS(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function _S(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function vS(t,e,n){const{top:i,bottom:s,left:r,right:o}=t;return n>=i&&n<=s&&e>=r&&e<=o}function yS(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function bS(t,e,n,i){const{top:s,right:r,bottom:o,left:a,width:l,height:c}=t,h=l*e,u=c*e;return i>s-u&&i<o+u&&n>a-h&&n<r+h}class wS{constructor(t,e){this._document=t,this._viewportRuler=e,this.positions=new Map}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:_S(t)})})}handleScroll(t){const e=t.target,n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,s=n.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,l=s.left-o;return this.positions.forEach((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&yS(t.clientRect,a,l)}),s.top=r,s.left=o,{top:a,left:l}}}function CS(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<n.length;s++)n[s].removeAttribute("id");return"canvas"===i?xS(t,e):"input"!==i&&"select"!==i&&"textarea"!==i||IS(t,e),SS("canvas",t,e,xS),SS("input, textarea, select",t,e,IS),e}function SS(t,e,n,i){const s=e.querySelectorAll(t);if(s.length){const e=n.querySelectorAll(t);for(let t=0;t<s.length;t++)i(s[t],e[t])}}let ES=0;function IS(t,e){e.value=t.value,"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${ES++}`)}function xS(t,e){const n=e.getContext("2d");if(n)try{n.drawImage(t,0,0)}catch(Nk){}}const TS=w_({passive:!0}),PS=w_({passive:!1});class kS{constructor(t,e,n,i,s,r){this._config=e,this._document=n,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new I,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 I,this.started=new I,this.released=new I,this.ended=new I,this.entered=new I,this.exited=new I,this.dropped=new I,this.moved=this._moveEvents,this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{t.preventDefault();const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new wS(n,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=c_(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>u_(t)),this._handles.forEach(t=>gS(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=u_(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,PS),e.addEventListener("touchstart",this._pointerDown,TS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?u_(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&AS(this._rootElement),AS(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(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&AS(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&AS(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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(t),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(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){OS(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,s=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(o,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(r,t)),(n=this._document,n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body).appendChild(s),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;var n;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const n=this.isDragging(),i=OS(e),s=!i&&0!==e.button,r=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.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(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=_S(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,n,this._initialContainer,r,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=MS(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),i=RS(s,this._document),this._previewRef=s,t.matchSize?LS(i,e):i.style.transform=MS(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=CS(t),LS(i,t.getBoundingClientRect())}return pS(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),gS(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>i.classList.add(t)):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=MS(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=mS(e,"transition-property"),i=n.find(t=>"transform"===t||"all"===t);if(!i)return 0;const s=n.indexOf(i),r=mS(e,"transition-duration"),o=mS(e,"transition-delay");return fS(r[s])+fS(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=RS(this._placeholderRef,this._document)):n=CS(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,s=i?i.getBoundingClientRect():n,r=OS(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-n.left+(r.pageX-s.left-o.left),y:s.top-n.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=OS(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=s,e.matrixTransform(t.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);n=DS(n,s.left+t,s.right-(r.width-t)),i=DS(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(n-s.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,gS(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,PS),t.removeEventListener("touchstart",this._pointerDown,TS)}_applyRootElementTransform(t,e){const n=MS(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,r=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,n.height>i.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:OS(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=t.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&yS(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function MS(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function DS(t,e,n){return Math.max(e,Math.min(n,t))}function AS(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function OS(t){return"t"===t.type[0]}function RS(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach(t=>i.appendChild(t)),i}function LS(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=MS(e.left,e.top)}function NS(t,e){return Math.max(0,Math.min(e,t))}class zS{constructor(t,e,n,i,s){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new I,this.entered=new I,this.exited=new I,this.dropped=new I,this.sorted=new I,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 I,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=k_){return(!A_(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=k_),new b(n=>(n.add(e.schedule(dS,t,{subscriber:n,counter:0,period:t})),n))}(0,I_).pipe(o_(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?VS(t,-2):2===this._verticalScrollDirection&&VS(t,2),1===this._horizontalScrollDirection?US(t,-2):2===this._horizontalScrollDirection&&US(t,2)})},this.element=u_(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new wS(n,s)}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 t=u_(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,n,i){let s;this.start(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=i;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else u_(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,s,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:s})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=u_(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?FS("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!bS(this._clientRect,.05,e,n))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=FS(s,e=>e.drag===t),l=s[r],c=l.clientRect,h=a>r?1:-1,u=this._getItemOffsetPx(s[a].clientRect,c,h),d=this._getSiblingOffsetPx(a,s,h),p=s.slice();!function(t,e,n){const i=NS(e,t.length-1),s=NS(n,t.length-1);if(i===s)return;const r=t[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)t[a]=t[a+o];t[s]=r}(s,a,r),this.sorted.next({previousIndex:a,currentIndex:r,container:this,item:t}),s.forEach((e,n)=>{if(p[n]===e)return;const i=e.drag===t,s=i?u:d,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,yS(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,yS(e.clientRect,s,0))}),this._previousSwap.overlaps=vS(c,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!n&&bS(r.clientRect,.05,t,e)&&([i,s]=function(t,e,n,i){const s=jS(e,i),r=BS(e,n);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(i||s)&&(n=o))}),!i&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};i=jS(a,e),s=BS(a,t),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const t=u_(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:_S(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=u_(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._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(t,e,n){const i="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*n];let o=s[i?"width":"height"]*n;if(r){const t=i?"left":"top",e=i?"right":"bottom";-1===n?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let s=i?e.left-t.left:e.top-t.top;return-1===n&&(s+=i?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return i?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,i){const s="horizontal"===this._orientation;return FS(this._itemPositions,({drag:r,clientRect:o},a,l)=>{if(r===t)return l.length<2;if(i){const t=s?i.x:i.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<Math.floor(o.right):n>=Math.floor(o.top)&&n<Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(t,e){return vS(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(i=>i._canReceive(t,e,n))}_canReceive(t,e,n){if(!vS(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const s=u_(this.element);return i===s||s.contains(i)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{yS(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=function(t){if(function(){if(null==v_){const t="undefined"!=typeof document?document.head:null;v_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return v_}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(u_(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function FS(t,e){for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function VS(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function US(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function jS(t,e){const{top:n,bottom:i,height:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function BS(t,e){const{left:n,right:i,width:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}const HS=w_({passive:!1,capture:!0});let WS=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new I,this.pointerUp=new I,this.scroll=new I,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.size&&(t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,HS)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,HS)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:HS}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:HS}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(Yt(jc),Yt(Ih))},t.\u0275prov=ht({factory:function(){return new t(Yt(jc),Yt(Ih))},token:t,providedIn:"root"}),t})();const $S={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qS=(()=>{class t{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=$S){return new kS(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new zS(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ih),Yt(jc),Yt(V_),Yt(WS))},t.\u0275prov=ht({factory:function(){return new t(Yt(Ih),Yt(jc),Yt(V_),Yt(WS))},token:t,providedIn:"root"}),t})();const GS=new Ft("CDK_DRAG_PARENT"),YS=new Ft("CdkDropListGroup"),QS=new Ft("CDK_DRAG_CONFIG");let KS=0;const XS=new Ft("CdkDropList");let ZS=(()=>{class t{constructor(e,n,i,s,r,o,a){this.element=e,this._changeDetectorRef=i,this._dir=s,this._group=r,this._scrollDispatcher=o,this._destroyed=new I,this.connectedTo=[],this.id="cdk-drop-list-"+KS++,this.enterPredicate=()=>!0,this.dropped=new Zl,this.entered=new Zl,this.exited=new Zl,this.sorted=new Zl,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,a&&this._assignDefaults(a),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=c_(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(L_(this._dir.value),o_(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const n=(i=this.connectedTo,Array.isArray(i)?i:[i]).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);var i;if(this._group&&this._group._items.forEach(t=>{-1===n.indexOf(t)&&n.push(t)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=c_(this.sortingDisabled),e.autoScrollDisabled=c_(this.autoScrollDisabled),e.connectedTo(n.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:n,sortingDisabled:i,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(qS),Oo(Yr),Oo(g_,8),Oo(YS,12),Oo(F_),Oo(QS,8))},t.\u0275dir=ye({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(xa("id",e.id),la("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._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:[Wa([{provide:YS,useValue:void 0},{provide:XS,useExisting:t}])]}),t._dropLists=[],t})();const JS=new Ft("CdkDragHandle"),tE=new Ft("CdkDragPlaceholder"),eE=new Ft("CdkDragPreview");let nE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c){this.element=t,this.dropContainer=e,this._document=n,this._ngZone=i,this._viewContainerRef=s,this._dir=o,this._changeDetectorRef=l,this._selfHandle=c,this._destroyed=new I,this.started=new Zl,this.released=new Zl,this.ended=new Zl,this.entered=new Zl,this.exited=new Zl,this.dropped=new Zl,this.moved=new b(t=>{const e=this._dragRef.moved.pipe(z(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=a.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=c_(t),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(df(1),o_(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(L_(this._handles),gv(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),mf(t=>G(...t.map(t=>t._stateChanges.pipe(L_(t))))),o_(this._destroyed)).subscribe(t=>{const e=this._dragRef,n=t.element.nativeElement;t.disabled?e.disableHandle(n):e.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.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 t=this.element.nativeElement,e=this.rootElementSelector?iE(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?iE(this.element.nativeElement,t):u_(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:h_(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:r,draggingDisabled:o,rootElementSelector:a}=t;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),s&&(this.previewClass=s),r&&(this.boundaryElement=r),a&&(this.rootElementSelector=a)}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(XS,12),Oo(Ih),Oo(jc),Oo(bl),Oo(QS,8),Oo(g_,8),Oo(qS),Oo(Yr),Oo(JS,10))},t.\u0275dir=ye({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(pc(n,eE,!0),pc(n,tE,!0),pc(n,JS,!0)),2&t&&(cc(i=fc())&&(e._previewTemplate=i.first),cc(i=fc())&&(e._placeholderTemplate=i.first),cc(i=fc())&&(e._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&la("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._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:[Wa([{provide:GS,useExisting:t}]),Ra]}),t})();function iE(t,e){let n=t.parentElement;for(;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}let sE=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[qS],imports:[U_]}),t})();var rE=n("EcEN");function oE(t){return getComputedStyle(t)}function aE(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function lE(t){var e=document.createElement("div");return e.className=t,e}var cE="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function hE(t,e){if(!cE)throw new Error("No element matching method supported");return cE.call(t,e)}function uE(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function dE(t,e){return Array.prototype.filter.call(t.children,(function(t){return hE(t,e)}))}var pE=function(t){return"ps__thumb-"+t},gE=function(t){return"ps__rail-"+t},fE=function(t){return"ps--active-"+t},mE=function(t){return"ps--scrolling-"+t},_E={x:null,y:null};function vE(t,e){var n=t.element.classList,i=mE(e);n.contains(i)?clearTimeout(_E[e]):n.add(i)}function yE(t,e){_E[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(mE(e))}),t.settings.scrollingThreshold)}var bE=function(t){this.element=t,this.handlers={}},wE={isEmpty:{configurable:!0}};bE.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},bE.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter((function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)}))},bE.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},wE.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(bE.prototype,wE);var CE=function(){this.eventElements=[]};function SE(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function EE(t,e,n,i,s){var r;if(void 0===i&&(i=!0),void 0===s&&(s=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,s){var r=n[0],o=n[1],a=n[2],l=n[3],c=n[4],h=n[5];void 0===i&&(i=!0),void 0===s&&(s=!1);var u=t.element;t.reach[l]=null,u[a]<1&&(t.reach[l]="start"),u[a]>t[r]-t[o]-1&&(t.reach[l]="end"),e&&(u.dispatchEvent(SE("ps-scroll-"+l)),e<0?u.dispatchEvent(SE("ps-scroll-"+c)):e>0&&u.dispatchEvent(SE("ps-scroll-"+h)),i&&function(t,e){vE(t,e),yE(t,e)}(t,l)),t.reach[l]&&(e||s)&&u.dispatchEvent(SE("ps-"+l+"-reach-"+t.reach[l]))}(t,n,r,i,s)}function IE(t){return parseInt(t,10)||0}CE.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new bE(t),this.eventElements.push(e)),e},CE.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},CE.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},CE.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},CE.prototype.once=function(t,e,n){var i=this.eventElement(t),s=function(t){i.unbind(e,s),n(t)};i.bind(e,s)};var xE={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function TE(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(dE(e,gE("x")).forEach((function(t){return uE(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(dE(e,gE("y")).forEach((function(t){return uE(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=PE(t,IE(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=IE((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=PE(t,IE(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=IE(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,aE(e.scrollbarXRail,n);var s={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,aE(e.scrollbarYRail,s),aE(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),aE(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(fE("x")):(e.classList.remove(fE("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(fE("y")):(e.classList.remove(fE("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function PE(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function kE(t,e){var n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),u[l]=d+g*(e[s]-p),vE(t,c),TE(t),e.stopPropagation(),e.preventDefault()}function m(){yE(t,c),t[h].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function _(e,o){d=u[l],o&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[i]-t[n])/(t[r]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[h].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[o],"mousedown",(function(t){_(t)})),t.event.bind(t[o],"touchstart",(function(t){_(t,!0)}))}var ME={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,TE(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,TE(t),e.stopPropagation()}))},"drag-thumb":function(t){kE(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),kE(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(hE(e,":hover")||hE(t.scrollbarX,":focus")||hE(t.scrollbarY,":focus"))){var i,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(hE(i=s,"input,[contenteditable]")||hE(i,"select,[contenteditable]")||hE(i,"textarea,[contenteditable]")||hE(i,"button,[contenteditable]"))return}var r=0,o=0;switch(n.which){case 37:r=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:o=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:r=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:o=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:o=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==r||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=r,TE(t),function(n,i){var s=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===s&&i>0||s>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===r&&n<0||r>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(r,o)&&n.preventDefault())}}))},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),s=i[0],r=i[1];if(!function(t,n,i){if(!xE.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var r=oE(s);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=s.scrollHeight-s.clientHeight;if(o>0&&(s.scrollTop>0&&i<0||s.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(n.target,s,r)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(r?e.scrollTop-=r*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=r*t.settings.wheelSpeed,o=!0):(e.scrollTop-=r*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),TE(t),(o=o||function(n,i){var s=Math.floor(e.scrollTop),r=0===e.scrollTop,o=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?r||o:a||l)||!t.settings.wheelPropagation}(s,r))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(xE.supportsTouch||xE.supportsIePointer){var e=t.element,n={},i=0,s={},r=null;xE.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",h),t.event.bind(e,"touchend",u)):xE.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",h),t.event.bind(e,"pointerup",u)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",h),t.event.bind(e,"MSPointerUp",u)))}function o(n,i){e.scrollTop-=i,e.scrollLeft-=n,TE(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function c(t){if(l(t)){var e=a(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==r&&clearInterval(r)}}function h(r){if(l(r)){var c=a(r),h={pageX:c.pageX,pageY:c.pageY},u=h.pageX-n.pageX,d=h.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var r=oE(s);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=s.scrollHeight-s.clientHeight;if(o>0&&(s.scrollTop>0&&i<0||s.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&n<0||s.scrollLeft<a&&n>0))return!0}s=s.parentNode}return!1}(r.target,u,d))return;o(u,d),n=h;var p=(new Date).getTime(),g=p-i;g>0&&(s.x=u/g,s.y=d/g,i=p),function(n,i){var s=Math.floor(e.scrollTop),r=e.scrollLeft,o=Math.abs(n),a=Math.abs(i);if(a>o){if(i<0&&s===t.contentHeight-t.containerHeight||i>0&&0===s)return 0===window.scrollY&&i>0&&xE.isChrome}else if(o>a&&(n<0&&r===t.contentWidth-t.containerWidth||n>0&&0===r))return!0;return!0}(u,d)&&r.preventDefault()}}function u(){t.settings.swipeEasing&&(clearInterval(r),r=setInterval((function(){t.isInitialized?clearInterval(r):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(r):(o(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(r)}),10))}}},DE=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,r,o=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===oE(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(r=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=r,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new CE,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=lE(gE("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=lE(pE("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=oE(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=IE(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=IE(l.borderLeftWidth)+IE(l.borderRightWidth),aE(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=IE(l.marginLeft)+IE(l.marginRight),aE(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=lE(gE("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=lE(pE("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=oE(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=IE(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=oE(t);return IE(e.width)+IE(e.paddingLeft)+IE(e.paddingRight)+IE(e.borderLeftWidth)+IE(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=IE(c.borderTopWidth)+IE(c.borderBottomWidth),aE(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=IE(c.marginTop)+IE(c.marginBottom),aE(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return ME[t](n)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return n.onScroll(t)})),TE(this)};DE.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,aE(this.scrollbarXRail,{display:"block"}),aE(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=IE(oE(this.scrollbarXRail).marginLeft)+IE(oE(this.scrollbarXRail).marginRight),this.railYMarginHeight=IE(oE(this.scrollbarYRail).marginTop)+IE(oE(this.scrollbarYRail).marginBottom),aE(this.scrollbarXRail,{display:"none"}),aE(this.scrollbarYRail,{display:"none"}),TE(this),EE(this,"top",0,!1,!0),EE(this,"left",0,!1,!0),aE(this.scrollbarXRail,{display:""}),aE(this.scrollbarYRail,{display:""}))},DE.prototype.onScroll=function(t){this.isAlive&&(TE(this),EE(this,"top",this.element.scrollTop-this.lastScrollTop),EE(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},DE.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),uE(this.scrollbarX),uE(this.scrollbarY),uE(this.scrollbarXRail),uE(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},DE.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var AE=DE,OE=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var s=i[n];t.call(e,s[1],s[0])}},e}()}(),RE="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,LE="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),NE="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(LE):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},zE=["top","right","bottom","left","width","height","size","weight"],FE="undefined"!=typeof MutationObserver,VE=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,s=0;function r(){n&&(n=!1,t()),i&&a()}function o(){NE(r)}function a(){var t=Date.now();if(n){if(t-s<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);s=t}return a}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){RE&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FE?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){RE&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;zE.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),UE=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];Object.defineProperty(t,s,{value:e[s],enumerable:!1,writable:!1,configurable:!0})}return t},jE=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||LE},BE=qE(0,0,0,0);function HE(t){return parseFloat(t)||0}function WE(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+HE(t["border-"+n+"-width"])}),0)}var $E="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof jE(t).SVGGraphicsElement}:function(t){return t instanceof jE(t).SVGElement&&"function"==typeof t.getBBox};function qE(t,e,n,i){return{x:t,y:e,width:n,height:i}}var GE=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qE(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t,e=(t=this.target,RE?$E(t)?function(t){var e=t.getBBox();return qE(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return BE;var i=jE(t).getComputedStyle(t),s=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var s=i[n];e[s]=HE(t["padding-"+s])}return e}(i),r=s.left+s.right,o=s.top+s.bottom,a=HE(i.width),l=HE(i.height);if("border-box"===i.boxSizing&&(Math.round(a+r)!==e&&(a-=WE(i,"left","right")+r),Math.round(l+o)!==n&&(l-=WE(i,"top","bottom")+o)),!function(t){return t===jE(t).document.documentElement}(t)){var c=Math.round(a+r)-e,h=Math.round(l+o)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return qE(s.left,s.top,a,l)}(t):BE);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),YE=function(t,e){var n,i,s,r,o,a,l,c=(i=(n=e).x,s=n.y,r=n.width,o=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),UE(l,{x:i,y:s,width:r,height:o,top:s,right:i+r,bottom:o+s,left:i}),l);UE(this,{target:t,contentRect:c})},QE=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new OE,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof jE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new GE(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof jE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new YE(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),KE="undefined"!=typeof WeakMap?new WeakMap:new OE,XE=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=VE.getInstance(),i=new QE(e,n,this);KE.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){XE.prototype[t]=function(){var e;return(e=KE.get(this))[t].apply(e,arguments)}}));var ZE=void 0!==LE.ResizeObserver?LE.ResizeObserver:XE;const JE=new Ft("PERFECT_SCROLLBAR_CONFIG");class tI{constructor(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}}class eI{constructor(t,e){this.x=t,this.y=e}}const nI=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class iI{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let sI=(()=>{class t{constructor(t,e,n,i,s){this.zone=t,this.differs=e,this.elementRef=n,this.platformId=i,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new I,this.disabled=!1,this.psScrollY=new Zl,this.psScrollX=new Zl,this.psScrollUp=new Zl,this.psScrollDown=new Zl,this.psScrollLeft=new Zl,this.psScrollRight=new Zl,this.psYReachEnd=new Zl,this.psYReachStart=new Zl,this.psXReachEnd=new Zl,this.psXReachStart=new Zl}ngOnInit(){if(!this.disabled&&su(this.platformId)){const t=new iI(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new AE(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ZE(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{nI.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>"-"+t.toLowerCase());n_(this.elementRef.nativeElement,e).pipe(R_(20),o_(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){su(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&su(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&su(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new tI(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new eI(this.instance.reach.x||0,this.instance.reach.y||0):new eI(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,n){this.disabled||(null==e&&null==n?this.animateScrolling("scrollTop",t,n):(null!=t&&this.animateScrolling("scrollLeft",t,n),null!=e&&this.animateScrolling("scrollTop",e,n)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,n){if("string"==typeof t&&(t=this.elementRef.nativeElement.querySelector(t)),t){const i=t.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",i.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),n),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",i.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),n)}}animateScrolling(t,e,n){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),n&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let i=0,s=0,r=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,l=c=>{s+=Math.PI/(n/(c-r)),i=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===o&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=i,o=this.elementRef.nativeElement[t],r=c,this.animation=window.requestAnimationFrame(l)))};window.requestAnimationFrame(l)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(Oo(jc),Oo(gl),Oo(Ya),Oo(Ic),Oo(JE,8))},t.\u0275dir=ye({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[Ra]}),t})(),rI=(()=>{class t{}return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iu],iu]}),t})();function oI(t,e){1&t&&(zo(0,"div",3),Vo(1,"img-selection"),Fo())}function aI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openSmall()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",11),Fo()}}function lI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openSmall()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",12),Fo()}}function cI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).openFull()})),zo(1,"span"),wa(2,"Expand"),Fo(),Vo(3,"i",12),Fo()}}function hI(t,e){if(1&t){const t=Bo();zo(0,"button",10),$o("click",(function(){return Xe(t),Yo(3).onClose()})),zo(1,"span"),wa(2,"Close"),Fo(),Vo(3,"i",13),Fo()}}function uI(t,e){if(1&t&&(zo(0,"div",8),Do(1,aI,4,0,"button",9),Do(2,lI,4,0,"button",9),Do(3,cI,4,0,"button",9),Do(4,hI,4,0,"button",9),Fo()),2&t){const t=Yo(2);ws(1),Lo("ngIf","full"===t.stateDisplayed),ws(1),Lo("ngIf","closed"===t.stateDisplayed),ws(1),Lo("ngIf","small"===t.stateDisplayed),ws(1),Lo("ngIf","closed"!==t.stateDisplayed)}}const dI=function(t,e,n,i){return{"wz-img-manager__module--small":t,"wz-img-manager__module--full":e,"wz-img-manager__module--window":n,"wz-img-manager__module--edit":i}},pI=function(t){return{"wz-block--window":t}};function gI(t,e){if(1&t){const t=Bo();zo(0,"div",4),Do(1,uI,5,4,"div",5),zo(2,"div",6),zo(3,"img-tabs",7),$o("imgManagerClosed",(function(){return Xe(t),Yo().onImgManagerClosed()}))("switchDisplayWindow",(function(){return Xe(t),Yo().changeDisplayTab()}))("currentTab",(function(e){return Xe(t),Yo().setCurrentTab(e)})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",jl(6,dI,"small"===t.stateDisplayed,"full"===t.stateDisplayed,"window"===t.stateDisplayed,t.hideTab)),ws(1),Lo("ngIf","window"!==t.stateDisplayed),ws(1),Lo("ngClass",Fl(11,pI,"window"===t.stateDisplayed)),ws(1),Lo("stateDisplayed",t.stateDisplayed)("multipleImgMode",t.multipleImgMode)("listDisplayed",t.listDisplayed)}}const fI=["dragAndDropBox"];function mI(t,e){1&t&&(zo(0,"div",8),Vo(1,"wz-loader",9),Fo()),2&t&&(ws(1),Lo("small",!0)("position","relative"))}function _I(t,e){1&t&&Vo(0,"img",15),2&t&&Lo("src",Yo(2).assetsIcon,Ji)}function vI(t,e){if(1&t&&(Uo(0),zo(1,"div",10),Do(2,_I,1,1,"img",11),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),zo(6,"p",12),wa(7),ql(8,"translate"),Fo(),zo(9,"div",13),Vo(10,"i",14),wa(11),ql(12,"translate"),Fo(),jo()),2&t){const t=Yo();ws(2),Lo("ngIf",t.assetsIcon),ws(2),Ca(Gl(5,4,"ImgManager.ImgUpload.dropImg")),ws(3),Ca(Gl(8,6,"ImgManager.ImgUpload.or")),ws(4),Sa("",Gl(12,8,"ImgManager.ImgUpload.selectImg")," ")}}const yI=function(t){return{"img-upload--small":t}},bI=function(t){return{"img-upload__container--small":t}};function wI(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),jo()),2&t&&(ws(1),Ca(Gl(2,1,"ImgManager.UploadList.imgSuccessImport")))}function CI(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),jo()),2&t&&(ws(1),Ca(Gl(2,1,"ImgManager.UploadList.imgSuccessImportOne")))}function SI(t,e){if(1&t){const t=Bo();zo(0,"div",16),zo(1,"img-card",17),$o("toggleImgSelected",(function(){Xe(t);const n=e.index;return Yo().onToggleSelectImg(n)}))("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowCard()}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)})),Fo(),zo(2,"div",18),zo(3,"button",19),Vo(4,"i",13),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit,n=Yo();ws(1),Lo("picture",t)("stateDisplayed",n.stateDisplayed)}}const EI=function(t){return{smallDisplay:t}},II=function(t,e){return{"upload-list__scroll--smallDisplay":t,"upload-list__scroll--window":e}},xI=["imgUploadedImg"],TI=function(t){return{"is-active":t}};function PI(t,e){if(1&t&&(zo(0,"li",14),zo(1,"a"),wa(2),ql(3,"translate"),Fo(),Fo()),2&t){const t=Yo();Lo("ngClass",Fl(4,TI,t.tabActive.value===t.tabs[3].value)),ws(2),Ca(Gl(3,2,t.tabs[3].name))}}function kI(t,e){if(1&t){const t=Bo();zo(0,"images-view",23),$o("switchDisplayWindow",(function(){return Xe(t),Yo(2).switchDisplayWindowImgView()})),Fo()}if(2&t){const t=Yo(2);Lo("stateDisplayed",t.stateDisplayed)("listDisplayed",!1)("multipleImgMode",t.multipleImgMode)("tabDisplayed",t.tabActive.value)("nbRowToShow",2)("fullSize",!1)}}const MI=function(t,e){return{"img-tabs__tabsFirst--small":t,"img-tabs__tabsFirst--window":e}},DI=function(t){return{"img-tabs__tabsFirst__list--upload":t}};function AI(t,e){if(1&t){const t=Bo();zo(0,"div",15),zo(1,"div",16),zo(2,"img-upload",17),$o("imgUploaded",(function(e){return Xe(t),Yo().onImgUploaded(e)})),Fo(),Fo(),zo(3,"div",18),Do(4,kI,1,6,"images-view",19),zo(5,"div",20),zo(6,"upload-list",21,22),$o("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowImgView()})),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Vl(8,MI,"small"===t.stateDisplayed,"window"===t.stateDisplayed)),ws(2),Lo("stateDisplayed",t.stateDisplayed),ws(1),Lo("ngClass",Fl(11,DI,t.imgUpload)),ws(1),Lo("ngIf",!t.imgUpload),ws(1),Lo("hidden",!t.imgUpload),ws(1),Lo("stateDisplayed",t.stateDisplayed)("tabDisplayed",t.tabActive.value)("multipleImgMode",t.multipleImgMode)}}function OI(t,e){if(1&t){const t=Bo();zo(0,"div",24),zo(1,"div",25),zo(2,"images-view",26),$o("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowImgView()})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)("listDisplayed",t.listDisplayed)("multipleImgMode",t.multipleImgMode)("tabDisplayed",t.tabActive.value)("fullSize",!0)}}function RI(t,e){if(1&t){const t=Bo();zo(0,"div",27),zo(1,"div",25),zo(2,"pexels-lib",7),$o("showImgUploaded",(function(){return Xe(t),Yo().onShowImgUploaded()})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)}}function LI(t,e){if(1&t){const t=Bo();zo(0,"div",28),zo(1,"div",25),zo(2,"img-editor",29),$o("editClosed",(function(e){return Xe(t),Yo().onEditClosed(e)})),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(2),Lo("stateDisplayed",t.stateDisplayed)("imgToEdit",t.imgToEdit)}}const NI=function(t){return{small:t}},zI=function(t,e){return{"tabs--notWindow":t,"tabs--notDisplayed":e}},FI=function(t){return{"img-tabs__canva--window":t}},VI=["outerElement"],UI=function(t){return{"pexels-lib__search--smallDisplay":t}};function jI(t,e){if(1&t){const t=Bo();zo(0,"div",8),zo(1,"wz-input-search",9),$o("ngModelChange",(function(e){return Xe(t),Yo().searchValue=e}))("changeDebounced",(function(){return Xe(t),Yo().onSearchNameChanged()})),ql(2,"translate"),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(6,UI,"small"===t.stateDisplayed)),ws(1),Lo("ngModel",t.searchValue)("placeholder",Gl(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===t.stateDisplayed)}}function BI(t,e){if(1&t&&(zo(0,"p",14),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(2);ws(1),Ea("",Gl(2,2,"ImgManager.PexelLib.nbImgFound")," : ",t.nbResult,"")}}function HI(t,e){1&t&&(Uo(0),wa(1," \xa0"),Vo(2,"i",35),jo())}function WI(t,e){if(1&t){const t=Bo();zo(0,"div",32),$o("click",(function(){Xe(t);const e=Yo().$implicit;return Yo(3).uploadPhoto(e,e.src.large2x)})),zo(1,"span"),wa(2),ql(3,"translate"),Fo(),zo(4,"span",33),Vo(5,"i",34),Fo(),Do(6,HI,3,0,"ng-container",6),Fo()}if(2&t){const t=Yo().$implicit;ws(2),Ca(Gl(3,2,"ImgManager.PexelLib.import")),ws(4),Lo("ngIf",t.uploaded)}}function $I(t,e){1&t&&(Uo(0),wa(1),ql(2,"translate"),Vo(3,"span",36),jo()),2&t&&(ws(1),Sa(" ",Gl(2,1,"ImgManager.PexelLib.importation")," "))}const qI=function(t){return{"is-hoverable":t}};function GI(t,e){if(1&t){const t=Bo();zo(0,"div",17),Vo(1,"img",18),zo(2,"div",19),zo(3,"span",20),wa(4),Fo(),zo(5,"div",21),zo(6,"div",22),zo(7,"button",23),Do(8,WI,7,4,"div",24),Do(9,$I,4,3,"ng-container",6),Fo(),Fo(),zo(10,"div",25),zo(11,"div",26),zo(12,"div",27),zo(13,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.portrait)})),zo(14,"p"),wa(15),ql(16,"translate"),Fo(),Vo(17,"i",29),Fo(),zo(18,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.landscape)})),zo(19,"p"),wa(20),ql(21,"translate"),Fo(),Vo(22,"i",30),Fo(),zo(23,"div",28),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(3).uploadPhoto(n,n.src.large2x)})),zo(24,"p"),wa(25),ql(26,"translate"),Fo(),Vo(27,"i",31),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;ws(1),Lo("alt",t.src.medium)("src",t.src.medium,Ji),ws(3),Ea(" ",t.width," x ",t.height," "),ws(1),Lo("ngClass",Fl(16,qI,!t.uploading)),ws(3),Lo("ngIf",!t.uploading),ws(1),Lo("ngIf",t.uploading),ws(6),Ca(Gl(16,10,"ImgManager.PexelLib.portrait")),ws(5),Ca(Gl(21,12,"ImgManager.PexelLib.landscape")),ws(5),Ca(Gl(26,14,"ImgManager.PexelLib.original"))}}function YI(t,e){if(1&t&&(zo(0,"div",15),Do(1,GI,28,18,"div",16),Fo()),2&t){const t=e.$implicit;Lo("@listAnimation",t.photos.length),ws(1),Lo("ngForOf",t.photos)}}function QI(t,e){if(1&t&&(zo(0,"div",10),Do(1,BI,3,4,"p",11),zo(2,"div",12),Do(3,YI,2,2,"div",13),Fo(),Fo()),2&t){const t=Yo();ws(1),Lo("ngIf",t.nbResult),ws(2),Lo("ngForOf",t.photosColumns)}}function KI(t,e){1&t&&(Uo(0),Vo(1,"wz-loader"),jo())}function XI(t,e){1&t&&(zo(0,"div",37),zo(1,"wz-alert",38),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(1),Lo("warning",!0),ws(1),Sa(" ",Gl(3,3,"ImgManager.PexelLib.noResult")," "))}const ZI=function(t){return{"pexels-lib__scroll--smallDisplay":t}};function JI(t,e){1&t&&Vo(0,"i",26)}function tx(t,e){1&t&&Vo(0,"i",27)}function ex(t,e){if(1&t){const t=Bo();zo(0,"button",23),$o("click",(function(){return Xe(t),Yo(2).onToggleImgSelected()})),Do(1,JI,1,0,"i",24),Do(2,tx,1,0,"i",25),zo(3,"span"),wa(4),ql(5,"translate"),Fo(),Fo()}if(2&t){const t=Yo(2);ws(1),Lo("ngIf",!t.picture.selected),ws(1),Lo("ngIf",t.picture.selected),ws(2),Ca(Gl(5,3,"ImgManager.ImgCard.select"))}}function nx(t,e){if(1&t){const t=Bo();zo(0,"div",13),zo(1,"button",14),Vo(2,"i",15),zo(3,"span"),wa(4),Fo(),Fo(),zo(5,"button",16),$o("click",(function(){Xe(t);const e=Yo();return e.onDownloadImg(e.picture.display_name,e.picture.file_name)})),Vo(6,"i",17),zo(7,"span"),wa(8),ql(9,"translate"),Fo(),Fo(),zo(10,"button",18),$o("click",(function(){Xe(t);const e=Yo();return e.onEdit(e.picture)})),Vo(11,"i",19),zo(12,"span"),wa(13),ql(14,"translate"),Fo(),Fo(),zo(15,"button",20),$o("click",(function(){return Xe(t),Yo().activeConfirmDelete=!0})),Vo(16,"i",21),zo(17,"span"),wa(18),ql(19,"translate"),Fo(),Fo(),Do(20,ex,6,5,"button",22),Fo()}if(2&t){const t=Yo();ws(4),Ea("",t.picture.raw_height,"x",t.picture.raw_width,""),ws(4),Ca(Gl(9,6,"ImgManager.ImgCard.download")),ws(5),Ca(Gl(14,8,"ImgManager.ImgCard.edit")),ws(5),Ca(Gl(19,10,"ImgManager.ImgCard.del")),ws(2),Lo("ngIf","window"!==t.stateDisplayed)}}function ix(t,e){if(1&t){const t=Bo();zo(0,"div",28),zo(1,"button",29),$o("click",(function(){return Xe(t),Yo().displayLargeWindow()})),Vo(2,"i",30),Fo(),Fo()}}function sx(t,e){1&t&&(zo(0,"div",31),Vo(1,"i",32),zo(2,"span"),wa(3),ql(4,"translate"),Fo(),Fo()),2&t&&(ws(3),Ca(Gl(4,1,"ImgManager.ImgCard.validImgSmall")))}const rx=function(t){return{"img-card__container__overlay--smallDisplay":t}};function ox(t,e){if(1&t){const t=Bo();zo(0,"div",33),zo(1,"i",34),$o("click",(function(){return Xe(t),Yo().onToggleImgSelected()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(1,rx,"small"===t.stateDisplayed||t.isUploadSection))}}function ax(t,e){1&t&&Vo(0,"span",35)}const lx=function(t){return{fullSize:t}},cx=function(t,e,n){return{smallDisplay:t,imgSelected:e,deletion:n}},hx=function(t){return{show:t}},ux=function(t,e){return{smallNameDisplay:t,focus:e}};function dx(t,e){1&t&&Vo(0,"span",12)}const px=function(t,e,n){return{"img-editor__scroll--full":t,"img-editor__scroll--smallDisplay":e,"img-editor__scroll--window":n}},gx=function(t){return{"img-editor__infoSection__actions__save--disable":t}};function fx(t,e){1&t&&Vo(0,"span",13)}function mx(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"div",15),$o("click",(function(){Xe(t);const e=Yo();return e.onOpenCanva(e.expectedWidth,e.expectedHeight)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),zo(5,"p"),wa(6),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(3),Ca(Gl(4,3,"ImgManager.CanvaBtn.recommanded")),ws(3),Ea("",t.expectedWidth,"*",t.expectedHeight,"")}}function _x(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"div",16),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onOpenCanva(n.value.width,n.value.height)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),zo(5,"p"),wa(6),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;ws(3),Ca(Gl(4,3,t.key)),ws(3),Ea("",t.value.width,"*",t.value.height,"")}}const vx=function(t,e){return{"is-up":t,noTooltip:e}},yx=function(t){return{displayDropDownMenu:t}};function bx(t,e){if(1&t&&(Vo(0,"img",12),ql(1,"imgSrc")),2&t){const t=Yo().$implicit;Lo("src",Yl(1,2,t.file_name,"400"),Ji)("title",t.display_name)}}function wx(t,e){if(1&t&&(Vo(0,"img",12),ql(1,"imgSrc")),2&t){const t=Yo().$implicit;Lo("src",Yl(1,2,t.file_name,"200"),Ji)("title",t.display_name)}}function Cx(t,e){if(1&t){const t=Bo();zo(0,"div",8),$o("cdkDragStarted",(function(){return Xe(t),Yo(2).dragStart=!0}))("cdkDragEnded",(function(){return Xe(t),Yo(2).dragStart=!1})),Do(1,bx,2,5,"img",9),Do(2,wx,2,5,"img",9),zo(3,"div",10),$o("click",(function(){Xe(t);const n=e.index;return Yo(2).removeImg(n)})),wa(4),ql(5,"translate"),Fo(),zo(6,"span",11),wa(7),ql(8,"translate"),Fo(),Fo()}if(2&t){const t=e.index;ws(1),Lo("ngIf",t<1),ws(1),Lo("ngIf",t>0),ws(2),Ca(Gl(5,4,"ImgManager.ImgSelection.deleteImg")),ws(3),Ca(Gl(8,6,"ImgManager.ImgSelection.tooltips"))}}const Sx=function(t){return{"img-selection--visible":t}},Ex=function(t){return[t]};function Ix(t,e){if(1&t){const t=Bo();zo(0,"div",4),zo(1,"div",5,6),$o("cdkDropListDropped",(function(e){return Xe(t),Yo().drop(e)})),Do(3,Cx,9,8,"div",7),Fo(),Fo()}if(2&t){const t=Yo(),e=Ao(1);Lo("ngClass",Fl(3,Sx,t.imgSelectedList&&t.imgSelectedList.length)),ws(1),Lo("cdkDropListConnectedTo",Fl(5,Ex,e)),ws(2),Lo("ngForOf",t.imgSelectedList)}}function xx(t,e){1&t&&(Uo(0),Vo(1,"wz-loader"),jo())}const Tx=[[["","label",""]],[["","item",""]]],Px=["[label]","[item]"];function kx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"div",15),$o("click",(function(){return Xe(t),Yo().confirmCrop()})),ql(2,"translate"),Vo(3,"i",16),zo(4,"p"),wa(5),ql(6,"translate"),Fo(),Fo(),Fo()}2&t&&(ws(1),Lo("nwbToolTip",Gl(2,2,"ImgManager.ImgEditor.ValidtToolTip")),ws(4),Ca(Gl(6,4,"ImgManager.ImgEditor.Valid")))}const Mx=function(t){return{"active-item":t}};function Dx(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.index;return Yo().changeResolutionSize(n)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(4,Mx,t.active)),ws(2),Ca(Gl(4,2,t.label))}}function Ax(t,e){1&t&&Vo(0,"i",20),2&t&&Lo("ngClass",Yo().$implicit.icon)}function Ox(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().applyMethod(n.method)})),Do(2,Ax,1,1,"i",19),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(5,Mx,t.active)),ws(1),Lo("ngIf",t.icon),ws(2),Ca(Gl(5,3,t.label))}}function Rx(t,e){1&t&&Vo(0,"i",20),2&t&&Lo("ngClass",Yo().$implicit.icon)}function Lx(t,e){if(1&t){const t=Bo();Uo(0,17),zo(1,"div",18),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().applyMethod(n.method)})),Do(2,Rx,1,1,"i",19),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),Fo(),jo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngClass",Fl(5,Mx,t.active)),ws(1),Lo("ngIf",t.icon),ws(2),Ca(Gl(5,3,t.label))}}const Nx=["imgLibContainer"];function zx(t,e){if(1&t&&(zo(0,"div"),zo(1,"p",10),wa(2),ql(3,"translate"),Fo(),Fo()),2&t){const t=Yo(2);ws(2),Ea("",Gl(3,2,"ImgManager.ImgLib.nbImg")," : ",t.length,"")}}function Fx(t,e){1&t&&(zo(0,"div"),zo(1,"p",10),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.ImgLib.lastImgs")))}function Vx(t,e){if(1&t){const t=Bo();zo(0,"button",25),$o("click",(function(){return Xe(t),Yo(3).selectImgChosen()})),Vo(1,"i",26),wa(2),ql(3,"translate"),Fo()}if(2&t){const t=Yo(3);Lo("@insertRemoveAnnim",void 0),ws(2),Ea(" ",Gl(3,3,"ImgManager.ImgLib.select")," (",t.nbImgToDelSelected,") ")}}function Ux(t,e){1&t&&Vo(0,"span",30)}function jx(t,e){if(1&t){const t=Bo();zo(0,"button",27),$o("click",(function(){return Xe(t),Yo(3).displayConfirmImgSup()})),Vo(1,"i",28),wa(2),ql(3,"translate"),Do(4,Ux,1,0,"span",29),Fo()}if(2&t){const t=Yo(3);Lo("@insertRemoveAnnim",void 0),ws(2),Ea("",Gl(3,4,"ImgManager.ImgLib.delMlt")," (",t.nbImgToDelSelected,") "),ws(2),Lo("ngIf",t.delListImgLoader)}}const Bx=function(t){return{nbImage:t}};function Hx(t,e){if(1&t&&(zo(0,"p",31),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(3);ws(1),Ca(Yl(2,1,"ImgManager.ImgLib.confirmSupQuestions",Fl(4,Bx,t.nbImgToDelSelected)))}}function Wx(t,e){if(1&t&&(zo(0,"p",31),wa(1),ql(2,"translate"),Fo()),2&t){const t=Yo(3);ws(1),Ca(Yl(2,1,"ImgManager.ImgLib.confirmSupQuestion",Fl(4,Bx,t.nbImgToDelSelected)))}}const $x=function(t){return{"images-view__container__boxAction__confirmSup--visible":t}},qx=function(t){return{actifDisplayed:t}};function Gx(t,e){if(1&t){const t=Bo();zo(0,"div",11),zo(1,"div",12),Do(2,Vx,4,5,"button",13),Do(3,jx,5,6,"button",14),zo(4,"div",15),Do(5,Hx,3,6,"p",16),Do(6,Wx,3,6,"p",16),zo(7,"div"),zo(8,"button",17),$o("click",(function(){return Xe(t),Yo(2).cancelSup()})),wa(9),ql(10,"translate"),Fo(),zo(11,"button",18),$o("click",(function(){return Xe(t),Yo(2).removeListImg()})),wa(12),ql(13,"translate"),Fo(),Fo(),Fo(),Fo(),zo(14,"div",19),zo(15,"div",20),zo(16,"div",21),$o("click",(function(){return Xe(t),Yo(2).onSwitchFormatDisplayed(!1)})),zo(17,"span",22),Vo(18,"i",23),Fo(),Fo(),Fo(),zo(19,"div",20),zo(20,"div",21),$o("click",(function(){return Xe(t),Yo(2).onSwitchFormatDisplayed(!0)})),zo(21,"span",22),Vo(22,"i",24),Fo(),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo(2);ws(2),Lo("ngIf",t.listDisplayed&&t.nbImgToDelSelected&&!t.confirmImgSup&&!t.delListImgLoader&&t.multipleImgMode),ws(1),Lo("ngIf",t.listDisplayed&&t.nbImgToDelSelected&&!t.confirmImgSup),ws(1),Lo("ngClass",Fl(13,$x,t.confirmImgSup)),ws(1),Lo("ngIf",t.nbImgToDelSelected>1),ws(1),Lo("ngIf",1===t.nbImgToDelSelected),ws(3),Sa(" ",Gl(10,9,"ImgManager.ImgLib.cancel")," "),ws(3),Sa(" ",Gl(13,11,"ImgManager.ImgLib.confirm")," "),ws(4),Lo("ngClass",Fl(15,qx,!t.listDisplayed)),ws(4),Lo("ngClass",Fl(17,qx,t.listDisplayed))}}const Yx=function(t,e){return{"images-view__container--uploadTab":t,"images-view__container--window":e}};function Qx(t,e){if(1&t&&(zo(0,"div",8),Do(1,zx,4,4,"div",6),Do(2,Fx,4,3,"div",6),Do(3,Gx,23,19,"div",9),Fo()),2&t){const t=Yo();Lo("ngClass",Vl(4,Yx,"img-upload"===t.tabDisplayed,"window"===t.stateDisplayed)),ws(1),Lo("ngIf","img-upload"!==t.tabDisplayed),ws(1),Lo("ngIf","img-upload"===t.tabDisplayed),ws(1),Lo("ngIf","img-upload"!==t.tabDisplayed)}}function Kx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"mosaic-view",32),$o("picturesListChange",(function(){return Xe(t),Yo().onPicturesListChange()}))("filtersChange",(function(){return Xe(t),Yo().onFiltersChange()}))("disableChange",(function(e){return Xe(t),Yo().disable=e}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)}))("switchDisplayWindow",(function(){return Xe(t),Yo().switchDisplayWindowMosaic()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("picturesList",t.picturesList)("tableFilters",t.tableFilters)("disable",t.disable)("nbFakeImg",t.nbFakeImg)("stateDisplayed",t.stateDisplayed)("tabDisplayed",t.tabDisplayed)("displayPexelsResults",t.displayPexelsResults)("isLoading",t.isLoading)("fullSize",t.fullSize)}}function Xx(t,e){if(1&t){const t=Bo();zo(0,"div"),zo(1,"table-view",33),$o("picturesListChange",(function(){return Xe(t),Yo().onPicturesListChange()}))("filtersChange",(function(){return Xe(t),Yo().onFiltersChange()}))("disableChange",(function(e){return Xe(t),Yo().disable=e}))("pictureNameChange",(function(e){return Xe(t),Yo().onRenamePicture(e)})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("picturesList",t.picturesList)("tableFilters",t.tableFilters)("disable",t.disable)("displayPexelsResults",t.displayPexelsResults)("stateDisplayed",t.stateDisplayed)("isLoading",t.isLoading)}}function Zx(t,e){if(1&t){const t=Bo();zo(0,"div",34),zo(1,"pexels-lib",35),$o("showImgUploaded",(function(){return Xe(t),Yo().onShowImgUploaded()})),Fo(),Fo()}if(2&t){const t=Yo();Lo("@easeInOut","in"),ws(1),Lo("searchValue",t.tableFilters.searchValue)("disableSearch",!0)}}const Jx=function(t,e){return{fullSize:t,small:e}},tT=function(t,e,n,i,s,r,o){return{"images-view__scroll--hide--mosaic":t,"images-view__scroll--hide--mosaic--small":e,"images-view__scroll--hide--table":n,"images-view__scroll--full":i,"images-view__scroll--smallDisplay":s,"images-view__scroll--smallUploadDisplay":r,"images-view__scroll--window":o}},eT=function(t){return{"mosaic__search--small":t}};function nT(t,e){if(1&t){const t=Bo();zo(0,"div",5),zo(1,"wz-input-search",6),$o("ngModelChange",(function(e){return Xe(t),Yo().tableFilters.searchValue=e}))("changeDebounced",(function(e){return Xe(t),Yo().onSearchChange(e)})),ql(2,"translate"),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(6,eT,"small"===t.stateDisplayed)),ws(1),Lo("ngModel",t.tableFilters.searchValue)("placeholder",Gl(2,4,"ImgManager.SearchBar.placeholder"))("smallPadding","small"===t.stateDisplayed)}}function iT(t,e){if(1&t){const t=Bo();zo(0,"img-card",10),$o("toggleImgSelected",(function(){Xe(t);const n=e.index;return Yo(2).onToggleSelectImg(n)}))("pictureNameChange",(function(e){return Xe(t),Yo(2).onCardRenamePicture(e)}))("switchDisplayWindow",(function(){return Xe(t),Yo(2).switchDisplayWindowCard()})),Fo()}if(2&t){const t=e.$implicit,n=Yo(2);Lo("picture",t)("stateDisplayed",n.stateDisplayed)("tabDisplayed",n.tabDisplayed)("disable",n.disable)("fullSize",n.fullSize)}}const sT=function(t){return{"mosaic__container__cards__fakeImg--smallFakeImg":t}};function rT(t,e){if(1&t&&Vo(0,"div",11),2&t){const t=Yo(2);Lo("ngClass",Fl(1,sT,"small"===t.stateDisplayed||"img-upload"===t.tabDisplayed))}}const oT=function(t){return{"mosaic__container__cards--padding":t}};function aT(t,e){if(1&t&&(zo(0,"div",7),Do(1,iT,1,5,"img-card",8),Do(2,rT,1,3,"div",9),ql(3,"numberToArray"),Fo()),2&t){const t=Yo();Lo("ngClass",Fl(6,oT,"window"!==t.stateDisplayed))("@listAnimation",t.picturesList.length),ws(1),Lo("ngForOf",t.picturesList),ws(1),Lo("ngForOf",Gl(3,4,t.nbFakeImg))}}function lT(t,e){1&t&&(zo(0,"div",12),Vo(1,"wz-loader",13),Fo()),2&t&&(ws(1),Lo("small",!0))}function cT(t,e){if(1&t){const t=Bo();zo(0,"div",14),zo(1,"wz-pagination",15),$o("pageChange",(function(){return Xe(t),Yo().onFiltersChange()})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("pagination",t.tableFilters)}}const hT=function(t,e,n){return{fullSize:t,small:e,"mosaic--displayPexelsImg":n}};function uT(t,e){1&t&&(zo(0,"div",25),Vo(1,"i",26),Fo())}const dT=function(t){return{imgSelected:t}},pT=function(t){return{pictureDeletion:t}},gT=function(t){return{desabled:t}};function fT(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("checkBoxValueChange",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),zo(1,"div",7),zo(2,"div",8),zo(3,"div",9),$o("click",(function(){Xe(t);const n=e.index;return Yo().onToggleSelectImg(n)})),zo(4,"img",10),$o("error",(function(n){Xe(t);const i=e.$implicit,s=Yo();return i.imgNotLoaded=!0,s.onPictureNotLoading(n)})),ql(5,"imgSrc"),Fo(),Do(6,uT,2,0,"div",11),Fo(),zo(7,"input",12),$o("ngModelChange",(function(n){return Xe(t),e.$implicit.display_name=n}))("focus",(function(){Xe(t);const n=e.$implicit;return Yo().previousName=n.display_name}))("blur",(function(){Xe(t);const n=e.$implicit;return Yo().onNameChange(n.id_file)}))("click",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),Fo(),Fo(),Fo(),zo(8,"div",13),$o("click",(function(){Xe(t);const n=e.index;return Yo().onToggleDelSelection(n)})),zo(9,"p",14),wa(10),Fo(),Fo(),zo(11,"div",15),zo(12,"dropdown",16),Uo(13,17),zo(14,"div",18),zo(15,"span"),Vo(16,"i",19),Fo(),Fo(),jo(),Uo(17,20),zo(18,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onDownloadImg(n.display_name,n.file_name)})),Vo(19,"i",22),wa(20,"\xa0 "),zo(21,"p"),wa(22),ql(23,"translate"),Fo(),Fo(),jo(),Uo(24,20),zo(25,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onEdit(n)})),Vo(26,"i",23),wa(27,"\xa0 "),zo(28,"p"),wa(29),ql(30,"translate"),Fo(),Fo(),jo(),Uo(31,20),zo(32,"div",21),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo().onRemoveImg(n)})),Vo(33,"i",24),wa(34,"\xa0 "),zo(35,"p"),wa(36),ql(37,"translate"),Fo(),Fo(),jo(),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit;Lo("checkBoxValue",t.delSelected),ws(3),Lo("ngClass",Fl(23,dT,t.selected)),ws(1),Lo("src",Yl(5,14,t.file_name,"100"),Ji)("ngClass",Fl(25,pT,t.deleted)),ws(2),Lo("ngIf",t.imgNotLoaded),ws(1),Lo("ngModel",t.display_name)("ngClass",Fl(27,gT,t.deleted))("disabled",t.deleted),ws(3),Ea("",t.raw_height,"x",t.raw_width,""),ws(2),Lo("disable",t.deleted),ws(10),Ca(Gl(23,17,"ImgManager.ImgList.download")),ws(7),Ca(Gl(30,19,"ImgManager.ImgList.edit")),ws(7),Ca(Gl(37,21,"ImgManager.ImgList.remove"))}}function mT(t,e){if(1&t){const t=Bo();zo(0,"div",8),zo(1,"wz-checkbox",9),$o("change",(function(e){return Xe(t),Yo().onToggleAllCheckBox(e)})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("id",t.headerCheckBoxId)("alone",!0)}}function _T(t,e){if(1&t){const t=Bo();zo(0,"div",10),zo(1,"wz-input-search",11),$o("ngModelChange",(function(e){return Xe(t),Yo().tableFilters.searchValue=e}))("changeDebounced",(function(e){return Xe(t),Yo().searchChange(e)})),Fo(),Fo()}if(2&t){const t=Yo();ws(1),Lo("ngModel",t.tableFilters.searchValue)("placeholder",t.placeholder)("smallPadding",!0)}}function vT(t,e){1&t&&(zo(0,"div",12),Vo(1,"wz-loader",13),Fo()),2&t&&(ws(1),Lo("small",!0))}function yT(t,e){1&t&&Xo(0,1,["*ngIf","!isLoading"])}function bT(t,e){if(1&t){const t=Bo();zo(0,"wz-pagination",14),$o("pageChange",(function(){return Xe(t),Yo().pageChange()})),Fo()}2&t&&Lo("pagination",Yo().tableFilters)}const wT=[[["","headerCell",""]],[["","tableRow",""]]],CT=["[headerCell]","[tableRow]"],ST=function(t){return{"wz-pagination__wrapper__arrows__arrow--disabled":t}};function ET(t,e){if(1&t){const t=Bo();zo(0,"div",1),zo(1,"div",2),zo(2,"div",3),zo(3,"p"),wa(4),ql(5,"translate"),Fo(),zo(6,"wz-page-selector",4),$o("pageChange",(function(e){return Xe(t),Yo().onGotoPageChange(e)})),Fo(),Fo(),zo(7,"div",5),zo(8,"p"),wa(9),ql(10,"customPagniationText"),Fo(),Fo(),zo(11,"div",6),zo(12,"div",7),$o("click",(function(){return Xe(t),Yo().decrementPage()})),Vo(13,"span",8),Fo(),zo(14,"div",9),$o("click",(function(){return Xe(t),Yo().incrementPage()})),ql(15,"IsLastPage"),Vo(16,"span",8),Fo(),Fo(),Fo(),Fo()}if(2&t){const t=Yo();ws(4),Ca(Gl(5,6,"PaginationComponent.page")),ws(2),Lo("pagination",t.pagination)("totalItems",t.pagination.totalItems),ws(3),Ca(Ql(10,8,t.pagination.currentPage,t.pagination.totalItems,t.pagination.itemsPerPage)),ws(3),Lo("ngClass",Fl(16,ST,1===t.pagination.currentPage)),ws(2),Lo("ngClass",Fl(18,ST,Ql(15,12,t.pagination.currentPage,t.pagination.totalItems,t.pagination.itemsPerPage)))}}const IT=function(t,e){return{"field--nowrap":t,alone:e}};function xT(t,e){1&t&&Vo(0,"p",3),2&t&&Lo("innerHTML",Yo().text,Xi)}const TT=function(t){return{"is-small":t}},PT=function(t){return{position:t}};function kT(t,e){1&t&&Vo(0,"i",2),2&t&&Lo("ngClass",Yo().iconClass)}const MT=function(t,e){return{success:t,warning:e}},DT=["*"],AT=function(t){return{width:t}};function OT(t,e){if(1&t){const t=Bo();zo(0,"div",5),$o("click",(function(){Xe(t);const e=Yo();return e.openAbsoluteSelect=!e.openAbsoluteSelect})),zo(1,"input",6),$o("change",(function(e){Xe(t);const n=Yo();return n.onGotoPageChange(e,!1),n.openAbsoluteSelect=!1})),Fo(),Vo(2,"i",7),Fo()}if(2&t){const t=Yo();ws(1),Lo("value",t.pagination.currentPage)("ngStyle",Fl(2,AT,40+10*t.pagination.currentPage.toString().length+"px"))}}const RT=function(t){return{selected:t}};function LT(t,e){if(1&t){const t=Bo();zo(0,"div",10),zo(1,"div",11),$o("click",(function(){Xe(t);const n=e.$implicit;return Yo(2).onGotoPageChange(n.value,!0)})),zo(2,"span"),wa(3),Fo(),Fo(),Fo()}if(2&t){const t=e.$implicit,n=Yo(2);ws(1),Lo("ngClass",Fl(2,RT,t.value===n.pagination.currentPage)),ws(2),Ca(t.display)}}function NT(t,e){if(1&t&&(zo(0,"div",8),Do(1,LT,4,4,"div",9),ql(2,"LargeNumberOfPage"),Fo()),2&t){const t=Yo();ws(1),Lo("ngForOf",Ql(2,1,t.pagination.totalItems,t.pagination.itemsPerPage,t.pagination.currentPage).slice().reverse())}}function zT(t,e){if(1&t&&(Uo(0),zo(1,"option",14),wa(2),Fo(),jo()),2&t){const t=e.$implicit,n=Yo(2);ws(1),Lo("selected",t===n.pagination.currentPage)("value",t),ws(1),Sa(" ",t," ")}}function FT(t,e){if(1&t){const t=Bo();Uo(0),zo(1,"select",12),$o("change",(function(e){return Xe(t),Yo().onGotoPageChange(e,!1)})),Do(2,zT,3,3,"ng-container",13),ql(3,"ArrayTotalPages"),Fo(),jo()}if(2&t){const t=Yo();ws(1),Lo("ngStyle",Fl(5,AT,40+10*t.pagination.currentPage.toString().length+"px")),ws(1),Lo("ngForOf",Yl(3,2,t.pagination.totalItems,t.pagination.itemsPerPage))}}const VT=["search"];function UT(t,e){1&t&&Vo(0,"p",5),2&t&&Lo("innerHTML",Yo().label,Xi)}function jT(t,e){if(1&t&&Vo(0,"span",10),2&t){const t=Yo(2);Lo("innerHTML",t.items[t.indexItemSelected].icon,Xi)}}const BT=function(t){return{"select-disabled":t}};function HT(t,e){if(1&t){const t=Bo();zo(0,"div",6),$o("click",(function(){Xe(t);const e=Yo();return!e.disabled&&(e.openCategories=!e.openCategories)})),Do(1,jT,1,1,"span",7),Vo(2,"span",8),ql(3,"translate"),zo(4,"span"),Vo(5,"i",9),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Fl(5,BT,t.disabled)),ws(1),Lo("ngIf",-1!==t.indexItemSelected),ws(1),Lo("innerHTML",Gl(3,3,-1!==t.indexItemSelected?t.items[t.indexItemSelected].name:t.placeholder),Xi)}}function WT(t,e){if(1&t){const t=Bo();zo(0,"div",16),Vo(1,"i",17),zo(2,"input",18,19),$o("ngModelChange",(function(e){return Xe(t),Yo(2).searchValue=e})),Fo(),Fo()}if(2&t){const t=Yo(2);ws(2),Lo("ngModel",t.searchValue)}}function $T(t,e){if(1&t){const t=Bo();zo(0,"span",20),$o("click",(function(){Xe(t);const e=Yo(2);return e.openCategories=!e.openCategories})),Fo()}if(2&t){const t=Yo(2);Lo("innerHTML",t.items[t.indexItemSelected].icon,Xi)}}const qT=function(t,e){return{"select-disabled":t,"open-search":e}};function GT(t,e){if(1&t){const t=Bo();zo(0,"div",11),Do(1,WT,4,1,"div",12),Do(2,$T,1,1,"span",13),zo(3,"span",14),$o("click",(function(){return Xe(t),Yo().showCategories()})),Fo(),zo(4,"span",15),$o("click",(function(){Xe(t);const e=Yo();return e.openCategories=!e.openCategories})),Vo(5,"i",9),Fo(),Fo()}if(2&t){const t=Yo();Lo("ngClass",Vl(4,qT,t.disabled,t.openCategories)),ws(1),Lo("ngIf",t.openCategories&&!t.disabled),ws(1),Lo("ngIf",(null==t.items[t.indexItemSelected]?null:t.items[t.indexItemSelected].icon)&&!t.openCategories),ws(1),Lo("innerHTML",null!=t.items[t.indexItemSelected]&&t.items[t.indexItemSelected].name?t.items[t.indexItemSelected].name:t.placeholder,Xi)}}function YT(t,e){1&t&&Vo(0,"i",30),2&t&&Lo("classList",Yo(4).callToAction.icon)}function QT(t,e){if(1&t&&(zo(0,"strong"),wa(1),Fo()),2&t){const t=Yo(4);ws(1),Ca(t.callToAction.boldText)}}function KT(t,e){if(1&t){const t=Bo();zo(0,"div",27),zo(1,"div",15),$o("click",(function(){return Xe(t),Yo(3).onClickCallToAction()})),Do(2,YT,1,1,"i",28),Do(3,QT,2,1,"strong",29),zo(4,"span"),wa(5),Fo(),Fo(),Fo()}if(2&t){const t=Yo(3);ws(2),Lo("ngIf",t.callToAction.icon),ws(1),Lo("ngIf",t.callToAction.boldText),ws(2),Ca(null==t.callToAction?null:t.callToAction.name)}}function XT(t,e){1&t&&Vo(0,"span",10),2&t&&Lo("innerHTML",Yo(2).$implicit.icon,Xi)}const ZT=function(t){return{selected:t}};function JT(t,e){if(1&t){const t=Bo();zo(0,"div",33),$o("click",(function(){Xe(t);const e=Yo().$implicit;return Yo(3).onSelectItem(e.id)})),Do(1,XT,1,1,"span",7),wa(2),ql(3,"translate"),Fo()}if(2&t){const t=Yo().$implicit;Lo("ngClass",Fl(5,ZT,t.selected)),ws(1),Lo("ngIf",t.icon),ws(1),Sa("",Gl(3,3,t.name)," ")}}function tP(t,e){if(1&t){const t=Bo();zo(0,"div",31),$o("click",(function(){return Xe(t),Yo(3).onClose()})),Do(1,JT,4,7,"div",32),Fo()}if(2&t){const t=e.$implicit;ws(1),Lo("ngIf",!t.hide)}}const eP=function(){return{suppressScrollX:!0}};function nP(t,e){if(1&t&&(zo(0,"div",24),Do(1,KT,6,3,"div",25),Do(2,tP,2,1,"div",26),ql(3,"selectFilters"),Fo()),2&t){const t=Yo(2);Lo("perfectScrollbar",function(t,e,n){const i=rn()+6,s=Qe();return s[i]===ms?So(s,i,e()):Eo(s,i)}(0,eP)),ws(1),Lo("ngIf",t.callToAction),ws(1),Lo("ngForOf",Yl(3,3,t.items,t.searchValue))}}function iP(t,e){1&t&&(zo(0,"div",34),zo(1,"span"),wa(2),ql(3,"translate"),Fo(),Fo()),2&t&&(ws(2),Ca(Gl(3,1,"wac.datatable.noresult")))}const sP=function(t,e){return{hidden:t,open:e}},rP=function(t){return{"max-width":t}};function oP(t,e){if(1&t&&(zo(0,"div",21),Do(1,nP,4,7,"div",22),Do(2,iP,4,3,"div",23),ql(3,"selectFilters"),Fo()),2&t){const t=Yo();var n;const e=!(null!=(n=Yl(3,4,t.items,t.searchValue))&&n.length);Lo("ngClass",Vl(7,sP,!t.openCategories,"open"===t.type))("ngStyle",Fl(10,rP,t.maxWidthItems)),ws(1),Lo("ngIf",t.items.length),ws(1),Lo("ngIf",e)}}let aP=(()=>{let t=class{constructor(){this.imgSelectedList=[],this.multipleImgMode=!1,this.imgSelectionSubscriber=[],this.imgListLoading=new yg}getImgSelection(){return this.imgSelectedList}setImgSelection(t){this.imgSelectedList.length=0,t&&t.length&&t.forEach(t=>this.imgSelectedList.push(t)),this.emitImgSelectionChange()}addImgSelected(t){this.multipleImgMode?this.imgSelectedList.push(t):this.imgSelectedList=[t],this.emitImgSelectionChange()}getImgSelectionChange(){return new b(t=>{this.imgSelectionSubscriber.push(t)})}emitImgSelectionChange(){this.imgSelectionSubscriber.map(t=>t.next(JSON.parse(JSON.stringify(this.imgSelectedList))))}removeImgSelectedByIndex(t){this.imgSelectedList.splice(t,1),this.emitImgSelectionChange()}removeImgSelectedById(t){if(!this.multipleImgMode)return void(this.imgSelectedList=[]);let e=0;for(const n of this.imgSelectedList){if(n.id_file===t){this.removeImgSelectedByIndex(e);break}e++}}removeImgSelectionByIds(t){if(this.multipleImgMode)for(let e=this.imgSelectedList.length-1;e>-1;e--)-1!==t.indexOf(this.imgSelectedList[e].id_file)&&this.removeImgSelectedByIndex(e);else this.imgSelectedList=[]}removeAllImgSelected(){this.imgSelectedList.length=0,this.emitImgSelectionChange()}setMultipleImgMode(t){this.multipleImgMode=t}initImgSelectedList(t){t?this.imgSelectedList=t:this.imgSelectedList&&this.imgSelectedList.length?this.imgSelectedList.splice(0,this.imgSelectedList.length):this.imgSelectedList=[]}emitImgListLoading(t){this.imgListLoading.next(t)}getImgListLoadingEventListner(){return this.imgListLoading.asObservable()}moveImgOrder(t){this.imgSelectedList.splice(t.currentIndex,0,this.imgSelectedList.splice(t.previousIndex,1)[0]),this.emitImgSelectionChange()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class lP{}let cP=(()=>{let t=class{constructor(t){this.http=t,this.params=(new Og).set("limit","20").set("page","1"),this.pageFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!0,pageficheProduct:!0},this.angularFicheProductConfig={stateDisplayed:"closed",multipleImgMode:!0,showImgManagerModule:!0,showSelection:!0,displayBtn:!1,pageficheProduct:!0},this.wiziblockConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1},this.simpleWithButtonOpenerConfig={stateDisplayed:"closed",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!0},this.fullWindowConfig={stateDisplayed:"window",multipleImgMode:!1,showImgManagerModule:!0,showSelection:!1,displayBtn:!1}}setApiConfig(t,e){this.imgManagerRoute=t,this.shopToken=e}getOptionsHeaders(t){const e={headers:new Mg({Authorization:"Bearer "+this.shopToken})};return t&&(this.getParams(t),e.params=this.params),e}getShopImgList(t){return this.http.get(this.imgManagerRoute+"/images",this.getOptionsHeaders(t))}getShopTotalImgList(t){return this.http.get(this.imgManagerRoute+"/total/image",this.getOptionsHeaders(t))}getShopImg(t){return this.http.get(`${this.imgManagerRoute}/images/${t}`,this.getOptionsHeaders())}getParams(t){this.params=new Og,this.params=this.params.set("id_file:sort","desc");for(const e in t)this.params=this.params.set(e,t[e])}uploadFile(t){return this.http.post(this.imgManagerRoute+"/images/template",t,this.getOptionsHeaders())}uploadFileByUrl(t,e){return this.http.post(this.imgManagerRoute+"/images/template",{url:t,fileName:e},this.getOptionsHeaders())}replaceImg(t,e){return this.http.put(`${this.imgManagerRoute}/images/${e}/replace`,{imageBase64:t,type:"RAW"},this.getOptionsHeaders())}changeImgName(t,e){return this.http.put(`${this.imgManagerRoute}/images/${e}?file_name=${t}`,null,this.getOptionsHeaders())}removeImg(t){return this.http.delete(`${this.imgManagerRoute}/images/${t}`,this.getOptionsHeaders())}removeMultipleImg(t){return this.http.post(this.imgManagerRoute+"/images-multiple-delete",{id_array:t},this.getOptionsHeaders())}getImgManagerDisplayConfig(t){switch(t){case"window":return this.fullWindowConfig;case"wizi-block":return this.wiziblockConfig;case"fiche-product":return this.pageFicheProductConfig;case"simple-with-button":return this.simpleWithButtonOpenerConfig;case"angular-fiche-product":return this.angularFicheProductConfig;default:return}}getAllImgManagerDisplayConfig(){return[this.fullWindowConfig,this.wiziblockConfig,this.pageFicheProductConfig,this.simpleWithButtonOpenerConfig]}};return t.\u0275fac=function(e){return new(e||t)(Yt(Wg))},t.\u0275prov=ht({factory:function(){return new t(Yt(Wg))},token:t,providedIn:"root"}),t})(),hP=(()=>{let t=class{constructor(){this.imgCDNConfig=null}setImgCDNConfig(t){this.imgCDNConfig=t}getUrlImg(t){const e=Object.keys(this.imgCDNConfig).filter(e=>new RegExp(t,"i").test(e))[0];return this.imgCDNConfig[e]}getAllSize(){return Object.keys(this.imgCDNConfig).map(t=>t.match(/_(\w+)_/)[1])}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),uP=(()=>{let t=class{constructor(t,e){this.imgManagerService=t,this.imgCDNService=e}setExternalConfig(t){this.externalConfig=t,this.imgManagerService.setApiConfig(t.api.image_manager_route,t.api.shop_token),this.imgCDNService.setImgCDNConfig(t.imgCDNConfig)}getCanvaApiURL(){return this.externalConfig.api.canva_url}getCanvaApiToken(){return this.externalConfig.api.canva_token}getRouteAssets(){return this.externalConfig.api.assets_route}getPexelsApiURL(){return this.externalConfig.api.pexels_route}getPexelsApiToken(){return this.externalConfig.api.pexels_token}getShopCategory(){return this.externalConfig.api.shop_category}};return t.\u0275fac=function(e){return new(e||t)(Yt(cP),Yt(hP))},t.\u0275prov=ht({factory:function(){return new t(Yt(cP),Yt(hP))},token:t,providedIn:"root"}),t})(),dP=(()=>{let t=class{constructor(){this.userdisplayPreference="WzImgManagerListDisplayed"}setUserDisplayPreference(t){localStorage.setItem(this.userdisplayPreference,""+t)}getUserDisplayPreference(){return"true"==localStorage.getItem(this.userdisplayPreference)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),pP=(()=>{let t=class{constructor(t){this.externalConfigService=t,this.bindExpectedImgSizeEvent=new wg(null),this.bindExpectedSizeDone=this.bindExpectedImgSizeEvent.asObservable()}setCanvaApiConfig(){this.canvaApiURL=this.externalConfigService.getCanvaApiURL(),this.canvaApiKey=this.externalConfigService.getCanvaApiToken()}getCanvaLogo(){return this.externalConfigService.getRouteAssets()+"canva/icon_canva.svg"}bindEventExepectedImgSizeChange(){return this.bindExpectedSizeDone}expectedImgSizesChange(t){this.bindExpectedImgSizeEvent.next(t)}getCanvaApi(){return this.canvaApiURL&&this.canvaApiKey||this.setCanvaApiConfig(),new b(t=>{this.loadCanva().subscribe({complete:()=>{this.canvaApi&&Canva.DesignButton?(t.next(this.canvaApi),t.complete()):this.initializeCanva(t)}})})}initializeCanva(t){Canva.DesignButton&&Canva.DesignButton.initialize({apiKey:this.canvaApiKey}).then(e=>{this.canvaApi=e,t.next(this.canvaApi),t.complete()})}loadCanva(){return new b(t=>{this.canvaApi?t.complete():this.loadCanvaScript(t)})}loadCanvaScript(t){const e=document.createElement("script");e.src=this.canvaApiURL,e.type="text/javascript",e.async=!1,e.charset="utf-8",e.onload=()=>{t.complete()},document.getElementsByTagName("head")[0].appendChild(e)}};return t.\u0275fac=function(e){return new(e||t)(Yt(uP))},t.\u0275prov=ht({factory:function(){return new t(Yt(uP))},token:t,providedIn:"root"}),t})(),gP=(()=>{let t=class{constructor(){this.imgToEditEvent=new I,this.imgRemoved=new I,this.imgAdded=new I,this.listDisplayedChange=new I}emitImgRemoved(t){this.imgRemoved.next(t)}getImgRemovedEventListner(){return this.imgRemoved.asObservable()}emitImgToEdit(t){this.imgToEditEvent.next(t)}getImgToEditEventListner(){return this.imgToEditEvent.asObservable()}emitImgAdded(t){this.imgAdded.next(t)}getImgAddedEventListner(){return this.imgAdded.asObservable()}emitlistDisplayedChange(t){this.listDisplayedChange.next(t)}getlistDisplayedChange(){return this.listDisplayedChange.asObservable()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),fP=(()=>{let t=class{constructor(){this.documentEventSource=new I,this.documentEventDone=this.documentEventSource.asObservable(),this.documentScrollSource=new I,this.documentScrollDone=this.documentScrollSource.asObservable()}documentEvent(){return this.documentEventDone}setDocumentEventListener(){document.body.addEventListener("click",t=>{this.documentEventSource.next(t.target)})}documentScroll(){return this.documentScrollDone}setScrollEventListener(){window.onscroll=()=>{this.documentScrollSource.next(window)}}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),mP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.imgSelectionService=t,this.externalConfigService=e,this.userSettingsService=n,this.canvaService=i,this.imgEventService=s,this.domService=r,this.showSelection=!1,this.imgManagerClosed=new Zl,this._multipleImgMode=!1,this._showImgManagerModule=!1,this.close=!1,this.listDisplayed=!1,this.hideTab=!1}set multipleImgMode(t){this._multipleImgMode=t,this.imgSelectionService.setMultipleImgMode(this._multipleImgMode)}get multipleImgMode(){return this._multipleImgMode}set showImgManagerModule(t){this._showImgManagerModule=t,t&&this.displaySmall()}get showImgManagerModule(){return this._multipleImgMode}onKeydownHandler(t){this.stateDisplayed&&"window"!==this.stateDisplayed&&this.onClose()}ngOnInit(){this.externalConfigService.setExternalConfig(this.externalConfig),this.imgSelectionService.setMultipleImgMode(this._multipleImgMode),this.imgSelectionService.initImgSelectedList(null),this.selectImgEvent=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{t&&t.length&&this.checkCloseImgManager()&&this.onClose()}),this.checkUserDisplayPreference(),this.listDisplayedEvent=this.imgEventService.getlistDisplayedChange().subscribe(t=>this.listDisplayed=t),this.domService.setDocumentEventListener()}checkUserDisplayPreference(){"window"!==this.stateDisplayed&&"full"!==this.stateDisplayed||(this.listDisplayed=this.userSettingsService.getUserDisplayPreference())}setCurrentTab(t){this.hideTab="img-edition"===t}displaySmall(){"window"!==this.stateDisplayed&&setTimeout(()=>{this.stateDisplayed="small",this.addBodyBottomPaddingForModule()},10)}openSmall(){this.stateDisplayed="small",this.setBodyMainScroll(),this.listDisplayed=!1}openFull(){this.stateDisplayed="full",this.checkUserDisplayPreference(),this.hideBodyMainScroll()}onClose(){this.stateDisplayed="closed",this.hideTab=!1,this.setBodyMainScroll(),this.removeBodyBottomPaddingForModule(),setTimeout(()=>{this.imgManagerClosed.emit()},250)}onImgManagerClosed(){this.onClose()}checkCloseImgManager(){return!this.multipleImgMode&&"window"!==this.stateDisplayed}hideBodyMainScroll(){const t=document.getElementsByTagName("html")[0];this.overflowHTML||(this.overflowHTML=t.style.overflowY),t.style.overflowY="hidden"}setBodyMainScroll(){document.getElementsByTagName("html")[0].style.overflowY=this.overflowHTML?this.overflowHTML:"scroll"}addBodyBottomPaddingForModule(){const t=document.getElementsByTagName("body")[0];this.bodyPadding=this.bodyPadding?parseInt(t.style.paddingBottom):0,t.style.paddingBottom=this.bodyPadding+300+"px"}removeBodyBottomPaddingForModule(){void 0!==this.bodyPadding&&(document.getElementsByTagName("body")[0].style.paddingBottom=this.bodyPadding+"px",this.bodyPadding=0)}changeDisplayTab(){this.stateDisplayed="full"}ngOnDestroy(){this.selectImgEvent.unsubscribe(),this.canvaService.expectedImgSizesChange(null),this.listDisplayedEvent.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP),Oo(uP),Oo(dP),Oo(pP),Oo(gP),Oo(fP))},t.\u0275cmp=pe({type:t,selectors:[["wz-img-manager"]],hostBindings:function(t,e){1&t&&$o("keydown.escape",(function(t){return e.onKeydownHandler(t)}),!1,Hn)},inputs:{showSelection:"showSelection",multipleImgMode:"multipleImgMode",showImgManagerModule:"showImgManagerModule",stateDisplayed:"stateDisplayed",externalConfig:"externalConfig"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:3,vars:2,consts:[[1,"wz-img-manager"],["class","wz-img-manager__selectionHandler",4,"ngIf"],["class","wz-img-manager__module",3,"ngClass",4,"ngIf"],[1,"wz-img-manager__selectionHandler"],[1,"wz-img-manager__module",3,"ngClass"],["class","wz-img-manager__module__header",4,"ngIf"],[1,"wz-img-manager__module__content","wz-block",3,"ngClass"],[3,"stateDisplayed","multipleImgMode","listDisplayed","imgManagerClosed","switchDisplayWindow","currentTab"],[1,"wz-img-manager__module__header"],[3,"click",4,"ngIf"],[3,"click"],[1,"fal","fa-compress-alt"],[1,"fal","fa-expand-alt"],[1,"fal","fa-times"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,oI,2,0,"div",1),Do(2,gI,4,13,"div",2),Fo()),2&t&&(ws(1),Lo("ngIf",e.showSelection),ws(1),Lo("ngIf",e._showImgManagerModule))},directives:function(){return[Xh,DP,Gh,CP]},encapsulation:2}),t})();const _P=Fu("easeInOut",[Bu("in",ju({opacity:1})),Wu(":enter",[ju({opacity:0}),Vu("0.5s ease-in-out")])]);let vP=(()=>{let t=class{constructor(t,e){this.nwbAlertService=t,this.translateService=e,this.actionMsg="ImgManager.alert.action",this.alertConfig={message:"",duration:5e3}}openAlert(t){this.closePreviousAlert(),this.translateService.get(t).subscribe(e=>{this.alertConfig.message=e,this.setAlertColor(t),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}openAlertWithBackendRespons(t,e){this.translateService.get(t).subscribe(t=>{this.alertConfig.message=t,this.alertConfig.message+="<br/>"+JSON.parse(e).message,this.closePreviousAlert(),this.alertRefComponent=this.nwbAlertService.open(this.alertConfig),this.alertRefComponent.afterClosed().subscribe()})}closePreviousAlert(){this.alertRefComponent&&this.alertRefComponent.dismiss()}setAlertColor(t){const e=/error/i.test(t);this.alertConfig.color=e?"is-danger":"is-success"}};return t.\u0275fac=function(e){return new(e||t)(Yt(Fw),Yt(Ff))},t.\u0275prov=ht({factory:function(){return new t(Yt(Fw),Yt(Ff))},token:t,providedIn:"root"}),t})(),yP=(()=>{let t=class{constructor(t,e,n){this.imgManager=t,this.alertService=e,this.externalConfigService=n,this.files=[],this.isLoading=!1,this.imgUploaded=new Zl,this.loadingText="ImgManager.ImgUpload.loading",this.errorUploadingImg="ImgManager.ImgUpload.errorUploadingImg",this.errorNotImg="ImgManager.ImgUpload.errorNotImg"}ngOnInit(){this.assetsIcon=this.getAssets()}filesChangeByClick(t){this.uploadFile(t.target.files)}getAssets(){return this.externalConfigService.getRouteAssets()+"img/icon_picture.svg"}filesChangeByDragAndDrop(t){this.removeDragAndDropStyle(),this.uploadFile(t)}uploadFile(t){if(t&&!t.length)return;this.isLoading=!0;const e=[];for(const n of t){const t=new FormData;t.append("image",n,n.name),this.isFileImage(n.type)?e.push(this.imgManager.uploadFile(t)):(this.alertService.openAlert(this.errorNotImg),this.isLoading=!1)}Cg(e).subscribe(t=>{this.onImgUpload(t),this.isLoading=!1},t=>{this.alertService.openAlert(this.errorUploadingImg),this.isLoading=!1})}onImgUpload(t){this.imgUploaded.emit(t)}isFileImage(t){return"image"===t.split("/")[0]}removeDragAndDropStyle(){this.dragAndDropBox.nativeElement.style=""}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(vP),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["img-upload"]],viewQuery:function(t,e){var n;1&t&&uc(fI,!0),2&t&&cc(n=fc())&&(e.dragAndDropBox=n.first)},inputs:{stateDisplayed:"stateDisplayed"},outputs:{imgUploaded:"imgUploaded"},decls:8,vars:9,consts:[["appDragDrop","",1,"img-upload","has-text-centered",3,"ngClass","click","onFileDropped"],["dragAndDropBox",""],["hidden","","type","file","accept","image/*","multiple","",3,"change"],["fileInput",""],[1,"img-upload__container",3,"ngClass"],[1,"img-upload__container__wrapper"],["class","img-upload__container__loader",4,"ngIf"],[4,"ngIf"],[1,"img-upload__container__loader"],[3,"small","position"],[1,"blueColor","img-upload__container__dropImgIconDiv"],["alt","icon picture",3,"src",4,"ngIf"],[1,"img-upload__container__or"],[1,"img-upload__container__text"],[1,"fal","fa-file-upload"],["alt","icon picture",3,"src"]],template:function(t,e){if(1&t){const t=Bo();zo(0,"div",0,1),$o("click",(function(){return Xe(t),Ao(3).click()}))("onFileDropped",(function(t){return e.filesChangeByDragAndDrop(t)})),zo(2,"input",2,3),$o("change",(function(t){return e.filesChangeByClick(t)})),Fo(),zo(4,"div",4),zo(5,"div",5),Do(6,mI,2,2,"div",6),Do(7,vI,13,10,"ng-container",7),Fo(),Fo(),Fo()}2&t&&(Lo("ngClass",Fl(5,yI,"small"===e.stateDisplayed))("@easeInOut","in"),ws(4),Lo("ngClass",Fl(7,bI,"small"===e.stateDisplayed)),ws(2),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading))},directives:function(){return[SP,Gh,Xh,ok]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),bP=(()=>{let t=class{constructor(t,e){this.imgManager=t,this.alertService=e,this.picturesList=[],this.pictureNameChanged=new I,this.errorRenameImg="ImgManager.ImgList.errorRenameImg",this.msgSavingImgName="ImgManager.ImgLib.savingImgName",this.msgImgNameSaved="ImgManager.ImgLib.imgNameSaved",this.setEvents()}setPicturesList(t){this.picturesList=t}onRenamePicture(t){this.pictureNameChanged.next(t)}setEvents(){this.pictureNameChanged.pipe(hC(800)).subscribe(t=>{this.renamePicture(t)})}renamePicture(t){const e=this.getPictureById(t.id);e?(this.alertService.openAlert(this.msgSavingImgName),this.imgManager.changeImgName(e.display_name,e.id_file).subscribe(t=>{e.display_name=t.display_name,this.alertService.openAlert(this.msgImgNameSaved)},n=>{e.display_name=t.previousName,this.alertService.openAlert(this.errorRenameImg)})):this.alertService.openAlert(this.errorRenameImg)}getPictureById(t){if(this.picturesList){for(const e of this.picturesList)if(e.id_file===t)return e;return null}}};return t.\u0275fac=function(e){return new(e||t)(Yt(cP),Yt(vP))},t.\u0275prov=ht({factory:function(){return new t(Yt(cP),Yt(vP))},token:t,providedIn:"root"}),t})(),wP=(()=>{let t=class{constructor(t,e){this.imgSelectionService=t,this.renamePictureService=e,this.picturesList=[],this.multipleImgMode=!1,this.switchDisplayWindow=new Zl}ngOnInit(){this.setEvents()}onImgUploaded(t){t.forEach(t=>this.picturesList.push(t)),this.renamePictureService.setPicturesList(this.picturesList)}onToggleSelectImg(t){"window"!==this.stateDisplayed&&(this.picturesList[t].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[t].id_file),this.picturesList[t].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[t]),this.picturesList[t].selected=!0))}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}onRenamePicture(t){this.renamePictureService.onRenamePicture(t)}setEvents(){this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{const e=[];t.map(t=>e.push(t.id_file));for(const n of this.picturesList)-1===e.indexOf(n.id_file)&&(n.selected=!1)})}ngOnDestroy(){this.imgSelectionChange.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP),Oo(bP))},t.\u0275cmp=pe({type:t,selectors:[["upload-list"]],inputs:{multipleImgMode:"multipleImgMode",stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:45,vars:25,consts:[[1,"upload-list",3,"ngClass"],[1,"upload-list__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"upload-list__box"],[1,"upload-list__box__container"],[1,"mainColor"],[4,"ngIf"],[1,"dropdown","is-hoverable"],[1,"dropdown-trigger"],["aria-haspopup","true","aria-controls","dropdown-menuInfoSeo",1,"fas","fa-info-circle"],["id","dropdown-menuInfoSeo","role","menu",1,"dropdown-menu","dropDownShadow"],[1,"dropdown-content"],[1,"dropdown-item"],[1,"fal","fa-check"],[1,"upload-list__box__cards"],["class","upload-list__box__cards__card",4,"ngFor","ngForOf"],[1,"upload-list__box__cards__card"],[3,"picture","stateDisplayed","toggleImgSelected","switchDisplayWindow","pictureNameChange"],[1,"upload-list__box__cards__card__btnBox"],[1,"button","success","upload-list__box__cards__card__btnBox__btn"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"ng-scrollbar",1,2),zo(3,"div",3),zo(4,"div",4),zo(5,"div"),zo(6,"p",5),wa(7),Do(8,wI,3,3,"ng-container",6),Do(9,CI,3,3,"ng-container",6),Fo(),zo(10,"div",7),zo(11,"div",8),Vo(12,"i",9),Fo(),zo(13,"div",10),zo(14,"div",11),zo(15,"div",12),zo(16,"p"),wa(17),ql(18,"translate"),Fo(),zo(19,"p"),Vo(20,"i",13),wa(21," 100%"),Fo(),Fo(),zo(22,"div",12),zo(23,"p"),wa(24),ql(25,"translate"),Fo(),zo(26,"p"),Vo(27,"i",13),wa(28," 100%"),Fo(),Fo(),zo(29,"div",12),zo(30,"p"),wa(31),ql(32,"translate"),Fo(),zo(33,"p"),Vo(34,"i",13),wa(35," 100%"),Fo(),Fo(),zo(36,"div",12),zo(37,"p"),wa(38),ql(39,"translate"),Fo(),zo(40,"p"),Vo(41,"i",13),wa(42," 100%"),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),zo(43,"div",14),Do(44,SI,5,2,"div",15),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Fl(20,EI,"small"===e.stateDisplayed))("@easeInOut","in"),ws(1),Lo("visibility","native")("ngClass",Vl(22,II,"small"===e.stateDisplayed,"window"===e.stateDisplayed)),ws(6),Sa(" ",e.picturesList?e.picturesList.length:""," "),ws(1),Lo("ngIf",e.picturesList&&e.picturesList.length>1),ws(1),Lo("ngIf",e.picturesList&&1===e.picturesList.length),ws(8),Ca(Gl(18,12,"ImgManager.UploadList.seo.rezise")),ws(7),Ca(Gl(25,14,"ImgManager.UploadList.seo.webp")),ws(7),Ca(Gl(32,16,"ImgManager.UploadList.seo.cdn")),ws(7),Ca(Gl(39,18,"ImgManager.UploadList.seo.lazyloading")),ws(6),Lo("ngForOf",e.picturesList))},directives:function(){return[Gh,zC,Xh,Qh,PP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),CP=(()=>{let t=class{constructor(t,e,n){this.imgEventEditService=t,this.alertService=e,this.route=n,this.multipleImgMode=!1,this.listDisplayed=!1,this.imgManagerClosed=new Zl,this.currentTab=new Zl,this.switchDisplayWindow=new Zl,this.tabs=[{name:"ImgManager.Tabs.addImg",value:"img-upload",selected:!0,id:0},{name:"ImgManager.Tabs.imgLib",value:"images-view",id:1},{name:"ImgManager.Tabs.freeImgLib",value:"pexels-lib",id:2},{name:"ImgManager.Tabs.Editor",value:"img-edition",hide:!0,id:3}],this.tabActive=this.tabs[0],this.editTab=!1,this.imgUpload=!1,this.snackBarNewVersionConfig={message:"",duration:3e3}}ngOnInit(){this.imgEventEditService.getImgToEditEventListner().subscribe(t=>{this.tabActive=this.tabs[3],this.imgToEdit=t,this.editTab=!0,this.currentTab.emit(this.tabs[3])})}toggleTabs(t){this.imgUpload=!1,this.editTab=!1,this.tabActive=t}onImgUploaded(t){this.imgUpload=!0,this.imgUploadedComponent.onImgUploaded(t)}onEditClosed(t){this.editTab=!1,this.toggleTabs(this.tabs[1]),t&&this.alertService.openAlert(t),this.currentTab.emit("close")}onShowImgUploaded(){this.tabActive=this.tabs[1]}switchDisplayWindowImgView(){this.switchDisplayWindow.emit(!0)}switchRouterLink(t){}onImgManagerClosed(){this.imgManagerClosed.emit()}};return t.\u0275fac=function(e){return new(e||t)(Oo(gP),Oo(vP),Oo(Ab))},t.\u0275cmp=pe({type:t,selectors:[["img-tabs"]],viewQuery:function(t,e){var n;1&t&&uc(xI,!0),2&t&&cc(n=fc())&&(e.imgUploadedComponent=n.first)},inputs:{multipleImgMode:"multipleImgMode",listDisplayed:"listDisplayed",stateDisplayed:"stateDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed",currentTab:"currentTab",switchDisplayWindow:"switchDisplayWindow"},decls:25,vars:36,consts:[[1,"img-tabs",3,"ngClass"],[1,"wrapper-tabs"],[1,"tabs",3,"ngClass"],[1,"is-active",3,"ngClass","click"],[3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[1,"img-tabs__canva",3,"ngClass"],[3,"stateDisplayed","showImgUploaded"],[1,"select-mobile-page"],["name","tabs",3,"ngModel","items","ngModelChange"],["class","columns img-tabs__tabsFirst",3,"ngClass",4,"ngIf"],["class","columns img-tabs__tabsSecond",4,"ngIf"],["class","columns img-tabs__tabsThird",4,"ngIf"],["class","columns img-tabs__tabsEdit",4,"ngIf"],[3,"ngClass"],[1,"columns","img-tabs__tabsFirst",3,"ngClass"],[1,"column","img-tabs__tabsFirst__upload"],[3,"stateDisplayed","imgUploaded"],[1,"column","img-tabs__tabsFirst__list",3,"ngClass"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow",4,"ngIf"],[3,"hidden"],[3,"stateDisplayed","tabDisplayed","multipleImgMode","switchDisplayWindow"],["imgUploadedImg",""],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","nbRowToShow","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsSecond"],[1,"column"],[3,"stateDisplayed","listDisplayed","multipleImgMode","tabDisplayed","fullSize","switchDisplayWindow"],[1,"columns","img-tabs__tabsThird"],[1,"columns","img-tabs__tabsEdit"],[3,"stateDisplayed","imgToEdit","editClosed"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div",2),zo(3,"ul"),zo(4,"li",3),$o("click",(function(){return e.toggleTabs(e.tabs[0])})),zo(5,"a"),wa(6),ql(7,"translate"),Fo(),Fo(),zo(8,"li",4),$o("click",(function(){return e.toggleTabs(e.tabs[1])})),zo(9,"a"),wa(10),ql(11,"translate"),Fo(),Fo(),zo(12,"li",4),$o("click",(function(){return e.toggleTabs(e.tabs[2])})),zo(13,"a"),wa(14),ql(15,"translate"),Fo(),Fo(),Do(16,PI,4,6,"li",5),Fo(),zo(17,"div",6),zo(18,"canva-btn",7),$o("showImgUploaded",(function(){return e.onShowImgUploaded()})),Fo(),Fo(),Fo(),zo(19,"div",8),zo(20,"wac-select",9),$o("ngModelChange",(function(t){return e.tabActive=t})),Fo(),Fo(),Fo(),Do(21,AI,8,13,"div",10),Do(22,OI,3,5,"div",11),Do(23,RI,3,1,"div",12),Do(24,LI,3,2,"div",13),Fo()),2&t&&(Lo("ngClass",Fl(23,NI,"small"===e.stateDisplayed)),ws(2),Lo("ngClass",Vl(25,zI,"window"!==e.stateDisplayed,"window"===e.stateDisplayed&&e.tabActive.value===e.tabs[3].value)),ws(2),Lo("ngClass",Fl(28,TI,e.tabActive.value===e.tabs[0].value)),ws(2),Ca(Gl(7,17,e.tabs[0].name)),ws(2),Lo("ngClass",Fl(30,TI,e.tabActive.value===e.tabs[1].value)),ws(2),Ca(Gl(11,19,e.tabs[1].name)),ws(2),Lo("ngClass",Fl(32,TI,e.tabActive.value===e.tabs[2].value)),ws(2),Ca(Gl(15,21,e.tabs[2].name)),ws(2),Lo("ngIf",e.editTab),ws(1),Lo("ngClass",Fl(34,FI,"window"===e.stateDisplayed)),ws(1),Lo("stateDisplayed",e.stateDisplayed),ws(2),Lo("ngModel",e.tabActive)("items",e.tabs),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[0].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[1].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[2].value),ws(1),Lo("ngIf",e.tabActive.value===e.tabs[3].value))},directives:function(){return[Gh,Xh,MP,dk,Zf,Km,yP,wP,VP,xP,kP]},pipes:function(){return[Vf]},encapsulation:2}),t})(),SP=(()=>{let t=class{constructor(){this.onFileDropped=new Zl,this.background="#fff",this.opacity="1"}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.background="#f5f5f5",this.opacity="0.8"}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.background="#fff",this.opacity="1"}ondrop(t){t.preventDefault(),t.stopPropagation(),this.background="#f5f5f5",this.opacity="1";const e=t.dataTransfer.files;e.length>0&&this.onFileDropped.emit(e)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["","appDragDrop",""]],hostVars:4,hostBindings:function(t,e){1&t&&$o("dragover",(function(t){return e.onDragOver(t)}))("dragleave",(function(t){return e.onDragLeave(t)}))("drop",(function(t){return e.ondrop(t)})),2&t&&aa("background-color",e.background)("opacity",e.opacity)},outputs:{onFileDropped:"onFileDropped"}}),t})(),EP=(()=>{let t=class{constructor(t,e,n){this.http=t,this.externalConfigService=e,this.translateService=n,this.languages={fr:"fr-FR",en:"en-US",it:"it-IT",es:"es-ES"},this.setLang(this.translateService.currentLang),this.translateService.onLangChange.subscribe(t=>{this.setLang(t.lang)})}setLang(t){this.lang=this.languages[t]?this.languages[t]:"fr-FR"}searchOnPexels(t,e,n){this.apiBaseUrl&&!this.apiKey||(this.apiBaseUrl=this.externalConfigService.getPexelsApiURL(),this.apiKey=this.externalConfigService.getPexelsApiToken());const i={headers:new Mg({Authorization:"Bearer "+this.apiKey})};let s;if(t&&!/^\s*$/.test(t))s=`/search?query=${t}&per_page=${e}&page=${n}&locale=${this.lang}`;else{const t=this.externalConfigService.getShopCategory();s=t&&"other"!==t&&"btob"!==t?`/search?query=${t}&per_page=${e}&page=${n}&locale=en-US`:`/curated?per_page=${e}&page=${n}`}return this.http.get(this.apiBaseUrl+s,i).pipe(z(t=>t))}};return t.\u0275fac=function(e){return new(e||t)(Yt(Wg),Yt(uP),Yt(Ff))},t.\u0275prov=ht({factory:function(){return new t(Yt(Wg),Yt(uP),Yt(Ff))},token:t,providedIn:"root"}),t})();const IP=Fu("listAnimation",[Wu(":enter, * => 0, * => -1",[]),Wu(":increment",[$u(":enter",[ju({opacity:0,transform:"translateY(100px)"}),qu(50,[Vu("500ms cubic-bezier(0.35, 0, 0.25, 1)",ju({opacity:1,transform:"none"}))])],{optional:!0})])]);let xP=(()=>{let t=class{constructor(t,e,n,i){this.wzImgLibService=t,this.imgManager=e,this.alertService=n,this.translateService=i,this.searchValue="",this.disableSearch=!1,this.showImgUploaded=new Zl,this.perPage=30,this.searchUpdated=new I,this.nbResult=0,this.currentPage=1,this.isLoading=!0,this.initComponent=!0,this.photosColumns=[],this.nbColumuns=6,this.responsiveColumns=[1250,1050,750,500],this.outerElement=null,this.uploadingImg="ImgManager.PexelLib.uploadingImg",this.untitled="ImgManager.PexelLib.untitled",this.successUploadPhoto="ImgManager.PexelLib.successImport",this.errorUploadPhoto="ImgManager.PexelLib.errorUploadPhoto",this.errorRetrievePhotos="ImgManager.PexelLib.errorRetrievePhotos",this.subs=[]}set content(t){this.outerElement=t}ngOnInit(){}ngAfterViewInit(){this.oldSearchValue=this.searchValue,this.isLoading=!1,this.setNbColumnsToDisplayPhoto(),this.setPhotosColumns(),this.search()}setNbColumnsToDisplayPhoto(){const t=this.outerElement.nativeElement.offsetWidth;"window"!==this.stateDisplayed&&(this.nbColumuns=8),this.responsiveColumns.forEach(e=>{t<e&&this.nbColumuns--})}onSearchNameChanged(){this.onSearchChange()}onBottomReached(){this.scrollHandler()}onSearchChange(){this.search()}search(){if(this.isLoading)return;if(this.searchValue!==this.oldSearchValue&&this.resetSearch(),this.nbResult&&this.nbResult<=(this.currentPage-1)*this.perPage)return;this.isLoading=!0;const t=this.wzImgLibService.searchOnPexels(this.searchValue,this.perPage,this.currentPage).subscribe(t=>{this.wzImgLibDto=t,this.nbResult=this.wzImgLibDto.total_results,this.nbResult&&t.photos.forEach(t=>{const e=this.getBestColumn();this.photosColumns[e].height+=t.height/t.width*1e3,this.photosColumns[e].photos.push(t)}),this.isLoading=!1,this.initComponent=!1},t=>{this.isLoading=!1,this.initComponent=!1,this.alertService.openAlert(this.errorRetrievePhotos)});this.subs.push(t)}scrollHandler(){if(this.isLoading)return;const t=this.getBestColumn(),e=this.photosColumns[t].photos[this.photosColumns[t].photos.length-1];e&&document.querySelector('img[src="'+e.src.medium+'"]')&&(this.isLoading||(this.currentPage+=1,this.search()))}setPhotosColumns(){for(let t=0;t<this.nbColumuns;t++)this.photosColumns.push({height:0,photos:[]})}getBestColumn(){const t={index:0,height:this.photosColumns[0].height};return this.photosColumns.forEach((e,n)=>{t.height>e.height&&(t.index=n,t.height=e.height)}),t.index}resetSearch(){this.oldSearchValue=this.searchValue,this.photosColumns=[],this.currentPage=1,this.setPhotosColumns()}uploadPhoto(t,e){t.uploading=!0;const n=this.imgManager.uploadFileByUrl(e,this.translateService.instant(this.untitled)).subscribe(e=>{t.uploading=!1,t.uploaded=!0,this.alertService.openAlert(this.successUploadPhoto)},e=>{t.uploading=!1,406===e.error.code&&e.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadPhoto,e.error.message):this.alertService.openAlert(this.errorUploadPhoto)});this.alertService.openAlert(this.uploadingImg),this.subs.push(n)}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(Oo(EP),Oo(cP),Oo(vP),Oo(Ff))},t.\u0275cmp=pe({type:t,selectors:[["pexels-lib"]],viewQuery:function(t,e){var n;1&t&&uc(VI,!0),2&t&&cc(n=fc())&&(e.content=n.first)},inputs:{searchValue:"searchValue",disableSearch:"disableSearch",stateDisplayed:"stateDisplayed"},outputs:{showImgUploaded:"showImgUploaded"},decls:8,vars:9,consts:[[1,"pexels-lib"],["outerElement",""],["reachedOffset","50",1,"pexels-lib__scroll",3,"visibility","ngClass","reachedBottom"],["scrollable",""],["class","pexels-lib__search",3,"ngClass",4,"ngIf"],["class","pexels-lib__wrapper",4,"ngIf"],[4,"ngIf"],["class","pexels-lib__alert",4,"ngIf"],[1,"pexels-lib__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"pexels-lib__wrapper"],["class","pexels-lib__wrapper__result-nb",4,"ngIf"],[1,"pexels-lib__wrapper__result"],["class","pexels-lib__wrapper__result__column",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result-nb"],[1,"pexels-lib__wrapper__result__column"],["class","pexels-lib__wrapper__result__column__element",4,"ngFor","ngForOf"],[1,"pexels-lib__wrapper__result__column__element"],[1,"pexels-lib__wrapper__result__column__element__img",3,"alt","src"],[1,"pexels-lib__wrapper__result__column__element__wrapper"],[1,"pexels-lib__wrapper__result__column__element__wrapper__infos"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],["aria-haspopup","true","aria-controls","dropdown-menu",1,"button","pexels-lib__wrapper__result__column__element__wrapper__button"],[3,"click",4,"ngIf"],["id","dropdown-menu","role","menu",1,"dropdown-menu","pexels-lib__wrapper__result__column__element__wrapper__dropdown"],[1,"dropdown-content"],[1,"dropdown-content__wrapper"],[1,"dropdown-item",3,"click"],[1,"fal","fa-check","iPortrait"],[1,"fal","fa-check","iLandscape"],[1,"fal","fa-check","iOriginal"],[3,"click"],[1,"icon","is-small"],["aria-hidden","true",1,"fas","fa-angle-up"],[1,"fal","fa-check"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"pexels-lib__alert"],[3,"warning"]],template:function(t,e){1&t&&(zo(0,"div",0,1),zo(2,"ng-scrollbar",2,3),$o("reachedBottom",(function(){return e.onBottomReached()})),Do(4,jI,3,8,"div",4),Do(5,QI,4,2,"div",5),Do(6,KI,2,0,"ng-container",6),Do(7,XI,4,5,"div",7),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(2),Lo("visibility","hover")("ngClass",Fl(7,ZI,"small"===e.stateDisplayed)),ws(2),Lo("ngIf",!e.disableSearch),ws(1),Lo("ngIf",!e.initComponent),ws(1),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading&&!e.nbResult))},directives:function(){return[zC,Gh,nS,Xh,$P,Zf,Km,Qh,AP,ok,ak]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P,IP]}}),t})(),TP=(()=>{let t=class{constructor(t,e,n,i,s,r,o,a){this.imgManager=t,this.imgSelectionService=e,this.http=n,this.imgCDNService=i,this.imgEventCardService=s,this.alertService=r,this.translateService=o,this.externalService=a,this.picturesList=[],this.picturesListChange=new Zl,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:30,currentPage:1},this.displayPexelsResults=!1,this.disable=!1,this.disableChange=new Zl,this.filtersChange=new Zl,this.pictureNameChange=new Zl,this.isLoading=!1,this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg",this.errorAlreadyUsedImg="ImgManager.ImgList.errorAlreadyUsed",this.fakeImgRoute=this.externalService.getRouteAssets()+"img/fake.png"}onToggleAllCheckBoxRow(t){this.picturesList.forEach(e=>{e.delSelected=t}),this._pictureListeChange()}onToggleDelSelection(t){this.disable||(this.picturesList[t].delSelected=!this.picturesList[t].delSelected,this._pictureListeChange())}onFiltersChange(){this.filtersChange.emit()}onEdit(t){this.imgEventCardService.emitImgToEdit(t)}onToggleSelectImg(t){this.disable||"window"===this.stateDisplayed||(this.picturesList[t].selected?(this.imgSelectionService.removeImgSelectedById(this.picturesList[t].id_file),this.picturesList[t].selected=!1):(this.imgSelectionService.addImgSelected(this.picturesList[t]),this.picturesList[t].selected=!0))}onRemoveImg(t){t.deleted=!0,this.imgManager.removeImg(t.id_file).subscribe(e=>{this.imgEventCardService.emitImgRemoved(t.id_file),this.imgSelectionService.removeImgSelectedById(t.id_file)},e=>{const n=409===e.status?this.errorAlreadyUsedImg:this.errorRemoveImg;t.deleted=!1,this.alertService.openAlert(n)})}onPictureNotLoading(t){t.target.src=this.fakeImgRoute}onDownloadImg(t,e){this.http.get(this.getRAWImgRoute(e),{responseType:"blob"}).subscribe(e=>{let n=URL.createObjectURL(e);this.downloadUrl(n,t),URL.revokeObjectURL(n)})}onNameChange(t){this.pictureNameChange.emit({id:t,previousName:this.previousName})}getRAWImgRoute(t){return this.imgCDNService.getUrlImg("raw")+t}_pictureListeChange(){this.picturesListChange.emit()}downloadUrl(t,e){const n=document.createElement("a");n.href=t,n.download=e,n.click()}ngDestroy(){this.getDataAPISub&&this.getDataAPISub.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275dir=ye({type:t,inputs:{picturesList:"picturesList",tableFilters:"tableFilters",displayPexelsResults:"displayPexelsResults",disable:"disable",isLoading:"isLoading",stateDisplayed:"stateDisplayed"},outputs:{picturesListChange:"picturesListChange",disableChange:"disableChange",filtersChange:"filtersChange",pictureNameChange:"pictureNameChange"}}),t})(),PP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.focusInput=!1,this.toggleImgSelected=new Zl,this.switchDisplayWindow=new Zl,this.isUploadSection=!1,this.activeConfirmDelete=!1}ngOnInit(){this.isUploadSection="img-upload"===this.tabDisplayed}displayLargeWindow(){this.switchDisplayWindow.emit(!0)}onToggleImgSelected(){this.toggleImgSelected.next()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["img-card"]],inputs:{tabDisplayed:"tabDisplayed",fullSize:"fullSize",picture:"picture",index:"index"},outputs:{toggleImgSelected:"toggleImgSelected",switchDisplayWindow:"switchDisplayWindow"},features:[Pa],decls:25,vars:37,consts:[[1,"addCssPriority",3,"ngClass"],[1,"img-card"],[1,"img-card__container",3,"ngClass"],[1,"img-card__container__img",3,"src","alt","click","error"],["class","img-card__container__config",4,"ngIf"],["class","img-card__container__config img-card__container__config--small",4,"ngIf"],[1,"img-card__container__delete",3,"ngClass"],[3,"click"],["class","img-card__container__valid",4,"ngIf"],["class","img-card__container__overlay",3,"ngClass",4,"ngIf"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"img-card__nameContainer",3,"ngClass"],["type","text",1,"wzImgMngInput","img-card__nameContainer__name",3,"ngModel","ngModelChange","focus","blur"],[1,"img-card__container__config"],[1,"size"],[1,"fal","fa-image-polaroid"],[1,"dl",3,"click"],[1,"fal","fa-download"],[1,"edit",3,"click"],[1,"far","fa-crop-alt"],[1,"deleted",3,"click"],[1,"fal","fa-times"],["class","selected",3,"click",4,"ngIf"],[1,"selected",3,"click"],["class","fal fa-square",4,"ngIf"],["class","fas fa-check-square checked",4,"ngIf"],[1,"fal","fa-square"],[1,"fas","fa-check-square","checked"],[1,"img-card__container__config","img-card__container__config--small"],[1,"show-edit",3,"click"],[1,"fas","fa-edit"],[1,"img-card__container__valid"],[1,"far","fa-check"],[1,"img-card__container__overlay",3,"ngClass"],[1,"fad","fa-folder-times",3,"click"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div",2),zo(3,"img",3),$o("click",(function(){return e.onToggleImgSelected()}))("error",(function(t){return e.picture.imgNotLoaded=!0,e.onPictureNotLoading(t)})),ql(4,"imgSrc"),Fo(),Do(5,nx,21,12,"div",4),Do(6,ix,3,0,"div",5),zo(7,"div",6),zo(8,"span"),wa(9),ql(10,"translate"),Fo(),zo(11,"div"),zo(12,"button",7),$o("click",(function(){return e.activeConfirmDelete=!1})),wa(13),ql(14,"translate"),Fo(),zo(15,"button",7),$o("click",(function(){return e.onRemoveImg(e.picture),e.activeConfirmDelete=!1})),wa(16),ql(17,"translate"),Fo(),Fo(),Fo(),Do(18,sx,5,3,"div",8),Do(19,ox,2,3,"div",9),Do(20,ax,1,0,"span",10),Fo(),zo(21,"div",11),zo(22,"input",12),$o("ngModelChange",(function(t){return e.picture.display_name=t}))("ngModelChange",(function(){return e.onNameChange(e.picture.id_file)}))("focus",(function(){return e.previousName=e.picture.display_name,e.focusInput=!0}))("blur",(function(){return e.focusInput=!1})),Fo(),zo(23,"span"),wa(24),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("@easeInOut","in")("ngClass",Fl(26,lx,e.fullSize)),ws(2),Lo("ngClass",Ul(28,cx,"small"===e.stateDisplayed||e.isUploadSection,e.picture.selected,e.picture.deleted)),ws(1),Lo("src",Yl(4,17,e.picture.file_name,"400"),Ji)("alt",e.picture.display_name),ws(2),Lo("ngIf",!e.picture.deleted&&"small"!==e.stateDisplayed),ws(1),Lo("ngIf",!e.picture.deleted&&"small"===e.stateDisplayed),ws(1),Lo("ngClass",Fl(32,hx,e.activeConfirmDelete)),ws(2),Ca(Gl(10,20,"ImgManager.ImgCard.confirmDeleteImg")),ws(4),Ca(Gl(14,22,"no")),ws(3),Ca(Gl(17,24,"yes")),ws(2),Lo("ngIf","small"===e.stateDisplayed&&"img-upload"==e.tabDisplayed),ws(1),Lo("ngIf",e.picture.imgNotLoaded),ws(1),Lo("ngIf",e.picture.deleted),ws(1),Lo("ngClass",Vl(34,ux,"small"===e.stateDisplayed||e.isUploadSection,e.focusInput)),ws(1),Lo("ngModel",e.picture.display_name),ws(2),Ca(e.picture.display_name))},directives:function(){return[Gh,Xh,qf,Zf,Km,AP]},pipes:function(){return[ik,Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),kP=(()=>{let t=class{constructor(t){this.imgManagerService=t,this.editClosed=new Zl,this.isLoading=!1,this.isImgModified=!1,this.isNameModified=!1,this.currentCroppedImage="",this.msgFailSave="ImgManager.ImgEditor.msgFailSave",this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.msgSuccessEdit="Les modifications de l'image ont bien \xe9t\xe9 enregistr\xe9es."}ngOnInit(){this.previousName=this.imgToEdit.display_name}onSave(){if(this.isLoading)return;this.isLoading=!0,this.isImgModified||this.isNameModified||(this.isLoading=!1,this.onEditClosed());const t=this.imgManagerService.replaceImg(this.currentCroppedImage,this.imgToEdit.id_file),e=this.imgManagerService.changeImgName(this.imgToEdit.display_name,this.imgToEdit.id_file);this.isImgModified&&this.isNameModified?this.ranameAndReplaceImg(e,t):this.isImgModified?t.subscribe(t=>{this.isLoading=!1,this.onEditClosed(this.msgSuccessEdit)},t=>{this.isLoading=!1,this.currentCroppedImage="",this.onEditClosed(this.msgFailSave)}):(this.isNameModified&&e.subscribe(t=>{this.isLoading=!1,this.previousName=this.imgToEdit.display_name,this.onEditClosed(this.msgSuccessEdit)},t=>{this.isLoading=!1,this.imgToEdit.display_name=this.previousName,this.onEditClosed(this.msgFailSave)}),this.isNameModified=!1)}onEditClosed(t){this.editClosed.emit(t)}onRestartEdit(){this.isImgModified=!1,this.isNameModified=!1,this.imgToEdit.display_name=this.previousName}onCancel(){this.onEditClosed("")}onImgCropped(t){this.currentCroppedImage=t}ranameAndReplaceImg(t,e){t.subscribe(t=>{e.subscribe(t=>{this.onEditClosed(this.msgSuccessEdit)},t=>{this.onEditClosed(this.msgFailSave)})},t=>{this.onEditClosed(this.msgFailSave)})}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP))},t.\u0275cmp=pe({type:t,selectors:[["img-editor"]],inputs:{stateDisplayed:"stateDisplayed",imgToEdit:"imgToEdit"},outputs:{editClosed:"editClosed"},decls:17,vars:22,consts:[[1,"img-editor"],[1,"img-editor__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"columns"],[1,"column","is-one-third","img-editor__infoSection"],[3,"imgToEdit","isNameModified","isNameModifiedChange"],[1,"img-editor__infoSection__actions"],[1,"button","img-editor__infoSection__actions__cancel",3,"disabled","click"],[1,"button","danger","button","img-editor__infoSection__actions__save",3,"ngClass","click"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],[1,"column","img-editor__container"],[3,"imgToEdit","isImgModified","isImgModifiedChange","currentCroppedImageChange","editClosed"],["btnLoadingAnim","",1,"btnLoadingAnnimation"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"ng-scrollbar",1,2),zo(3,"div",3),zo(4,"div",4),zo(5,"info-section",5),$o("isNameModifiedChange",(function(t){return e.isNameModified=t})),Fo(),zo(6,"div",6),zo(7,"div"),zo(8,"button",7),$o("click",(function(){return e.onCancel()})),wa(9),ql(10,"translate"),Fo(),zo(11,"div",8),$o("click",(function(){return e.onSave()})),wa(12),ql(13,"translate"),Do(14,dx,1,0,"span",9),Fo(),Fo(),Fo(),Fo(),zo(15,"div",10),zo(16,"cropper",11),$o("isImgModifiedChange",(function(t){return e.isImgModified=t}))("currentCroppedImageChange",(function(t){return e.onImgCropped(t)}))("editClosed",(function(t){return e.onEditClosed(t)})),Fo(),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("@easeInOut","in"),ws(1),Lo("visibility","native")("ngClass",Ul(16,px,"full"===e.stateDisplayed,"small"===e.stateDisplayed,"window"===e.stateDisplayed)),ws(4),Lo("imgToEdit",e.imgToEdit)("isNameModified",e.isNameModified),ws(3),Lo("disabled",e.isLoading||!e.isImgModified&&!e.isNameModified),ws(1),Sa(" ",Gl(10,12,"ImgManager.ImgLib.cancel")," "),ws(2),Lo("ngClass",Fl(20,gx,e.isLoading)),ws(1),Sa(" ",Gl(13,14,"ImgManager.ImgEditor.saveBtn")," "),ws(2),Lo("ngIf",e.isLoading),ws(2),Lo("imgToEdit",e.imgToEdit)("isImgModified",e.isImgModified))},directives:function(){return[zC,Gh,NP,Xh,FP,AP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P]}}),t})(),MP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.canvaService=t,this.imgManager=e,this.wzImgEventService=n,this.translateService=i,this.alertService=s,this.renderer=r,this.showImgUploaded=new Zl,this.imgLoading=!1,this.availableFormat={"ImgManager.CanvaBtn.smallSquare":{width:500,height:500},"ImgManager.CanvaBtn.mediumSquare":{width:1e3,height:1e3},"ImgManager.CanvaBtn.bigSquare":{width:2500,height:2500}},this.openDropDownMenu=!1,this.subs=[],this.uploadingImg="ImgManager.CanvaBtn.uploadingImg",this.successUploadPhoto="ImgManager.CanvaBtn.successImport",this.errorUploadCanvaImg="ImgManager.CanvaBtn.errorUploadCanvaImg",this.errorRenameCanvaImg="ImgManager.CanvaBtn.errorRenameCanvaImg"}ngOnInit(){this.canvaLogoRouteAssets=this.canvaService.getCanvaLogo(),this.listenCanvaExpectedSize()}listenCanvaExpectedSize(){const t=this.canvaService.bindEventExepectedImgSizeChange().subscribe(t=>{t?(this.expectedWidth=parseInt(t.image_width,10),this.expectedHeight=parseInt(t.image_height,10)):(this.expectedWidth=void 0,this.expectedHeight=void 0)});this.subs.push(t)}onOpenCanva(t,e){if(this.imgLoading)return;const n=this.canvaService.getCanvaApi().subscribe(n=>{this.canvaApi=n,this.addOverflowBody(),this.createDesign(t,e)});this.subs.push(n)}createDesign(t,e){const n={type:"EtsyShopIcon",dimensions:{units:"px",width:t||void 0,height:e||void 0},publishLabel:this.translateService.instant("ImgManager.CanvaBtn.publish")};this.canvaApi.createDesign({design:n,onDesignPublish:({exportUrl:t,designTitle:e})=>this.designPublished(t,e),onDesignClose:()=>{this.removeOverflowBody()}})}designPublished(t,e){this.alertService.openAlert(this.uploadingImg),this.imgLoading=!0;const n=this.imgManager.uploadFileByUrl(t,e).subscribe(t=>{this.imgLoading=!1,this.removeOverflowBody(),this.wzImgEventService.emitImgAdded(t.id_file),this.alertService.openAlert(this.successUploadPhoto)},t=>{this.imgLoading=!1,this.removeOverflowBody(),406===t.error.code&&t.error.message?this.alertService.openAlertWithBackendRespons(this.errorUploadCanvaImg,t.error.message):this.alertService.openAlert(this.errorUploadCanvaImg)});this.subs.push(n)}addOverflowBody(){this.renderer.addClass(document.body,"ovh-canva")}removeOverflowBody(){this.renderer.removeClass(document.body,"ovh-canva")}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(Oo(pP),Oo(cP),Oo(gP),Oo(Ff),Oo(vP),Oo(Za))},t.\u0275cmp=pe({type:t,selectors:[["canva-btn"]],inputs:{stateDisplayed:"stateDisplayed"},outputs:{showImgUploaded:"showImgUploaded"},decls:24,vars:23,consts:[["wzAutoHide","",1,"canva","dropdown","is-right","is-hoverable",3,"ngClass","clickOutside"],[1,"dropdown-trigger"],["aria-controls","dropdown-menuCanva",1,"button","canva-btn",3,"click"],[1,"canva-btn__logo",3,"src"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["id","dropdown-menuCanva","role","menu",1,"dropdown-menu","dropDownShadow",3,"ngClass"],[1,"smallScroll",3,"visibility"],["scrollable",""],[1,"dropdown-content"],[1,"dropdownTitle"],[1,"infoItem"],["class","dropdown-item-wrapper",4,"ngIf"],["class","dropdown-item-wrapper",4,"ngFor","ngForOf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"dropdown-item-wrapper"],[1,"dropdown-item","expectedSizes",3,"click"],[1,"dropdown-item",3,"click"]],template:function(t,e){1&t&&(zo(0,"div",0),$o("clickOutside",(function(){return e.openDropDownMenu=!1})),zo(1,"div",1),zo(2,"div",2),$o("click",(function(){return e.openDropDownMenu=!0})),zo(3,"span"),wa(4),ql(5,"translate"),Fo(),Vo(6,"img",3),Do(7,fx,1,0,"span",4),Fo(),Fo(),zo(8,"div",5),zo(9,"ng-scrollbar",6,7),zo(11,"div",8),zo(12,"div",9),zo(13,"p"),wa(14),ql(15,"translate"),Fo(),Fo(),zo(16,"div",10),zo(17,"p"),wa(18),ql(19,"translate"),Fo(),Fo(),Uo(20),Do(21,mx,7,5,"div",11),jo(),Do(22,_x,7,5,"div",12),ql(23,"keyvalue"),Fo(),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(18,vx,"small"===e.stateDisplayed,"small"!==e.stateDisplayed)),ws(4),Ca(Gl(5,10,"ImgManager.CanvaBtn.createImg")),ws(2),Lo("src",e.canvaLogoRouteAssets,Ji),ws(1),Lo("ngIf",e.imgLoading),ws(1),Lo("ngClass",Fl(21,yx,e.openDropDownMenu)),ws(1),Lo("visibility","hover"),ws(5),Ca(Gl(15,12,"ImgManager.CanvaBtn.createImg.title")),ws(4),Ca(Gl(19,14,"ImgManager.CanvaBtn.info")),ws(3),Lo("ngIf",e.expectedWidth&&e.expectedHeight),ws(1),Lo("ngForOf",Gl(23,16,e.availableFormat)))},directives:function(){return[OP,Gh,Xh,zC,Qh,AP]},pipes:function(){return[Vf,eu]},encapsulation:2}),t})(),DP=(()=>{let t=class{constructor(t){this.imgSelectionService=t,this.imgManagerClosed=new Zl,this.imgSelectedList=[],this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1,this.dragStart=!1,this.isLoading=!1,this.trashPositionIndex=0,this.trashPositionLeft="-5px"}ngOnInit(){this.getImgSelected(),this.imgSelectionService.getImgListLoadingEventListner().subscribe(t=>{this.isLoading=t})}init(){this.removingAll=!1,this.cancellingAll=!1,this.importingAll=!1}getImgSelected(){this.imgSelectedList=this.imgSelectionService.getImgSelection()}removeImg(t){this.imgSelectionService.removeImgSelectedByIndex(t)}drop(t){t.previousIndex!==t.currentIndex&&this.imgSelectionService.moveImgOrder(t)}removeImgFromSelection(t){this.imgSelectionService.removeImgSelectedByIndex(t.previousIndex)}};return t.\u0275fac=function(e){return new(e||t)(Oo(aP))},t.\u0275cmp=pe({type:t,selectors:[["img-selection"]],inputs:{tabDisplayed:"tabDisplayed"},outputs:{imgManagerClosed:"imgManagerClosed"},decls:7,vars:5,consts:[["cdkDropList","",1,"trash",3,"cdkDropListDropped"],["unSelectList","cdkDropList"],["class","img-selection",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"img-selection",3,"ngClass"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"list_img_selection",3,"cdkDropListConnectedTo","cdkDropListDropped"],["selectionList","cdkDropList"],["class","img_box","cdkDrag","",3,"cdkDragStarted","cdkDragEnded",4,"ngFor","ngForOf"],["cdkDrag","",1,"img_box",3,"cdkDragStarted","cdkDragEnded"],["class","drag__img",3,"src","title",4,"ngIf"],[1,"delete-btn",3,"click"],[1,"drag__tooltips"],[1,"drag__img",3,"src","title"]],template:function(t,e){1&t&&(zo(0,"div",0,1),$o("cdkDropListDropped",(function(t){return e.removeImgFromSelection(t)})),zo(2,"p"),wa(3),ql(4,"translate"),Fo(),Fo(),Do(5,Ix,4,7,"div",2),Do(6,xx,2,0,"ng-container",3)),2&t&&(ws(3),Ca(Gl(4,3,"ImgManager.ImgSelection.unselect")),ws(2),Lo("ngIf",!e.isLoading),ws(1),Lo("ngIf",e.isLoading))},directives:function(){return[ZS,Xh,Gh,Qh,nE,ok]},pipes:function(){return[Vf,ik]},encapsulation:2}),t})(),AP=(()=>{let t=class{constructor(t){this.currentLoading=0,this.interval=null,this.element=t,this.launchLoading()}launchLoading(){null===this.interval&&(this.currentLoading=10,this.element.nativeElement.style.width=this.currentLoading+"%",this.interval=setInterval(()=>{this.currentLoading<80&&(this.currentLoading+=Math.floor(15*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%"),this.currentLoading>=80&&this.currentLoading<95&&(this.currentLoading+=Math.floor(2*Math.random()),this.element.nativeElement.style.width=this.currentLoading+"%")},70))}ngOnDestroy(){this.interval&&(clearInterval(this.interval),this.interval=null)}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya))},t.\u0275dir=ye({type:t,selectors:[["","btnLoadingAnim",""]]}),t})(),OP=(()=>{let t=class{constructor(t,e){this._elementRef=t,this.domService=e,this.forceOn=null,this.clickOutside=new Zl}ngAfterViewInit(){this.domService.documentEvent().subscribe(t=>{const e=this._elementRef.nativeElement.contains(t),n=t.getAttribute("class");if(e||null!==n&&n.includes(this.triggerElement)||this.clickOutside.emit(null),null!=this.forceOn&&null!==n){let t=!0;this.forceOn.forEach(e=>{n.includes(e)||(t=!1)}),t&&this.clickOutside.emit(null)}})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(fP))},t.\u0275dir=ye({type:t,selectors:[["","wzAutoHide",""]],inputs:{forceOn:"forceOn",triggerElement:"triggerElement"},outputs:{clickOutside:"clickOutside"}}),t})(),RP=(()=>{let t=class{constructor(){this.copied=new Zl}onClick(t){if(t.preventDefault(),!this.payload)return;let e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["","copy-clipboard",""]],hostBindings:function(t,e){1&t&&$o("click",(function(t){return e.onClick(t)}))},inputs:{payload:["copy-clipboard","payload"]},outputs:{copied:"copied"}}),t})(),LP=(()=>{let t=class{constructor(){this.disable=!1}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["dropdown"]],inputs:{disable:"disable",dropDownMenuClass:"dropDownMenuClass"},ngContentSelectors:Px,decls:6,vars:4,consts:[[1,"dropdown","dropdownWizi",3,"ngClass"],[1,"dropdown-trigger"],["role","menu",1,"dropdown-menu",3,"ngClass"],[1,"dropdown-content"]],template:function(t,e){1&t&&(Ko(Tx),zo(0,"div",0),zo(1,"div",1),Xo(2),Fo(),zo(3,"div",2),zo(4,"div",3),Xo(5,1),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Fl(2,qI,!e.disable)),ws(3),Lo("ngClass",e.dropDownMenuClass))},directives:[Gh],encapsulation:2}),t})(),NP=(()=>{let t=class{constructor(t){this.alertService=t,this._isNameModified=!1,this.isNameModifiedChange=new Zl,this.msgCopyToClipBoard="ImgManager.ImgEditor.copytoClipBoard"}set isNameModified(t){this._isNameModified=t}get isNameModified(){return this._isNameModified}ngOnInit(){this.init()}init(){this.imgName=this.imgToEdit.display_name}getFileSize(){return this.imgToEdit?Math.round(parseInt(this.imgToEdit.size)/1e3):"-"}copyToClipBoard(t){this.alertService.openAlert(this.msgCopyToClipBoard)}onNameChange(){this.isNameModifiedChange.emit(!0)}};return t.\u0275fac=function(e){return new(e||t)(Oo(vP))},t.\u0275cmp=pe({type:t,selectors:[["info-section"]],inputs:{isNameModified:"isNameModified",imgToEdit:"imgToEdit"},outputs:{isNameModifiedChange:"isNameModifiedChange"},decls:76,vars:60,consts:[[1,"img-editor__infoSection__propertyEditable"],[1,"mainColor"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertyEditable__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"],[1,"fas","fa-info-circle"],["type","text","debounceKeyUp","",1,"img-editor__infoSection__propertyEditable__input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],[3,"copy-clipboard","copied"],[1,"img-editor__infoSection__propertyEditable__span"],[1,"far","fa-copy"],[1,"img-editor__infoSection__property"],[1,"img-editor__infoSection__divider"],[1,"img-editor__infoSection__titleSEO"],[1,"img-editor__infoSection__propertySEO"],[1,"fal","fa-check"],["nwbToolTipPosition","right",1,"img-editor__infoSection__propertySEO__tooltips",3,"nwbToolTip","nwbToolTipIsMultiline"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"p",1),wa(2),ql(3,"translate"),zo(4,"span",2),ql(5,"translate"),Vo(6,"i",3),Fo(),Fo(),zo(7,"input",4),$o("ngModelChange",(function(t){return e.imgToEdit.display_name=t}))("onEventChange",(function(){return e.onNameChange()})),ql(8,"translate"),Fo(),Fo(),zo(9,"div",0),zo(10,"p",1),wa(11),ql(12,"translate"),Fo(),zo(13,"button",5),$o("copied",(function(t){return e.copyToClipBoard(t)})),ql(14,"imgSrc"),zo(15,"span",6),wa(16),Fo(),wa(17,"\xa0\xa0"),Vo(18,"i",7),Fo(),Fo(),zo(19,"div",8),zo(20,"p",1),wa(21),ql(22,"translate"),Fo(),zo(23,"p"),wa(24),Fo(),Fo(),zo(25,"div",8),zo(26,"p",1),wa(27),ql(28,"translate"),Fo(),zo(29,"p"),wa(30),Fo(),Fo(),Vo(31,"span",9),zo(32,"div",10),zo(33,"p",1),wa(34),ql(35,"translate"),Fo(),Fo(),zo(36,"div",11),zo(37,"p",1),wa(38),ql(39,"translate"),Fo(),zo(40,"p"),Vo(41,"i",12),wa(42,"\xa0100%"),Fo(),zo(43,"p",13),ql(44,"translate"),Vo(45,"i",3),Fo(),Fo(),zo(46,"div",11),zo(47,"p",1),wa(48),ql(49,"translate"),Fo(),zo(50,"p"),Vo(51,"i",12),wa(52,"\xa0100%"),Fo(),zo(53,"p",13),ql(54,"translate"),Vo(55,"i",3),Fo(),Fo(),zo(56,"div",11),zo(57,"p",1),wa(58),ql(59,"translate"),Fo(),zo(60,"p"),Vo(61,"i",12),wa(62,"\xa0100%"),Fo(),zo(63,"p",13),ql(64,"translate"),Vo(65,"i",3),Fo(),Fo(),zo(66,"div",11),zo(67,"p",1),wa(68),ql(69,"translate"),Fo(),zo(70,"p"),Vo(71,"i",12),wa(72,"\xa0100%"),Fo(),zo(73,"p",13),ql(74,"translate"),Vo(75,"i",3),Fo(),Fo()),2&t&&(ws(2),Sa(" ",Gl(3,27,"ImgManager.UploadList.properties.imgName")," "),ws(2),Lo("nwbToolTip",Gl(5,29,"ImgManager.ImgEditor.NameInfo"))("nwbToolTipIsMultiline",!0),ws(3),Jo("placeholder","",Gl(8,31,"ImgManager.ImgEditor.nameEx")," "),Lo("ngModel",e.imgToEdit.display_name)("debounceTime",500),ws(4),Ca(Gl(12,33,"ImgManager.UploadList.properties.imgURL")),ws(2),Lo("copy-clipboard",Yl(14,35,e.imgToEdit.file_name,"raw")),ws(3),Ca(e.imgToEdit.file_name),ws(5),Sa("",Gl(22,38,"ImgManager.UploadList.properties.imgSize"),"\xa0:"),ws(3),Ea("",e.imgToEdit.raw_height,"*",e.imgToEdit.raw_width,"px"),ws(3),Sa("",Gl(28,40,"ImgManager.UploadList.properties.imgWeight"),"\xa0:"),ws(3),Sa("",e.getFileSize(),"\xa0ko"),ws(4),Ca(Gl(35,42,"ImgManager.UploadList.seo.title")),ws(4),Ca(Gl(39,44,"ImgManager.UploadList.seo.rezise")),ws(5),Lo("nwbToolTip",Gl(44,46,"ImgManager.UploadList.seo.reziseTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(49,48,"ImgManager.UploadList.seo.webp")),ws(5),Lo("nwbToolTip",Gl(54,50,"ImgManager.UploadList.seo.webpTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(59,52,"ImgManager.UploadList.seo.cdn")),ws(5),Lo("nwbToolTip",Gl(64,54,"ImgManager.UploadList.seo.cdnTooltips"))("nwbToolTipIsMultiline",!0),ws(5),Ca(Gl(69,56,"ImgManager.UploadList.seo.lazyloading")),ws(5),Lo("nwbToolTip",Gl(74,58,"ImgManager.UploadList.seo.lazyloadingTooltips"))("nwbToolTipIsMultiline",!0))},directives:function(){return[Pw,rk,qf,Zf,Km,RP]},pipes:function(){return[Vf,ik]},encapsulation:2}),t})();const zP=Fu("insertRemoveAnnim",[Wu(":enter",[ju({opacity:0}),Vu("0.5s ease-in-out",ju({opacity:1}))])]);let FP=(()=>{let t=class{constructor(t){this.imgCDNService=t,this._isImgModified=!1,this.isImgModifiedChange=new Zl,this.editClosed=new Zl,this.currentCroppedImageChange=new Zl,this.msgFailLoad="ImgManager.ImgEditor.msgFailLoad",this.isNameModified=!1,this.isCropperReady=!1,this.currentCroppedImage="",this.isCropped=!1,this.isLoading=!1,this.isImgCropped=!1,this.isImgCroppedInitilized=!1,this.imageChangedEvent="",this.croppedImage="",this.canvasRotation=0,this.rotation=0,this.scale=1,this.showCropper=!1,this.containWithinAspectRatio=!1,this.transform={},this.resolutionConfig=[{label:"ImgManager.ImgEditor.config.origin",config:{maintainAspectRatio:!0}},{label:"ImgManager.ImgEditor.config.free",config:{maintainAspectRatio:!1},active:!0},{label:"ImgManager.ImgEditor.config.square",config:{maintainAspectRatio:!0,aspectRatio:1}},{label:"ImgManager.ImgEditor.config.Portrait",config:{maintainAspectRatio:!0,aspectRatio:3/4}},{label:"ImgManager.ImgEditor.config.landscape",config:{maintainAspectRatio:!0,aspectRatio:5/3}}],this.rotationConfig=[{label:"ImgManager.ImgEditor.config.schedule",icon:"fal fa-redo-alt",method:"rotateRight",active:!0},{label:"ImgManager.ImgEditor.config.AntiSchedule",icon:"fal fa-undo-alt",method:"rotateLeft"},{label:"ImgManager.ImgEditor.config.flipVert",icon:"fal fa-sort-alt",method:"flipVertical"},{label:"ImgManager.ImgEditor.config.flipHoriz",icon:"fal fa-exchange-alt",method:"flipHorizontal"}],this.zoomConfig=[{label:"ImgManager.ImgEditor.config.zoom",icon:"fal fa-search-plus",method:"zoomIn",active:!0},{label:"ImgManager.ImgEditor.config.dezoom",icon:"fal fa-search-minus",method:"zoomOut"}],this.imgCropperConfig={maintainAspectRatio:!1,aspectRatio:void 0}}set isImgModified(t){this._isImgModified=t,t||this.restartEdit()}get isImgModified(){return this._isImgModified}ngOnInit(){this.init()}init(){this.imgRoute=this.getRAWImgRoute(),this.imgType=this.getImgType(),this.croppedImage=null,this.setDefautAspectRatio()}getRAWImgRoute(){return this.imgCDNService.getUrlImg("raw")+this.imgToEdit.file_name}getImgType(){return this.imgToEdit.file_name?this.imgToEdit.file_name.split(".").pop():void 0}setDefautAspectRatio(){const t=parseInt(this.imgToEdit.raw_height),e=parseInt(this.imgToEdit.raw_width);this.defaultAspectRatio=t/e,this.resolutionConfig[0].config.aspectRatio=this.defaultAspectRatio,this.imgCropperConfig.aspectRatio=this.defaultAspectRatio}onEditClosed(t){this.editClosed.emit(t)}onRestart(){this.isImgModifiedChange.emit(!1)}restartEdit(){this.init(),this.resetConfCropper()}onImgModified(){this.isImgModified=!0,this.isImgModifiedChange.emit(!0)}fileChangeEvent(t){this.imageChangedEvent=t}imageCropped(t){this.detectImgCropperChange(),this.currentCroppedImage=t.base64,this.currentCroppedImageChange.emit(this.currentCroppedImage)}imageLoaded(){this.showCropper=!0}cropperReady(){this.isCropperReady=!0}loadImageFailed(){this.onEditClosed(this.msgFailLoad)}changeResolutionSize(t){this.setActiveItem(this.resolutionConfig,t),this.setCropperProperties(this.resolutionConfig[t].config)}confirmCrop(){this.imgRoute=null,this.croppedImage=this.currentCroppedImage,this.isImgCropped=!1,this.isImgCroppedInitilized=!1,this.resetConfCropper(),this.onImgModified()}resetConfCropper(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}setActiveItem(t,e){t.forEach((t,n)=>{t.active=n===e})}setCropperProperties(t){for(const e in t)this.imgCropperConfig[e]=t[e]}detectImgCropperChange(){this.isImgCropped=this.isImgCroppedInitilized,this.isImgCroppedInitilized=!0}rotateLeft(){this.canvasRotation--,this.flipAfterRotate(),this.onImgModified()}rotateRight(){this.canvasRotation++,this.flipAfterRotate(),this.onImgModified()}flipHorizontal(){this.transform=Object.assign(Object.assign({},this.transform),{flipH:!this.transform.flipH}),this.onImgModified()}flipVertical(){this.transform=Object.assign(Object.assign({},this.transform),{flipV:!this.transform.flipV}),this.onImgModified()}flipAfterRotate(){const t=this.transform.flipH,e=this.transform.flipV;this.transform=Object.assign(Object.assign({},this.transform),{flipH:e,flipV:t})}zoomOut(){this.scale-=this.scale<.2?0:.1,this.transform=Object.assign(Object.assign({},this.transform),{scale:this.scale}),this.onImgModified()}zoomIn(){this.scale+=.1,this.transform=Object.assign(Object.assign({},this.transform),{scale:this.scale}),this.onImgModified()}applyMethod(t){this[t]()}};return t.\u0275fac=function(e){return new(e||t)(Oo(hP))},t.\u0275cmp=pe({type:t,selectors:[["cropper"]],inputs:{isImgModified:"isImgModified",imgToEdit:"imgToEdit"},outputs:{isImgModifiedChange:"isImgModifiedChange",editClosed:"editClosed",currentCroppedImageChange:"currentCroppedImageChange"},decls:33,vars:31,consts:[[1,"img-editor__container__toolsContainer"],[4,"ngIf"],["dropdownId","dropdown-resolution"],["label",""],[1,"img-editor__container__toolsContainer__tool"],[1,"far","fa-crop"],["item","",4,"ngFor","ngForOf"],["dropdownId","dropdown-rotation"],[1,"img-editor__container__toolsContainer__tool",3,"click"],[1,"far","fa-expand-arrows-alt"],["dropdownId","dropdown-rotation","dropDownMenuClass","img-editor__container__toolsContainer__RotationDropdown"],[1,"far","fa-redo"],[1,"far","fa-retweet-alt"],[1,"img-editor__image-cropper"],[3,"imageURL","imageBase64","maintainAspectRatio","containWithinAspectRatio","aspectRatio","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","format","backgroundColor","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["nwbToolTipPosition","left",1,"img-editor__container__toolsContainer__tool","img-editor__container__toolsContainer__tool--button",3,"nwbToolTip","click"],[1,"far","fa-check"],["item",""],[1,"dropdown-item",3,"ngClass","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,kx,7,6,"div",1),zo(2,"dropdown",2),Uo(3,3),zo(4,"div",4),Vo(5,"i",5),zo(6,"p"),wa(7),ql(8,"translate"),Fo(),Fo(),jo(),Do(9,Dx,5,6,"ng-container",6),Fo(),zo(10,"dropdown",7),Uo(11,3),zo(12,"div",8),$o("click",(function(){return e.zoomIn()})),Vo(13,"i",9),zo(14,"p"),wa(15),ql(16,"translate"),Fo(),Fo(),jo(),Do(17,Ox,6,7,"ng-container",6),Fo(),zo(18,"dropdown",10),Uo(19,3),zo(20,"div",8),$o("click",(function(){return e.rotateRight()})),Vo(21,"i",11),zo(22,"p"),wa(23),ql(24,"translate"),Fo(),Fo(),jo(),Do(25,Lx,6,7,"ng-container",6),Fo(),zo(26,"div",8),$o("click",(function(){return e.onRestart()})),Vo(27,"i",12),zo(28,"p"),wa(29),ql(30,"translate"),Fo(),Fo(),Fo(),zo(31,"div",13),zo(32,"image-cropper",14),$o("imageCropped",(function(t){return e.imageCropped(t)}))("imageLoaded",(function(){return e.imageLoaded()}))("cropperReady",(function(){return e.cropperReady()}))("loadImageFailed",(function(){return e.loadImageFailed()})),Fo(),Fo()),2&t&&(ws(1),Lo("ngIf",e.isImgCropped),ws(6),Ca(Gl(8,23,"ImgManager.ImgEditor.crop")),ws(2),Lo("ngForOf",e.resolutionConfig),ws(6),Ca(Gl(16,25,"ImgManager.ImgEditor.display")),ws(2),Lo("ngForOf",e.zoomConfig),ws(6),Ca(Gl(24,27,"ImgManager.ImgEditor.rotation")),ws(2),Lo("ngForOf",e.rotationConfig),ws(1),Lo("@insertRemoveAnnim",void 0),ws(3),Ca(Gl(30,29,"ImgManager.ImgEditor.restart")),ws(3),aa("display",e.showCropper?null:"none"),Lo("imageURL",e.imgRoute)("imageBase64",e.croppedImage)("maintainAspectRatio",e.imgCropperConfig.maintainAspectRatio)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",e.imgCropperConfig.aspectRatio)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","center")("format",e.imgType)("backgroundColor","white"))},directives:[Xh,LP,Qh,hS,Pw,Gh],pipes:[Vf],encapsulation:2,data:{animation:[zP]}}),t})(),VP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.imgManager=t,this.imgEventService=e,this.imgSelectionService=n,this.alertService=i,this.userSettingsService=s,this.renamePictureService=r,this.listDisplayed=!1,this.multipleImgMode=!1,this.switchDisplayWindow=new Zl,this.tableFilters={sort:void 0,order:void 0,searchValue:"",totalItems:0,itemsPerPage:0,currentPage:1},this.widthLargeCard=219,this.widthSmallCard=160,this.nbFakeImg=0,this.imgFullWidthConfig=[{max:419,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:499,largeImgWidthFactor:1,smallImgWidthFactor:.5},{max:719,largeImgWidthFactor:.5,smallImgWidthFactor:.3333},{max:1023,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1599,largeImgWidthFactor:.2,smallImgWidthFactor:.1111},{largeImgWidthFactor:.1666,smallImgWidthFactor:.1}],this.imgWidthConfig=[{max:1024,largeImgWidthFactor:.25,smallImgWidthFactor:.125},{max:1199,largeImgWidthFactor:.3333,smallImgWidthFactor:.2},{max:1299,largeImgWidthFactor:.3333,smallImgWidthFactor:.1666},{max:1399,largeImgWidthFactor:.25,smallImgWidthFactor:.1666},{max:1599,largeImgWidthFactor:.25,smallImgWidthFactor:.14},{largeImgWidthFactor:.25,smallImgWidthFactor:.125}],this.searchQueryChanged=new I,this.filtersChanged=new I,this.picturesList=[],this.savePictureList=[],this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!0,this.isTotalRetieved=!1,this.delListImgLoader=!1,this.initComponent=!0,this.failLoaded=!1,this.displayPexelsResults=!1,this.confirmImgSup=!1,this.pageIndex=0,this.length=0,this.pageSize=30,this.pageSizeOptions=[25,50,100,250],this.errorGetAllImg="ImgManager.ImgLib.errorGetAllImg",this.errorGetTotalImg="ImgManager.ImgLib.errorGetTotalImg",this.errorGetImg="ImgManager.ImgLib.errorGetCanvaImg",this.msgNoImgFound="ImgManager.ImgLib.noImgFound",this.errorRemoveImg="ImgManager.ImgList.errorRemoveImg"}ngOnInit(){this.setEvents(),this.imgSelectedList=this.imgSelectionService.getImgSelection()}ngAfterViewInit(){this.setNbImgToDisplay(),this._getImgList(),this.savePictureList||(this.savePictureList=this.picturesList)}getImgList(){this.filtersChanged.next()}onSwitchFormatDisplayed(t){this.listDisplayed=t,this.userSettingsService.setUserDisplayPreference(t),this.imgEventService.emitlistDisplayedChange(t)}onImgSelected(){this.setNbImgToDelSelected()}onShowImgUploaded(){this.searchText=null,this.searchedValue=null,this.getImgList()}onRenamePicture(t){console.log("onRenamePicture pictureRenamed",t),this.renamePictureService.onRenamePicture(t)}removeListImg(){if(this.disable)return;this.disable=!0,this.delListImgLoader=!0,this.confirmImgSup=!1;const t=[];this.picturesList.forEach(e=>{e.delSelected&&(e.deleted=!0,t.push(e.id_file))}),this.imgManager.removeMultipleImg(t).subscribe(()=>{this.getImgList(),this.imgSelectionService.removeImgSelectionByIds(t)},t=>{this.getImgList(),this.alertService.openAlert(this.errorRemoveImg)})}selectImgChosen(){if(this.disable)return;const t=[];this.picturesList.map(e=>{e.delSelected&&(e.delSelected=!1,e.selected=!0),e.selected&&t.push(e)}),this.setNbImgToDelSelected(),this.imgSelectionService.setImgSelection(t)}displayConfirmImgSup(){this.disable||(this.confirmImgSup=!0)}cancelSup(){this.confirmImgSup=!1}onPicturesListChange(){this.setNbImgToDelSelected()}onFiltersChange(){this.getImgList()}setNbImgToDisplay(){const t=this.imgLibContainer.nativeElement.offsetWidth+30,e=window.innerWidth-document.body.offsetWidth,[n,i]=this.getImgWidthFactors(),s=Math.floor(t*i),r=Math.ceil((t+e)*n);this.nbMaxImgPerLine=Math.floor(t/s),this.nbMinImgPerLine=Math.floor((t+e)/r),this.pageSize=this.getTotalImgPerPage()}getImgWidthFactors(){const t=window.innerWidth;let e=0,n=[];const i=this.fullSize?this.imgFullWidthConfig:this.imgWidthConfig;for(const s of i){if(!s.max){n=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}if(e<t&&t<=s.max){n=[s.largeImgWidthFactor,s.smallImgWidthFactor];break}e=s.max}return n}getTotalImgPerPage(){if(this.nbRowToShow)return("full"===this.stateDisplayed?this.nbMinImgPerLine:this.nbMaxImgPerLine)*this.nbRowToShow;let t=this.nbMinImgPerLine;for(;t<30||t%this.nbMaxImgPerLine!=0||t%this.nbMinImgPerLine!=0;)t+=this.nbMinImgPerLine;return t}setParams(){var t;this.params={limit:(null===(t=this.maxLengthCardShow)||void 0===t?void 0:t.toString())||(this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage.toString():this.pageSize.toString()),page:this.tableFilters.currentPage.toString()},this.tableFilters.searchValue&&(this.params["display_name:contains"]=this.tableFilters.searchValue.toString())}initVariables(t){this.nbImgToDelSelected=0,this.disable=!1,this.isLoading=!1,this.delListImgLoader=!1,this.initComponent=!1,this.displayPexelsResults=!1,this.failLoaded=!t,this.nbFakeImg=0}selectImgSelected(){if(!this.imgSelectedList||!this.imgSelectedList.length)return;const t=[];this.imgSelectedList.forEach(e=>t.push(e.id_file)),this.picturesList.forEach(e=>{-1!==t.indexOf(e.id_file)&&(e.selected=!0)})}displayPexelsLib(){this.displayPexelsResults=!0,this.alertService.openAlert(this.msgNoImgFound)}calculNbImgFake(t){const e="small"===this.stateDisplayed||"img-upload"===this.tabDisplayed?this.nbMaxImgPerLine:this.nbMinImgPerLine;t%e!=0&&(this.nbFakeImg=e-t%e)}getImg(t){this.imgManager.getShopImg(t).pipe(df(1)).subscribe(t=>{this.imgAlreadyExist(t.id_file)||(this.picturesList.unshift(t),this.length+=1)},t=>{this.alertService.openAlert(this.errorGetImg)})}imgAlreadyExist(t){for(const e of this.picturesList)if(e.id_file===t)return!0;return!1}setNbImgToDelSelected(){this.nbImgToDelSelected=this.picturesList.filter(t=>t.delSelected).length,this.nbImgToDelSelected||(this.confirmImgSup=!1)}setEvents(){this.searchQueryChanged.pipe(hC(400)).subscribe(t=>{this.getImgList()}),this.filtersChanged.pipe(hC(800)).subscribe(t=>{this._getImgList()}),this.imgRemovedEvent=this.imgEventService.getImgRemovedEventListner().subscribe(t=>{this.getImgList()}),this.imgAddedEvent=this.imgEventService.getImgAddedEventListner().subscribe(t=>{t&&!this.imgAlreadyExist(t)&&this.getImg(t)}),this.imgSelectionChange=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{if(this.listDisplayed)return;const e=[];t.map(t=>e.push(t.id_file));for(const n of this.picturesList)-1===e.indexOf(n.id_file)&&(n.selected=!1)})}_getImgList(){this.isLoading=!0,this.displayPexelsResults=!1,this.setParams(),this.refreshTotalImgList(),this.imgManager.getShopImgList(this.params).pipe(df(1)).subscribe(t=>{this.initVariables(!0),this.calculNbImgFake(t.data.length),this.picturesList=t.data,this.renamePictureService.setPicturesList(this.picturesList),this.selectImgSelected(),this.length=this.isTotalRetieved?this.length:t.totalRecords,this.tableFilters.totalItems=this.isTotalRetieved?this.tableFilters.totalItems:t.totalRecords,this.tableFilters.itemsPerPage=this.tableFilters.itemsPerPage?this.tableFilters.itemsPerPage:this.pageSize,0===t.totalRecords&&this.displayPexelsLib()},t=>{this.alertService.openAlert(this.errorGetAllImg),this.initVariables(!1)})}refreshTotalImgList(){const t=this.tableFilters.searchValue;this.isTotalRetieved&&t===this.previousSearchValue||(this.isTotalRetieved=!1,this.imgManager.getShopTotalImgList(this.params).pipe(df(1)).subscribe(e=>{this.previousSearchValue=t,this.isTotalRetieved=!0,this.length=e.totalRecords,this.tableFilters.totalItems=e.totalRecords},t=>{this.initVariables(!1)}))}switchDisplayWindowMosaic(){this.switchDisplayWindow.emit(!0)}ngOnDestroy(){this.searchQueryChanged.unsubscribe(),this.imgRemovedEvent.unsubscribe(),this.imgAddedEvent.unsubscribe(),this.imgSelectionChange.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(gP),Oo(aP),Oo(vP),Oo(dP),Oo(bP))},t.\u0275cmp=pe({type:t,selectors:[["images-view"]],viewQuery:function(t,e){var n;1&t&&uc(Nx,!0),2&t&&cc(n=fc())&&(e.imgLibContainer=n.first)},inputs:{listDisplayed:"listDisplayed",multipleImgMode:"multipleImgMode",stateDisplayed:"stateDisplayed",tabDisplayed:"tabDisplayed",fullSize:"fullSize",maxLengthCardShow:"maxLengthCardShow",nbRowToShow:"nbRowToShow"},outputs:{switchDisplayWindow:"switchDisplayWindow"},decls:9,vars:19,consts:[[1,"images-view",3,"ngClass"],["class","images-view__container",3,"ngClass",4,"ngIf"],[1,"images-view__scroll",3,"visibility","ngClass"],["scrollable",""],[1,"images-view__wrapper"],["imgLibContainer",""],[4,"ngIf"],["class","images-view--pexels",4,"ngIf"],[1,"images-view__container",3,"ngClass"],["class","field has-addons subHeaderActions",4,"ngIf"],[1,"mainColor"],[1,"field","has-addons","subHeaderActions"],[1,"images-view__container__boxAction"],["class","button success images-view__container__boxAction__import",3,"click",4,"ngIf"],["class","button images-view__container__boxAction__delBtn danger",3,"click",4,"ngIf"],[1,"images-view__container__boxAction__confirmSup",3,"ngClass"],["class","images-view__container__boxAction__confirmSup__text",4,"ngIf"],[1,"button","images-view__container__boxAction__confirmSup__cancel",3,"click"],[1,"button","images-view__container__delBtn","danger",3,"click"],[1,"field","has-addons","images-view__container__buttonBox"],[1,"control"],[1,"button","is-lighted","images-view__container__buttonBox__btn",3,"ngClass","click"],[1,"icon","is-small"],[1,"far","fa-th"],[1,"fas","fa-bars"],[1,"button","success","images-view__container__boxAction__import",3,"click"],[1,"fal","fa-check"],[1,"button","images-view__container__boxAction__delBtn","danger",3,"click"],[1,"fal","fa-times"],["btnLoadingAnim","","class","btnLoadingAnnimation",4,"ngIf"],["btnLoadingAnim","",1,"btnLoadingAnnimation"],[1,"images-view__container__boxAction__confirmSup__text"],[3,"picturesList","tableFilters","disable","nbFakeImg","stateDisplayed","tabDisplayed","displayPexelsResults","isLoading","fullSize","picturesListChange","filtersChange","disableChange","pictureNameChange","switchDisplayWindow"],[3,"picturesList","tableFilters","disable","displayPexelsResults","stateDisplayed","isLoading","picturesListChange","filtersChange","disableChange","pictureNameChange"],[1,"images-view--pexels"],[3,"searchValue","disableSearch","showImgUploaded"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,Qx,4,7,"div",1),Fo(),zo(2,"ng-scrollbar",2,3),zo(4,"div",4,5),Do(6,Kx,2,10,"div",6),Do(7,Xx,2,7,"div",6),Fo(),Fo(),Do(8,Zx,2,3,"div",7)),2&t&&(Lo("ngClass",Vl(8,Jx,e.fullSize,"small"===e.stateDisplayed))("@easeInOut","in"),ws(1),Lo("ngIf","small"!==e.stateDisplayed||"img-upload"===e.tabDisplayed),ws(1),Lo("visibility","native")("ngClass",function(t,e,n,i,s,r,o,a,l,c){const h=rn()+11,u=Qe();let d=Po(u,h,n,i,s,r);return To(u,h+4,o,a,l)||d?So(u,h+7,e(n,i,s,r,o,a,l)):Eo(u,h+7)}(0,tT,e.displayPexelsResults&&!e.listDisplayed,e.displayPexelsResults&&!e.listDisplayed&&"small"===e.stateDisplayed,e.displayPexelsResults&&e.listDisplayed,"full"===e.stateDisplayed,"small"===e.stateDisplayed&&"img-upload"!==e.tabDisplayed,"small"===e.stateDisplayed&&"img-upload"===e.tabDisplayed,"window"===e.stateDisplayed)),ws(4),Lo("ngIf",!e.listDisplayed||"small"===e.stateDisplayed),ws(1),Lo("ngIf",e.listDisplayed&&"small"!==e.stateDisplayed),ws(1),Lo("ngIf",e.displayPexelsResults))},directives:function(){return[Gh,Xh,zC,AP,UP,jP,xP]},pipes:function(){return[Vf]},encapsulation:2,data:{animation:[_P,zP]}}),t})(),UP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.nbFakeImg=0,this.switchDisplayWindow=new Zl}ngOnInit(){}onSearchChange(t){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.filtersChange.emit(this.tableFilters)}onCardRenamePicture(t){this.pictureNameChange.next(t)}switchDisplayWindowCard(){this.switchDisplayWindow.emit(!0)}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["mosaic-view"]],inputs:{nbFakeImg:"nbFakeImg",tabDisplayed:"tabDisplayed",fullSize:"fullSize"},outputs:{switchDisplayWindow:"switchDisplayWindow"},features:[Pa],decls:5,vars:9,consts:[[1,"mosaic",3,"ngClass"],["class","mosaic__search",3,"ngClass",4,"ngIf"],["class","mosaic__container__cards",3,"ngClass",4,"ngIf"],["class","mosaic__container__loader",4,"ngIf"],["class","mosaic__pagination",4,"ngIf"],[1,"mosaic__search",3,"ngClass"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"mosaic__container__cards",3,"ngClass"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow",4,"ngFor","ngForOf"],["class","mosaic__container__cards__fakeImg",3,"ngClass",4,"ngFor","ngForOf"],[3,"picture","stateDisplayed","tabDisplayed","disable","fullSize","toggleImgSelected","pictureNameChange","switchDisplayWindow"],[1,"mosaic__container__cards__fakeImg",3,"ngClass"],[1,"mosaic__container__loader"],[3,"small"],[1,"mosaic__pagination"],[3,"pagination","pageChange"]],template:function(t,e){1&t&&(zo(0,"div",0),Do(1,nT,3,8,"div",1),Do(2,aT,4,8,"div",2),Do(3,lT,2,1,"div",3),Do(4,cT,2,1,"div",4),Fo()),2&t&&(Lo("ngClass",Ul(5,hT,e.fullSize,"small"===e.stateDisplayed,e.displayPexelsResults)),ws(1),Lo("ngIf","img-upload"!==e.tabDisplayed),ws(1),Lo("ngIf",!e.isLoading&&!e.displayPexelsResults),ws(1),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",e.picturesList.length&&"img-upload"!==e.tabDisplayed&&!e.displayPexelsResults))},directives:function(){return[Gh,Xh,$P,Zf,Km,Qh,PP,ok,GP]},pipes:function(){return[Vf,lk]},encapsulation:2,data:{animation:[IP]}}),t})(),jP=(()=>{let t=class extends TP{constructor(t,e,n,i,s,r,o,a){super(t,e,n,i,s,r,o,a),this.dataTableName="imgagesView"}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)(Oo(cP),Oo(aP),Oo(Wg),Oo(hP),Oo(gP),Oo(vP),Oo(Ff),Oo(uP))},t.\u0275cmp=pe({type:t,selectors:[["table-view"]],features:[Pa],decls:9,vars:15,consts:[[1,"table-view"],[3,"checkbox","tableFilters","placeholder","disablePagniation","isLoading","toggleAllCheckBox","tableFiltersChange"],["headerCell","","columnSize","2","sortName","name",3,"headerName"],["headerCell","","centerCell","center",3,"headerName"],["headerCell","","columnSize","0"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange",4,"ngFor","ngForOf"],["tableRow","","checkBoxRow","",3,"checkBoxValue","checkBoxValueChange"],["tableColumn","","columnSize","2"],[1,"table-view__row__container"],[1,"table-view__row__container__imgContainer",3,"ngClass","click"],["alt","picture.display_name",1,"table-view__row__container__imgContainer__img",3,"src","ngClass","error"],["class","table-view__row__container__imgContainer__overlay",4,"ngIf"],["type","text",1,"wzImgMngInput","table-view__row__container__name",3,"ngModel","ngClass","disabled","ngModelChange","focus","blur","click"],["tableColumn","","centerCell","center",3,"click"],[1,"grey"],["tableColumn","","centerCell","center","columnSize","0",1,"table-view__dropdown-options"],["dropdownId","dropdown-options",3,"disable"],["label",""],[1,"table-view__dropdown-options__label","rotate"],["aria-haspopup","true","aria-controls","dropdown-menu",1,"far","fa-ellipsis-h","is-size-4"],["item",""],[1,"dropdown-item",3,"click"],[1,"far","fa-download","download"],[1,"far","fa-crop-alt","edit"],[1,"fal","fa-times","deleted"],[1,"table-view__row__container__imgContainer__overlay"],[1,"fad","fa-folder-times"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"wz-table",1),$o("toggleAllCheckBox",(function(t){return e.onToggleAllCheckBoxRow(t)}))("tableFiltersChange",(function(t){return e.tableFilters=t}))("tableFiltersChange",(function(){return e.onFiltersChange()})),ql(2,"translate"),Vo(3,"div",2),ql(4,"translate"),Vo(5,"div",3),ql(6,"translate"),Vo(7,"div",4),Do(8,fT,38,29,"div",5),Fo(),Fo()),2&t&&(Lo("@listAnimation",e.picturesList.length),ws(1),Lo("checkbox",!0)("tableFilters",e.tableFilters)("placeholder",Gl(2,9,"ImgManager.SearchBar.placeholder"))("disablePagniation",e.displayPexelsResults)("isLoading",e.isLoading),ws(2),Lo("headerName",Gl(4,11,"ImgManager.ImgList.titleImgName")),ws(2),Lo("headerName",Gl(6,13,"ImgManager.ImgList.titleResolution")),ws(3),Lo("ngForOf",e.picturesList))},directives:function(){return[HP,ek,Qh,nk,ZP,tk,Gh,Xh,qf,Zf,Km,LP]},pipes:function(){return[Vf,ik]},encapsulation:2,data:{animation:[IP]}}),t})(),BP=(()=>{let t=class{constructor(t){this.filterRoutingBuilder=t,this.filterGroups=new Map,this.dataTableFilters={sort:void 0,order:void 0,searchValue:void 0,totalItems:0,itemsPerPage:0,currentPage:0},this.sortSubject=new I}getTableFilterGroup(t){if(this.filterGroups.has(t))return this.filterGroups.get(t);const e=this.filterRoutingBuilder.group(this.dataTableFilters,t);return this.filterGroups.set(t,e),e}emitSortChange(t,e,n){this.sortSubject.next({dataTableName:t,sortName:e,order:n})}getSortChangeListner(){return this.sortSubject.asObservable()}setPaginationFilters(t,e,n,i){this.getTableFilterGroup(t).setValues({itemsPerPage:n,currentPage:i})}setInitialPaginationFiltersIfNotExist(t,e,n){const i=this.getTableFilterGroup(t);i.setValues({itemsPerPage:i.get("itemsPerPage")?parseInt(i.get("itemsPerPage")):e,currentPage:i.get("currentPage")?parseInt(i.get("currentPage")):n})}};return t.\u0275fac=function(e){return new(e||t)(Yt(Dw))},t.\u0275prov=ht({factory:function(){return new t(Yt(Dw))},token:t,providedIn:"root"}),t})(),HP=(()=>{let t=class{constructor(t){this.filtersTableService=t,this.tableFiltersChange=new Zl,this.placeholder="",this.checkbox=!1,this.toggleAllCheckBox=new Zl,this.disableSearch=!1,this.disablePagniation=!1,this.isLoading=!1}ngOnInit(){this.headerCheckBoxId=Object(rE.v4)(),this.tableRoutingName&&(this._filterGroup=this.filtersTableService.getTableFilterGroup(this.tableRoutingName),this._filterGroup.valuesChange$.next([]),this.setTablesFilters(),this.filterGroupChangeSub=this._filterGroup.valuesChange$.subscribe(t=>{this.setTablesFilters()}))}onToggleAllCheckBox(t){this.toggleAllCheckBox.emit(t.target.checked)}searchChange(t){this.tableFilters.sort=void 0,this.tableFilters.order=void 0,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({searchValue:this.tableFilters.searchValue,sort:void 0,order:void 0,currentPage:1})}pageChange(){this.tableFiltersChange.emit(this.tableFilters),this._filterGroup&&this._filterGroup.setValues({itemsPerPage:this.tableFilters.itemsPerPage,currentPage:this.tableFilters.currentPage})}setTablesFilters(){this.tableFilters={sort:this._filterGroup.get("sort"),order:this._filterGroup.get("order"),searchValue:this._filterGroup.get("searchValue"),itemsPerPage:this._filterGroup.get("itemsPerPage")?parseInt(this._filterGroup.get("itemsPerPage")):0,currentPage:this._filterGroup.get("currentPage")?parseInt(this._filterGroup.get("currentPage")):0,totalItems:this.tableFilters.totalItems},this.tableFiltersChange.emit(this.tableFilters)}ngDestroy(){this.filterGroupChangeSub&&this.filterGroupChangeSub.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(Oo(BP))},t.\u0275cmp=pe({type:t,selectors:[["wz-table"]],inputs:{placeholder:"placeholder",checkbox:"checkbox",disableSearch:"disableSearch",disablePagniation:"disablePagniation",isLoading:"isLoading",tableFilters:"tableFilters",tableRoutingName:"tableRoutingName"},outputs:{tableFiltersChange:"tableFiltersChange",toggleAllCheckBox:"toggleAllCheckBox"},ngContentSelectors:CT,decls:9,vars:5,consts:[[1,"wz-table"],["id","headerTable",1,"wz-table__head"],["class","wz-table__head__cell wz-table__head__cell--checkbox",4,"ngIf"],["class","wz-table__search",4,"ngIf"],[1,"wz-table__body"],["class","wz-table__body__loader",4,"ngIf"],[4,"ngIf"],[3,"pagination","pageChange",4,"ngIf"],[1,"wz-table__head__cell","wz-table__head__cell--checkbox"],[3,"id","alone","change"],[1,"wz-table__search"],[3,"ngModel","placeholder","smallPadding","ngModelChange","changeDebounced"],[1,"wz-table__body__loader"],[3,"small"],[3,"pagination","pageChange"]],template:function(t,e){1&t&&(Ko(wT),zo(0,"div",0),zo(1,"div",1),Do(2,mT,2,2,"div",2),Xo(3),Fo(),Do(4,_T,2,3,"div",3),zo(5,"div",4),Do(6,vT,2,1,"div",5),Do(7,yT,1,0,void 0,6),Fo(),Do(8,bT,1,1,"wz-pagination",7),Fo()),2&t&&(ws(2),Lo("ngIf",e.checkbox),ws(2),Lo("ngIf",!e.disableSearch),ws(2),Lo("ngIf",e.isLoading),ws(1),Lo("ngIf",!e.isLoading),ws(1),Lo("ngIf",!e.disablePagniation))},directives:function(){return[Xh,XP,$P,Zf,Km,ok,GP]},encapsulation:2}),t})();var WP;let $P=(()=>{let t=WP=class{constructor(){this.placeholder="",this.smallPadding=!1,this.innerValue="",this.changeDebounced=new Zl,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}get value(){return this.innerValue}set value(t){t!==this.innerValue&&(this.innerValue=t,this.onChangeCallback(t))}writeValue(t){t!==this.innerValue&&(this.innerValue=t)}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}handleDebouncedKeyUp(t){this.changeDebounced.emit(t.target.value)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-input-search"]],inputs:{placeholder:"placeholder",smallPadding:"smallPadding",id:"id"},outputs:{changeDebounced:"changeDebounced"},features:[Wa([{provide:jf,useExisting:WP,multi:!0}])],decls:4,vars:5,consts:[[1,"input-search","field",3,"ngClass"],[1,"control","has-icons-left","has-icons-right"],["value","","type","text","debounceKeyUp","",1,"input",3,"placeholder","ngModel","debounceTime","ngModelChange","onEventChange"],[1,"icon","fal","fa-search"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"p",1),zo(2,"input",2),$o("ngModelChange",(function(t){return e.value=t}))("onEventChange",(function(t){return e.handleDebouncedKeyUp(t)})),Fo(),Vo(3,"i",3),Fo(),Fo()),2&t&&(Lo("ngClass",e.smallPadding?"small-padding":""),ws(2),Lo("placeholder",e.placeholder)("ngModel",e.value)("debounceTime",1e3),ko("id",e.id))},directives:function(){return[Gh,rk,qf,Zf,Km]},encapsulation:2}),t})(),qP=(()=>{let t=class{transform(t,e,n){if(!(t>=0&&e>=0&&n>=0))throw new Error("currentPage or totalItems or itemsPerPage is/are missing in PagniationIsLastPage pipe.");return t===Math.ceil(e/n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"IsLastPage",type:t,pure:!0}),t})(),GP=(()=>{let t=class{constructor(){this.pageChange=new Zl}set pagination(t){this._pagination=t}get pagination(){return this._pagination}decrementPage(){this.pagination.currentPage<=1||(this.pagination.currentPage--,this.pageChange.emit(this.pagination))}incrementPage(){(new qP).transform(this.pagination.currentPage,this.pagination.totalItems,this.pagination.itemsPerPage)||(this.pagination.currentPage++,this.pageChange.emit(this.pagination))}onGotoPageChange(t){this.pagination.currentPage=parseInt(t),this.pageChange.emit(this.pagination)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-pagination"]],inputs:{pagination:"pagination"},outputs:{pageChange:"pageChange"},decls:1,vars:1,consts:[["class","wz-pagination",4,"ngIf"],[1,"wz-pagination"],[1,"wz-pagination__wrapper"],[1,"wz-pagination__wrapper__page"],[3,"pagination","totalItems","pageChange"],[1,"wz-pagination__wrapper__elements"],[1,"wz-pagination__wrapper__arrows"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--left",3,"ngClass","click"],[1,"wz-pagination__wrapper__arrows__arrow__icon"],[1,"wz-pagination__wrapper__arrows__arrow","wz-pagination__wrapper__arrows__arrow--right",3,"ngClass","click"]],template:function(t,e){1&t&&Do(0,ET,17,20,"div",0),2&t&&Lo("ngIf",e.pagination&&e.pagination.itemsPerPage)},directives:function(){return[Xh,ck,Gh]},pipes:function(){return[Vf,QP,qP]},encapsulation:2}),t})(),YP=(()=>{let t=class{transform(t,e){if(!(t>=0&&e>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const n=Math.ceil(t/e);return Array.apply(null,{length:n}).map(Number.call,Number).map(t=>t+1)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"ArrayTotalPages",type:t,pure:!0}),t})(),QP=(()=>{let t=class{constructor(t){this.translateService=t}transform(t,e,n){let i=0,s=0;return e&&(i=(t-1)*n+1,s=t*n),s>e&&(s=e),this.translateService.instant("PaginationComponent.on",{low:i,high:s,total:e})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ff))},t.\u0275pipe=be({name:"customPagniationText",type:t,pure:!0}),t})();var KP;let XP=(()=>{let t=KP=class{constructor(){this.label="",this.alone=!1,this.checked=!1,this.id="",this.disabled=!1}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}writeValue(t){this.value=t}onChange(t){this._onChange&&this._onChange(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-checkbox"]],inputs:{label:"label",alone:"alone",checked:"checked",id:"id",value:"value",type:"type",name:"name"},features:[Wa([{provide:jf,useExisting:KP,multi:!0}])],decls:5,vars:12,consts:[[1,"checkBoxField","field",3,"ngClass"],[1,"field__row"],["type","checkbox",1,"is-checkradio",3,"id","name","value","disabled","ngModel","checked","ngModelChange"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"input",2),$o("ngModelChange",(function(t){return e.value=t}))("ngModelChange",(function(t){return e.onChange(t)})),Fo(),zo(3,"label"),wa(4),Fo(),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(9,IT,"column"===e.type,e.alone)),ws(2),Lo("id",e.id)("name",e.name)("value",e.value)("disabled",e.disabled)("ngModel",e.value)("checked",e.checked),ws(1),ko("for",e.id),ws(1),Ca(e.label))},directives:[Gh,Hf,Zf,Km],encapsulation:2}),t})(),ZP=(()=>{let t=class{constructor(t,e,n,i,s,r){this.currentRow=t,this.appRef=e,this.renderer=n,this.document=i,this.resolver=s,this.injector=r,this.checkBoxValueChange=new Zl}set checkBoxValue(t){this._value=t,this.checkboxComponentRef&&this.setCheckBoxValue()}get checkBoxValue(){return this._value}ngOnInit(){this.createCheckBoxComponent(),this.handleChecboxInputs(),this.handleCheckboxOutputs()}createCheckBoxComponent(){const t=document.createElement("div");t.className="wz-table__body__line__cell wz-table__body__line__cell--checkbox",this.renderer.insertBefore(this.currentRow.nativeElement,t,this.currentRow.nativeElement.firstChild),this.htmlContainer=new JP(t,this.appRef,this.resolver,this.injector),this.checkboxComponentRef=this.htmlContainer.attach(XP)}handleChecboxInputs(){this.checkboxComponentRef.instance.id=this.checkBoxId?this.checkBoxId:Object(rE.v4)(),this.checkboxComponentRef.instance.name=this.checkBoxName?this.checkBoxName:void 0,this.checkboxComponentRef.instance.alone=!0,this.setCheckBoxValue()}setCheckBoxValue(){this.checkboxComponentRef.instance.value=this.checkBoxValue}handleCheckboxOutputs(){this.checkboxComponentRef.instance.registerOnChange(()=>{this._toggleCheckbox()})}_toggleCheckbox(){this.checkBoxValue=!this.checkBoxValue,this.checkBoxValueChange.emit(this.checkBoxValue)}ngOnDestroy(){this.htmlContainer.dispose()}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(ah),Oo(Za),Oo(Ih),Oo(Ga),Oo(ho))},t.\u0275dir=ye({type:t,selectors:[["","checkBoxRow",""]],inputs:{checkBoxValue:"checkBoxValue",checkBoxId:"checkBoxId",checkBoxName:"checkBoxName"},outputs:{checkBoxValueChange:"checkBoxValueChange"}}),t})();class JP{constructor(t,e,n,i){this.hostElement=t,this.appRef=e,this.componentFactoryResolver=n,this.injector=i,this.attached=!1}attach(t){if(this.attached)throw new Error("component has already been attached");this.attached=!0;let e=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector);return this.appRef.attachView(e.hostView),this.disposeFn=()=>{this.appRef.detachView(e.hostView),e.destroy()},this.hostElement.appendChild(e.hostView.rootNodes[0]),e}dispose(){this.attached&&this.disposeFn()}}let tk=(()=>{let t=class{constructor(t,e,n){this.currentCell=t,this.renderer=e,this.document=n,this.centerCellValue=["left","center","right"]}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=void 0!==this.columnSize?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line__cell--center--"+this.centerCell)}}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","tableColumn",""]],inputs:{columnSize:"columnSize",centerCell:"centerCell"}}),t})(),ek=(()=>{let t=class{constructor(t,e,n,i){this.currentCell=t,this.renderer=e,this.document=n,this.filtersTableService=i,this._headerName="",this.filterRouting=!1,this.onSortChange=new Zl,this.tableFiltersChange=new Zl,this.centerCellValue=["left","center","right"],this.subscriptions=[]}set headerName(t){this._headerName=t,this.setHeaderName()}get headerName(){return this._headerName}ngOnInit(){this.tableName&&this.sortName&&(this.filterRouting?this.handleSortRouting():this.handleSortBasic())}ngAfterViewInit(){this.applyCustomStylesOnCell(),this.renderHeaderColumn()}handleSortRouting(){this.filterGroup=this.filtersTableService.getTableFilterGroup(this.tableName);const t=this.filterGroup.valuesChange$.subscribe(t=>{const e=t.filter(t=>"sort"===t.key)[0];this.sortName!==e.value&&this.resetSortIcon()});this.subscriptions.push(t)}handleSortBasic(){const t=this.filtersTableService.getSortChangeListner().subscribe(t=>{this.tableName===t.dataTableName&&this.sortName!==t.sortName&&this.resetSortIcon()});this.subscriptions.push(t)}resetSortIcon(){this.contentHeader.className=this.contentHeader.className.replace(this.getCurrentSortIcon(),"idle")}applyCustomStylesOnCell(){if(this.currentCell.nativeElement.style.flexGrow=void 0!==this.columnSize?this.columnSize:"1",this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell"),this.centerCell){if(-1===this.centerCellValue.indexOf(this.centerCell))throw"Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.";this.renderer.addClass(this.currentCell.nativeElement,"wz-table__head__cell--center--"+this.centerCell)}}renderHeaderColumn(){this.createHeaderContent(),this.renderer.appendChild(this.currentCell.nativeElement,this.contentHeader)}createHeaderContent(){this.contentHeader=document.createElement("a"),this.contentHeader.className="wz-table__head__cell__search",this.setHeaderName(),this.tableName&&this.sortName&&this.handleSort()}setHeaderName(){this.contentHeader&&(this.contentHeader.innerHTML=this.headerName)}handleSort(){this.contentHeader.className+=" wz-table__head__cell__search--"+this.getInitialSortIcon(),this.renderer.listen(this.contentHeader,"click",()=>{const t=this.getCurrentSortIcon();let e,n,i;switch(t){case"idle":e="up",n=this.sortName,i=!0;break;case"up":e="down",n=this.sortName,i=!1;break;case"down":default:e="idle"}this.contentHeader.className=this.contentHeader.className.replace(t,e),this.emitEvents(n,i)})}getInitialSortIcon(){if(!this.filterRouting)return"idle";let t="idle";return this.filterGroup.get("sort")===this.sortName&&(t="true"==this.filterGroup.get("order")?"up":"down"),t}getCurrentSortIcon(){const{groups:t}=/wz-table__head__cell__search--(?<icon>\w+)/.exec(this.contentHeader.className);return t.icon}emitEvents(t,e){this.filterRouting?this.filterGroup.setValues({sort:t,order:e,currentPage:1}):this.filtersTableService.emitSortChange(this.tableName,this.sortName,e),this.tableFilters&&(this.tableFilters.sort=this.sortName,this.tableFilters.order=e,this.tableFilters.currentPage=1,this.tableFiltersChange.emit(this.tableFilters)),this.onSortChange.emit(e)}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih),Oo(BP))},t.\u0275dir=ye({type:t,selectors:[["","headerCell",""]],inputs:{filterRouting:"filterRouting",headerName:"headerName",columnSize:"columnSize",tableName:"tableName",sortName:"sortName",centerCell:"centerCell",tableFilters:"tableFilters"},outputs:{onSortChange:"onSortChange",tableFiltersChange:"tableFiltersChange"}}),t})(),nk=(()=>{let t=class{constructor(t,e,n){this.currentCell=t,this.renderer=e,this.document=n}ngAfterViewInit(){this.applyCustomStylesOnCell()}applyCustomStylesOnCell(){this.renderer.addClass(this.currentCell.nativeElement,"wz-table__body__line")}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za),Oo(Ih))},t.\u0275dir=ye({type:t,selectors:[["","tableRow",""]]}),t})(),ik=(()=>{let t=class{constructor(t){this.imgCDNService=t}transform(t,e){if(!e)throw"The size is undefined in ImageSrcPipe.";const n=this.imgCDNService.getUrlImg(e);if(!n)throw"The expected size is not defined in ImageSrcPipe.";return n+t}};return t.\u0275fac=function(e){return new(e||t)(Oo(hP))},t.\u0275pipe=be({name:"imgSrc",type:t,pure:!0}),t})(),sk=(()=>{let t=class{constructor(){this.debounceTime=500,this.onEventChange=new Zl,this.emitEvent$=new I,this.subscription$=new I}ngOnInit(){this.emitEvent$.pipe(o_(this.subscription$),hC(this.debounceTime),x_(),gv(t=>this.emitChange(t))).subscribe()}emitChange(t){this.onEventChange.emit(t)}ngOnDestroy(){this.subscription$.next(),this.subscription$.complete()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["AbstractDebounceDirective"]],inputs:{debounceTime:"debounceTime"},outputs:{onEventChange:"onEventChange"}}),t})(),rk=(()=>{let t=class extends sk{constructor(){super()}onKeyUp(t){t.preventDefault(),this.emitEvent$.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["input","debounceKeyUp",""]],hostBindings:function(t,e){1&t&&$o("keyup",(function(t){return e.onKeyUp(t)}))},features:[Pa]}),t})(),ok=(()=>{let t=class{constructor(){this.small=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-loader"]],inputs:{small:"small",text:"text",position:"position"},decls:9,vars:7,consts:[[1,"wz-loader",3,"ngClass","ngStyle"],[1,"loader","loader1"],["class","is-textcentered",3,"innerHTML",4,"ngIf"],[1,"is-textcentered",3,"innerHTML"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),zo(2,"div"),zo(3,"div"),zo(4,"div"),zo(5,"div"),zo(6,"div"),Vo(7,"div"),Fo(),Fo(),Fo(),Fo(),Fo(),Fo(),Do(8,xT,1,1,"p",2),Fo()),2&t&&(Lo("ngClass",Fl(3,TT,e.small))("ngStyle",Fl(5,PT,e.position)),ws(8),Lo("ngIf",e.text))},directives:[Gh,tu,Xh],encapsulation:2}),t})(),ak=(()=>{let t=class{constructor(){this.icon=!0,this.warning=!1,this.success=!1,this.iconClass="fas fa-info"}ngOnInit(){}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-alert"]],inputs:{icon:"icon",warning:"warning",success:"success",iconClass:"iconClass"},ngContentSelectors:DT,decls:4,vars:5,consts:[[1,"wz-alert",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(t,e){1&t&&(Ko(),zo(0,"div",0),Do(1,kT,1,1,"i",1),zo(2,"p"),Xo(3),Fo(),Fo()),2&t&&(Lo("ngClass",Vl(2,MT,e.success,e.warning)),ws(1),Lo("ngIf",e.icon))},directives:[Gh,Xh],styles:[".wz-alert[_ngcontent-%COMP%]{width:100%;background-color:rgba(82,174,205,.15);color:#52aecd;border-radius:3px;display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:20px}.wz-alert.success[_ngcontent-%COMP%]{background-color:rgba(46,204,113,.15)}.wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .wz-alert.success[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#11552e}.wz-alert.success[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#2ecc71}.wz-alert.warning[_ngcontent-%COMP%]{background-color:rgba(233,86,86,.15)}.wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .wz-alert.warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#3a0505}.wz-alert.warning[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e95656}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:rem(14);line-height:rem(25);margin:0;padding:0;color:#1e5568}.wz-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#1e5568}.wz-alert[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:auto;margin:0 10px 0 0;color:inherit;font-size:rem(14);line-height:rem(25)}"]}),t})(),lk=(()=>{let t=class{transform(t){return Array.from("x".repeat(t))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"numberToArray",type:t,pure:!0}),t})(),ck=(()=>{let t=class{constructor(){this.openAbsoluteSelect=!1,this.largeNumberOfPage=!1,this.numberOfPage=0,this.pageChange=new Zl}set pagination(t){this._pagination=t}get pagination(){return this._pagination}set totalItems(t){this.numberOfPage=Math.ceil(t/this.pagination.itemsPerPage),this.largeNumberOfPage=this.numberOfPage>30}get totalItems(){return this._totalItems}onGotoPageChange(t,e){e?(this.pageChange.emit(t),this.openAbsoluteSelect=!1):this.pageChange.emit(parseInt(t.target.value))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["wz-page-selector"]],inputs:{pagination:"pagination",totalItems:"totalItems"},outputs:{pageChange:"pageChange"},decls:5,vars:6,consts:[[1,"wz-selector"],[1,"wz-selector__default",3,"ngStyle"],["class","wz-selector__default__base",3,"click",4,"ngIf"],["class","wz-selector__default__absolute",4,"ngIf"],[4,"ngIf"],[1,"wz-selector__default__base",3,"click"],["name","page-input",3,"value","ngStyle","change"],[1,"fas","fa-sort-down"],[1,"wz-selector__default__absolute"],["class","wz-selector__default__absolute__wrapper",4,"ngFor","ngForOf"],[1,"wz-selector__default__absolute__wrapper"],[1,"wz-selector__default__absolute__wrapper__item",3,"ngClass","click"],["name","page",3,"ngStyle","change"],[4,"ngFor","ngForOf"],[3,"selected","value"]],template:function(t,e){1&t&&(zo(0,"div",0),zo(1,"div",1),Do(2,OT,3,4,"div",2),Do(3,NT,3,5,"div",3),Fo(),Do(4,FT,4,7,"ng-container",4),Fo()),2&t&&(ws(1),Lo("ngStyle",Fl(4,AT,40+10*e.pagination.currentPage.toString().length+"px")),ws(1),Lo("ngIf",e.largeNumberOfPage),ws(1),Lo("ngIf",e.openAbsoluteSelect),ws(1),Lo("ngIf",!e.largeNumberOfPage))},directives:function(){return[tu,Xh,Qh,Gh,wm,Im]},pipes:function(){return[hk,YP]},encapsulation:2}),t})(),hk=(()=>{let t=class{transform(t,e,n){if(!(t>=0&&e>=0))throw new Error("totalItems or itemsPerPage missing in ArrayTotalPages pipe.");const i=n<=15?0:n-15,s=Math.ceil(t/e),r=Array.apply(null,{length:32}).map(Number.call,Number).map(t=>{const e={display:i+t+1,value:i+t+1};return 30===t&&(e.display="..."),31===t&&(e.display=s,e.value=s),e});return i&&r.unshift({display:1,value:1},{display:"...",value:2}),r}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"LargeNumberOfPage",type:t,pure:!0}),t})();var uk;let dk=(()=>{let t=uk=class{constructor(t){this.translateService=t,this.search=!1,this.type="default",this.maxWidth="100%",this.disabled=!1,this.selectValue=new Zl,this.clickOnCallToAction=new Zl,this.openCategories=!1,this.searchValue="",this.indexItemSelected=-1,this.onChange=()=>{},this.onTouch=()=>{}}ngOnInit(){this.indexItemSelected=this.items.findIndex(t=>t.selected)}onClose(){this.openCategories=!1}customTB(t,e){return`${t.id}-${e}`}onSelectItem(t){this.unselectAll(),this.setIndexItemSelected(t);const e=this.getItemSelected();e.selected=!0,this.selectValue.emit(this.indexItemSelected),this.onChange(e)}onClickCallToAction(){this.onClose(),this.clickOnCallToAction.emit(this.callToAction.value)}getItemSelected(){return this.items[this.indexItemSelected]}showCategories(){this.openCategories=!0,setTimeout(()=>{this.searchElement.nativeElement.focus()},0)}unselectAll(){this.items.forEach(t=>t.selected=!1)}setIndexItemSelected(t){this.indexItemSelected=this.items.findIndex(e=>e.id===t)}writeValue(t){t&&(this.unselectAll(),t.selected=!0,this.setIndexItemSelected(t.id))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ff))},t.\u0275cmp=pe({type:t,selectors:[["wac-select"]],viewQuery:function(t,e){var n;1&t&&uc(VT,!0),2&t&&cc(n=fc())&&(e.searchElement=n.first)},inputs:{search:"search",type:"type",maxWidth:"maxWidth",disabled:"disabled",items:"items",placeholder:"placeholder",label:"label",maxWidthItems:"maxWidthItems",callToAction:"callToAction"},outputs:{selectValue:"selectValue",clickOnCallToAction:"clickOnCallToAction"},features:[Wa([{provide:jf,useExisting:uk,multi:!0}])],decls:5,vars:8,consts:[["class","wac-select__label",3,"innerHTML",4,"ngIf"],["wzAutoHide","",1,"wac-select",3,"ngStyle","zIndexToggle","clickOutside"],["class","wac-select__current",3,"ngClass","click",4,"ngIf"],["class","wac-select__current wac-select__current--withSearch",3,"ngClass",4,"ngIf"],["class","wac-select__content",3,"ngClass","ngStyle",4,"ngIf"],[1,"wac-select__label",3,"innerHTML"],[1,"wac-select__current",3,"ngClass","click"],["class","icon",3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"fas","fa-chevron-down"],[1,"icon",3,"innerHTML"],[1,"wac-select__current","wac-select__current--withSearch",3,"ngClass"],["class","wac-select__current__search",4,"ngIf"],["class","icon",3,"innerHTML","click",4,"ngIf"],[3,"innerHTML","click"],[3,"click"],[1,"wac-select__current__search"],[1,"far","fa-search"],["type","text",3,"ngModel","ngModelChange"],["search",""],[1,"icon",3,"innerHTML","click"],[1,"wac-select__content",3,"ngClass","ngStyle"],[3,"perfectScrollbar",4,"ngIf"],["class","wac-select__content__empty",4,"ngIf"],[3,"perfectScrollbar"],["class","wac-select__content__cta",4,"ngIf"],["class","wac-select__content__item",3,"click",4,"ngFor","ngForOf"],[1,"wac-select__content__cta"],[3,"classList",4,"ngIf"],[4,"ngIf"],[3,"classList"],[1,"wac-select__content__item",3,"click"],[3,"ngClass","click",4,"ngIf"],[3,"ngClass","click"],[1,"wac-select__content__empty"]],template:function(t,e){1&t&&(Do(0,UT,1,1,"p",0),zo(1,"div",1),$o("clickOutside",(function(){return e.onClose()})),Do(2,HT,6,7,"div",2),Do(3,GT,6,7,"div",3),Do(4,oP,4,12,"div",4),Fo()),2&t&&(Lo("ngIf",e.label),ws(1),Lo("ngStyle",Fl(6,rP,e.maxWidth))("zIndexToggle",e.openCategories),ws(1),Lo("ngIf",!e.search),ws(1),Lo("ngIf",e.search),ws(1),Lo("ngIf",!e.disabled))},directives:function(){return[Xh,OP,tu,gk,Gh,qf,Zf,Km,sI,Qh]},pipes:function(){return[Vf,pk]},encapsulation:2}),t})(),pk=(()=>{let t=class{transform(t,e){return t.filter(t=>new RegExp(e,"i").test(t.name))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"selectFilters",type:t,pure:!0}),t})(),gk=(()=>{let t=class{constructor(t,e){this.currentElement=t,this.renderer=e,this.isActived=!1}set isActive(t){this.isActived=t,this.switchToggle()}get isActive(){return this.isActived}ngOnInit(){}switchToggle(){this.isActived?this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle"):this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode,"zindexToggle")}ngOnDestroy(){}};return t.\u0275fac=function(e){return new(e||t)(Oo(Ya),Oo(Za))},t.\u0275dir=ye({type:t,selectors:[["","zIndexToggle",""]],inputs:{isActive:["zIndexToggle","isActive"]},outputs:{onEventChange:"onEventChange"}}),t})(),fk=(()=>{let t=class{};return t.\u0275mod=_e({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[iu,of,t_,ZC,iS,cC,uS,B_,sE,Uf,rI]]}),t})();class mk{constructor(){this.image_manager_route="",this.pexels_route="",this.canva_url="",this.assets_route="assets/img-manager/"}}class _k{constructor(){this.url_raw_image="",this.url_100_image="",this.url_200_image="",this.url_400_image="",this.url_800_image=""}}class vk{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let yk=(()=>{class t{constructor(){}sendImgSelectedToPage(t){t&&(t.cdn_img_src=`${Ch.CDN_URL}${t.id_shop}/`);const e=new CustomEvent("imgSelected",{detail:{file:t,from:this.emitter}});document.getElementById("imgManagerModule").dispatchEvent(e)}pageAskForImg(){return n_(document.getElementById("imgManagerModule"),"openImgManager")}setEmitter(t){this.emitter=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bk=(()=>{class t{constructor(t,e,n,i){this.http=t,this.imgSelectionService=e,this.eventService=n,this.canvaService=i,this.image_manager_api=Ch.wizi_api+"/image-manager/shops/",this.isPhotosTab=!1,this.isPreviousTabPhotos=!1,this.isVariantsTab=!1,this.loadProductImgSelection=!1,this.expectedMediaDto={id:void 0,image_url:void 0,image_width:"900",image_height:"900"},this.subscriptions=[]}setApiConfig(t,e){this.shopToken=e,this.shopId=t;const n=window.location.pathname.match(/\/(\w+)\/products\/(\d+)\/edit/);this.productSheetApiRoute=Ch.wizi_admin_api+(n&&n[1]?n[1]:"fr")+Ch.product_sheet_endpoint,this.productId=n&&n[2]?n[2]:"0",this.isProductCreation=/\/products\/create/.test(window.location.pathname)}handleTabs(){return new b(t=>{const e=this.switchTabs().subscribe(e=>{if(!e||!e.detail||!e.detail.currentTab)return;const n=e.detail.currentTab;this.isPreviousTabPhotos=this.isPhotosTab,this.isPhotosTab="photos"===n,this.isVariantsTab="variation"===n,this.isPhotosTab?(this.loadProductImgSelection=!0,this.currentProductImgSelection&&this.currentProductImgSelection.length?(this.applyCurrentImgSelection(),this.loadProductImgSelection=!1):this.initProductImgSelection()):this.isPreviousTabPhotos&&this.saveCurrentImgSelection(),t.next(this.isPhotosTab)});this.subscriptions.push(e)})}getShopImg(t){return this.http.get(`${this.image_manager_api}${this.shopId}/images/${t}`,this.getOptionsHeadersWithBearer())}initProductImgSelection(){this.imgSelectionService.emitImgListLoading(!0);const t=this.retrieveImgSelection().subscribe(t=>{if(!(t&&t.photos&&t.photos.infos&&t.photos.infos.files&&t.photos.infos.files.length))return this.loadProductImgSelection=!1,void this.imgSelectionService.emitImgListLoading(!1);const e=[];t.photos.infos.files.forEach(t=>e.push(this.getShopImg(t.toString()).pipe(df(1))));const n=Cg(e).subscribe(t=>{this.saveCurrentImgSelection(t),this.applyCurrentImgSelection(),this.loadProductImgSelection=!1},t=>{this.loadProductImgSelection=!1,this.imgSelectionService.emitImgListLoading(!1)});this.subscriptions.push(n)});this.subscriptions.push(t),this.canvaService.expectedImgSizesChange(this.expectedMediaDto)}retrieveImgSelection(){const t=new FormData;return t.append("rub","main"),t.append("action","getAllInfos"),t.append("prodId",this.productId),t.append("_token",""),t.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,t,this.getOptionsHeaders())}updateImgSelectionOnChange(){const t=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{if(t)if(this.isPhotosTab&&!this.loadProductImgSelection){const e=[];t.forEach(t=>{e.push(parseInt(t.id_file))}),this.updateProductImgSelection(e)}else!this.isPhotosTab&&t.length&&this.eventService.sendImgSelectedToPage(t[0])});this.subscriptions.push(t)}updateProductImgSelection(t){if(this.productId&&"0"!==this.productId||!Wizi._produit.global.PROD_ID||(this.productId=Wizi._produit.global.PROD_ID.toString()),Wizi._produit._dataTmp.photos.infos={},Wizi._produit._dataTmp.photos.infos.files=t,this.emitImgSelectionChange(t),this.productId&&"0"!==this.productId){const e=this.submitProductImg(t).subscribe();return void this.subscriptions.push(e)}const e=this.createProduct().subscribe(e=>{if(!e)throw"No product id created. Can not link image(s) to the new product.";Wizi._produit.global.PROD_ID=e,this.productId=e.toString(),this.submitProductImg(t).subscribe()});this.subscriptions.push(e)}submitProductImg(t){const e={files:t,couls:[]},n=new FormData;return n.append("rub","photos"),n.append("action","save"),n.append("newProd",this.isProductCreation?"1":"0"),n.append("prodId",this.productId),n.append("_token",this.shopToken),n.append("_shid",this.shopId.toString()),n.append("data",JSON.stringify(e)),this.http.post(this.productSheetApiRoute,n,this.getOptionsHeaders())}createProduct(){const t=new FormData;return t.append("rub","main"),t.append("action","createProd"),t.append("_token",""),t.append("_shid",this.shopId.toString()),this.http.post(this.productSheetApiRoute,t,this.getOptionsHeaders())}switchTabs(){return n_(document.getElementById("imgManagerModule"),"switchTab")}emitImgSelectionChange(t){const e=new CustomEvent("onImgSelectionChange",{detail:{idsImgList:t}});document.getElementById("imgManagerModule").dispatchEvent(e)}saveCurrentImgSelection(t){this.currentProductImgSelection=t||JSON.parse(JSON.stringify(this.imgSelectionService.getImgSelection()))}applyCurrentImgSelection(){this.imgSelectionService.setImgSelection(this.currentProductImgSelection),this.imgSelectionService.emitImgListLoading(!1)}getOptionsHeaders(){return{headers:new Mg({"Access-Control-Allow-Origin":"*"})}}getOptionsHeadersWithBearer(){return{headers:new Mg({Authorization:"Bearer "+this.shopToken})}}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(Yt(Wg),Yt(aP),Yt(yk),Yt(pP))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wk=(()=>{class t{constructor(){this.subscriptions=new Map,window.addEventListener("storage",t=>{this.subscriptions.has(t.key)&&this.subscriptions.get(t.key).next(this.unserialize(t.newValue))})}unserialize(t){let e=null;if(t)try{e=JSON.parse(t).data}catch(n){}return e}serialize(t){return JSON.stringify({data:t})}subscribe(t){return this.subscriptions.has(t)||this.subscriptions.set(t,new I),this.subscriptions.get(t)}get(t){const e=localStorage.getItem(t);return Promise.resolve(this.unserialize(e))}set(t,e){return localStorage.setItem(t,this.serialize(e)),Promise.resolve(!0)}remove(t){return localStorage.removeItem(t),Promise.resolve(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ck=(()=>{class t{constructor(t){this.storage=t,this.credentials=null,this.credentials$=this.storage.subscribe(Ch.wiziApiCredentialsKey)}get(){return this.credentials?Promise.resolve(this.credentials):this.storage.get(Ch.wiziApiCredentialsKey).then(t=>(this.credentials=t,this.credentials))}set(t){return this.storage.set(Ch.wiziApiCredentialsKey,t).then(e=>(e&&(this.credentials=t),e))}remove(){return this.storage.remove(Ch.wiziApiCredentialsKey).then(t=>(t&&(this.credentials=null),t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(wk))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Sk(t,e){1&t&&(Uo(0),zo(1,"h3",3),wa(2),ql(3,"translate"),Fo(),jo()),2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.webElement.photosTitle")))}function Ek(t,e){if(1&t){const t=Bo();zo(0,"p",8),zo(1,"a",9),$o("click",(function(){return Xe(t),Yo(2).open()})),wa(2),ql(3,"translate"),Fo(),Fo()}2&t&&(ws(2),Ca(Gl(3,1,"ImgManager.webElement.OpenBtn")))}function Ik(t,e){if(1&t){const t=Bo();Uo(0),Do(1,Ek,4,3,"p",4),zo(2,"div",5),zo(3,"wz-img-manager",6,7),$o("imgManagerClosed",(function(){return Xe(t),Yo().onImgManagerClosed()})),Fo(),Fo(),jo()}if(2&t){const t=Yo();ws(1),Lo("ngIf",t.imgManagerDisplayConfig.displayBtn&&t.isPhotosTab),ws(2),Lo("stateDisplayed",t.imgManagerDisplayConfig.stateDisplayed)("multipleImgMode",t.imgManagerDisplayConfig.multipleImgMode)("showImgManagerModule",t.imgManagerDisplayConfig.showImgManagerModule&&t.openImgManager)("showSelection",t.imgManagerDisplayConfig.showSelection)("externalConfig",t.imgExternalConfig)}}let xk=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.translateService=t,this.imgSelectionService=e,this.canvaService=n,this.ficheProductService=i,this.authCredentialsService=s,this.http=r,this.eventService=o,this.imgManagerService=a,this.openImgManager=!1,this.loading=!0,this.isPhotosTab=Ch.isPhotosTab,this.subscriptions=[]}ngOnInit(){this.loading=!0,this.pageficheProductConfig=this.imgManagerService.getImgManagerDisplayConfig("fiche-product"),this.pageEventConfig=this.imgManagerService.getImgManagerDisplayConfig("wizi-block"),this.setCurrentLanguage(),this.setDisplayedPageConfig();const t=this.getCredentials().subscribe(t=>{this.loading=!1,this.initVariables(t),this.imgManagerDisplayConfig.pageficheProduct?this.setFicheProductPage():this.setPageWithEvents()});this.subscriptions.push(t)}initVariables(t){if(!t){if(Ch.isWizishopcom)return;return this.setAppVars(null,Ch.local.shopId,null,Ch.local.token),this.setImgManagerExtraConfig(),void(this.imgManagerDisplayConfig=this.pageficheProductConfig)}this.setAppVars(t.user_id,t.shop_id,t.account_id,t.token),this.setImgManagerExtraConfig()}setFicheProductPage(){this.ficheProductService.setApiConfig(this.id_shop,this.token_shop),this.handleFicheProductTab(),this.closeImgManagerOnSwitchingTab(),this.subscribePageAskForImg(),this.ficheProductService.updateImgSelectionOnChange()}setPageWithEvents(){this.subscribePageAskForImg();const t=this.imgSelectionService.getImgSelectionChange().subscribe(t=>{t&&t.length&&this.eventService.sendImgSelectedToPage(t[0])});this.subscriptions.push(t)}subscribePageAskForImg(){const t=this.eventService.pageAskForImg().subscribe(t=>{this.eventService.setEmitter(t&&t.detail?t.detail.from:null),this.imgSelectionService.setImgSelection(null),this.open()});this.subscriptions.push(t)}open(){this.openImgManager=!0}onImgManagerClosed(){this.openImgManager=!1}setCurrentLanguage(){const t=window.location.pathname.match(/^\/(\w+)\//);this.translateService.use(t&&t[1]?t[1]:"fr")}setDisplayedPageConfig(){const t=/\/products\/(\d+\/edit|create)/.test(window.location.pathname);this.imgManagerDisplayConfig=t?this.pageficheProductConfig:this.pageEventConfig}handleFicheProductTab(){const t=this.ficheProductService.handleTabs().subscribe(t=>{this.imgManagerDisplayConfig=t?this.pageficheProductConfig:this.pageEventConfig,this.isPhotosTab=t});this.subscriptions.push(t)}closeImgManagerOnSwitchingTab(){const t=this.ficheProductService.switchTabs().subscribe(t=>{this.openImgManager=!1});this.subscriptions.push(t)}getCredentials(){return j(this.authCredentialsService.get())}setAppVars(t,e,n,i){this.userId=t,this.id_shop=e,this.accountId=n,this.token_shop=i}setImgManagerExtraConfig(){const t=new mk;t.shop_token=this.token_shop,t.image_manager_route=Ch.wizi_api+"/image-manager/shops/"+this.id_shop,t.canva_token="wdByHayF5v57nj2ZSLvu055O",t.canva_url="https://sdk.canva.com/designbutton/v2/api.js",t.pexels_token="563492ad6f91700001000001e39215727d8b42c1b08498a9ce1e6b94",t.pexels_route="https://api.pexels.com/v1",t.shop_category="other",t.assets_route=Ch.assets_route;const e=new _k;e.url_raw_image=`${Ch.CDN_URL}${this.id_shop}/RAW-`,e.url_100_image=`${Ch.CDN_URL}${this.id_shop}/m100-`,e.url_200_image=`${Ch.CDN_URL}${this.id_shop}/cs200-`,e.url_400_image=`${Ch.CDN_URL}${this.id_shop}/cs400-`,e.url_800_image=`${Ch.CDN_URL}${this.id_shop}/cs800-`,this.imgExternalConfig=new lP,this.imgExternalConfig.api=t,this.imgExternalConfig.imgCDNConfig=e;const n=this.getShopCategory().subscribe(t=>{t&&t.category&&(this.imgExternalConfig.api.shop_category=t.category)});this.subscriptions.push(n)}getShopCategory(){return this.http.get(`${Ch.wizi_api}/shops/${this.id_shop}`,this.getOptionsHeadersWithBearer())}getOptionsHeadersWithBearer(){return{headers:new Mg({Authorization:"Bearer "+this.token_shop})}}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return t.\u0275fac=function(e){return new(e||t)(Oo(Ff),Oo(aP),Oo(pP),Oo(bk),Oo(Ck),Oo(Wg),Oo(yk),Oo(cP))},t.\u0275cmp=pe({type:t,selectors:[["img-manager"]],decls:5,vars:5,consts:[[1,"info-bulle"],[1,"info-bulle-content",3,"innerHTML"],[4,"ngIf"],[1,"wizicss-sous-titre"],["class","img-manager-open",4,"ngIf"],[1,"imgManagerBox"],[3,"stateDisplayed","multipleImgMode","showImgManagerModule","showSelection","externalConfig","imgManagerClosed"],["wzImgManager",""],[1,"img-manager-open"],[3,"click"]],template:function(t,e){1&t&&(zo(0,"div",0),Vo(1,"p",1),ql(2,"translate"),Do(3,Sk,4,3,"ng-container",2),Do(4,Ik,5,6,"ng-container",2),Fo()),2&t&&(ws(1),Lo("innerHTML",Gl(2,3,"ImgManager.webElement.infoBulle"),Xi),ws(2),Lo("ngIf",e.imgManagerDisplayConfig.pageficheProduct&&e.isPhotosTab),ws(1),Lo("ngIf",!e.loading&&e.id_shop&&e.imgManagerDisplayConfig))},directives:[Xh,mP],pipes:[Vf],styles:[""]}),t})();const Tk=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Pk={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pk.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pk.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function kk(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Tk.call(t,e)}(t,e)||(i=n,0))),i}class Mk{constructor(t,e){this.componentFactory=e.get(Ga).resolveComponentFactory(t)}create(t){return new Dk(this.componentFactory,t)}}class Dk{constructor(t,e){this.componentFactory=t,this.injector=e,this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}connect(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)}disconnect(){null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Pk.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))}getInputValue(t){return null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t]}setInputValue(t,e){var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)}initializeComponent(t){const e=ho.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let s=-1;e.some((t,e)=>"*"===t&&(s=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=kk(t,e,s);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ah).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(z(t=>({name:n,value:t}))));this.events=G(...e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pk.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const s=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Oa(s,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}}class Ak extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ok(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}function Rk(t){return new vk(t,Ch.translations_route,".json?version=1.0.4")}Yp.prototype.containsElement=(t,e)=>{let n=e;for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1};let Lk=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(Ga).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Mk(t,e.injector),s=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends Ak{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),s=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?s.forEach(([t])=>delete this[t]):Ok(n,this),s.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(s[t],n)}connectedCallback(){this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}}return r.observedAttributes=Object.keys(s),Ok(n,r.prototype),r}(xk,{injector:this.injector});customElements.get("img-manager")||customElements.define("img-manager",t)}}return t.\u0275mod=_e({type:t,bootstrap:[xk]}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Yt(ho))},providers:[{provide:zh,useValue:"/"}],imports:[[Nu,rg,fk,$b.forRoot([{path:"**",component:xk}]),Uf.forRoot({defaultLanguage:"fr",loader:{provide:yf,useFactory:Rk,deps:[Wg]}})]]}),t})();Ch.production&&function(){if(Si)throw new Error("Cannot enable prod mode after platform setup.");Ci=!1}(),Ru().bootstrapModule(Lk).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);