UNPKG

@sieval/configurator

Version:

The Sieval Dedicated Solutions webshop configurator.

4 lines 1.04 MB
!function(){"use strict";var n,s={},_={};function u(n){var e=_[n];if(void 0!==e)return e.exports;var r=_[n]={exports:{}};return s[n](r,r.exports,u),r.exports}u.m=s,n=[],u.O=function(e,r,c,o){if(!r){var i=1/0;for(t=0;t<n.length;t++){r=n[t][0],c=n[t][1],o=n[t][2];for(var l=!0,f=0;f<r.length;f++)(!1&o||i>=o)&&Object.keys(u.O).every(function(h){return u.O[h](r[f])})?r.splice(f--,1):(l=!1,o<i&&(i=o));if(l){n.splice(t--,1);var a=c();void 0!==a&&(e=a)}}return e}o=o||0;for(var t=n.length;t>0&&n[t-1][2]>o;t--)n[t]=n[t-1];n[t]=[r,c,o]},u.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(e,{a:e}),e},u.d=function(n,e){for(var r in e)u.o(e,r)&&!u.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},u.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},function(){var n={666:0};u.O.j=function(c){return 0===n[c]};var e=function(c,o){var f,a,t=o[0],i=o[1],l=o[2],v=0;if(t.some(function(d){return 0!==n[d]})){for(f in i)u.o(i,f)&&(u.m[f]=i[f]);if(l)var b=l(u)}for(c&&c(o);v<t.length;v++)u.o(n,a=t[v])&&n[a]&&n[a][0](),n[a]=0;return u.O(b)},r=self.webpackChunkconfigurator_accordion=self.webpackChunkconfigurator_accordion||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}()}();
(self.webpackChunkconfigurator_accordion=self.webpackChunkconfigurator_accordion||[]).push([[429],{4818:function(o,f,t){"use strict";t(9266),t(4790),t(2822),t(4834),t(3885),t(9789),t(3268),t(1111),t(9863),t(7377),t(8460),t(3662),t(9074),t(8188),t(2254),t(609),t(148),t(173),window.__Zone_enable_cross_context_check=!0,Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector)},173:function(){(function(){"use strict";var o=window.Document.prototype.createElement,f=window.Document.prototype.createElementNS,t=window.Document.prototype.importNode,e=window.Document.prototype.prepend,n=window.Document.prototype.append,r=window.DocumentFragment.prototype.prepend,a=window.DocumentFragment.prototype.append,s=window.Node.prototype.cloneNode,i=window.Node.prototype.appendChild,u=window.Node.prototype.insertBefore,c=window.Node.prototype.removeChild,l=window.Node.prototype.replaceChild,v=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),d=window.Element.prototype.attachShadow,p=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),S=window.Element.prototype.getAttribute,T=window.Element.prototype.setAttribute,O=window.Element.prototype.removeAttribute,R=window.Element.prototype.getAttributeNS,G=window.Element.prototype.setAttributeNS,M=window.Element.prototype.removeAttributeNS,x=window.Element.prototype.insertAdjacentElement,b=window.Element.prototype.insertAdjacentHTML,w=window.Element.prototype.prepend,$=window.Element.prototype.append,D=window.Element.prototype.before,B=window.Element.prototype.after,Z=window.Element.prototype.replaceWith,A=window.Element.prototype.remove,W=window.HTMLElement,q=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),nt=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML,ot=new Set;function it(g){var E=ot.has(g);return g=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(g),!E&&g}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(g){return ot.add(g)});var pt=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function ht(g){var E=g.isConnected;if(void 0!==E)return E;if(pt(g))return!0;for(;g&&!(g.__CE_isImportDocument||g instanceof Document);)g=g.parentNode||(window.ShadowRoot&&g instanceof ShadowRoot?g.host:void 0);return!(!g||!(g.__CE_isImportDocument||g instanceof Document))}function Tt(g){var E=g.children;if(E)return Array.prototype.slice.call(E);for(E=[],g=g.firstChild;g;g=g.nextSibling)g.nodeType===Node.ELEMENT_NODE&&E.push(g);return E}function bt(g,E){for(;E&&E!==g&&!E.nextSibling;)E=E.parentNode;return E&&E!==g?E.nextSibling:null}function Pt(g,E,m){for(var j=g;j;){if(j.nodeType===Node.ELEMENT_NODE){var I=j;E(I);var N=I.localName;if("link"===N&&"import"===I.getAttribute("rel")){if(j=I.import,void 0===m&&(m=new Set),j instanceof Node&&!m.has(j))for(m.add(j),j=j.firstChild;j;j=j.nextSibling)Pt(j,E,m);j=bt(g,I);continue}if("template"===N){j=bt(g,I);continue}if(I=I.__CE_shadowRoot)for(I=I.firstChild;I;I=I.nextSibling)Pt(I,E,m)}j=j.firstChild?j.firstChild:bt(g,j)}}function ee(){var g=!(null==re||!re.noDocumentConstructionObserver),E=!(null==re||!re.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=E,this.I=!g}function Ht(g,E,m,j){var I=window.ShadyDOM;if(g.shadyDomFastWalk&&I&&I.inUse){if(E.nodeType===Node.ELEMENT_NODE&&m(E),E.querySelectorAll)for(g=I.nativeMethods.querySelectorAll.call(E,"*"),E=0;E<g.length;E++)m(g[E])}else Pt(E,m,j)}function le(g,E){g.j&&Ht(g,E,function(m){return Yt(g,m)})}function Yt(g,E){if(g.j&&!E.__CE_patched){E.__CE_patched=!0;for(var m=0;m<g.m.length;m++)g.m[m](E);for(m=0;m<g.g.length;m++)g.g[m](E)}}function wt(g,E){var m=[];for(Ht(g,E,function(I){return m.push(I)}),E=0;E<m.length;E++){var j=m[E];1===j.__CE_state?g.connectedCallback(j):Wt(g,j)}}function Jt(g,E){var m=[];for(Ht(g,E,function(I){return m.push(I)}),E=0;E<m.length;E++){var j=m[E];1===j.__CE_state&&g.disconnectedCallback(j)}}function ae(g,E,m){var j=(m=void 0===m?{}:m).J,I=m.upgrade||function(K){return Wt(g,K)},N=[];for(Ht(g,E,function(K){if(g.j&&Yt(g,K),"link"===K.localName&&"import"===K.getAttribute("rel")){var X=K.import;X instanceof Node&&(X.__CE_isImportDocument=!0,X.__CE_registry=document.__CE_registry),X&&"complete"===X.readyState?X.__CE_documentLoadHandled=!0:K.addEventListener("load",function(){var lt=K.import;if(!lt.__CE_documentLoadHandled){lt.__CE_documentLoadHandled=!0;var ft=new Set;j&&(j.forEach(function(Bt){return ft.add(Bt)}),ft.delete(lt)),ae(g,lt,{J:ft,upgrade:I})}})}else N.push(K)},j),E=0;E<N.length;E++)I(N[E])}function Wt(g,E){try{var m=E.ownerDocument,j=m.__CE_registry,I=j&&(m.defaultView||m.__CE_isImportDocument)?ge(j,E.localName):void 0;if(I&&void 0===E.__CE_state){I.constructionStack.push(E);try{try{if(new I.constructorFunction!==E)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{I.constructionStack.pop()}}catch(lt){throw E.__CE_state=2,lt}if(E.__CE_state=1,E.__CE_definition=I,I.attributeChangedCallback&&E.hasAttributes()){var N=I.observedAttributes;for(I=0;I<N.length;I++){var K=N[I],X=E.getAttribute(K);null!==X&&g.attributeChangedCallback(E,K,null,X,null)}}ht(E)&&g.connectedCallback(E)}}catch(lt){ve(lt)}}function Oe(g,E,m,j){var I=E.__CE_registry;if(I&&(null===j||"http://www.w3.org/1999/xhtml"===j)&&(I=ge(I,m)))try{var N=new I.constructorFunction;if(void 0===N.__CE_state||void 0===N.__CE_definition)throw Error("Failed to construct '"+m+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==N.namespaceURI)throw Error("Failed to construct '"+m+"': The constructed element's namespace must be the HTML namespace.");if(N.hasAttributes())throw Error("Failed to construct '"+m+"': The constructed element must not have any attributes.");if(null!==N.firstChild)throw Error("Failed to construct '"+m+"': The constructed element must not have any children.");if(null!==N.parentNode)throw Error("Failed to construct '"+m+"': The constructed element must not have a parent node.");if(N.ownerDocument!==E)throw Error("Failed to construct '"+m+"': The constructed element's owner document is incorrect.");if(N.localName!==m)throw Error("Failed to construct '"+m+"': The constructed element's local name is incorrect.");return N}catch(K){return ve(K),E=null===j?o.call(E,m):f.call(E,j,m),Object.setPrototypeOf(E,HTMLUnknownElement.prototype),E.__CE_state=2,E.__CE_definition=void 0,Yt(g,E),E}return Yt(g,E=null===j?o.call(E,m):f.call(E,j,m)),E}function ve(g){var E=g.message,m=g.sourceURL||g.fileName||"",j=g.line||g.lineNumber||0,N=void 0;void 0===ErrorEvent.prototype.initErrorEvent?N=new ErrorEvent("error",{cancelable:!0,message:E,filename:m,lineno:j,colno:g.column||g.columnNumber||0,error:g}):((N=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,E,m,j),N.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===N.error&&Object.defineProperty(N,"error",{configurable:!0,enumerable:!0,get:function(){return g}}),window.dispatchEvent(N),N.defaultPrevented||console.error(g)}function ne(){var g=this;this.g=void 0,this.F=new Promise(function(E){g.l=E})}function de(g){var E=document;this.l=void 0,this.h=g,this.g=E,ae(this.h,this.g),"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function xe(g){g.l&&g.l.disconnect()}function Kt(g){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(E){return E()},this.i=!1,this.v=[],this.h=g,this.D=g.I?new de(g):void 0}function Le(g,E){if(!it(E))throw new SyntaxError("The element name '"+E+"' is not valid.");if(ge(g,E))throw Error("A custom element with name '"+E+"' has already been defined.");if(g.A)throw Error("A custom element is already being defined.")}function Ie(g,E,m){var j;g.A=!0;try{var I=m.prototype;if(!(I instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var N=function(pe){var Te=I[pe];if(void 0!==Te&&!(Te instanceof Function))throw Error("The '"+pe+"' callback must be a function.");return Te},K=N("connectedCallback"),X=N("disconnectedCallback"),lt=N("adoptedCallback"),ft=(j=N("attributeChangedCallback"))&&m.observedAttributes||[]}catch(Bt){throw Bt}finally{g.A=!1}return g.u.set(E,m={localName:E,constructorFunction:m,connectedCallback:K,disconnectedCallback:X,adoptedCallback:lt,attributeChangedCallback:j,observedAttributes:ft,constructionStack:[]}),g.C.set(m.constructorFunction,m),m}function Pe(g){if(!1!==g.i){g.i=!1;for(var E=[],m=g.v,j=new Map,I=0;I<m.length;I++)j.set(m[I],[]);for(ae(g.h,document,{upgrade:function(ft){if(void 0===ft.__CE_state){var Bt=ft.localName,pe=j.get(Bt);pe?pe.push(ft):g.u.has(Bt)&&E.push(ft)}}}),I=0;I<E.length;I++)Wt(g.h,E[I]);for(I=0;I<m.length;I++){for(var N=m[I],K=j.get(N),X=0;X<K.length;X++)Wt(g.h,K[X]);(N=g.B.get(N))&&N.resolve(void 0)}m.length=0}}function ge(g,E){var m=g.u.get(E);if(m)return m;if(m=g.s.get(E)){g.s.delete(E);try{return Ie(g,E,m())}catch(j){ve(j)}}}function he(g,E,m){function j(I){return function(N){for(var K=[],X=0;X<arguments.length;++X)K[X]=arguments[X];X=[];for(var lt=[],ft=0;ft<K.length;ft++){var Bt=K[ft];if(Bt instanceof Element&&ht(Bt)&&lt.push(Bt),Bt instanceof DocumentFragment)for(Bt=Bt.firstChild;Bt;Bt=Bt.nextSibling)X.push(Bt);else X.push(Bt)}for(I.apply(this,K),K=0;K<lt.length;K++)Jt(g,lt[K]);if(ht(this))for(K=0;K<X.length;K++)(lt=X[K])instanceof Element&&wt(g,lt)}}void 0!==m.prepend&&(E.prepend=j(m.prepend)),void 0!==m.append&&(E.append=j(m.append))}ee.prototype.connectedCallback=function(g){var E=g.__CE_definition;if(E.connectedCallback)try{E.connectedCallback.call(g)}catch(m){ve(m)}},ee.prototype.disconnectedCallback=function(g){var E=g.__CE_definition;if(E.disconnectedCallback)try{E.disconnectedCallback.call(g)}catch(m){ve(m)}},ee.prototype.attributeChangedCallback=function(g,E,m,j,I){var N=g.__CE_definition;if(N.attributeChangedCallback&&-1<N.observedAttributes.indexOf(E))try{N.attributeChangedCallback.call(g,E,m,j,I)}catch(K){ve(K)}},ne.prototype.resolve=function(g){if(this.g)throw Error("Already resolved.");this.g=g,this.l(g)},de.prototype.G=function(g){var E=this.g.readyState;for("interactive"!==E&&"complete"!==E||xe(this),E=0;E<g.length;E++)for(var m=g[E].addedNodes,j=0;j<m.length;j++)ae(this.h,m[j])},Kt.prototype.H=function(g,E){var m=this;if(!(E instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Le(this,g),this.s.set(g,E),this.v.push(g),this.i||(this.i=!0,this.o(function(){return Pe(m)}))},Kt.prototype.define=function(g,E){var m=this;if(!(E instanceof Function))throw new TypeError("Custom element constructors must be functions.");Le(this,g),Ie(this,g,E),this.v.push(g),this.i||(this.i=!0,this.o(function(){return Pe(m)}))},Kt.prototype.upgrade=function(g){ae(this.h,g)},Kt.prototype.get=function(g){if(g=ge(this,g))return g.constructorFunction},Kt.prototype.whenDefined=function(g){if(!it(g))return Promise.reject(new SyntaxError("'"+g+"' is not a valid custom element name."));var E=this.B.get(g);if(E)return E.F;E=new ne,this.B.set(g,E);var m=this.u.has(g)||this.s.has(g);return g=-1===this.v.indexOf(g),m&&g&&E.resolve(void 0),E.F},Kt.prototype.polyfillWrapFlushCallback=function(g){this.D&&xe(this.D);var E=this.o;this.o=function(m){return g(function(){return E(m)})}},window.CustomElementRegistry=Kt,Kt.prototype.define=Kt.prototype.define,Kt.prototype.upgrade=Kt.prototype.upgrade,Kt.prototype.get=Kt.prototype.get,Kt.prototype.whenDefined=Kt.prototype.whenDefined,Kt.prototype.polyfillDefineLazy=Kt.prototype.H,Kt.prototype.polyfillWrapFlushCallback=Kt.prototype.polyfillWrapFlushCallback;var Ne={},re=window.customElements;function Se(){var g=new ee;(function Me(g){function E(){var m=this.constructor,j=document.__CE_registry.C.get(m);if(!j)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var I=j.constructionStack;if(0===I.length)return I=o.call(document,j.localName),Object.setPrototypeOf(I,m.prototype),I.__CE_state=1,I.__CE_definition=j,Yt(g,I),I;var N=I.length-1,K=I[N];if(K===Ne)throw Error("Failed to construct '"+j.localName+"': This element was already constructed.");return I[N]=Ne,Object.setPrototypeOf(K,m.prototype),Yt(g,K),K}E.prototype=W.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:E}),window.HTMLElement=E})(g),function Ce(g){Document.prototype.createElement=function(E){return Oe(g,this,E,null)},Document.prototype.importNode=function(E,m){return E=t.call(this,E,!!m),this.__CE_registry?ae(g,E):le(g,E),E},Document.prototype.createElementNS=function(E,m){return Oe(g,this,m,E)},he(g,Document.prototype,{prepend:e,append:n})}(g),he(g,DocumentFragment.prototype,{prepend:r,append:a}),function je(g){function E(m,j){Object.defineProperty(m,"textContent",{enumerable:j.enumerable,configurable:!0,get:j.get,set:function(N){if(this.nodeType===Node.TEXT_NODE)j.set.call(this,N);else{var K=void 0;if(this.firstChild){var X=this.childNodes,lt=X.length;if(0<lt&&ht(this)){K=Array(lt);for(var ft=0;ft<lt;ft++)K[ft]=X[ft]}}if(j.set.call(this,N),K)for(N=0;N<K.length;N++)Jt(g,K[N])}}})}Node.prototype.insertBefore=function(m,j){if(m instanceof DocumentFragment){var I=Tt(m);if(m=u.call(this,m,j),ht(this))for(j=0;j<I.length;j++)wt(g,I[j]);return m}return I=m instanceof Element&&ht(m),j=u.call(this,m,j),I&&Jt(g,m),ht(this)&&wt(g,m),j},Node.prototype.appendChild=function(m){if(m instanceof DocumentFragment){var j=Tt(m);if(m=i.call(this,m),ht(this))for(var I=0;I<j.length;I++)wt(g,j[I]);return m}return j=m instanceof Element&&ht(m),I=i.call(this,m),j&&Jt(g,m),ht(this)&&wt(g,m),I},Node.prototype.cloneNode=function(m){return m=s.call(this,!!m),this.ownerDocument.__CE_registry?ae(g,m):le(g,m),m},Node.prototype.removeChild=function(m){var j=m instanceof Element&&ht(m),I=c.call(this,m);return j&&Jt(g,m),I},Node.prototype.replaceChild=function(m,j){if(m instanceof DocumentFragment){var I=Tt(m);if(m=l.call(this,m,j),ht(this))for(Jt(g,j),j=0;j<I.length;j++)wt(g,I[j]);return m}I=m instanceof Element&&ht(m);var N=l.call(this,m,j),K=ht(this);return K&&Jt(g,j),I&&Jt(g,m),K&&wt(g,m),N},v&&v.get?E(Node.prototype,v):function fe(g,E){g.j=!0,g.m.push(E)}(g,function(m){E(m,{enumerable:!0,configurable:!0,get:function(){for(var I=[],N=this.firstChild;N;N=N.nextSibling)N.nodeType!==Node.COMMENT_NODE&&I.push(N.textContent);return I.join("")},set:function(I){for(;this.firstChild;)c.call(this,this.firstChild);null!=I&&""!==I&&i.call(this,document.createTextNode(I))}})})}(g),function Fe(g){function E(I,N){Object.defineProperty(I,"innerHTML",{enumerable:N.enumerable,configurable:!0,get:N.get,set:function(X){var lt=this,ft=void 0;if(ht(this)&&(ft=[],Ht(g,this,function(Te){Te!==lt&&ft.push(Te)})),N.set.call(this,X),ft)for(var Bt=0;Bt<ft.length;Bt++){var pe=ft[Bt];1===pe.__CE_state&&g.disconnectedCallback(pe)}return this.ownerDocument.__CE_registry?ae(g,this):le(g,this),X}})}function m(I,N){I.insertAdjacentElement=function(K,X){var lt=ht(X);return K=N.call(this,K,X),lt&&Jt(g,X),ht(K)&&wt(g,X),K}}function j(I,N){function K(X,lt){for(var ft=[];X!==lt;X=X.nextSibling)ft.push(X);for(lt=0;lt<ft.length;lt++)ae(g,ft[lt])}I.insertAdjacentHTML=function(X,lt){if("beforebegin"===(X=X.toLowerCase())){var ft=this.previousSibling;N.call(this,X,lt),K(ft||this.parentNode.firstChild,this)}else if("afterbegin"===X)ft=this.firstChild,N.call(this,X,lt),K(this.firstChild,ft);else if("beforeend"===X)ft=this.lastChild,N.call(this,X,lt),K(ft||this.firstChild,null);else{if("afterend"!==X)throw new SyntaxError("The value provided ("+String(X)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");ft=this.nextSibling,N.call(this,X,lt),K(this.nextSibling,ft)}}}d&&(Element.prototype.attachShadow=function(I){if(I=d.call(this,I),g.j&&!I.__CE_patched){I.__CE_patched=!0;for(var N=0;N<g.m.length;N++)g.m[N](I)}return this.__CE_shadowRoot=I}),p&&p.get?E(Element.prototype,p):q&&q.get?E(HTMLElement.prototype,q):function ce(g,E){g.j=!0,g.g.push(E)}(g,function(I){E(I,{enumerable:!0,configurable:!0,get:function(){return s.call(this,!0).innerHTML},set:function(K){var X="template"===this.localName,lt=X?this.content:this,ft=f.call(document,this.namespaceURI,this.localName);for(ft.innerHTML=K;0<lt.childNodes.length;)c.call(lt,lt.childNodes[0]);for(K=X?ft.content:ft;0<K.childNodes.length;)i.call(lt,K.childNodes[0])}})}),Element.prototype.setAttribute=function(I,N){if(1!==this.__CE_state)return T.call(this,I,N);var K=S.call(this,I);T.call(this,I,N),N=S.call(this,I),g.attributeChangedCallback(this,I,K,N,null)},Element.prototype.setAttributeNS=function(I,N,K){if(1!==this.__CE_state)return G.call(this,I,N,K);var X=R.call(this,I,N);G.call(this,I,N,K),K=R.call(this,I,N),g.attributeChangedCallback(this,N,X,K,I)},Element.prototype.removeAttribute=function(I){if(1!==this.__CE_state)return O.call(this,I);var N=S.call(this,I);O.call(this,I),null!==N&&g.attributeChangedCallback(this,I,N,null,null)},Element.prototype.removeAttributeNS=function(I,N){if(1!==this.__CE_state)return M.call(this,I,N);var K=R.call(this,I,N);M.call(this,I,N);var X=R.call(this,I,N);K!==X&&g.attributeChangedCallback(this,N,K,X,I)},nt?m(HTMLElement.prototype,nt):x&&m(Element.prototype,x),tt?j(HTMLElement.prototype,tt):b&&j(Element.prototype,b),he(g,Element.prototype,{prepend:w,append:$}),function Re(g){function E(j){return function(I){for(var N=[],K=0;K<arguments.length;++K)N[K]=arguments[K];K=[];for(var X=[],lt=0;lt<N.length;lt++){var ft=N[lt];if(ft instanceof Element&&ht(ft)&&X.push(ft),ft instanceof DocumentFragment)for(ft=ft.firstChild;ft;ft=ft.nextSibling)K.push(ft);else K.push(ft)}for(j.apply(this,N),N=0;N<X.length;N++)Jt(g,X[N]);if(ht(this))for(N=0;N<K.length;N++)(X=K[N])instanceof Element&&wt(g,X)}}var m=Element.prototype;void 0!==D&&(m.before=E(D)),void 0!==B&&(m.after=E(B)),void 0!==Z&&(m.replaceWith=function(j){for(var I=[],N=0;N<arguments.length;++N)I[N]=arguments[N];N=[];for(var K=[],X=0;X<I.length;X++){var lt=I[X];if(lt instanceof Element&&ht(lt)&&K.push(lt),lt instanceof DocumentFragment)for(lt=lt.firstChild;lt;lt=lt.nextSibling)N.push(lt);else N.push(lt)}for(X=ht(this),Z.apply(this,I),I=0;I<K.length;I++)Jt(g,K[I]);if(X)for(Jt(g,this),I=0;I<N.length;I++)(K=N[I])instanceof Element&&wt(g,K)}),void 0!==A&&(m.remove=function(){var j=ht(this);A.call(this),j&&Jt(g,this)})}(g)}(g),g=new Kt(g),document.__CE_registry=g,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:g})}re&&!re.forcePolyfill&&"function"==typeof re.define&&"function"==typeof re.get||Se(),window.__CE_installPolyfill=Se}).call(self)},148:function(){"use strict";!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var o=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(o,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=o.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,o)}}()},609:function(o,f,t){"use strict";var e,n;e=function(){!function(h){var y=h.performance;function P(k){y&&y.mark&&y.mark(k)}function C(k,L){y&&y.measure&&y.measure(k,L)}P("Zone");var H=h.__Zone_symbol_prefix||"__zone_symbol__";function z(k){return H+k}var J=!0===h[z("forceDuplicateZoneCheck")];if(h.Zone){if(J||"function"!=typeof h.Zone.__symbol__)throw new Error("Zone already loaded.");return h.Zone}var rt=function(){function k(L,F){this._parent=L,this._name=F?F.name||"unnamed":"<root>",this._properties=F&&F.properties||{},this._zoneDelegate=new vt(this,this._parent&&this._parent._zoneDelegate,F)}return k.assertZonePatched=function(){if(h.Promise!==$t.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.)")},Object.defineProperty(k,"root",{get:function(){for(var F=k.current;F.parent;)F=F.parent;return F},enumerable:!1,configurable:!0}),Object.defineProperty(k,"current",{get:function(){return Nt.zone},enumerable:!1,configurable:!0}),Object.defineProperty(k,"currentTask",{get:function(){return ue},enumerable:!1,configurable:!0}),k.__load_patch=function(L,F,U){if(void 0===U&&(U=!1),$t.hasOwnProperty(L)){if(!U&&J)throw Error("Already loaded patch: "+L)}else if(!h["__Zone_disable_"+L]){var dt="Zone:"+L;P(dt),$t[L]=F(h,k,yt),C(dt,dt)}},Object.defineProperty(k.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),k.prototype.get=function(L){var F=this.getZoneWith(L);if(F)return F._properties[L]},k.prototype.getZoneWith=function(L){for(var F=this;F;){if(F._properties.hasOwnProperty(L))return F;F=F._parent}return null},k.prototype.fork=function(L){if(!L)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,L)},k.prototype.wrap=function(L,F){if("function"!=typeof L)throw new Error("Expecting function got: "+L);var U=this._zoneDelegate.intercept(this,L,F),dt=this;return function(){return dt.runGuarded(U,this,arguments,F)}},k.prototype.run=function(L,F,U,dt){Nt={parent:Nt,zone:this};try{return this._zoneDelegate.invoke(this,L,F,U,dt)}finally{Nt=Nt.parent}},k.prototype.runGuarded=function(L,F,U,dt){void 0===F&&(F=null),Nt={parent:Nt,zone:this};try{try{return this._zoneDelegate.invoke(this,L,F,U,dt)}catch(Zt){if(this._zoneDelegate.handleError(this,Zt))throw Zt}}finally{Nt=Nt.parent}},k.prototype.runTask=function(L,F,U){if(L.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(L.zone||Ut).name+"; Execution: "+this.name+")");if(L.state!==Lt||L.type!==Ot&&L.type!==qt){var dt=L.state!=gt;dt&&L._transitionTo(gt,It),L.runCount++;var Zt=ue;ue=L,Nt={parent:Nt,zone:this};try{L.type==qt&&L.data&&!L.data.isPeriodic&&(L.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,L,F,U)}catch(ie){if(this._zoneDelegate.handleError(this,ie))throw ie}}finally{L.state!==Lt&&L.state!==Ft&&(L.type==Ot||L.data&&L.data.isPeriodic?dt&&L._transitionTo(It,gt):(L.runCount=0,this._updateTaskCount(L,-1),dt&&L._transitionTo(Lt,gt,Lt))),Nt=Nt.parent,ue=Zt}}},k.prototype.scheduleTask=function(L){if(L.zone&&L.zone!==this)for(var F=this;F;){if(F===L.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+L.zone.name);F=F.parent}L._transitionTo(Vt,Lt);var U=[];L._zoneDelegates=U,L._zone=this;try{L=this._zoneDelegate.scheduleTask(this,L)}catch(dt){throw L._transitionTo(Ft,Vt,Lt),this._zoneDelegate.handleError(this,dt),dt}return L._zoneDelegates===U&&this._updateTaskCount(L,1),L.state==Vt&&L._transitionTo(It,Vt),L},k.prototype.scheduleMicroTask=function(L,F,U,dt){return this.scheduleTask(new et(oe,L,F,U,dt,void 0))},k.prototype.scheduleMacroTask=function(L,F,U,dt,Zt){return this.scheduleTask(new et(qt,L,F,U,dt,Zt))},k.prototype.scheduleEventTask=function(L,F,U,dt,Zt){return this.scheduleTask(new et(Ot,L,F,U,dt,Zt))},k.prototype.cancelTask=function(L){if(L.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(L.zone||Ut).name+"; Execution: "+this.name+")");L._transitionTo(_t,It,gt);try{this._zoneDelegate.cancelTask(this,L)}catch(F){throw L._transitionTo(Ft,_t),this._zoneDelegate.handleError(this,F),F}return this._updateTaskCount(L,-1),L._transitionTo(Lt,_t),L.runCount=0,L},k.prototype._updateTaskCount=function(L,F){var U=L._zoneDelegates;-1==F&&(L._zoneDelegates=null);for(var dt=0;dt<U.length;dt++)U[dt]._updateTaskCount(L.type,F)},k}();rt.__symbol__=z;var Xt,st={name:"",onHasTask:function(L,F,U,dt){return L.hasTask(U,dt)},onScheduleTask:function(L,F,U,dt){return L.scheduleTask(U,dt)},onInvokeTask:function(L,F,U,dt,Zt,ie){return L.invokeTask(U,dt,Zt,ie)},onCancelTask:function(L,F,U,dt){return L.cancelTask(U,dt)}},vt=function(){function k(L,F,U){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=L,this._parentDelegate=F,this._forkZS=U&&(U&&U.onFork?U:F._forkZS),this._forkDlgt=U&&(U.onFork?F:F._forkDlgt),this._forkCurrZone=U&&(U.onFork?this.zone:F._forkCurrZone),this._interceptZS=U&&(U.onIntercept?U:F._interceptZS),this._interceptDlgt=U&&(U.onIntercept?F:F._interceptDlgt),this._interceptCurrZone=U&&(U.onIntercept?this.zone:F._interceptCurrZone),this._invokeZS=U&&(U.onInvoke?U:F._invokeZS),this._invokeDlgt=U&&(U.onInvoke?F:F._invokeDlgt),this._invokeCurrZone=U&&(U.onInvoke?this.zone:F._invokeCurrZone),this._handleErrorZS=U&&(U.onHandleError?U:F._handleErrorZS),this._handleErrorDlgt=U&&(U.onHandleError?F:F._handleErrorDlgt),this._handleErrorCurrZone=U&&(U.onHandleError?this.zone:F._handleErrorCurrZone),this._scheduleTaskZS=U&&(U.onScheduleTask?U:F._scheduleTaskZS),this._scheduleTaskDlgt=U&&(U.onScheduleTask?F:F._scheduleTaskDlgt),this._scheduleTaskCurrZone=U&&(U.onScheduleTask?this.zone:F._scheduleTaskCurrZone),this._invokeTaskZS=U&&(U.onInvokeTask?U:F._invokeTaskZS),this._invokeTaskDlgt=U&&(U.onInvokeTask?F:F._invokeTaskDlgt),this._invokeTaskCurrZone=U&&(U.onInvokeTask?this.zone:F._invokeTaskCurrZone),this._cancelTaskZS=U&&(U.onCancelTask?U:F._cancelTaskZS),this._cancelTaskDlgt=U&&(U.onCancelTask?F:F._cancelTaskDlgt),this._cancelTaskCurrZone=U&&(U.onCancelTask?this.zone:F._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var dt=U&&U.onHasTask;(dt||F&&F._hasTaskZS)&&(this._hasTaskZS=dt?U:st,this._hasTaskDlgt=F,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=L,U.onScheduleTask||(this._scheduleTaskZS=st,this._scheduleTaskDlgt=F,this._scheduleTaskCurrZone=this.zone),U.onInvokeTask||(this._invokeTaskZS=st,this._invokeTaskDlgt=F,this._invokeTaskCurrZone=this.zone),U.onCancelTask||(this._cancelTaskZS=st,this._cancelTaskDlgt=F,this._cancelTaskCurrZone=this.zone))}return k.prototype.fork=function(L,F){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,L,F):new rt(L,F)},k.prototype.intercept=function(L,F,U){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,L,F,U):F},k.prototype.invoke=function(L,F,U,dt,Zt){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,L,F,U,dt,Zt):F.apply(U,dt)},k.prototype.handleError=function(L,F){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,L,F)},k.prototype.scheduleTask=function(L,F){var U=F;if(this._scheduleTaskZS)this._hasTaskZS&&U._zoneDelegates.push(this._hasTaskDlgtOwner),(U=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,L,F))||(U=F);else if(F.scheduleFn)F.scheduleFn(F);else{if(F.type!=oe)throw new Error("Task is missing scheduleFn.");At(F)}return U},k.prototype.invokeTask=function(L,F,U,dt){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,L,F,U,dt):F.callback.apply(U,dt)},k.prototype.cancelTask=function(L,F){var U;if(this._cancelTaskZS)U=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,L,F);else{if(!F.cancelFn)throw Error("Task is not cancelable");U=F.cancelFn(F)}return U},k.prototype.hasTask=function(L,F){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,L,F)}catch(U){this.handleError(L,U)}},k.prototype._updateTaskCount=function(L,F){var U=this._taskCounts,dt=U[L],Zt=U[L]=dt+F;if(Zt<0)throw new Error("More tasks executed then were scheduled.");0!=dt&&0!=Zt||this.hasTask(this.zone,{microTask:U.microTask>0,macroTask:U.macroTask>0,eventTask:U.eventTask>0,change:L})},k}(),et=function(){function k(L,F,U,dt,Zt,ie){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=L,this.source=F,this.data=dt,this.scheduleFn=Zt,this.cancelFn=ie,!U)throw new Error("callback is not defined");this.callback=U;var Q=this;this.invoke=L===Ot&&dt&&dt.useG?k.invokeTask:function(){return k.invokeTask.call(h,Q,this,arguments)}}return k.invokeTask=function(L,F,U){L||(L=this),se++;try{return L.runCount++,L.zone.runTask(L,F,U)}finally{1==se&&_(),se--}},Object.defineProperty(k.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),k.prototype.cancelScheduleRequest=function(){this._transitionTo(Lt,Vt)},k.prototype._transitionTo=function(L,F,U){if(this._state!==F&&this._state!==U)throw new Error(this.type+" '"+this.source+"': can not transition to '"+L+"', expecting state '"+F+"'"+(U?" or '"+U+"'":"")+", was '"+this._state+"'.");this._state=L,L==Lt&&(this._zoneDelegates=null)},k.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},k.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},k}(),ut=z("setTimeout"),ct=z("Promise"),St=z("then"),xt=[],Ct=!1;function At(k){if(0===se&&0===xt.length)if(Xt||h[ct]&&(Xt=h[ct].resolve(0)),Xt){var L=Xt[St];L||(L=Xt.then),L.call(Xt,_)}else h[ut](_,0);k&&xt.push(k)}function _(){if(!Ct){for(Ct=!0;xt.length;){var k=xt;xt=[];for(var L=0;L<k.length;L++){var F=k[L];try{F.zone.runTask(F,null,null)}catch(U){yt.onUnhandledError(U)}}}yt.microtaskDrainDone(),Ct=!1}}var Ut={name:"NO ZONE"},Lt="notScheduled",Vt="scheduling",It="scheduled",gt="running",_t="canceling",Ft="unknown",oe="microTask",qt="macroTask",Ot="eventTask",$t={},yt={symbol:z,currentZoneFrame:function(){return Nt},onUnhandledError:zt,microtaskDrainDone:zt,scheduleMicroTask:At,showUncaughtError:function(){return!rt[z("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:zt,patchMethod:function(){return zt},bindArguments:function(){return[]},patchThen:function(){return zt},patchMacroTask:function(){return zt},patchEventPrototype:function(){return zt},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return zt},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return zt},wrapWithCurrentZone:function(){return zt},filterProperties:function(){return[]},attachOriginToPatched:function(){return zt},_redefineProperty:function(){return zt},patchCallbacks:function(){return zt}},Nt={parent:null,zone:new rt(null,null)},ue=null,se=0;function zt(){}C("Zone","Zone"),h.Zone=rt}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var a=Object.getOwnPropertyDescriptor,s=Object.defineProperty,i=Object.getPrototypeOf,u=Object.create,c=Array.prototype.slice,l="addEventListener",v="removeEventListener",d=Zone.__symbol__(l),p=Zone.__symbol__(v),S="true",T="false",O=Zone.__symbol__("");function R(h,y){return Zone.current.wrap(h,y)}function G(h,y,P,C,H){return Zone.current.scheduleMacroTask(h,y,P,C,H)}var M=Zone.__symbol__,x="undefined"!=typeof window,b=x?window:void 0,w=x&&b||"object"==typeof self&&self||global,D=[null];function B(h,y){for(var P=h.length-1;P>=0;P--)"function"==typeof h[P]&&(h[P]=R(h[P],y+"_"+P));return h}function A(h){return!h||!1!==h.writable&&!("function"==typeof h.get&&void 0===h.set)}var W="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,q=!("nw"in w)&&void 0!==w.process&&"[object process]"==={}.toString.call(w.process),nt=!q&&!W&&!(!x||!b.HTMLElement),tt=void 0!==w.process&&"[object process]"==={}.toString.call(w.process)&&!W&&!(!x||!b.HTMLElement),ot={},it=function(y){if(y=y||w.event){var P=ot[y.type];P||(P=ot[y.type]=M("ON_PROPERTY"+y.type));var z,C=this||y.target||w,H=C[P];return nt&&C===b&&"error"===y.type?!0===(z=H&&H.call(this,y.message,y.filename,y.lineno,y.colno,y.error))&&y.preventDefault():null!=(z=H&&H.apply(this,arguments))&&!z&&y.preventDefault(),z}};function pt(h,y,P){var C=a(h,y);if(!C&&P&&a(P,y)&&(C={enumerable:!0,configurable:!0}),C&&C.configurable){var z=M("on"+y+"patched");if(!h.hasOwnProperty(z)||!h[z]){delete C.writable,delete C.value;var J=C.get,rt=C.set,st=y.substr(2),vt=ot[st];vt||(vt=ot[st]=M("ON_PROPERTY"+st)),C.set=function(et){var ut=this;!ut&&h===w&&(ut=w),ut&&(ut[vt]&&ut.removeEventListener(st,it),rt&&rt.apply(ut,D),"function"==typeof et?(ut[vt]=et,ut.addEventListener(st,it,!1)):ut[vt]=null)},C.get=function(){var et=this;if(!et&&h===w&&(et=w),!et)return null;var ut=et[vt];if(ut)return ut;if(J){var ct=J&&J.call(this);if(ct)return C.set.call(this,ct),"function"==typeof et.removeAttribute&&et.removeAttribute(y),ct}return null},s(h,y,C),h[z]=!0}}}function ht(h,y,P){if(y)for(var C=0;C<y.length;C++)pt(h,"on"+y[C],P);else{var H=[];for(var z in h)"on"==z.substr(0,2)&&H.push(z);for(var J=0;J<H.length;J++)pt(h,H[J],P)}}var Tt=M("originalInstance");function bt(h){var y=w[h];if(y){w[M(h)]=y,w[h]=function(){var H=B(arguments,h);switch(H.length){case 0:this[Tt]=new y;break;case 1:this[Tt]=new y(H[0]);break;case 2:this[Tt]=new y(H[0],H[1]);break;case 3:this[Tt]=new y(H[0],H[1],H[2]);break;case 4:this[Tt]=new y(H[0],H[1],H[2],H[3]);break;default:throw new Error("Arg list too long.")}},Ht(w[h],y);var C,P=new y(function(){});for(C in P)"XMLHttpRequest"===h&&"responseBlob"===C||function(H){"function"==typeof P[H]?w[h].prototype[H]=function(){return this[Tt][H].apply(this[Tt],arguments)}:s(w[h].prototype,H,{set:function(J){"function"==typeof J?(this[Tt][H]=R(J,h+"."+H),Ht(this[Tt][H],J)):this[Tt][H]=J},get:function(){return this[Tt][H]}})}(C);for(C in y)"prototype"!==C&&y.hasOwnProperty(C)&&(w[h][C]=y[C])}}function Pt(h,y,P){for(var C=h;C&&!C.hasOwnProperty(y);)C=i(C);!C&&h[y]&&(C=h);var H=M(y),z=null;if(C&&(!(z=C[H])||!C.hasOwnProperty(H))&&(z=C[H]=C[y],A(C&&a(C,y)))){var rt=P(z,H,y);C[y]=function(){return rt(this,arguments)},Ht(C[y],z)}return z}function ee(h,y,P){var C=null;function H(z){var J=z.data;return J.args[J.cbIdx]=function(){z.invoke.apply(this,arguments)},C.apply(J.target,J.args),z}C=Pt(h,y,function(z){return function(J,rt){var st=P(J,rt);return st.cbIdx>=0&&"function"==typeof rt[st.cbIdx]?G(st.name,rt[st.cbIdx],st,H):z.apply(J,rt)}})}function Ht(h,y){h[M("OriginalDelegate")]=y}var fe=!1,ce=!1;function Yt(){if(fe)return ce;fe=!0;try{var h=b.navigator.userAgent;(-1!==h.indexOf("MSIE ")||-1!==h.indexOf("Trident/")||-1!==h.indexOf("Edge/"))&&(ce=!0)}catch(y){}return ce}Zone.__load_patch("ZoneAwarePromise",function(h,y,P){var C=Object.getOwnPropertyDescriptor,H=Object.defineProperty;var J=P.symbol,rt=[],st=!0===h[J("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],vt=J("Promise"),et=J("then");P.onUnhandledError=function(Q){if(P.showUncaughtError()){var at=Q&&Q.rejection;at?console.error("Unhandled Promise rejection:",at instanceof Error?at.message:at,"; Zone:",Q.zone.name,"; Task:",Q.task&&Q.task.source,"; Value:",at,at instanceof Error?at.stack:void 0):console.error(Q)}},P.microtaskDrainDone=function(){for(var Q=function(){var V=rt.shift();try{V.zone.runGuarded(function(){throw V.throwOriginal?V.rejection:V})}catch(Y){!function St(Q){P.onUnhandledError(Q);try{var at=y[ct];"function"==typeof at&&at.call(this,Q)}catch(V){}}(Y)}};rt.length;)Q()};var ct=J("unhandledPromiseRejectionHandler");function xt(Q){return Q&&Q.then}function Ct(Q){return Q}function Xt(Q){return F.reject(Q)}var At=J("state"),_=J("value"),Ut=J("finally"),Lt=J("parentPromiseValue"),Vt=J("parentPromiseState"),gt=null,Ft=!1;function qt(Q,at){return function(V){try{Nt(Q,at,V)}catch(Y){Nt(Q,!1,Y)}}}var yt=J("currentTaskTrace");function Nt(Q,at,V){var Y=function(){var at=!1;return function(Y){return function(){at||(at=!0,Y.apply(null,arguments))}}}();if(Q===V)throw new TypeError("Promise resolved with itself");if(Q[At]===gt){var mt=null;try{("object"==typeof V||"function"==typeof V)&&(mt=V&&V.then)}catch(jt){return Y(function(){Nt(Q,!1,jt)})(),Q}if(at!==Ft&&V instanceof F&&V.hasOwnProperty(At)&&V.hasOwnProperty(_)&&V[At]!==gt)se(V),Nt(Q,V[At],V[_]);else if(at!==Ft&&"function"==typeof mt)try{mt.call(V,Y(qt(Q,at)),Y(qt(Q,!1)))}catch(jt){Y(function(){Nt(Q,!1,jt)})()}else{Q[At]=at;var Et=Q[_];if(Q[_]=V,Q[Ut]===Ut&&true===at&&(Q[At]=Q[Vt],Q[_]=Q[Lt]),at===Ft&&V instanceof Error){var Mt=y.currentTask&&y.currentTask.data&&y.currentTask.data.__creationTrace__;Mt&&H(V,yt,{configurable:!0,enumerable:!1,writable:!0,value:Mt})}for(var Dt=0;Dt<Et.length;)zt(Q,Et[Dt++],Et[Dt++],Et[Dt++],Et[Dt++]);if(0==Et.length&&at==Ft){Q[At]=0;var Rt=V;try{throw new Error("Uncaught (in promise): "+function z(Q){return Q&&Q.toString===Object.prototype.toString?(Q.constructor&&Q.constructor.name||"")+": "+JSON.stringify(Q):Q?Q.toString():Object.prototype.toString.call(Q)}(V)+(V&&V.stack?"\n"+V.stack:""))}catch(jt){Rt=jt}st&&(Rt.throwOriginal=!0),Rt.rejection=V,Rt.promise=Q,Rt.zone=y.current,Rt.task=y.currentTask,rt.push(Rt),P.scheduleMicroTask()}}}return Q}var ue=J("rejectionHandledHandler");function se(Q){if(0===Q[At]){try{var at=y[ue];at&&"function"==typeof at&&at.call(this,{rejection:Q[_],promise:Q})}catch(Y){}Q[At]=Ft;for(var V=0;V<rt.length;V++)Q===rt[V].promise&&rt.splice(V,1)}}function zt(Q,at,V,Y,mt){se(Q);var Et=Q[At],Mt=Et?"function"==typeof Y?Y:Ct:"function"==typeof mt?mt:Xt;at.scheduleMicroTask("Promise.then",function(){try{var Dt=Q[_],Rt=!!V&&Ut===V[Ut];Rt&&(V[Lt]=Dt,V[Vt]=Et);var jt=at.run(Mt,void 0,Rt&&Mt!==Xt&&Mt!==Ct?[]:[Dt]);Nt(V,!0,jt)}catch(Gt){Nt(V,!1,Gt)}},V)}var L=function(){},F=function(){function Q(at){var V=this;if(!(V instanceof Q))throw new Error("Must be an instanceof Promise.");V[At]=gt,V[_]=[];try{at&&at(qt(V,true),qt(V,Ft))}catch(Y){Nt(V,!1,Y)}}return Q.toString=function(){return"function ZoneAwarePromise() { [native code] }"},Q.resolve=function(at){return Nt(new this(null),true,at)},Q.reject=function(at){return Nt(new this(null),Ft,at)},Q.race=function(at){var V,Y,mt=new this(function(Gt,kt){V=Gt,Y=kt});function Et(Gt){V(Gt)}function Mt(Gt){Y(Gt)}for(var Dt=0,Rt=at;Dt<Rt.length;Dt++){var jt=Rt[Dt];xt(jt)||(jt=this.resolve(jt)),jt.then(Et,Mt)}return mt},Q.all=function(at){return Q.allWithCallback(at)},Q.allSettled=function(at){return(this&&this.prototype instanceof Q?this:Q).allWithCallback(at,{thenCallback:function(mt){return{status:"fulfilled",value:mt}},errorCallback:function(mt){return{status:"rejected",reason:mt}}})},Q.allWithCallback=function(at,V){for(var Y,mt,Et=new this(function(te,Qt){Y=te,mt=Qt}),Mt=2,Dt=0,Rt=[],jt=function(Qt){xt(Qt)||(Qt=Gt.resolve(Qt));var ye=Dt;try{Qt.then(function(Ee){Rt[ye]=V?V.thenCallback(Ee):Ee,0==--Mt&&Y(Rt)},function(Ee){V?(Rt[ye]=V.errorCallback(Ee),0==--Mt&&Y(Rt)):mt(Ee)})}catch(Ee){mt(Ee)}Mt++,Dt++},Gt=this,kt=0,me=at;kt<me.length;kt++)jt(me[kt]);return 0==(Mt-=2)&&Y(Rt),Et},Object.defineProperty(Q.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,Symbol.species,{get:function(){return Q},enumerable:!1,configurable:!0}),Q.prototype.then=function(at,V){var Y=this.constructor[Symbol.species];(!Y||"function"!=typeof Y)&&(Y=this.constructor||Q);var mt=new Y(L),Et=y.current;return this[At]==gt?this[_].push(Et,mt,at,V):zt(this,Et,mt,at,V),mt},Q.prototype.catch=function(at){return this.then(null,at)},Q.prototype.finally=function(at){var V=this.constructor[Symbol.species];(!V||"function"!=typeof V)&&(V=Q);var Y=new V(L);Y[Ut]=Ut;var mt=y.current;return this[At]==gt?this[_].push(mt,Y,at,at):zt(this,mt,Y,at,at),Y},Q}();F.resolve=F.resolve,F.reject=F.reject,F.race=F.race,F.all=F.all;var U=h[vt]=h.Promise;h.Promise=F;var dt=J("thenPatched");function Zt(Q){var at=Q.prototype,V=C(at,"then");if(!V||!1!==V.writable&&V.configurable){var Y=at.then;at[et]=Y,Q.prototype.then=function(mt,Et){var Mt=this;return new F(function(Rt,jt){Y.call(Mt,Rt,jt)}).then(mt,Et)},Q[dt]=!0}}return P.patchThen=Zt,U&&(Zt(U),Pt(h,"fetch",function(Q){return function ie(Q){return function(at,V){var Y=Q.apply(at,V);if(Y instanceof F)return Y;var mt=Y.constructor;return mt[dt]||Zt(mt),Y}}(Q)})),Promise[y.__symbol__("uncaughtPromiseErrors")]=rt,F}),Zone.__load_patch("toString",function(h){var y=Function.prototype.toString,P=M("OriginalDelegate"),C=M("Promise"),H=M("Error"),z=function(){if("function"==typeof this){var vt=this[P];if(vt)return"function"==typeof vt?y.call(vt):Object.prototype.toString.call(vt);if(this===Promise){var et=h[C];if(et)return y.call(et)}if(this===Error){var ut=h[H];if(ut)return y.call(ut)}}return y.call(this)};z[P]=y,Function.prototype.toString=z;var J=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":J.call(this)}});var wt=!1;if("undefined"!=typeof window)try{var Jt=Object.defineProperty({},"passive",{get:function(){wt=!0}});window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch(h){wt=!1}var ae={useG:!0},Wt={},Oe={},ve=new RegExp("^"+O+"(\\w+)(true|false)$"),ne=M("propagationStopped");function de(h,y){var P=(y?y(h):h)+T,C=(y?y(h):h)+S,H=O+P,z=O+C;Wt[h]={},Wt[h][T]=H,Wt[h][S]=z}function xe(h,y,P){var C=P&&P.add||l,H=P&&P.rm||v,z=P&&P.listeners||"eventListeners",J=P&&P.rmAll||"removeAllListeners",rt=M(C),st="."+C+":",vt="prependListener",ut=function(_,Ut,Lt){if(!_.isRemoved){var Vt=_.callback;"object"==typeof Vt&&Vt.handleEvent&&(_.callback=function(_t){return Vt.handleEvent(_t)},_.originalDelegate=Vt),_.invoke(_,Ut,[Lt]);var It=_.options;It&&"object"==typeof It&&It.once&&Ut[H].call(Ut,Lt.type,_.originalDelegate?_.originalDelegate:_.callback,It)}},ct=function(_){if(_=_||h.event){var Ut=this||_.target||h,Lt=Ut[Wt[_.type][T]];if(Lt)if(1===Lt.length)ut(Lt[0],Ut,_);else for(var Vt=Lt.slice(),It=0;It<Vt.length&&(!_||!0!==_[ne]);It++)ut(Vt[It],Ut,_)}},St=function(_){if(_=_||h.event){var Ut=this||_.target||h,Lt=Ut[Wt[_.type][S]];if(Lt)if(1===Lt.length)ut(Lt[0],Ut,_);else for(var Vt=Lt.slice(),It=0;It<Vt.length&&(!_||!0!==_[ne]);It++)ut(Vt[It],Ut,_)}};function xt(At,_){if(!At)return!1;var Ut=!0;_&&void 0!==_.useG&&(Ut=_.useG);var Lt=_&&_.vh,Vt=!0;_&&void 0!==_.chkDup&&(Vt=_.chkDup);var It=!1;_&&void 0!==_.rt&&(It=_.rt);for(var gt=At;gt&&!gt.hasOwnProperty(C);)gt=i(gt);if(!gt&&At[C]&&(gt=At),!gt||gt[rt])return!1;var yt,_t=_&&_.eventNameToString,Ft={},oe=gt[rt]=gt[C],qt=gt[M(H)]=gt[H],Ot=gt[M(z)]=gt[z],$t=gt[M(J)]=gt[J];function Nt(V,Y){return!wt&&"object"==typeof V&&V?!!V.capture:wt&&Y?"boolean"==typeof V?{capture:V,passive:!0}:V?"object"==typeof V&&!1!==V.passive?Object.assign(Object.assign({},V),{passive:!0}):V:{passive:!0}:V}_&&_.prepend&&(yt=gt[M(_.prepend)]=gt[_.prepend]);var F=Ut?function(Y){if(!Ft.isExisting)return oe.call(Ft.target,Ft.eventName,Ft.capture?St:ct,Ft.options)}:function(Y){return oe.call(Ft.target,Ft.eventName,Y.invoke,Ft.options)},U=Ut?function(Y){if(!Y.isRemoved){var mt=Wt[Y.eventName],Et=void 0;mt&&(Et=mt[Y.capture?S:T]);var Mt=Et&&Y.target[Et];if(Mt)for(var Dt=0;Dt<Mt.length;Dt++)if(Mt[Dt]===Y){Mt.splice(Dt,1),Y.isRemoved=!0,0===Mt.length&&(Y.allRemoved=!0,Y.target[Et]=null);break}}if(Y.allRemoved)return qt.call(Y.target,Y.eventName,Y.capture?St:ct,Y.options)}:function(Y){return qt.call(Y.target,Y.eventName,Y.invoke,Y.options)},Zt=_&&_.diff?_.diff:function(Y,mt){var Et=typeof mt;return"function"===Et&&Y.callback===mt||"object"===Et&&Y.originalDelegate===mt},ie=Zone[M("UNPATCHED_EVENTS")],Q=h[M("PASSIVE_EVENTS")],at=function(Y,mt,Et,Mt,Dt,Rt){return void 0===Dt&&(Dt=!1),void 0===Rt&&(Rt=!1),function(){var jt=this||h,Gt=arguments[0];_&&_.transferEventName&&(Gt=_.transferEventName(Gt));var kt=arguments[1];if(!kt)return Y.apply(this,arguments);if(q&&"uncaughtException"===Gt)return Y.apply(this,arguments);var me=!1;if("function"!=typeof kt){if(!kt.handleEvent)return Y.apply(this,arguments);me=!0}if(!Lt||Lt(Y,kt,jt,arguments)){var Ae=wt&&!!Q&&-1!==Q.indexOf(Gt),te=Nt(arguments[2],Ae);if(ie)for(var Qt=0;Qt<ie.length;Qt++)if(Gt===ie[Qt])return Ae?Y.call(jt,Gt,kt,te):Y.apply(this,arguments);var ye=!!te&&("boolean"==typeof te||te.capture),Ee=!(!te||"object"!=typeof te)&&te.once,sn=Zone.current,Ze=Wt[Gt];Ze||(de(Gt,_t),Ze=Wt[Gt]);var ze=Ze[ye?S:T],Ue=jt[ze],Ve=!1;if(Ue){if(Ve=!0,Vt)for(Qt=0;Qt<Ue.length;Qt++)if(Zt(Ue[Qt],kt))return}else Ue=jt[ze]=[];var He,Xe=jt.constructor.name,Ye=Oe[Xe];Ye&&(He=Ye[Gt]),He||(He=Xe+mt+(_t?_t(Gt):Gt)),Ft.options=te,Ee&&(Ft.options.once=!1),Ft.target=jt,Ft.capture=ye,Ft.eventName=Gt,Ft.isExisting=Ve;var Ge=Ut?ae:void 0;Ge&&(Ge.taskData=Ft);var be=sn.scheduleEventTask(He,kt,Ge,Et,Mt);if(Ft.target=null,Ge&&(Ge.taskData=null),Ee&&(te.once=!0),!wt&&"boolean"==typeof be.options||(be.options=te),be.target=jt,be.capture=ye,be.eventName=Gt,me&&(be.originalDelegate=kt),Rt?Ue.unshift(be):Ue.push(be),Dt)return jt}}};return gt[C]=at(oe,st,F,U,It),yt&&(gt[vt]=at(yt,".prependListener:",function(Y){return yt.call(Ft.target,Ft.eventName,Y.invoke,Ft.options)},U,It,!0)),gt[H]=function(){var V=this||h,Y=arguments[0];_&&_.transferEventName&&(Y=_.transferEventName(Y));var mt=arguments[2],Et=!!mt&&("boolean"==typeof mt||mt.capture),Mt=arguments[1];if(!Mt)return qt.apply(this,arguments);if(!Lt||Lt(qt,Mt,V,arguments)){var Rt,Dt=Wt[Y];Dt&&(Rt=Dt[Et?S:T]);var jt=Rt&&V[Rt];if(jt)for(var Gt=0;Gt<jt.length;Gt++){var kt=jt[Gt];if(Zt(kt,Mt))return jt.splice(Gt,1),kt.isRemoved=!0,0===jt.length&&(kt.allRemoved=!0,V[Rt]=null,"string"==typeof Y)&&(V[O+"ON_PROPERTY"+Y]=null),kt.zone.cancelTask(kt),It?V:void 0}return qt.apply(this,arguments)}},gt[z]=function(){var V=this||h,Y=arguments[0];_&&_.transferEventName&&(Y=_.transferEventName(Y));for(var mt=[],Et=Kt(V,_t?_t(Y):Y),Mt=0;Mt<Et.length;Mt++){var Dt=Et[Mt];mt.push(Dt.originalDelegate?Dt.originalDelegate:Dt.callback)}return mt},gt[J]=function(){var V=this||h,Y=arguments[0];if(Y){_&&_.transferEventName&&(Y=_.transferEventName(Y));var jt=Wt[Y];if(jt){var me=V[jt[T]],Ae=V[jt[S]];if(me)for(var te=me.slice(),Et=0;Et<te.length;Et++)this[H].call(this,Y,(Qt=te[Et]).originalDelegate?Qt.originalDelegate:Qt.callback,Qt.options);if(Ae)for(te=Ae.slice(),Et=0;Et<te.length;Et++){var Qt;this[H].call(this,Y,(Qt=te[Et]).originalDelegate?Qt.originalDelegate:Qt.callback,Qt.options)}}}else{var mt=Object.keys(V);for(Et=0;Et<mt.length;Et++){var Dt=ve.exec(mt[Et]),Rt=Dt&&Dt[1];Rt&&"removeListener"!==Rt&&this[J].call(this,Rt)}this[J].call(this,"removeListener")}if(It)return this},Ht(gt[C],oe),Ht(gt[H],qt),$t&&Ht(gt[J],$t),Ot&&Ht(gt[z],Ot),!0}for(var Ct=[],Xt=0;Xt<y.length;Xt++)Ct[Xt]=xt(y[Xt],P);return Ct}function Kt(h,y){if(!y){var P=[];for(var C in h){var H=ve.exec(C),z=H&&H[1];if(z&&(!y||z===y)){var J=h[C];if(J)for(var rt=0;rt<J.length;rt++)P.push(J[rt])}}return P}var st=Wt[y];st||(de(y),st=Wt[y]);var vt=h[st[T]],et=h[st[S]];return vt?et?vt.concat(et):vt.slice():et?et.slice():[]}function Le(h,y){var P=h.Event;P&&P.prototype&&y.patchMethod(P.prototype,"stopImmediatePropagation",function(C){return function(H,z){H[ne]=!0,C&&C.apply(H,z)}})}function Ie(h,y,P,C,H){var z=Zone.__symbol__(C);if(!y[z]){var J=y[z]=y[C];y[C]=function(rt,st,vt){return st&&st.prototype&&H.forEach(function(et){var ut=P+"."+C+"::"+et,ct=st.prototype;if(ct.hasOwnProperty(et)){var St=h.ObjectGetOwnPropertyDescriptor(ct,et);St&&St.value?(St.value=h.wrapWithCurrentZone(St.value,ut),h._redefineProperty(st.prototype,et,St)):ct[et]&&(ct[et]=h.wrapWithCurrentZone(ct[et],ut))}else ct[et]&&(ct[et]=h.wrapWithCurrentZone(ct[et],ut))}),J.call(y,rt,st,vt)},h.attachOriginToPatched(y[C],J)}}var ft,Bt,pe,Te,De,h,y,he=["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"],Re=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],re=["load"],Se=["blur","error","focus","load","resize","scroll","messageerror"],g=["bounce","finish","start"],E=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],m=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],j=["close","error","open","message"],I=["error","message"],N=["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"],he,["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 K(h,y,P){if(!P||0===P.length)return y;var C=P.filter(function(z){return z.target===h});if(!C||0===C.length)return y;var H=C[0].ignoreProperties;return y.filter(function(z){return-1===H.indexOf(z)})}function X(h,y,P,C){h&&ht(h,K(h,y,P),C)}function lt(h,y){if((!q||tt)&&!Zone[h.symbol("patchEvents")]){var P="undefined"!=typeof WebSocket,C=y.__Zone_ignore_on_properties;if(nt){var H=window,z=function le(){try{var h=b.navigator.userAgent;if(-1!==h.indexOf("MSIE ")||-1!==h.indexOf("Trident/"))return!0}catch(y){}return!1}()?[{target:H,ignoreProperties:["error"]}]:[];X(H,N.concat(["messageerror"]),C&&C.concat(z),i(H)),X(Document.prototype,N,C),void 0!==H.SVGElement&&X(H.SVGElement.prototype,N,C),X(Element.prototype,N,C),X(HTMLElement.prototype,N,C),X(HTMLMediaElement.prototype,Re,C),X(HTMLFrameSetElement.prototype,he.concat(Se),C),X(HTMLBodyElement.prototype,he.concat(Se),C),X(HTMLFrameElement.prototype,re,C),X(HTMLIFrameElement.prototype,re,C);var J=H.HTMLMarqueeElement;J&&X(J.prototype,g,C);var rt=H.Worker;rt&&X(rt.prototype,I,C)}var st=y.XMLHttpRequest;st&&X(st.prototype,E,C);var vt=y.XMLHttpRequestEventTarget;vt&&X(vt&&vt.prototype,E,C),"undefined"!=typeof IDBIndex&&(X(IDBIndex.prototype,m,C),X(IDBRequest.prototype,m,C),X(IDBOpenDBRequest.prototype,m,C),X(IDBDatabase.prototype,m,C),X(IDBTransaction.prototype,m,C),X(IDBCursor.prototype,m,C)),P&&X(WebSocket.prototype,j,C)}}function Qe(h,y,P){var C=P.configurable;return Ke(h,y,P=Be(h,y,P),C)}function We(h,y){return h&&h[De]&&h[De][y]}function Be(h,y,P){return Object.isFrozen(P)||(P.configurable=!0),P.configurable||(!h[De]&&!Object.isFrozen(h)&&Bt(h,De,{writable:!0,value:{}}),h[De]&&(h[De][y]=!0)),P}function Ke(h,y,P,C){try{return Bt(h,y,P)}catch(J){if(!P.configurable)throw J;void 0===C?delete P.configurable:P.configurable=C;try{return Bt(h,y,P)}catch(rt){var H=!1;if(("createdCallback"===y||"attachedCallback"===y||"detachedCallback"===y||"attributeChangedCallback"===y)&&(H=!0),!H)throw rt;var z=null;try{z=JSON.stringify(P)}catch(st){z=P.toString()}console.log("Attempting to configure '"+y+"' with descriptor '"+z+"' on object '"+h+"' and got error, giving up: "+rt)}}}function _e(h,y){var P=h.getGlobalObjects();if((!P.isNode||P.isMix)&&!function tn(h,y){var P=h.getGlobalObjects();if((P.isBrowser||P.isMix)&&!h.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var z=h.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(z&&!z.configurable)return!1;if(z){h.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var rt=!!document.createElement("div").onclick;return h.ObjectDefineProperty(Element.prototype,"onclick",z),rt}}var st=y.XMLHttpRequest;if(!st)return!1;var vt="onreadystatechange",et=st.prototype,ut=h.ObjectGetOwnPropertyDescriptor(et,vt);if(ut)return h.ObjectDefineProperty(et,vt,{enumerable:!0,configurable:!0,get:function(){return!0}}),rt=!!(ct=new st).onreadystatechange,h.ObjectDefineProperty(et,vt,ut||{}),rt;var St=h.symbol("fake");h.ObjectDefineProperty(et,vt,{enumerable:!0,configurable:!0,get:function(){return this[St]},set:function(_){this[St]=_}});var ct,xt=function(){};return(ct=new st).onreadystatechange=xt,rt=ct[St]===xt,ct.onreadystatechange=null,rt}(h,y)){var z="undefined"!=typeof WebSocket;(function en(h){for(var y=h.getGlobalObjects().eventNames,P=h.symbol("unbound"),C=function(J){var rt=y[J],st="on"+rt;self.addEventListener(rt,function(vt){var ut,ct,et=vt.target;for(ct=et?et.constructor.name+"."+st:"unknown."+st;et;)et[st]&&!et[st][P]&&((ut=h.wrapWithCurrentZone(et[st],ct))[P]=et[st],et[st]=ut),et=et.parentElement},!0)},H=0;H<y.length;H++)C(H)})(h),h.patchClass("XMLHttpRequest"),z&&function qe(h,y){var P=h.getGlobalObjects(),C=P.ADD_EVENT_LISTENER_STR,H=P.REMOVE_EVENT_LISTENER_STR,z=y.WebSocket;y.EventTarget||h.patchEventTarget(y,[z.prototype]),y.WebSocket=function(st,vt){var ut,ct,et=arguments.length>1?new z(st,vt):new z(st),St=h.ObjectGetOwnPropertyDescriptor(et,"onmessage");return St&&!1===St.configurable?(ut=h.ObjectCreate(et),ct=et,[C,H,"send","close"].forEach(function(xt){ut[xt]=function(){var Ct=h.ArraySlice.call(arguments);if(xt===C||xt===H){var Xt=Ct.length>0?Ct[0]:void 0;if(Xt){var At=Zone.__symbol__("ON_PROPERTY"+Xt);et[At]=ut[At]}}return et[xt].apply(et,Ct)}})):ut=et,h.patchOnProperties(ut,["close","error","message","open"],ct),ut};var J=y.WebSocket;for(var rt in z)J[rt]=z[rt]}(h,y),Zone[h.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(h,y,P){P.patchOnProperties=ht,P.patchMethod=Pt,P.bindArguments=B,P.patchMacroTask=ee;var C=y.__symbol__("BLACK_LISTED_EVENTS"),H=y.__symbol__("UNPATCHED_EVENTS");h[H]&&(h[C]=h[H]),h[C]&&(y[C]=y[H]=h[C]),P.patchEventPrototype=Le,P.patchEventTarget=xe,P.isIEOrEdge=Yt,P.ObjectDefineProperty=s,P.ObjectGetOwnPropertyDescriptor=a,P.ObjectCreate=u,P.ArraySlice=c,P.patchClass=bt,P.wrapWithCurrentZone=R,P.filterProperties=K,P.attachOriginToPatched=Ht,P._redefineProperty=Object.defineProperty,P.patchCallbacks=Ie,P.getGlobalObjects=function(){return{globalSources:Oe,zoneSymbolEventNames:Wt,eventNames:N,isBrowser:nt,isMix:tt,isNode:q,TRUE_STR:S,FALSE_STR:T,ZONE_SYMBOL_PREFIX:O,ADD_EVENT_LISTENER_STR:l,REMOVE_EVENT_LISTENER_STR:v}}}),h="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=h.__Zone_symbol_prefix||"__zone_symbol__",h[function P(C){return y+C}("legacyPatch")]=function(){var C=h.Zone;C.__load_patch("defineProperty",function(H,z,J){J._redefineProperty=Qe,function Je(){ft=Zone.__symbol__,Bt=Object[ft("defineProperty")]=Object.defineProperty,pe=Object[ft("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Te=Object.create,De=ft("unconfigurables"),Object.defineProperty=function(h,y,P){if(We(h,y))throw new TypeError("Cannot assign to read only property '"+y+"' of "+h);var C=P.configurable;return"prototype"!==y&&(P=Be(h,y,P)),Ke(h,y,P,C)},Object.defineProperties=function(h,y){return Object.keys(y).forEach(function(P){Object.defineProperty(h,P,y[P])}),h},Object.create=function(h,y){return"object"==typeof y&&!Object.isFrozen(y)&&Object.keys(y).forEach(function(P){y[P]=Be(h,P,y[P])}),Te(h,y)},Object.getOwnPropertyDescriptor=function(h,y){var P=pe(h,y);return P&&We(h,y)&&(P.configurable=!1),P}}()}),C.__load_patch("registerElement",function(H,z,J){!function nn(h,y){var P=y.getGlobalObjects();(P.isBrowser||P.isMix)&&"registerElement"in h.document&&y.patchCallbacks(y,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(H,J)}),C.__load_patch("EventTargetLegacy",function(H,z,J){(function ke(h,y){var P=y.getGlobalObjects(),C=P.eventNames,H=P.globalSources,z=P.zoneSymbolEventNames,J=P.TRUE_STR,rt=P.FALSE_STR,st=P.ZONE_SYMBOL_PREFIX,et="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),ut="EventTarget",ct=[],St=h.wtf,xt="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");St?ct=xt.map(function(zt){return"HTML"+zt+"Element"}).concat(et):h[ut]?ct.push(ut):ct=et;for(var Ct=h.__Zone_disable_IE_check||!1,Xt=h.__Zone_enable_cross_context_check||!1,At=y.isIEOrEdge(),Ut="[object FunctionWrapper]",Lt="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",Vt={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},It=0;It<C.length;It++){var oe=st+((gt=C[It])+rt),qt=st+(gt+J);z[gt]={},z[gt][rt]=oe,z[gt][J]=qt}for(It=0;It<xt.length;It++)for(var Ot=xt[It],$t=H[Ot]={},yt=0;yt<C.length;yt++){var gt;$t[gt=C[yt]]=Ot+".addEventListener:"+gt}var ue=[];for(It=0;It<ct.length;It++){var se=h[ct[It]];ue.push(se&&se.prototype)}return y.patchEventTarget(h,ue,{vh:function(k,L,F,U){if(!Ct&&At)if(Xt)try{if((dt=L.toString())===Ut||dt==Lt)return k.apply(F,U),!1}catch(Zt){return k.apply(F,U),!1}else{var dt;if((dt=L.toString())===Ut||dt==Lt)return k.apply(F,U),!1}else if(Xt)try{L.toString()}catch(Zt){return k.apply(F,U),!1}return!0},transferEventName:function(k){return Vt[k]||k}}),Zone[y.symbol("patchEventTarget")]=!!h[ut],!0})(H,J),_e(J,H)})};var $e=M("zoneTask");function we(h,y,P,C){var H=null,z=null;P+=C;var J={};function rt(vt){var et=vt.data;return et.args[0]=function(){return vt.invoke.apply(this,arguments)},et.handleId=H.apply(h,et.args),vt}function st(vt){return z.call(h,vt.data.handleId)}H=Pt(h,y+=C,function(vt){return function(et,ut){if("function"==typeof ut[0]){var ct={isPeriodic:"Interval"===C,delay:"Timeout"===C||"Interval"===C?ut[1]||0:void 0,args:ut},St=ut[0];ut[0]=function(){try{return St.apply(this,arguments)}finally{ct.isPeriodic||("number"==typeof ct.handleId?delete J[ct.handleId]:ct.handleId&&(ct.handleId[$e]=null))}};var xt=G(y,ut[0],ct,rt,st);if(!xt)return xt;var Ct=xt.data.handleId;return"number"==typeof Ct?J[Ct]=xt:Ct&&(Ct[$e]=xt),Ct&&Ct.ref&&Ct.unref&&"function"==typeof Ct.ref&&"function"==typeof Ct.unref&&(xt.ref=Ct.ref.bind(Ct),xt.unref=Ct.unref.bind(Ct)),"number"==typeof Ct||Ct?Ct:xt}return vt.apply(h,ut)}}),z=Pt(h,P,function(vt){return function(et,ut){var St,ct=ut[0];"number"==typeof ct?St=J[ct]:(St=ct&&ct[$e])||(St=ct),St&&"string"==typeof St.type?"notScheduled"!==St.state&&(St.cancelFn&&St.data.isPeriodic||0===St.runCount)&&("number"==typeof ct?delete J[ct]:ct&&(ct[$e]=null),St.zone.cancelTask(St)):vt.apply(h,ut)}})}Zone.__load_patch("legacy",function(h){var y=h[Zone.__symbol__("legacyPatch")];y&&y()}),Zone.__load_patch("queueMicrotask",function(h,y,P){P.patchMethod(h,"queueMicrotask",function(C){return function(H,z){y.current.scheduleMicroTask("queueMicrotask",z[0])}})}),Zone.__load_patch("timers",function(h){var y="set",P="clear";we(h,y,P,"Timeout"),we(h,y,P,"Interval"),we(h,y,P,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(h){we(h,"request","cancel","AnimationFrame"),we(h,"mozRequest","mozCancel","AnimationFrame"),we(h,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(h,y){for(var P=["alert","prompt","confirm"],C=0;C<P.length;C++)Pt(h,P[C],function(z,J,rt){return function(st,vt){return y.current.run(z,h,vt,rt)}})}),Zone.__load_patch("EventTarget",function(h,y,P){(function an(h,y){y.patchEventPrototype(h,y)})(h,P),function on(h,y){if(!Zone[y.symbol("patchEventTarget")]){for(var P=y.getGlobalObjects(),C=P.eventNames,H=P.zoneSymbolEventNames,z=P.TRUE_STR,J=P.FALSE_STR,rt=P.ZONE_SYMBOL_PREFIX,st=0;st<C.length;st++){var vt=C[st],ct=rt+(vt+J),St=rt+(vt+z);H[vt]={},H[vt][J]=ct,H[vt][z]=St}var xt=h.EventTarget;if(xt&&xt.prototype)return y.patchEventTarget(h,[xt&&xt.prototype]),!0}}(h,P);var C=h.XMLHttpRequestEventTarget;C&&C.prototype&&P.patchEventTarget(h,[C.prototype])}),Zone.__load_patch("MutationObserver",function(h,y,P){bt("MutationObserver"),bt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(h,y,P){bt("IntersectionObserver")}),Zone.__load_patch("FileReader",function(h,y,P){bt("FileReader")}),Zone.__load_patch("on_property",function(h,y,P){lt(P,h)}),Zone.__load_patch("customElements",function(h,y,P){!function rn(h,y){var P=y.getGlobalObjects();(P.isBrowser||P.isMix)&&h.customElements&&"customElements"in h&&y.patchCallbacks(y,h.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(h,P)}),Zone.__load_patch("XHR",function(h,y){!function st(vt){var et=vt.XMLHttpRequest;if(et){var ut=et.prototype,St=ut[d],xt=ut[p];if(!St){var Ct=vt.XMLHttpRequestEventTarget;if(Ct){var Xt=Ct.prototype;St=Xt[d],xt=Xt[p]}}var At="readystatechange",_="scheduled",It=Pt(ut,"open",function(){return function(Ot,$t){return Ot[C]=0==$t[2],Ot[J]=$t[1],It.apply(Ot,$t)}}),_t=M("fetchTaskAborting"),Ft=M("fetchTaskScheduling"),oe=Pt(ut,"send",function(){return function(Ot,$t){if(!0===y.current[Ft]||Ot[C])return oe.apply(Ot,$t);var yt={target:Ot,url:Ot[J],isPeriodic:!1,args:$t,aborted:!1},Nt=G("XMLHttpRequest.send",Lt,yt,Ut,Vt);Ot&&!0===Ot[rt]&&!yt.aborted&&Nt.state===_&&Nt.invoke()}}),qt=Pt(ut,"abort",function(){return function(Ot,$t){var yt=function ct(Ot){return Ot[P]}(Ot);if(yt&&"string"==typeof yt.type){if(null==yt.cancelFn||yt.data&&yt.data.aborted)return;yt.zone.cancelTask(yt)}else if(!0===y.current[_t])return qt.apply(Ot,$t)}})}function Ut(Ot){var $t=Ot.data,yt=$t.target;yt[z]=!1,yt[rt]=!1;var Nt=yt[H];St||(St=yt[d],xt=yt[p]),Nt&&xt.call(yt,At,Nt);var ue=yt[H]=function(){if(yt.readyState===yt.DONE)if(!$t.aborted&&yt[z]&&Ot.state===_){var zt=yt[y.__symbol__("loadfalse")];if(0!==yt.status&&zt&&zt.length>0){var k=Ot.invoke;Ot.invoke=function(){for(var L=yt[y.__symbol__("loadfalse")],F=0;F<L.length;F++)L[F]===Ot&&L.splice(F,1);!$t.aborted&&Ot.state===_&&k.call(Ot)},zt.push(Ot)}else Ot.invoke()}else!$t.aborted&&!1===yt[z]&&(yt[rt]=!0)};return St.call(yt,At,ue),yt[P]||(yt[P]=Ot),oe.apply(yt,$t.args),yt[z]=!0,Ot}function Lt(){}function Vt(Ot){var $t=Ot.data;return $t.aborted=!0,qt.apply($t.target,$t.args)}}(h);var P=M("xhrTask"),C=M("xhrSync"),H=M("xhrListener"),z=M("xhrScheduled"),J=M("xhrURL"),rt=M("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(h){h.navigator&&h.navigator.geolocation&&function Z(h,y){for(var P=h.constructor.name,C=function(J){var et,ut,rt=y[J],st=h[rt];if(st){if(!A(a(h,rt)))return"continue";h[rt]=(ut=function(){return et.apply(this,B(arguments,P+"."+rt))},Ht(ut,et=st),ut)}},H=0;H<y.length;H++)C(H)}(h.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(h,y){function P(C){return function(H){Kt(h,C).forEach(function(J){var rt=h.PromiseRejectionEvent;if(rt){var st=new rt(C,{promise:H.promise,reason:H.rejection});J.invoke(st)}})}}h.PromiseRejectionEvent&&(y[M("unhandledPromiseRejectionHandler")]=P("unhandledrejection"),y[M("rejectionHandledHandler")]=P("rejectionhandled"))})},void 0!==(n=e.call(f,t,f,o))&&(o.exports=n)},7377:function(o,f,t){t(8783),t(1038),t(9753),t(6572),t(2222),t(545),t(6541),t(3290),t(7327),t(9826),t(4553),t(4944),t(6535),t(9554),t(6699),t(2772),t(6992),t(9600),t(6815),t(1249),t(5827),t(6644),t(5069),t(7042),t(5212),t(2707),t(8706),t(561),t(3792),t(9244);var e=t(857);o.exports=e.Array},9863:function(o,f,t){t(3843),t(5735),t(5268),t(3710),t(6078);var e=t(857);o.exports=e.Date},2822:function(o,f,t){t(4812),t(8309),t(4855);var e=t(857);o.exports=e.Function},3662:function(o,f,t){t(1532),t(1539),t(8783),t(3948);var e=t(857);o.exports=e.Map},3268:function(o,f,t){t(9752),t(2376),t(3181),t(3484),t(2388),t(8621),t(403),t(4755),t(5438),t(332),t(658),t(197),t(4914),t(2420),t(160),t(970),t(408),t(3689);var e=t(857);o.exports=e.Math},9789:function(o,f,t){t(9653),t(3299),t(5192),t(3161),t(4048),t(8285),t(4363),t(5994),t(1874),t(9494),t(6977),t(5147);var e=t(857);o.exports=e.Number},4790:function(o,f,t){t(2526),t(9601),t(8011),t(9070),t(3321),t(9720),t(3371),t(8559),t(5003),t(9337),t(6210),t(489),t(3304),t(1825),t(8410),t(2200),t(7941),t(7227),t(514),t(8304),t(6833),t(1539),t(9595),t(5500),t(4869),t(3952),t(408),t(3706);var e=t(857);o.exports=e.Object},3885:function(o,f,t){t(4678);var e=t(857);o.exports=e.parseFloat},4834:function(o,f,t){t(1058);var e=t(857);o.exports=e.parseInt},2254:function(o,f,t){t(224),t(2419),t(9596),t(2586),t(4819),t(5683),t(9361),t(1037),t(5898),t(7556),t(4361),t(3593),t(9532);var e=t(857);o.exports=e.Reflect},8460:function(o,f,t){t(4603),t(9714),t(4916),t(2087),t(8386),t(7601),t(4723),t(5306),t(4765),t(3123)},8188:function(o,f,t){t(189),t(1539),t(8783),t(3948);var e=t(857);o.exports=e.Set},1111:function(o,f,t){t(4916),t(4953),t(8992),t(9841),t(7852),t(2023),t(4723),t(6373),t(6528),t(3112),t(2481),t(5306),t(4765),t(3123),t(6755),t(3210),t(5674),t(8702),t(8783),t(5218),t(4475),t(7929),t(915),t(9253),t(2125),t(8830),t(8734),t(9254),t(7268),t(7397),t(86),t(623);var e=t(857);o.exports=e.String},9266:function(o,f,t){t(2222),t(1539),t(2526),t(2443),t(1817),t(2401),t(8722),t(2165),t(9007),t(6066),t(3510),t(1840),t(6982),t(2159),t(6649),t(9341),t(543),t(408),t(3706);var e=t(857);o.exports=e.Symbol},9074:function(o,f,t){t(1539),t(4129),t(3948);var e=t(857);o.exports=e.WeakMap},3099:function(o){o.exports=function(f){if("function"!=typeof f)throw TypeError(String(f)+" is not a function");return f}},6077:function(o,f,t){var e=t(111);o.exports=function(n){if(!e(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},1223:function(o,f,t){var e=t(5112),n=t(30),r=t(3070),a=e("unscopables"),s=Array.prototype;null==s[a]&&r.f(s,a,{configurable:!0,value:n(null)}),o.exports=function(i){s[a][i]=!0}},1530:function(o,f,t){"use strict";var e=t(8710).charAt;o.exports=function(n,r,a){return r+(a?e(n,r).length:1)}},5787:function(o){o.exports=function(f,t,e){if(!(f instanceof t))throw TypeError("Incorrect "+(e?e+" ":"")+"invocation");return f}},9670:function(o,f,t){var e=t(111);o.exports=function(n){if(!e(n))throw TypeError(String(n)+" is not an object");return n}},1048:function(o,f,t){"use strict";var e=t(7908),n=t(1400),r=t(7466),a=Math.min;o.exports=[].copyWithin||function(i,u){var c=e(this),l=r(c.length),v=n(i,l),d=n(u,l),p=arguments.length>2?arguments[2]:void 0,S=a((void 0===p?l:n(p,l))-d,l-v),T=1;for(d<v&&v<d+S&&(T=-1,d+=S-1,v+=S-1);S-- >0;)d in c?c[v]=c[d]:delete c[v],v+=T,d+=T;return c}},1285:function(o,f,t){"use strict";var e=t(7908),n=t(1400),r=t(7466);o.exports=function(s){for(var i=e(this),u=r(i.length),c=arguments.length,l=n(c>1?arguments[1]:void 0,u),v=c>2?arguments[2]:void 0,d=void 0===v?u:n(v,u);d>l;)i[l++]=s;return i}},8533:function(o,f,t){"use strict";var e=t(2092).forEach,n=t(2133),r=t(9207),a=n("forEach"),s=r("forEach");o.exports=a&&s?[].forEach:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}},8457:function(o,f,t){"use strict";var e=t(9974),n=t(7908),r=t(3411),a=t(7659),s=t(7466),i=t(6135),u=t(1246);o.exports=function(l){var G,M,x,b,w,$,v=n(l),d="function"==typeof this?this:Array,p=arguments.length,S=p>1?arguments[1]:void 0,T=void 0!==S,O=u(v),R=0;if(T&&(S=e(S,p>2?arguments[2]:void 0,2)),null==O||d==Array&&a(O))for(M=new d(G=s(v.length));G>R;R++)$=T?S(v[R],R):v[R],i(M,R,$);else for(w=(b=O.call(v)).next,M=new d;!(x=w.call(b)).done;R++)$=T?r(b,S,[x.value,R],!0):x.value,i(M,R,$);return M.length=R,M}},1318:function(o,f,t){var e=t(5656),n=t(7466),r=t(1400),a=function(s){return function(i,u,c){var p,l=e(i),v=n(l.length),d=r(c,v);if(s&&u!=u){for(;v>d;)if((p=l[d++])!=p)return!0}else for(;v>d;d++)if((s||d in l)&&l[d]===u)return s||d||0;return!s&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},2092:function(o,f,t){var e=t(9974),n=t(8361),r=t(7908),a=t(7466),s=t(5417),i=[].push,u=function(c){var l=1==c,v=2==c,d=3==c,p=4==c,S=6==c,T=5==c||S;return function(O,R,G,M){for(var A,W,x=r(O),b=n(x),w=e(R,G,3),$=a(b.length),D=0,B=M||s,Z=l?B(O,$):v?B(O,0):void 0;$>D;D++)if((T||D in b)&&(W=w(A=b[D],D,x),c))if(l)Z[D]=W;else if(W)switch(c){case 3:return!0;case 5:return A;case 6:return D;case 2:i.call(Z,A)}else if(p)return!1;return S?-1:d||p?p:Z}};o.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},6583:function(o,f,t){"use strict";var e=t(5656),n=t(9958),r=t(7466),a=t(2133),s=t(9207),i=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),v=s("indexOf",{ACCESSORS:!0,1:0});o.exports=!c&&l&&v?u:function(S){if(c)return u.apply(this,arguments)||0;var T=e(this),O=r(T.length),R=O-1;for(arguments.length>1&&(R=i(R,n(arguments[1]))),R<0&&(R=O+R);R>=0;R--)if(R in T&&T[R]===S)return R||0;return-1}},1194:function(o,f,t){var e=t(7293),n=t(5112),r=t(7392),a=n("species");o.exports=function(s){return r>=51||!e(function(){var i=[];return(i.constructor={})[a]=function(){return{foo:1}},1!==i[s](Boolean).foo})}},2133:function(o,f,t){"use strict";var e=t(7293);o.exports=function(n,r){var a=[][n];return!!a&&e(function(){a.call(null,r||function(){throw 1},1)})}},9207:function(o,f,t){var e=t(9781),n=t(7293),r=t(6656),a=Object.defineProperty,s={},i=function(u){throw u};o.exports=function(u,c){if(r(s,u))return s[u];c||(c={});var l=[][u],v=!!r(c,"ACCESSORS")&&c.ACCESSORS,d=r(c,0)?c[0]:i,p=r(c,1)?c[1]:void 0;return s[u]=!!l&&!n(function(){if(v&&!e)return!0;var S={length:-1};v?a(S,1,{enumerable:!0,get:i}):S[1]=1,l.call(S,d,p)})}},3671:function(o,f,t){var e=t(3099),n=t(7908),r=t(8361),a=t(7466),s=function(i){return function(u,c,l,v){e(c);var d=n(u),p=r(d),S=a(d.length),T=i?S-1:0,O=i?-1:1;if(l<2)for(;;){if(T in p){v=p[T],T+=O;break}if(T+=O,i?T<0:S<=T)throw TypeError("Reduce of empty array with no initial value")}for(;i?T>=0:S>T;T+=O)T in p&&(v=c(v,p[T],T,d));return v}};o.exports={left:s(!1),right:s(!0)}},5417:function(o,f,t){var e=t(111),n=t(3157),a=t(5112)("species");o.exports=function(s,i){var u;return n(s)&&("function"!=typeof(u=s.constructor)||u!==Array&&!n(u.prototype)?e(u)&&null===(u=u[a])&&(u=void 0):u=void 0),new(void 0===u?Array:u)(0===i?0:i)}},3411:function(o,f,t){var e=t(9670);o.exports=function(n,r,a,s){try{return s?r(e(a)[0],a[1]):r(a)}catch(u){var i=n.return;throw void 0!==i&&e(i.call(n)),u}}},7072:function(o,f,t){var n=t(5112)("iterator"),r=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(i){}o.exports=function(i,u){if(!u&&!r)return!1;var c=!1;try{var l={};l[n]=function(){return{next:function(){return{done:c=!0}}}},i(l)}catch(v){}return c}},4326:function(o){var f={}.toString;o.exports=function(t){return f.call(t).slice(8,-1)}},648:function(o,f,t){var e=t(1694),n=t(4326),a=t(5112)("toStringTag"),s="Arguments"==n(function(){return arguments}());o.exports=e?n:function(u){var c,l,v;return void 0===u?"Undefined":null===u?"Null":"string"==typeof(l=function(u,c){try{return u[c]}catch(l){}}(c=Object(u),a))?l:s?n(c):"Object"==(v=n(c))&&"function"==typeof c.callee?"Arguments":v}},5631:function(o,f,t){"use strict";var e=t(3070).f,n=t(30),r=t(2248),a=t(9974),s=t(5787),i=t(612),u=t(654),c=t(6340),l=t(9781),v=t(2423).fastKey,d=t(9909),p=d.set,S=d.getterFor;o.exports={getConstructor:function(T,O,R,G){var M=T(function($,D){s($,M,O),p($,{type:O,index:n(null),first:void 0,last:void 0,size:0}),l||($.size=0),null!=D&&i(D,$[G],$,R)}),x=S(O),b=function($,D,B){var W,q,Z=x($),A=w($,D);return A?A.value=B:(Z.last=A={index:q=v(D,!0),key:D,value:B,previous:W=Z.last,next:void 0,removed:!1},Z.first||(Z.first=A),W&&(W.next=A),l?Z.size++:$.size++,"F"!==q&&(Z.index[q]=A)),$},w=function($,D){var A,B=x($),Z=v(D);if("F"!==Z)return B.index[Z];for(A=B.first;A;A=A.next)if(A.key==D)return A};return r(M.prototype,{clear:function(){for(var B=x(this),Z=B.index,A=B.first;A;)A.removed=!0,A.previous&&(A.previous=A.previous.next=void 0),delete Z[A.index],A=A.next;B.first=B.last=void 0,l?B.size=0:this.size=0},delete:function($){var D=this,B=x(D),Z=w(D,$);if(Z){var A=Z.next,W=Z.previous;delete B.index[Z.index],Z.removed=!0,W&&(W.next=A),A&&(A.previous=W),B.first==Z&&(B.first=A),B.last==Z&&(B.last=W),l?B.size--:D.size--}return!!Z},forEach:function(D){for(var A,B=x(this),Z=a(D,arguments.length>1?arguments[1]:void 0,3);A=A?A.next:B.first;)for(Z(A.value,A.key,this);A&&A.removed;)A=A.previous},has:function(D){return!!w(this,D)}}),r(M.prototype,R?{get:function(D){var B=w(this,D);return B&&B.value},set:function(D,B){return b(this,0===D?0:D,B)}}:{add:function(D){return b(this,D=0===D?0:D,D)}}),l&&e(M.prototype,"size",{get:function(){return x(this).size}}),M},setStrong:function(T,O,R){var G=O+" Iterator",M=S(O),x=S(G);u(T,O,function(b,w){p(this,{type:G,target:b,state:M(b),kind:w,last:void 0})},function(){for(var b=x(this),w=b.kind,$=b.last;$&&$.removed;)$=$.previous;return b.target&&(b.last=$=$?$.next:b.state.first)?"keys"==w?{value:$.key,done:!1}:"values"==w?{value:$.value,done:!1}:{value:[$.key,$.value],done:!1}:(b.target=void 0,{value:void 0,done:!0})},R?"entries":"values",!R,!0),c(O)}}},9320:function(o,f,t){"use strict";var e=t(2248),n=t(2423).getWeakData,r=t(9670),a=t(111),s=t(5787),i=t(612),u=t(2092),c=t(6656),l=t(9909),v=l.set,d=l.getterFor,p=u.find,S=u.findIndex,T=0,O=function(M){return M.frozen||(M.frozen=new R)},R=function(){this.entries=[]},G=function(M,x){return p(M.entries,function(b){return b[0]===x})};R.prototype={get:function(M){var x=G(this,M);if(x)return x[1]},has:function(M){return!!G(this,M)},set:function(M,x){var b=G(this,M);b?b[1]=x:this.entries.push([M,x])},delete:function(M){var x=S(this.entries,function(b){return b[0]===M});return~x&&this.entries.splice(x,1),!!~x}},o.exports={getConstructor:function(M,x,b,w){var $=M(function(Z,A){s(Z,$,x),v(Z,{type:x,id:T++,frozen:void 0}),null!=A&&i(A,Z[w],Z,b)}),D=d(x),B=function(Z,A,W){var q=D(Z),nt=n(r(A),!0);return!0===nt?O(q).set(A,W):nt[q.id]=W,Z};return e($.prototype,{delete:function(Z){var A=D(this);if(!a(Z))return!1;var W=n(Z);return!0===W?O(A).delete(Z):W&&c(W,A.id)&&delete W[A.id]},has:function(A){var W=D(this);if(!a(A))return!1;var q=n(A);return!0===q?O(W).has(A):q&&c(q,W.id)}}),e($.prototype,b?{get:function(A){var W=D(this);if(a(A)){var q=n(A);return!0===q?O(W).get(A):q?q[W.id]:void 0}},set:function(A,W){return B(this,A,W)}}:{add:function(A){return B(this,A,!0)}}),$}}},7710:function(o,f,t){"use strict";var e=t(2109),n=t(2474),r=t(4705),a=t(1320),s=t(2423),i=t(612),u=t(5787),c=t(111),l=t(7293),v=t(7072),d=t(8003),p=t(9587);o.exports=function(S,T,O){var R=-1!==S.indexOf("Map"),G=-1!==S.indexOf("Weak"),M=R?"set":"add",x=n[S],b=x&&x.prototype,w=x,$={},D=function(nt){var tt=b[nt];a(b,nt,"add"==nt?function(it){return tt.call(this,0===it?0:it),this}:"delete"==nt?function(ot){return!(G&&!c(ot))&&tt.call(this,0===ot?0:ot)}:"get"==nt?function(it){return G&&!c(it)?void 0:tt.call(this,0===it?0:it)}:"has"==nt?function(it){return!(G&&!c(it))&&tt.call(this,0===it?0:it)}:function(it,pt){return tt.call(this,0===it?0:it,pt),this})};if(r(S,"function"!=typeof x||!(G||b.forEach&&!l(function(){(new x).entries().next()}))))w=O.getConstructor(T,S,R,M),s.REQUIRED=!0;else if(r(S,!0)){var B=new w,Z=B[M](G?{}:-0,1)!=B,A=l(function(){B.has(1)}),W=v(function(nt){new x(nt)}),q=!G&&l(function(){for(var nt=new x,tt=5;tt--;)nt[M](tt,tt);return!nt.has(-0)});W||((w=T(function(nt,tt){u(nt,w,S);var ot=p(new x,nt,w);return null!=tt&&i(tt,ot[M],ot,R),ot})).prototype=b,b.constructor=w),(A||q)&&(D("delete"),D("has"),R&&D("get")),(q||Z)&&D(M),G&&b.clear&&delete b.clear}return $[S]=w,e({global:!0,forced:w!=x},$),d(w,S),G||O.setStrong(w,S,R),w}},9920:function(o,f,t){var e=t(6656),n=t(3887),r=t(1236),a=t(3070);o.exports=function(s,i){for(var u=n(i),c=a.f,l=r.f,v=0;v<u.length;v++){var d=u[v];e(s,d)||c(s,d,l(i,d))}}},4964:function(o,f,t){var n=t(5112)("match");o.exports=function(r){var a=/./;try{"/./"[r](a)}catch(s){try{return a[n]=!1,"/./"[r](a)}catch(i){}}return!1}},8544:function(o,f,t){var e=t(7293);o.exports=!e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},4230:function(o,f,t){var e=t(4488),n=/"/g;o.exports=function(r,a,s,i){var u=String(e(r)),c="<"+a;return""!==s&&(c+=" "+s+'="'+String(i).replace(n,"&quot;")+'"'),c+">"+u+"</"+a+">"}},4994:function(o,f,t){"use strict";var e=t(3383).IteratorPrototype,n=t(30),r=t(9114),a=t(8003),s=t(7497),i=function(){return this};o.exports=function(u,c,l){var v=c+" Iterator";return u.prototype=n(e,{next:r(1,l)}),a(u,v,!1,!0),s[v]=i,u}},8880:function(o,f,t){var e=t(9781),n=t(3070),r=t(9114);o.exports=e?function(a,s,i){return n.f(a,s,r(1,i))}:function(a,s,i){return a[s]=i,a}},9114:function(o){o.exports=function(f,t){return{enumerable:!(1&f),configurable:!(2&f),writable:!(4&f),value:t}}},6135:function(o,f,t){"use strict";var e=t(7593),n=t(3070),r=t(9114);o.exports=function(a,s,i){var u=e(s);u in a?n.f(a,u,r(0,i)):a[u]=i}},5573:function(o,f,t){"use strict";var e=t(7293),n=t(6650).start,r=Math.abs,a=Date.prototype,s=a.getTime,i=a.toISOString;o.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))})||!e(function(){i.call(new Date(NaN))})?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var c=this,l=c.getUTCFullYear(),v=c.getUTCMilliseconds(),d=l<0?"-":l>9999?"+":"";return d+n(r(l),d?6:4,0)+"-"+n(c.getUTCMonth()+1,2,0)+"-"+n(c.getUTCDate(),2,0)+"T"+n(c.getUTCHours(),2,0)+":"+n(c.getUTCMinutes(),2,0)+":"+n(c.getUTCSeconds(),2,0)+"."+n(v,3,0)+"Z"}:i},8709:function(o,f,t){"use strict";var e=t(9670),n=t(7593);o.exports=function(r){if("string"!==r&&"number"!==r&&"default"!==r)throw TypeError("Incorrect hint");return n(e(this),"number"!==r)}},654:function(o,f,t){"use strict";var e=t(2109),n=t(4994),r=t(9518),a=t(7674),s=t(8003),i=t(8880),u=t(1320),c=t(5112),l=t(1913),v=t(7497),d=t(3383),p=d.IteratorPrototype,S=d.BUGGY_SAFARI_ITERATORS,T=c("iterator"),O="keys",R="values",G="entries",M=function(){return this};o.exports=function(x,b,w,$,D,B,Z){n(w,b,$);var pt,ht,Tt,A=function(bt){if(bt===D&&ot)return ot;if(!S&&bt in nt)return nt[bt];switch(bt){case O:case R:case G:return function(){return new w(this,bt)}}return function(){return new w(this)}},W=b+" Iterator",q=!1,nt=x.prototype,tt=nt[T]||nt["@@iterator"]||D&&nt[D],ot=!S&&tt||A(D),it="Array"==b&&nt.entries||tt;if(it&&(pt=r(it.call(new x)),p!==Object.prototype&&pt.next&&(!l&&r(pt)!==p&&(a?a(pt,p):"function"!=typeof pt[T]&&i(pt,T,M)),s(pt,W,!0,!0),l&&(v[W]=M))),D==R&&tt&&tt.name!==R&&(q=!0,ot=function(){return tt.call(this)}),(!l||Z)&&nt[T]!==ot&&i(nt,T,ot),v[b]=ot,D)if(ht={values:A(R),keys:B?ot:A(O),entries:A(G)},Z)for(Tt in ht)(S||q||!(Tt in nt))&&u(nt,Tt,ht[Tt]);else e({target:b,proto:!0,forced:S||q},ht);return ht}},7235:function(o,f,t){var e=t(857),n=t(6656),r=t(6061),a=t(3070).f;o.exports=function(s){var i=e.Symbol||(e.Symbol={});n(i,s)||a(i,s,{value:r.f(s)})}},9781:function(o,f,t){var e=t(7293);o.exports=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(o,f,t){var e=t(2474),n=t(111),r=e.document,a=n(r)&&n(r.createElement);o.exports=function(s){return a?r.createElement(s):{}}},8324:function(o){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(o,f,t){var e=t(5005);o.exports=e("navigator","userAgent")||""},7392:function(o,f,t){var i,u,e=t(2474),n=t(8113),r=e.process,a=r&&r.versions,s=a&&a.v8;s?u=(i=s.split("."))[0]+i[1]:n&&(!(i=n.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=n.match(/Chrome\/(\d+)/))&&(u=i[1]),o.exports=u&&+u},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,f,t){var e=t(2474),n=t(1236).f,r=t(8880),a=t(1320),s=t(3505),i=t(9920),u=t(4705);o.exports=function(c,l){var T,O,R,G,M,v=c.target,d=c.global,p=c.stat;if(T=d?e:p?e[v]||s(v,{}):(e[v]||{}).prototype)for(O in l){if(G=l[O],R=c.noTargetGet?(M=n(T,O))&&M.value:T[O],!u(d?O:v+(p?".":"#")+O,c.forced)&&void 0!==R){if(typeof G==typeof R)continue;i(G,R)}(c.sham||R&&R.sham)&&r(G,"sham",!0),a(T,O,G,c)}}},7293:function(o){o.exports=function(f){try{return!!f()}catch(t){return!0}}},7007:function(o,f,t){"use strict";t(4916);var e=t(1320),n=t(7293),r=t(5112),a=t(2261),s=t(8880),i=r("species"),u=!n(function(){var p=/./;return p.exec=function(){var S=[];return S.groups={a:"7"},S},"7"!=="".replace(p,"$<a>")}),c="$0"==="a".replace(/./,"$0"),l=r("replace"),v=!!/./[l]&&""===/./[l]("a","$0"),d=!n(function(){var p=/(?:)/,S=p.exec;p.exec=function(){return S.apply(this,arguments)};var T="ab".split(p);return 2!==T.length||"a"!==T[0]||"b"!==T[1]});o.exports=function(p,S,T,O){var R=r(p),G=!n(function(){var D={};return D[R]=function(){return 7},7!=""[p](D)}),M=G&&!n(function(){var D=!1,B=/a/;return"split"===p&&((B={}).constructor={},B.constructor[i]=function(){return B},B.flags="",B[R]=/./[R]),B.exec=function(){return D=!0,null},B[R](""),!D});if(!G||!M||"replace"===p&&(!u||!c||v)||"split"===p&&!d){var x=/./[R],b=T(R,""[p],function(D,B,Z,A,W){return B.exec===a?G&&!W?{done:!0,value:x.call(B,Z,A)}:{done:!0,value:D.call(Z,B,A)}:{done:!1}},{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),$=b[1];e(String.prototype,p,b[0]),e(RegExp.prototype,R,2==S?function(D,B){return $.call(D,this,B)}:function(D){return $.call(D,this)})}O&&s(RegExp.prototype[R],"sham",!0)}},2748:function(o,f,t){"use strict";var e=t(3157),n=t(7466),r=t(9974),a=function(s,i,u,c,l,v,d,p){for(var R,S=l,T=0,O=!!d&&r(d,p,3);T<c;){if(T in u){if(R=O?O(u[T],T,i):u[T],v>0&&e(R))S=a(s,i,R,n(R.length),S,v-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");s[S]=R}S++}T++}return S};o.exports=a},6677:function(o,f,t){var e=t(7293);o.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},9974:function(o,f,t){var e=t(3099);o.exports=function(n,r,a){if(e(n),void 0===r)return n;switch(a){case 0:return function(){return n.call(r)};case 1:return function(s){return n.call(r,s)};case 2:return function(s,i){return n.call(r,s,i)};case 3:return function(s,i,u){return n.call(r,s,i,u)}}return function(){return n.apply(r,arguments)}}},7065:function(o,f,t){"use strict";var e=t(3099),n=t(111),r=[].slice,a={},s=function(i,u,c){if(!(u in a)){for(var l=[],v=0;v<u;v++)l[v]="a["+v+"]";a[u]=Function("C,a","return new C("+l.join(",")+")")}return a[u](i,c)};o.exports=Function.bind||function(u){var c=e(this),l=r.call(arguments,1),v=function(){var p=l.concat(r.call(arguments));return this instanceof v?s(c,p.length,p):c.apply(u,p)};return n(c.prototype)&&(v.prototype=c.prototype),v}},5005:function(o,f,t){var e=t(857),n=t(2474),r=function(a){return"function"==typeof a?a:void 0};o.exports=function(a,s){return arguments.length<2?r(e[a])||r(n[a]):e[a]&&e[a][s]||n[a]&&n[a][s]}},1246:function(o,f,t){var e=t(648),n=t(7497),a=t(5112)("iterator");o.exports=function(s){if(null!=s)return s[a]||s["@@iterator"]||n[e(s)]}},2474:function(o){var f=function(t){return t&&t.Math==Math&&t};o.exports=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof global&&global)||Function("return this")()},6656:function(o){var f={}.hasOwnProperty;o.exports=function(t,e){return f.call(t,e)}},3501:function(o){o.exports={}},490:function(o,f,t){var e=t(5005);o.exports=e("document","documentElement")},4664:function(o,f,t){var e=t(9781),n=t(7293),r=t(317);o.exports=!e&&!n(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},8361:function(o,f,t){var e=t(7293),n=t(4326),r="".split;o.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==n(a)?r.call(a,""):Object(a)}:Object},9587:function(o,f,t){var e=t(111),n=t(7674);o.exports=function(r,a,s){var i,u;return n&&"function"==typeof(i=a.constructor)&&i!==s&&e(u=i.prototype)&&u!==s.prototype&&n(r,u),r}},2788:function(o,f,t){var e=t(5465),n=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(r){return n.call(r)}),o.exports=e.inspectSource},2423:function(o,f,t){var e=t(3501),n=t(111),r=t(6656),a=t(3070).f,s=t(9711),i=t(6677),u=s("meta"),c=0,l=Object.isExtensible||function(){return!0},v=function(O){a(O,u,{value:{objectID:"O"+ ++c,weakData:{}}})},T=o.exports={REQUIRED:!1,fastKey:function(O,R){if(!n(O))return"symbol"==typeof O?O:("string"==typeof O?"S":"P")+O;if(!r(O,u)){if(!l(O))return"F";if(!R)return"E";v(O)}return O[u].objectID},getWeakData:function(O,R){if(!r(O,u)){if(!l(O))return!0;if(!R)return!1;v(O)}return O[u].weakData},onFreeze:function(O){return i&&T.REQUIRED&&l(O)&&!r(O,u)&&v(O),O}};e[u]=!0},9909:function(o,f,t){var l,v,d,e=t(8536),n=t(2474),r=t(111),a=t(8880),s=t(6656),i=t(6200),u=t(3501);if(e){var T=new(0,n.WeakMap),O=T.get,R=T.has,G=T.set;l=function(x,b){return G.call(T,x,b),b},v=function(x){return O.call(T,x)||{}},d=function(x){return R.call(T,x)}}else{var M=i("state");u[M]=!0,l=function(x,b){return a(x,M,b),b},v=function(x){return s(x,M)?x[M]:{}},d=function(x){return s(x,M)}}o.exports={set:l,get:v,has:d,enforce:function(x){return d(x)?v(x):l(x,{})},getterFor:function(x){return function(b){var w;if(!r(b)||(w=v(b)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return w}}}},7659:function(o,f,t){var e=t(5112),n=t(7497),r=e("iterator"),a=Array.prototype;o.exports=function(s){return void 0!==s&&(n.Array===s||a[r]===s)}},3157:function(o,f,t){var e=t(4326);o.exports=Array.isArray||function(r){return"Array"==e(r)}},4705:function(o,f,t){var e=t(7293),n=/#|\.prototype\./,r=function(c,l){var v=s[a(c)];return v==u||v!=i&&("function"==typeof l?e(l):!!l)},a=r.normalize=function(c){return String(c).replace(n,".").toLowerCase()},s=r.data={},i=r.NATIVE="N",u=r.POLYFILL="P";o.exports=r},8730:function(o,f,t){var e=t(111),n=Math.floor;o.exports=function(a){return!e(a)&&isFinite(a)&&n(a)===a}},111:function(o){o.exports=function(f){return"object"==typeof f?null!==f:"function"==typeof f}},1913:function(o){o.exports=!1},7850:function(o,f,t){var e=t(111),n=t(4326),a=t(5112)("match");o.exports=function(s){var i;return e(s)&&(void 0!==(i=s[a])?!!i:"RegExp"==n(s))}},612:function(o,f,t){var e=t(9670),n=t(7659),r=t(7466),a=t(9974),s=t(1246),i=t(3411),u=function(l,v){this.stopped=l,this.result=v};(o.exports=function(l,v,d,p,S){var O,R,G,M,x,b,w,T=a(v,d,p?2:1);if(S)O=l;else{if("function"!=typeof(R=s(l)))throw TypeError("Target is not iterable");if(n(R)){for(G=0,M=r(l.length);M>G;G++)if((x=p?T(e(w=l[G])[0],w[1]):T(l[G]))&&x instanceof u)return x;return new u(!1)}O=R.call(l)}for(b=O.next;!(w=b.call(O)).done;)if("object"==typeof(x=i(O,T,w.value,p))&&x&&x instanceof u)return x;return new u(!1)}).stop=function(l){return new u(!0,l)}},3383:function(o,f,t){"use strict";var l,v,d,e=t(9518),n=t(8880),r=t(6656),a=t(5112),s=t(1913),i=a("iterator"),u=!1;[].keys&&("next"in(d=[].keys())?(v=e(e(d)))!==Object.prototype&&(l=v):u=!0),null==l&&(l={}),!s&&!r(l,i)&&n(l,i,function(){return this}),o.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:u}},7497:function(o){o.exports={}},6736:function(o){var f=Math.expm1,t=Math.exp;o.exports=!f||f(10)>22025.465794806718||f(10)<22025.465794806718||-2e-17!=f(-2e-17)?function(n){return 0==(n=+n)?n:n>-1e-6&&n<1e-6?n+n*n/2:t(n)-1}:f},6130:function(o,f,t){var e=t(4310),n=Math.abs,r=Math.pow,a=r(2,-52),s=r(2,-23),i=r(2,127)*(2-s),u=r(2,-126);o.exports=Math.fround||function(v){var S,T,d=n(v),p=e(v);return d<u?p*(d/u/s+1/a-1/a)*u*s:(T=(S=(1+s/a)*d)-(S-d))>i||T!=T?p*(1/0):p*T}},6513:function(o){var f=Math.log;o.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:f(1+e)}},4310:function(o){o.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},133:function(o,f,t){var e=t(7293);o.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},8536:function(o,f,t){var e=t(2474),n=t(2788),r=e.WeakMap;o.exports="function"==typeof r&&/native code/.test(n(r))},3929:function(o,f,t){var e=t(7850);o.exports=function(n){if(e(n))throw TypeError("The method doesn't accept regular expressions");return n}},7023:function(o,f,t){var n=t(2474).isFinite;o.exports=Number.isFinite||function(a){return"number"==typeof a&&n(a)}},2814:function(o,f,t){var e=t(2474),n=t(3111).trim,r=t(1361),a=e.parseFloat,s=1/a(r+"-0")!=-1/0;o.exports=s?function(u){var c=n(String(u)),l=a(c);return 0===l&&"-"==c.charAt(0)?-0:l}:a},3009:function(o,f,t){var e=t(2474),n=t(3111).trim,r=t(1361),a=e.parseInt,s=/^[+-]?0[Xx]/,i=8!==a(r+"08")||22!==a(r+"0x16");o.exports=i?function(c,l){var v=n(String(c));return a(v,l>>>0||(s.test(v)?16:10))}:a},1574:function(o,f,t){"use strict";var e=t(9781),n=t(7293),r=t(1956),a=t(5181),s=t(5296),i=t(7908),u=t(8361),c=Object.assign,l=Object.defineProperty;o.exports=!c||n(function(){if(e&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var v={},d={},p=Symbol(),S="abcdefghijklmnopqrst";return v[p]=7,S.split("").forEach(function(T){d[T]=T}),7!=c({},v)[p]||r(c({},d)).join("")!=S})?function(d,p){for(var S=i(d),T=arguments.length,O=1,R=a.f,G=s.f;T>O;)for(var $,M=u(arguments[O++]),x=R?r(M).concat(R(M)):r(M),b=x.length,w=0;b>w;)$=x[w++],(!e||G.call(M,$))&&(S[$]=M[$]);return S}:c},30:function(o,f,t){var G,e=t(9670),n=t(6048),r=t(748),a=t(3501),s=t(490),i=t(317),u=t(6200),v="prototype",d="script",p=u("IE_PROTO"),S=function(){},T=function(x){return"<"+d+">"+x+"</"+d+">"},M=function(){try{G=document.domain&&new ActiveXObject("htmlfile")}catch(b){}M=G?function(x){x.write(T("")),x.close();var b=x.parentWindow.Object;return x=null,b}(G):function(){var w,x=i("iframe");return x.style.display="none",s.appendChild(x),x.src=String("javascript:"),(w=x.contentWindow.document).open(),w.write(T("document.F=Object")),w.close(),w.F}();for(var x=r.length;x--;)delete M[v][r[x]];return M()};a[p]=!0,o.exports=Object.create||function(b,w){var $;return null!==b?(S[v]=e(b),$=new S,S[v]=null,$[p]=b):$=M(),void 0===w?$:n($,w)}},6048:function(o,f,t){var e=t(9781),n=t(3070),r=t(9670),a=t(1956);o.exports=e?Object.defineProperties:function(i,u){r(i);for(var d,c=a(u),l=c.length,v=0;l>v;)n.f(i,d=c[v++],u[d]);return i}},3070:function(o,f,t){var e=t(9781),n=t(4664),r=t(9670),a=t(7593),s=Object.defineProperty;f.f=e?s:function(u,c,l){if(r(u),c=a(c,!0),r(l),n)try{return s(u,c,l)}catch(v){}if("get"in l||"set"in l)throw TypeError("Accessors not supported");return"value"in l&&(u[c]=l.value),u}},1236:function(o,f,t){var e=t(9781),n=t(5296),r=t(9114),a=t(5656),s=t(7593),i=t(6656),u=t(4664),c=Object.getOwnPropertyDescriptor;f.f=e?c:function(v,d){if(v=a(v),d=s(d,!0),u)try{return c(v,d)}catch(p){}if(i(v,d))return r(!n.f.call(v,d),v[d])}},1156:function(o,f,t){var e=t(5656),n=t(8006).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(u){return a&&"[object Window]"==r.call(u)?function(i){try{return n(i)}catch(u){return a.slice()}}(u):n(e(u))}},8006:function(o,f,t){var e=t(6324),r=t(748).concat("length","prototype");f.f=Object.getOwnPropertyNames||function(s){return e(s,r)}},5181:function(o,f){f.f=Object.getOwnPropertySymbols},9518:function(o,f,t){var e=t(6656),n=t(7908),r=t(6200),a=t(8544),s=r("IE_PROTO"),i=Object.prototype;o.exports=a?Object.getPrototypeOf:function(u){return u=n(u),e(u,s)?u[s]:"function"==typeof u.constructor&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?i:null}},6324:function(o,f,t){var e=t(6656),n=t(5656),r=t(1318).indexOf,a=t(3501);o.exports=function(s,i){var v,u=n(s),c=0,l=[];for(v in u)!e(a,v)&&e(u,v)&&l.push(v);for(;i.length>c;)e(u,v=i[c++])&&(~r(l,v)||l.push(v));return l}},1956:function(o,f,t){var e=t(6324),n=t(748);o.exports=Object.keys||function(a){return e(a,n)}},5296:function(o,f){"use strict";var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);f.f=n?function(a){var s=e(this,a);return!!s&&s.enumerable}:t},9026:function(o,f,t){"use strict";var e=t(1913),n=t(2474),r=t(7293);o.exports=e||!r(function(){var a=Math.random();__defineSetter__.call(null,a,function(){}),delete n[a]})},7674:function(o,f,t){var e=t(9670),n=t(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,r=!1,a={};try{(s=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(a,[]),r=a instanceof Array}catch(i){}return function(u,c){return e(u),n(c),r?s.call(u,c):u.__proto__=c,u}}():void 0)},4699:function(o,f,t){var e=t(9781),n=t(1956),r=t(5656),a=t(5296).f,s=function(i){return function(u){for(var S,c=r(u),l=n(c),v=l.length,d=0,p=[];v>d;)S=l[d++],(!e||a.call(c,S))&&p.push(i?[S,c[S]]:c[S]);return p}};o.exports={entries:s(!0),values:s(!1)}},288:function(o,f,t){"use strict";var e=t(1694),n=t(648);o.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}},3887:function(o,f,t){var e=t(5005),n=t(8006),r=t(5181),a=t(9670);o.exports=e("Reflect","ownKeys")||function(i){var u=n.f(a(i)),c=r.f;return c?u.concat(c(i)):u}},857:function(o,f,t){var e=t(2474);o.exports=e},2248:function(o,f,t){var e=t(1320);o.exports=function(n,r,a){for(var s in r)e(n,s,r[s],a);return n}},1320:function(o,f,t){var e=t(2474),n=t(8880),r=t(6656),a=t(3505),s=t(2788),i=t(9909),u=i.get,c=i.enforce,l=String(String).split("String");(o.exports=function(v,d,p,S){var T=!!S&&!!S.unsafe,O=!!S&&!!S.enumerable,R=!!S&&!!S.noTargetGet;"function"==typeof p&&("string"==typeof d&&!r(p,"name")&&n(p,"name",d),c(p).source=l.join("string"==typeof d?d:"")),v!==e?(T?!R&&v[d]&&(O=!0):delete v[d],O?v[d]=p:n(v,d,p)):O?v[d]=p:a(d,p)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||s(this)})},7651:function(o,f,t){var e=t(4326),n=t(2261);o.exports=function(r,a){var s=r.exec;if("function"==typeof s){var i=s.call(r,a);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(r))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(r,a)}},2261:function(o,f,t){"use strict";var v,d,e=t(7066),n=t(2999),r=RegExp.prototype.exec,a=String.prototype.replace,s=r,i=(d=/b*/g,r.call(v=/a/,"a"),r.call(d,"a"),0!==v.lastIndex||0!==d.lastIndex),u=n.UNSUPPORTED_Y||n.BROKEN_CARET,c=void 0!==/()??/.exec("")[1];(i||c||u)&&(s=function(d){var S,T,O,R,p=this,G=u&&p.sticky,M=e.call(p),x=p.source,b=0,w=d;return G&&(-1===(M=M.replace("y","")).indexOf("g")&&(M+="g"),w=String(d).slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==d[p.lastIndex-1])&&(x="(?: "+x+")",w=" "+w,b++),T=new RegExp("^(?:"+x+")",M)),c&&(T=new RegExp("^"+x+"$(?!\\s)",M)),i&&(S=p.lastIndex),O=r.call(G?T:p,w),G?O?(O.input=O.input.slice(b),O[0]=O[0].slice(b),O.index=p.lastIndex,p.lastIndex+=O[0].length):p.lastIndex=0:i&&O&&(p.lastIndex=p.global?O.index+O[0].length:S),c&&O&&O.length>1&&a.call(O[0],T,function(){for(R=1;R<arguments.length-2;R++)void 0===arguments[R]&&(O[R]=void 0)}),O}),o.exports=s},7066:function(o,f,t){"use strict";var e=t(9670);o.exports=function(){var n=e(this),r="";return n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.sticky&&(r+="y"),r}},2999:function(o,f,t){"use strict";var e=t(7293);function n(r,a){return RegExp(r,a)}f.UNSUPPORTED_Y=e(function(){var r=n("a","y");return r.lastIndex=2,null!=r.exec("abcd")}),f.BROKEN_CARET=e(function(){var r=n("^r","gy");return r.lastIndex=2,null!=r.exec("str")})},4488:function(o){o.exports=function(f){if(null==f)throw TypeError("Can't call method on "+f);return f}},1150:function(o){o.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3505:function(o,f,t){var e=t(2474),n=t(8880);o.exports=function(r,a){try{n(e,r,a)}catch(s){e[r]=a}return a}},6340:function(o,f,t){"use strict";var e=t(5005),n=t(3070),r=t(5112),a=t(9781),s=r("species");o.exports=function(i){var u=e(i);a&&u&&!u[s]&&(0,n.f)(u,s,{configurable:!0,get:function(){return this}})}},8003:function(o,f,t){var e=t(3070).f,n=t(6656),a=t(5112)("toStringTag");o.exports=function(s,i,u){s&&!n(s=u?s:s.prototype,a)&&e(s,a,{configurable:!0,value:i})}},6200:function(o,f,t){var e=t(2309),n=t(9711),r=e("keys");o.exports=function(a){return r[a]||(r[a]=n(a))}},5465:function(o,f,t){var e=t(2474),n=t(3505),r="__core-js_shared__",a=e[r]||n(r,{});o.exports=a},2309:function(o,f,t){var e=t(1913),n=t(5465);(o.exports=function(r,a){return n[r]||(n[r]=void 0!==a?a:{})})("versions",[]).push({version:"3.6.4",mode:e?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},6707:function(o,f,t){var e=t(9670),n=t(3099),a=t(5112)("species");o.exports=function(s,i){var c,u=e(s).constructor;return void 0===u||null==(c=e(u)[a])?i:n(c)}},3429:function(o,f,t){var e=t(7293);o.exports=function(n){return e(function(){var r=""[n]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},8710:function(o,f,t){var e=t(9958),n=t(4488),r=function(a){return function(s,i){var v,d,u=String(n(s)),c=e(i),l=u.length;return c<0||c>=l?a?"":void 0:(v=u.charCodeAt(c))<55296||v>56319||c+1===l||(d=u.charCodeAt(c+1))<56320||d>57343?a?u.charAt(c):v:a?u.slice(c,c+2):d-56320+(v-55296<<10)+65536}};o.exports={codeAt:r(!1),charAt:r(!0)}},4986:function(o,f,t){var e=t(8113);o.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(e)},6650:function(o,f,t){var e=t(7466),n=t(8415),r=t(4488),a=Math.ceil,s=function(i){return function(u,c,l){var T,O,v=String(r(u)),d=v.length,p=void 0===l?" ":String(l),S=e(c);return S<=d||""==p?v:((O=n.call(p,a((T=S-d)/p.length))).length>T&&(O=O.slice(0,T)),i?v+O:O+v)}};o.exports={start:s(!1),end:s(!0)}},8415:function(o,f,t){"use strict";var e=t(9958),n=t(4488);o.exports="".repeat||function(a){var s=String(n(this)),i="",u=e(a);if(u<0||u==1/0)throw RangeError("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(s+=s))1&u&&(i+=s);return i}},6091:function(o,f,t){var e=t(7293),n=t(1361);o.exports=function(a){return e(function(){return!!n[a]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[a]()||n[a].name!==a})}},3111:function(o,f,t){var e=t(4488),r="["+t(1361)+"]",a=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),i=function(u){return function(c){var l=String(e(c));return 1&u&&(l=l.replace(a,"")),2&u&&(l=l.replace(s,"")),l}};o.exports={start:i(1),end:i(2),trim:i(3)}},863:function(o,f,t){var e=t(4326);o.exports=function(n){if("number"!=typeof n&&"Number"!=e(n))throw TypeError("Incorrect invocation");return+n}},1400:function(o,f,t){var e=t(9958),n=Math.max,r=Math.min;o.exports=function(a,s){var i=e(a);return i<0?n(i+s,0):r(i,s)}},5656:function(o,f,t){var e=t(8361),n=t(4488);o.exports=function(r){return e(n(r))}},9958:function(o){var f=Math.ceil,t=Math.floor;o.exports=function(e){return isNaN(e=+e)?0:(e>0?t:f)(e)}},7466:function(o,f,t){var e=t(9958),n=Math.min;o.exports=function(r){return r>0?n(e(r),9007199254740991):0}},7908:function(o,f,t){var e=t(4488);o.exports=function(n){return Object(e(n))}},7593:function(o,f,t){var e=t(111);o.exports=function(n,r){if(!e(n))return n;var a,s;if(r&&"function"==typeof(a=n.toString)&&!e(s=a.call(n))||"function"==typeof(a=n.valueOf)&&!e(s=a.call(n))||!r&&"function"==typeof(a=n.toString)&&!e(s=a.call(n)))return s;throw TypeError("Can't convert object to primitive value")}},1694:function(o,f,t){var r={};r[t(5112)("toStringTag")]="z",o.exports="[object z]"===String(r)},9711:function(o){var f=0,t=Math.random();o.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++f+t).toString(36)}},3307:function(o,f,t){var e=t(133);o.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(o,f,t){var e=t(5112);f.f=e},5112:function(o,f,t){var e=t(2474),n=t(2309),r=t(6656),a=t(9711),s=t(133),i=t(3307),u=n("wks"),c=e.Symbol,l=i?c:c&&c.withoutSetter||a;o.exports=function(v){return r(u,v)||(u[v]=s&&r(c,v)?c[v]:l("Symbol."+v)),u[v]}},1361:function(o){o.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},2222:function(o,f,t){"use strict";var e=t(2109),n=t(7293),r=t(3157),a=t(111),s=t(7908),i=t(7466),u=t(6135),c=t(5417),l=t(1194),v=t(5112),d=t(7392),p=v("isConcatSpreadable"),S=9007199254740991,T="Maximum allowed index exceeded",O=d>=51||!n(function(){var x=[];return x[p]=!1,x.concat()[0]!==x}),R=l("concat"),G=function(x){if(!a(x))return!1;var b=x[p];return void 0!==b?!!b:r(x)};e({target:"Array",proto:!0,forced:!O||!R},{concat:function(b){var B,Z,A,W,q,w=s(this),$=c(w,0),D=0;for(B=-1,A=arguments.length;B<A;B++)if(G(q=-1===B?w:arguments[B])){if(D+(W=i(q.length))>S)throw TypeError(T);for(Z=0;Z<W;Z++,D++)Z in q&&u($,D,q[Z])}else{if(D>=S)throw TypeError(T);u($,D++,q)}return $.length=D,$}})},545:function(o,f,t){var e=t(2109),n=t(1048),r=t(1223);e({target:"Array",proto:!0},{copyWithin:n}),r("copyWithin")},6541:function(o,f,t){"use strict";var e=t(2109),n=t(2092).every,r=t(2133),a=t(9207),s=r("every"),i=a("every");e({target:"Array",proto:!0,forced:!s||!i},{every:function(c){return n(this,c,arguments.length>1?arguments[1]:void 0)}})},3290:function(o,f,t){var e=t(2109),n=t(1285),r=t(1223);e({target:"Array",proto:!0},{fill:n}),r("fill")},7327:function(o,f,t){"use strict";var e=t(2109),n=t(2092).filter,r=t(1194),a=t(9207),s=r("filter"),i=a("filter");e({target:"Array",proto:!0,forced:!s||!i},{filter:function(c){return n(this,c,arguments.length>1?arguments[1]:void 0)}})},4553:function(o,f,t){"use strict";var e=t(2109),n=t(2092).findIndex,r=t(1223),a=t(9207),s="findIndex",i=!0,u=a(s);s in[]&&Array(1)[s](function(){i=!1}),e({target:"Array",proto:!0,forced:i||!u},{findIndex:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}}),r(s)},9826:function(o,f,t){"use strict";var e=t(2109),n=t(2092).find,r=t(1223),a=t(9207),s="find",i=!0,u=a(s);s in[]&&Array(1)[s](function(){i=!1}),e({target:"Array",proto:!0,forced:i||!u},{find:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}}),r(s)},6535:function(o,f,t){"use strict";var e=t(2109),n=t(2748),r=t(7908),a=t(7466),s=t(3099),i=t(5417);e({target:"Array",proto:!0},{flatMap:function(c){var d,l=r(this),v=a(l.length);return s(c),(d=i(l,0)).length=n(d,l,l,v,0,1,c,arguments.length>1?arguments[1]:void 0),d}})},4944:function(o,f,t){"use strict";var e=t(2109),n=t(2748),r=t(7908),a=t(7466),s=t(9958),i=t(5417);e({target:"Array",proto:!0},{flat:function(){var c=arguments.length?arguments[0]:void 0,l=r(this),v=a(l.length),d=i(l,0);return d.length=n(d,l,l,v,0,void 0===c?1:s(c)),d}})},9554:function(o,f,t){"use strict";var e=t(2109),n=t(8533);e({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},1038:function(o,f,t){var e=t(2109),n=t(8457);e({target:"Array",stat:!0,forced:!t(7072)(function(s){Array.from(s)})},{from:n})},6699:function(o,f,t){"use strict";var e=t(2109),n=t(1318).includes,r=t(1223);e({target:"Array",proto:!0,forced:!t(9207)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}}),r("includes")},2772:function(o,f,t){"use strict";var e=t(2109),n=t(1318).indexOf,r=t(2133),a=t(9207),s=[].indexOf,i=!!s&&1/[1].indexOf(1,-0)<0,u=r("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:i||!u||!c},{indexOf:function(v){return i?s.apply(this,arguments)||0:n(this,v,arguments.length>1?arguments[1]:void 0)}})},9753:function(o,f,t){t(2109)({target:"Array",stat:!0},{isArray:t(3157)})},6992:function(o,f,t){"use strict";var e=t(5656),n=t(1223),r=t(7497),a=t(9909),s=t(654),i="Array Iterator",u=a.set,c=a.getterFor(i);o.exports=s(Array,"Array",function(l,v){u(this,{type:i,target:e(l),index:0,kind:v})},function(){var l=c(this),v=l.target,d=l.kind,p=l.index++;return!v||p>=v.length?(l.target=void 0,{value:void 0,done:!0}):"keys"==d?{value:p,done:!1}:"values"==d?{value:v[p],done:!1}:{value:[p,v[p]],done:!1}},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},9600:function(o,f,t){"use strict";var e=t(2109),n=t(8361),r=t(5656),a=t(2133),s=[].join,i=n!=Object,u=a("join",",");e({target:"Array",proto:!0,forced:i||!u},{join:function(l){return s.call(r(this),void 0===l?",":l)}})},6815:function(o,f,t){var e=t(2109),n=t(6583);e({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},1249:function(o,f,t){"use strict";var e=t(2109),n=t(2092).map,r=t(1194),a=t(9207),s=r("map"),i=a("map");e({target:"Array",proto:!0,forced:!s||!i},{map:function(c){return n(this,c,arguments.length>1?arguments[1]:void 0)}})},6572:function(o,f,t){"use strict";var e=t(2109),n=t(7293),r=t(6135);e({target:"Array",stat:!0,forced:n(function(){function s(){}return!(Array.of.call(s)instanceof s)})},{of:function(){for(var i=0,u=arguments.length,c=new("function"==typeof this?this:Array)(u);u>i;)r(c,i,arguments[i++]);return c.length=u,c}})},6644:function(o,f,t){"use strict";var e=t(2109),n=t(3671).right,r=t(2133),a=t(9207),s=r("reduceRight"),i=a("reduce",{1:0});e({target:"Array",proto:!0,forced:!s||!i},{reduceRight:function(c){return n(this,c,arguments.length,arguments.length>1?arguments[1]:void 0)}})},5827:function(o,f,t){"use strict";var e=t(2109),n=t(3671).left,r=t(2133),a=t(9207),s=r("reduce"),i=a("reduce",{1:0});e({target:"Array",proto:!0,forced:!s||!i},{reduce:function(c){return n(this,c,arguments.length,arguments.length>1?arguments[1]:void 0)}})},5069:function(o,f,t){"use strict";var e=t(2109),n=t(3157),r=[].reverse,a=[1,2];e({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r.call(this)}})},7042:function(o,f,t){"use strict";var e=t(2109),n=t(111),r=t(3157),a=t(1400),s=t(7466),i=t(5656),u=t(6135),c=t(5112),l=t(1194),v=t(9207),d=l("slice"),p=v("slice",{ACCESSORS:!0,0:0,1:2}),S=c("species"),T=[].slice,O=Math.max;e({target:"Array",proto:!0,forced:!d||!p},{slice:function(G,M){var D,B,Z,x=i(this),b=s(x.length),w=a(G,b),$=a(void 0===M?b:M,b);if(r(x)&&("function"!=typeof(D=x.constructor)||D!==Array&&!r(D.prototype)?n(D)&&null===(D=D[S])&&(D=void 0):D=void 0,D===Array||void 0===D))return T.call(x,w,$);for(B=new(void 0===D?Array:D)(O($-w,0)),Z=0;w<$;w++,Z++)w in x&&u(B,Z,x[w]);return B.length=Z,B}})},5212:function(o,f,t){"use strict";var e=t(2109),n=t(2092).some,r=t(2133),a=t(9207),s=r("some"),i=a("some");e({target:"Array",proto:!0,forced:!s||!i},{some:function(c){return n(this,c,arguments.length>1?arguments[1]:void 0)}})},2707:function(o,f,t){"use strict";var e=t(2109),n=t(3099),r=t(7908),a=t(7293),s=t(2133),i=[],u=i.sort,c=a(function(){i.sort(void 0)}),l=a(function(){i.sort(null)}),v=s("sort");e({target:"Array",proto:!0,forced:c||!l||!v},{sort:function(S){return void 0===S?u.call(r(this)):u.call(r(this),n(S))}})},8706:function(o,f,t){t(6340)("Array")},561:function(o,f,t){"use strict";var e=t(2109),n=t(1400),r=t(9958),a=t(7466),s=t(7908),i=t(5417),u=t(6135),c=t(1194),l=t(9207),v=c("splice"),d=l("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,S=Math.min,T=9007199254740991,O="Maximum allowed length exceeded";e({target:"Array",proto:!0,forced:!v||!d},{splice:function(G,M){var D,B,Z,A,W,q,x=s(this),b=a(x.length),w=n(G,b),$=arguments.length;if(0===$?D=B=0:1===$?(D=0,B=b-w):(D=$-2,B=S(p(r(M),0),b-w)),b+D-B>T)throw TypeError(O);for(Z=i(x,B),A=0;A<B;A++)(W=w+A)in x&&u(Z,A,x[W]);if(Z.length=B,D<B){for(A=w;A<b-B;A++)q=A+D,(W=A+B)in x?x[q]=x[W]:delete x[q];for(A=b;A>b-B+D;A--)delete x[A-1]}else if(D>B)for(A=b-B;A>w;A--)q=A+D-1,(W=A+B-1)in x?x[q]=x[W]:delete x[q];for(A=0;A<D;A++)x[A+w]=arguments[A+2];return x.length=b-B+D,Z}})},9244:function(o,f,t){t(1223)("flatMap")},3792:function(o,f,t){t(1223)("flat")},3843:function(o,f,t){t(2109)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},5268:function(o,f,t){var e=t(2109),n=t(5573);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n})},5735:function(o,f,t){"use strict";var e=t(2109),n=t(7293),r=t(7908),a=t(7593);e({target:"Date",proto:!0,forced:n(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(u){var c=r(this),l=a(c);return"number"!=typeof l||isFinite(l)?c.toISOString():null}})},6078:function(o,f,t){var e=t(8880),n=t(8709),a=t(5112)("toPrimitive"),s=Date.prototype;a in s||e(s,a,n)},3710:function(o,f,t){var e=t(1320),n=Date.prototype,r="Invalid Date",a="toString",s=n[a],i=n.getTime;new Date(NaN)+""!=r&&e(n,a,function(){var c=i.call(this);return c==c?s.call(this):r})},4812:function(o,f,t){t(2109)({target:"Function",proto:!0},{bind:t(7065)})},4855:function(o,f,t){"use strict";var e=t(111),n=t(3070),r=t(9518),s=t(5112)("hasInstance"),i=Function.prototype;s in i||n.f(i,s,{value:function(u){if("function"!=typeof this||!e(u))return!1;if(!e(this.prototype))return u instanceof this;for(;u=r(u);)if(this.prototype===u)return!0;return!1}})},8309:function(o,f,t){var e=t(9781),n=t(3070).f,r=Function.prototype,a=r.toString,s=/^\s*function ([^ (]*)/,i="name";e&&!(i in r)&&n(r,i,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(u){return""}}})},3706:function(o,f,t){var e=t(2474);t(8003)(e.JSON,"JSON",!0)},1532:function(o,f,t){"use strict";var e=t(7710),n=t(5631);o.exports=e("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},9752:function(o,f,t){var e=t(2109),n=t(6513),r=Math.acosh,a=Math.log,s=Math.sqrt,i=Math.LN2;e({target:"Math",stat:!0,forced:!r||710!=Math.floor(r(Number.MAX_VALUE))||r(1/0)!=1/0},{acosh:function(l){return(l=+l)<1?NaN:l>94906265.62425156?a(l)+i:n(l-1+s(l-1)*s(l+1))}})},2376:function(o,f,t){var e=t(2109),n=Math.asinh,r=Math.log,a=Math.sqrt;e({target:"Math",stat:!0,forced:!(n&&1/n(0)>0)},{asinh:function s(i){return isFinite(i=+i)&&0!=i?i<0?-s(-i):r(i+a(i*i+1)):i}})},3181:function(o,f,t){var e=t(2109),n=Math.atanh,r=Math.log;e({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(s){return 0==(s=+s)?s:r((1+s)/(1-s))/2}})},3484:function(o,f,t){var e=t(2109),n=t(4310),r=Math.abs,a=Math.pow;e({target:"Math",stat:!0},{cbrt:function(i){return n(i=+i)*a(r(i),1/3)}})},2388:function(o,f,t){var e=t(2109),n=Math.floor,r=Math.log,a=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(i){return(i>>>=0)?31-n(r(i+.5)*a):32}})},8621:function(o,f,t){var e=t(2109),n=t(6736),r=Math.cosh,a=Math.abs,s=Math.E;e({target:"Math",stat:!0,forced:!r||r(710)===1/0},{cosh:function(u){var c=n(a(u)-1)+1;return(c+1/(c*s*s))*(s/2)}})},403:function(o,f,t){var e=t(2109),n=t(6736);e({target:"Math",stat:!0,forced:n!=Math.expm1},{expm1:n})},4755:function(o,f,t){t(2109)({target:"Math",stat:!0},{fround:t(6130)})},5438:function(o,f,t){var e=t(2109),n=Math.hypot,r=Math.abs,a=Math.sqrt;e({target:"Math",stat:!0,forced:!!n&&n(1/0,NaN)!==1/0},{hypot:function(u,c){for(var S,T,l=0,v=0,d=arguments.length,p=0;v<d;)p<(S=r(arguments[v++]))?(l=l*(T=p/S)*T+1,p=S):l+=S>0?(T=S/p)*T:S;return p===1/0?1/0:p*a(l)}})},332:function(o,f,t){var e=t(2109),n=t(7293),r=Math.imul;e({target:"Math",stat:!0,forced:n(function(){return-5!=r(4294967295,5)||2!=r.length})},{imul:function(i,u){var c=65535,l=+i,v=+u,d=c&l,p=c&v;return 0|d*p+((c&l>>>16)*p+d*(c&v>>>16)<<16>>>0)}})},658:function(o,f,t){var e=t(2109),n=Math.log,r=Math.LOG10E;e({target:"Math",stat:!0},{log10:function(s){return n(s)*r}})},197:function(o,f,t){t(2109)({target:"Math",stat:!0},{log1p:t(6513)})},4914:function(o,f,t){var e=t(2109),n=Math.log,r=Math.LN2;e({target:"Math",stat:!0},{log2:function(s){return n(s)/r}})},2420:function(o,f,t){t(2109)({target:"Math",stat:!0},{sign:t(4310)})},160:function(o,f,t){var e=t(2109),n=t(7293),r=t(6736),a=Math.abs,s=Math.exp,i=Math.E;e({target:"Math",stat:!0,forced:n(function(){return-2e-17!=Math.sinh(-2e-17)})},{sinh:function(l){return a(l=+l)<1?(r(l)-r(-l))/2:(s(l-1)-s(-l-1))*(i/2)}})},970:function(o,f,t){var e=t(2109),n=t(6736),r=Math.exp;e({target:"Math",stat:!0},{tanh:function(s){var i=n(s=+s),u=n(-s);return i==1/0?1:u==1/0?-1:(i-u)/(r(s)+r(-s))}})},408:function(o,f,t){t(8003)(Math,"Math",!0)},3689:function(o,f,t){var e=t(2109),n=Math.ceil,r=Math.floor;e({target:"Math",stat:!0},{trunc:function(s){return(s>0?r:n)(s)}})},9653:function(o,f,t){"use strict";var e=t(9781),n=t(2474),r=t(4705),a=t(1320),s=t(6656),i=t(4326),u=t(9587),c=t(7593),l=t(7293),v=t(30),d=t(8006).f,p=t(1236).f,S=t(3070).f,T=t(3111).trim,O="Number",R=n[O],G=R.prototype,M=i(v(G))==O,x=function(B){var A,W,q,nt,tt,ot,it,pt,Z=c(B,!1);if("string"==typeof Z&&Z.length>2)if(43===(A=(Z=T(Z)).charCodeAt(0))||45===A){if(88===(W=Z.charCodeAt(2))||120===W)return NaN}else if(48===A){switch(Z.charCodeAt(1)){case 66:case 98:q=2,nt=49;break;case 79:case 111:q=8,nt=55;break;default:return+Z}for(ot=(tt=Z.slice(2)).length,it=0;it<ot;it++)if((pt=tt.charCodeAt(it))<48||pt>nt)return NaN;return parseInt(tt,q)}return+Z};if(r(O,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var D,b=function(Z){var A=arguments.length<1?0:Z,W=this;return W instanceof b&&(M?l(function(){G.valueOf.call(W)}):i(W)!=O)?u(new R(x(A)),W,b):x(A)},w=e?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),$=0;w.length>$;$++)s(R,D=w[$])&&!s(b,D)&&S(b,D,p(R,D));b.prototype=G,G.constructor=b,a(n,O,b)}},3299:function(o,f,t){t(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(o,f,t){t(2109)({target:"Number",stat:!0},{isFinite:t(7023)})},3161:function(o,f,t){t(2109)({target:"Number",stat:!0},{isInteger:t(8730)})},4048:function(o,f,t){t(2109)({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})},8285:function(o,f,t){var e=t(2109),n=t(8730),r=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(s){return n(s)&&r(s)<=9007199254740991}})},4363:function(o,f,t){t(2109)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},5994:function(o,f,t){t(2109)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},1874:function(o,f,t){var e=t(2109),n=t(2814);e({target:"Number",stat:!0,forced:Number.parseFloat!=n},{parseFloat:n})},9494:function(o,f,t){var e=t(2109),n=t(3009);e({target:"Number",stat:!0,forced:Number.parseInt!=n},{parseInt:n})},6977:function(o,f,t){"use strict";var e=t(2109),n=t(9958),r=t(863),a=t(8415),s=t(7293),i=1..toFixed,u=Math.floor,c=function(d,p,S){return 0===p?S:p%2==1?c(d,p-1,S*d):c(d*d,p/2,S)};e({target:"Number",proto:!0,forced:i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s(function(){i.call({})})},{toFixed:function(p){var M,x,b,w,S=r(this),T=n(p),O=[0,0,0,0,0,0],R="",G="0",$=function(Z,A){for(var W=-1,q=A;++W<6;)O[W]=(q+=Z*O[W])%1e7,q=u(q/1e7)},D=function(Z){for(var A=6,W=0;--A>=0;)O[A]=u((W+=O[A])/Z),W=W%Z*1e7},B=function(){for(var Z=6,A="";--Z>=0;)if(""!==A||0===Z||0!==O[Z]){var W=String(O[Z]);A=""===A?W:A+a.call("0",7-W.length)+W}return A};if(T<0||T>20)throw RangeError("Incorrect fraction digits");if(S!=S)return"NaN";if(S<=-1e21||S>=1e21)return String(S);if(S<0&&(R="-",S=-S),S>1e-21)if(M=function(d){for(var p=0,S=d;S>=4096;)p+=12,S/=4096;for(;S>=2;)p+=1,S/=2;return p}(S*c(2,69,1))-69,x=M<0?S*c(2,-M,1):S/c(2,M,1),x*=4503599627370496,(M=52-M)>0){for($(0,x),b=T;b>=7;)$(1e7,0),b-=7;for($(c(10,b,1),0),b=M-1;b>=23;)D(1<<23),b-=23;D(1<<b),$(1,1),D(2),G=B()}else $(0,x),$(1<<-M,0),G=B()+a.call("0",T);return G=T>0?R+((w=G.length)<=T?"0."+a.call("0",T-w)+G:G.slice(0,w-T)+"."+G.slice(w-T)):R+G}})},5147:function(o,f,t){"use strict";var e=t(2109),n=t(7293),r=t(863),a=1..toPrecision;e({target:"Number",proto:!0,forced:n(function(){return"1"!==a.call(1,void 0)})||!n(function(){a.call({})})},{toPrecision:function(u){return void 0===u?a.call(r(this)):a.call(r(this),u)}})},9601:function(o,f,t){var e=t(2109),n=t(1574);e({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},8011:function(o,f,t){t(2109)({target:"Object",stat:!0,sham:!t(9781)},{create:t(30)})},9595:function(o,f,t){"use strict";var e=t(2109),n=t(9781),r=t(9026),a=t(7908),s=t(3099),i=t(3070);n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(c,l){i.f(a(this),c,{get:s(l),enumerable:!0,configurable:!0})}})},3321:function(o,f,t){var e=t(2109),n=t(9781);e({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:t(6048)})},9070:function(o,f,t){var e=t(2109),n=t(9781);e({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:t(3070).f})},5500:function(o,f,t){"use strict";var e=t(2109),n=t(9781),r=t(9026),a=t(7908),s=t(3099),i=t(3070);n&&e({target:"Object",proto:!0,forced:r},{__defineSetter__:function(c,l){i.f(a(this),c,{set:s(l),enumerable:!0,configurable:!0})}})},9720:function(o,f,t){var e=t(2109),n=t(4699).entries;e({target:"Object",stat:!0},{entries:function(a){return n(a)}})},3371:function(o,f,t){var e=t(2109),n=t(6677),r=t(7293),a=t(111),s=t(2423).onFreeze,i=Object.freeze;e({target:"Object",stat:!0,forced:r(function(){i(1)}),sham:!n},{freeze:function(l){return i&&a(l)?i(s(l)):l}})},8559:function(o,f,t){var e=t(2109),n=t(612),r=t(6135);e({target:"Object",stat:!0},{fromEntries:function(s){var i={};return n(s,function(u,c){r(i,u,c)},void 0,!0),i}})},5003:function(o,f,t){var e=t(2109),n=t(7293),r=t(5656),a=t(1236).f,s=t(9781),i=n(function(){a(1)});e({target:"Object",stat:!0,forced:!s||i,sham:!s},{getOwnPropertyDescriptor:function(l,v){return a(r(l),v)}})},9337:function(o,f,t){var e=t(2109),n=t(9781),r=t(3887),a=t(5656),s=t(1236),i=t(6135);e({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(c){for(var T,O,l=a(c),v=s.f,d=r(l),p={},S=0;d.length>S;)void 0!==(O=v(l,T=d[S++]))&&i(p,T,O);return p}})},6210:function(o,f,t){var e=t(2109),n=t(7293),r=t(1156).f;e({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})},489:function(o,f,t){var e=t(2109),n=t(7293),r=t(7908),a=t(9518),s=t(8544);e({target:"Object",stat:!0,forced:n(function(){a(1)}),sham:!s},{getPrototypeOf:function(c){return a(r(c))}})},1825:function(o,f,t){var e=t(2109),n=t(7293),r=t(111),a=Object.isExtensible;e({target:"Object",stat:!0,forced:n(function(){a(1)})},{isExtensible:function(u){return!!r(u)&&(!a||a(u))}})},8410:function(o,f,t){var e=t(2109),n=t(7293),r=t(111),a=Object.isFrozen;e({target:"Object",stat:!0,forced:n(function(){a(1)})},{isFrozen:function(u){return!r(u)||!!a&&a(u)}})},2200:function(o,f,t){var e=t(2109),n=t(7293),r=t(111),a=Object.isSealed;e({target:"Object",stat:!0,forced:n(function(){a(1)})},{isSealed:function(u){return!r(u)||!!a&&a(u)}})},3304:function(o,f,t){t(2109)({target:"Object",stat:!0},{is:t(1150)})},7941:function(o,f,t){var e=t(2109),n=t(7908),r=t(1956);e({target:"Object",stat:!0,forced:t(7293)(function(){r(1)})},{keys:function(u){return r(n(u))}})},4869:function(o,f,t){"use strict";var e=t(2109),n=t(9781),r=t(9026),a=t(7908),s=t(7593),i=t(9518),u=t(1236).f;n&&e({target:"Object",proto:!0,forced:r},{__lookupGetter__:function(l){var p,v=a(this),d=s(l,!0);do{if(p=u(v,d))return p.get}while(v=i(v))}})},3952:function(o,f,t){"use strict";var e=t(2109),n=t(9781),r=t(9026),a=t(7908),s=t(7593),i=t(9518),u=t(1236).f;n&&e({target:"Object",proto:!0,forced:r},{__lookupSetter__:function(l){var p,v=a(this),d=s(l,!0);do{if(p=u(v,d))return p.set}while(v=i(v))}})},7227:function(o,f,t){var e=t(2109),n=t(111),r=t(2423).onFreeze,a=t(6677),s=t(7293),i=Object.preventExtensions;e({target:"Object",stat:!0,forced:s(function(){i(1)}),sham:!a},{preventExtensions:function(l){return i&&n(l)?i(r(l)):l}})},514:function(o,f,t){var e=t(2109),n=t(111),r=t(2423).onFreeze,a=t(6677),s=t(7293),i=Object.seal;e({target:"Object",stat:!0,forced:s(function(){i(1)}),sham:!a},{seal:function(l){return i&&n(l)?i(r(l)):l}})},8304:function(o,f,t){t(2109)({target:"Object",stat:!0},{setPrototypeOf:t(7674)})},1539:function(o,f,t){var e=t(1694),n=t(1320),r=t(288);e||n(Object.prototype,"toString",r,{unsafe:!0})},6833:function(o,f,t){var e=t(2109),n=t(4699).values;e({target:"Object",stat:!0},{values:function(a){return n(a)}})},4678:function(o,f,t){var e=t(2109),n=t(2814);e({global:!0,forced:parseFloat!=n},{parseFloat:n})},1058:function(o,f,t){var e=t(2109),n=t(3009);e({global:!0,forced:parseInt!=n},{parseInt:n})},224:function(o,f,t){var e=t(2109),n=t(5005),r=t(3099),a=t(9670),s=t(7293),i=n("Reflect","apply"),u=Function.apply;e({target:"Reflect",stat:!0,forced:!s(function(){i(function(){})})},{apply:function(v,d,p){return r(v),a(p),i?i(v,d,p):u.call(v,d,p)}})},2419:function(o,f,t){var e=t(2109),n=t(5005),r=t(3099),a=t(9670),s=t(111),i=t(30),u=t(7065),c=t(7293),l=n("Reflect","construct"),v=c(function(){function S(){}return!(l(function(){},[],S)instanceof S)}),d=!c(function(){l(function(){})}),p=v||d;e({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(T,O){r(T),a(O);var R=arguments.length<3?T:r(arguments[2]);if(d&&!v)return l(T,O,R);if(T==R){switch(O.length){case 0:return new T;case 1:return new T(O[0]);case 2:return new T(O[0],O[1]);case 3:return new T(O[0],O[1],O[2]);case 4:return new T(O[0],O[1],O[2],O[3])}var G=[null];return G.push.apply(G,O),new(u.apply(T,G))}var M=R.prototype,x=i(s(M)?M:Object.prototype),b=Function.apply.call(T,x,O);return s(b)?b:x}})},9596:function(o,f,t){var e=t(2109),n=t(9781),r=t(9670),a=t(7593),s=t(3070);e({target:"Reflect",stat:!0,forced:t(7293)(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}),sham:!n},{defineProperty:function(l,v,d){r(l);var p=a(v,!0);r(d);try{return s.f(l,p,d),!0}catch(S){return!1}}})},2586:function(o,f,t){var e=t(2109),n=t(9670),r=t(1236).f;e({target:"Reflect",stat:!0},{deleteProperty:function(s,i){var u=r(n(s),i);return!(u&&!u.configurable)&&delete s[i]}})},5683:function(o,f,t){var e=t(2109),n=t(9781),r=t(9670),a=t(1236);e({target:"Reflect",stat:!0,sham:!n},{getOwnPropertyDescriptor:function(i,u){return a.f(r(i),u)}})},9361:function(o,f,t){var e=t(2109),n=t(9670),r=t(9518);e({target:"Reflect",stat:!0,sham:!t(8544)},{getPrototypeOf:function(i){return r(n(i))}})},4819:function(o,f,t){var e=t(2109),n=t(111),r=t(9670),a=t(6656),s=t(1236),i=t(9518);e({target:"Reflect",stat:!0},{get:function u(c,l){var d,p,v=arguments.length<3?c:arguments[2];return r(c)===v?c[l]:(d=s.f(c,l))?a(d,"value")?d.value:void 0===d.get?void 0:d.get.call(v):n(p=i(c))?u(p,l,v):void 0}})},1037:function(o,f,t){t(2109)({target:"Reflect",stat:!0},{has:function(r,a){return a in r}})},5898:function(o,f,t){var e=t(2109),n=t(9670),r=Object.isExtensible;e({target:"Reflect",stat:!0},{isExtensible:function(s){return n(s),!r||r(s)}})},7556:function(o,f,t){t(2109)({target:"Reflect",stat:!0},{ownKeys:t(3887)})},4361:function(o,f,t){var e=t(2109),n=t(5005),r=t(9670);e({target:"Reflect",stat:!0,sham:!t(6677)},{preventExtensions:function(i){r(i);try{var u=n("Object","preventExtensions");return u&&u(i),!0}catch(c){return!1}}})},9532:function(o,f,t){var e=t(2109),n=t(9670),r=t(6077),a=t(7674);a&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(i,u){n(i),r(u);try{return a(i,u),!0}catch(c){return!1}}})},3593:function(o,f,t){var e=t(2109),n=t(9670),r=t(111),a=t(6656),s=t(7293),i=t(3070),u=t(1236),c=t(9518),l=t(9114);e({target:"Reflect",stat:!0,forced:s(function(){var p=i.f({},"a",{configurable:!0});return!1!==Reflect.set(c(p),"a",1,p)})},{set:function v(p,S,T){var G,M,O=arguments.length<4?p:arguments[3],R=u.f(n(p),S);if(!R){if(r(M=c(p)))return v(M,S,T,O);R=l(0)}if(a(R,"value")){if(!1===R.writable||!r(O))return!1;if(G=u.f(O,S)){if(G.get||G.set||!1===G.writable)return!1;G.value=T,i.f(O,S,G)}else i.f(O,S,l(0,T));return!0}return void 0!==R.set&&(R.set.call(O,T),!0)}})},4603:function(o,f,t){var e=t(9781),n=t(2474),r=t(4705),a=t(9587),s=t(3070).f,i=t(8006).f,u=t(7850),c=t(7066),l=t(2999),v=t(1320),d=t(7293),p=t(9909).set,S=t(6340),O=t(5112)("match"),R=n.RegExp,G=R.prototype,M=/a/g,x=/a/g,b=new R(M)!==M,w=l.UNSUPPORTED_Y;if(e&&r("RegExp",!b||w||d(function(){return x[O]=!1,R(M)!=M||R(x)==x||"/a/i"!=R(M,"i")}))){for(var D=function(q,nt){var pt,tt=this instanceof D,ot=u(q),it=void 0===nt;if(!tt&&ot&&q.constructor===D&&it)return q;b?ot&&!it&&(q=q.source):q instanceof D&&(it&&(nt=c.call(q)),q=q.source),w&&(pt=!!nt&&nt.indexOf("y")>-1)&&(nt=nt.replace(/y/g,""));var ht=a(b?new R(q,nt):R(q,nt),tt?this:G,D);return w&&pt&&p(ht,{sticky:pt}),ht},B=function(W){W in D||s(D,W,{configurable:!0,get:function(){return R[W]},set:function(q){R[W]=q}})},Z=i(R),A=0;Z.length>A;)B(Z[A++]);G.constructor=D,D.prototype=G,v(n,"RegExp",D)}S("RegExp")},4916:function(o,f,t){"use strict";var e=t(2109),n=t(2261);e({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},2087:function(o,f,t){var e=t(9781),n=t(3070),r=t(7066),a=t(2999).UNSUPPORTED_Y;e&&("g"!=/./g.flags||a)&&n.f(RegExp.prototype,"flags",{configurable:!0,get:r})},8386:function(o,f,t){var e=t(9781),n=t(2999).UNSUPPORTED_Y,r=t(3070).f,a=t(9909).get,s=RegExp.prototype;e&&n&&r(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},7601:function(o,f,t){"use strict";t(4916);var s,i,e=t(2109),n=t(111),r=(s=!1,(i=/[ac]/).exec=function(){return s=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&s),a=/./.test;e({target:"RegExp",proto:!0,forced:!r},{test:function(s){if("function"!=typeof this.exec)return a.call(this,s);var i=this.exec(s);if(null!==i&&!n(i))throw new Error("RegExp exec method returned something other than an Object or null");return!!i}})},9714:function(o,f,t){"use strict";var e=t(1320),n=t(9670),r=t(7293),a=t(7066),s="toString",i=RegExp.prototype,u=i[s];(r(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})||u.name!=s)&&e(RegExp.prototype,s,function(){var d=n(this),p=String(d.source),S=d.flags;return"/"+p+"/"+String(void 0===S&&d instanceof RegExp&&!("flags"in i)?a.call(d):S)},{unsafe:!0})},189:function(o,f,t){"use strict";var e=t(7710),n=t(5631);o.exports=e("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},5218:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("anchor")},{anchor:function(s){return n(this,"a","name",s)}})},4475:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("big")},{big:function(){return n(this,"big","","")}})},7929:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("blink")},{blink:function(){return n(this,"blink","","")}})},915:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("bold")},{bold:function(){return n(this,"b","","")}})},9841:function(o,f,t){"use strict";var e=t(2109),n=t(8710).codeAt;e({target:"String",proto:!0},{codePointAt:function(a){return n(this,a)}})},7852:function(o,f,t){"use strict";var p,e=t(2109),n=t(1236).f,r=t(7466),a=t(3929),s=t(4488),i=t(4964),u=t(1913),c="".endsWith,l=Math.min,v=i("endsWith");e({target:"String",proto:!0,forced:!(!u&&!v&&(p=n(String.prototype,"endsWith"),p&&!p.writable)||v)},{endsWith:function(S){var T=String(s(this));a(S);var O=arguments.length>1?arguments[1]:void 0,R=r(T.length),G=void 0===O?R:l(r(O),R),M=String(S);return c?c.call(T,M,G):T.slice(G-M.length,G)===M}})},9253:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("fixed")},{fixed:function(){return n(this,"tt","","")}})},2125:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("fontcolor")},{fontcolor:function(s){return n(this,"font","color",s)}})},8830:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("fontsize")},{fontsize:function(s){return n(this,"font","size",s)}})},4953:function(o,f,t){var e=t(2109),n=t(1400),r=String.fromCharCode,a=String.fromCodePoint;e({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(u){for(var d,c=[],l=arguments.length,v=0;l>v;){if(d=+arguments[v++],n(d,1114111)!==d)throw RangeError(d+" is not a valid code point");c.push(d<65536?r(d):r(55296+((d-=65536)>>10),d%1024+56320))}return c.join("")}})},2023:function(o,f,t){"use strict";var e=t(2109),n=t(3929),r=t(4488);e({target:"String",proto:!0,forced:!t(4964)("includes")},{includes:function(i){return!!~String(r(this)).indexOf(n(i),arguments.length>1?arguments[1]:void 0)}})},8734:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("italics")},{italics:function(){return n(this,"i","","")}})},8783:function(o,f,t){"use strict";var e=t(8710).charAt,n=t(9909),r=t(654),a="String Iterator",s=n.set,i=n.getterFor(a);r(String,"String",function(u){s(this,{type:a,string:String(u),index:0})},function(){var d,c=i(this),l=c.string,v=c.index;return v>=l.length?{value:void 0,done:!0}:(d=e(l,v),c.index+=d.length,{value:d,done:!1})})},9254:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("link")},{link:function(s){return n(this,"a","href",s)}})},6373:function(o,f,t){"use strict";var e=t(2109),n=t(4994),r=t(4488),a=t(7466),s=t(3099),i=t(9670),u=t(4326),c=t(7850),l=t(7066),v=t(8880),d=t(7293),p=t(5112),S=t(6707),T=t(1530),O=t(9909),R=t(1913),G=p("matchAll"),M="RegExp String",x=M+" Iterator",b=O.set,w=O.getterFor(x),$=RegExp.prototype,D=$.exec,B="".matchAll,Z=!!B&&!d(function(){"a".matchAll(/./)}),W=n(function(tt,ot,it,pt){b(this,{type:x,regexp:tt,string:ot,global:it,unicode:pt,done:!1})},M,function(){var tt=w(this);if(tt.done)return{value:void 0,done:!0};var ot=tt.regexp,it=tt.string,pt=function(nt,tt){var it,ot=nt.exec;if("function"==typeof ot){if("object"!=typeof(it=ot.call(nt,tt)))throw TypeError("Incorrect exec result");return it}return D.call(nt,tt)}(ot,it);return null===pt?{value:void 0,done:tt.done=!0}:tt.global?(""==String(pt[0])&&(ot.lastIndex=T(it,a(ot.lastIndex),tt.unicode)),{value:pt,done:!1}):(tt.done=!0,{value:pt,done:!1})}),q=function(nt){var it,pt,ht,Tt,bt,Pt,tt=i(this),ot=String(nt);return it=S(tt,RegExp),void 0===(pt=tt.flags)&&tt instanceof RegExp&&!("flags"in $)&&(pt=l.call(tt)),ht=void 0===pt?"":String(pt),Tt=new it(it===RegExp?tt.source:tt,ht),bt=!!~ht.indexOf("g"),Pt=!!~ht.indexOf("u"),Tt.lastIndex=a(tt.lastIndex),new W(Tt,ot,bt,Pt)};e({target:"String",proto:!0,forced:Z},{matchAll:function(tt){var pt,ht,Tt,ot=r(this);if(null!=tt){if(c(tt)&&!~String(r("flags"in $?tt.flags:l.call(tt))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(Z)return B.apply(ot,arguments);if(void 0===(ht=tt[G])&&R&&"RegExp"==u(tt)&&(ht=q),null!=ht)return s(ht).call(tt,ot)}else if(Z)return B.apply(ot,arguments);return pt=String(ot),Tt=new RegExp(tt,"g"),R?q.call(Tt,pt):Tt[G](pt)}}),R||G in $||v($,G,q)},4723:function(o,f,t){"use strict";var e=t(7007),n=t(9670),r=t(7466),a=t(4488),s=t(1530),i=t(7651);e("match",1,function(u,c,l){return[function(d){var p=a(this),S=null==d?void 0:d[u];return void 0!==S?S.call(d,p):new RegExp(d)[u](String(p))},function(v){var d=l(c,v,this);if(d.done)return d.value;var p=n(v),S=String(this);if(!p.global)return i(p,S);var T=p.unicode;p.lastIndex=0;for(var G,O=[],R=0;null!==(G=i(p,S));){var M=String(G[0]);O[R]=M,""===M&&(p.lastIndex=s(S,r(p.lastIndex),T)),R++}return 0===R?null:O}]})},6528:function(o,f,t){"use strict";var e=t(2109),n=t(6650).end;e({target:"String",proto:!0,forced:t(4986)},{padEnd:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}})},3112:function(o,f,t){"use strict";var e=t(2109),n=t(6650).start;e({target:"String",proto:!0,forced:t(4986)},{padStart:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}})},8992:function(o,f,t){var e=t(2109),n=t(5656),r=t(7466);e({target:"String",stat:!0},{raw:function(s){for(var i=n(s.raw),u=r(i.length),c=arguments.length,l=[],v=0;u>v;)l.push(String(i[v++])),v<c&&l.push(String(arguments[v]));return l.join("")}})},2481:function(o,f,t){t(2109)({target:"String",proto:!0},{repeat:t(8415)})},5306:function(o,f,t){"use strict";var e=t(7007),n=t(9670),r=t(7908),a=t(7466),s=t(9958),i=t(4488),u=t(1530),c=t(7651),l=Math.max,v=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,T=function(O){return void 0===O?O:String(O)};e("replace",2,function(O,R,G,M){var x=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=M.REPLACE_KEEPS_$0,w=x?"$":"$0";return[function(B,Z){var A=i(this),W=null==B?void 0:B[O];return void 0!==W?W.call(B,A,Z):R.call(String(A),B,Z)},function(D,B){if(!x&&b||"string"==typeof B&&-1===B.indexOf(w)){var Z=G(R,D,this,B);if(Z.done)return Z.value}var A=n(D),W=String(this),q="function"==typeof B;q||(B=String(B));var nt=A.global;if(nt){var tt=A.unicode;A.lastIndex=0}for(var ot=[];;){var it=c(A,W);if(null===it||(ot.push(it),!nt))break;""===String(it[0])&&(A.lastIndex=u(W,a(A.lastIndex),tt))}for(var ht="",Tt=0,bt=0;bt<ot.length;bt++){it=ot[bt];for(var Pt=String(it[0]),ee=l(v(s(it.index),W.length),0),Ht=[],fe=1;fe<it.length;fe++)Ht.push(T(it[fe]));var ce=it.groups;if(q){var le=[Pt].concat(Ht,ee,W);void 0!==ce&&le.push(ce);var Yt=String(B.apply(void 0,le))}else Yt=$(Pt,W,ee,Ht,ce,B);ee>=Tt&&(ht+=W.slice(Tt,ee)+Yt,Tt=ee+Pt.length)}return ht+W.slice(Tt)}];function $(D,B,Z,A,W,q){var nt=Z+D.length,tt=A.length,ot=S;return void 0!==W&&(W=r(W),ot=p),R.call(q,ot,function(it,pt){var ht;switch(pt.charAt(0)){case"$":return"$";case"&":return D;case"`":return B.slice(0,Z);case"'":return B.slice(nt);case"<":ht=W[pt.slice(1,-1)];break;default:var Tt=+pt;if(0===Tt)return it;if(Tt>tt){var bt=d(Tt/10);return 0===bt?it:bt<=tt?void 0===A[bt-1]?pt.charAt(1):A[bt-1]+pt.charAt(1):it}ht=A[Tt-1]}return void 0===ht?"":ht})}})},4765:function(o,f,t){"use strict";var e=t(7007),n=t(9670),r=t(4488),a=t(1150),s=t(7651);e("search",1,function(i,u,c){return[function(v){var d=r(this),p=null==v?void 0:v[i];return void 0!==p?p.call(v,d):new RegExp(v)[i](String(d))},function(l){var v=c(u,l,this);if(v.done)return v.value;var d=n(l),p=String(this),S=d.lastIndex;a(S,0)||(d.lastIndex=0);var T=s(d,p);return a(d.lastIndex,S)||(d.lastIndex=S),null===T?-1:T.index}]})},7268:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("small")},{small:function(){return n(this,"small","","")}})},3123:function(o,f,t){"use strict";var e=t(7007),n=t(7850),r=t(9670),a=t(4488),s=t(6707),i=t(1530),u=t(7466),c=t(7651),l=t(2261),v=t(7293),d=[].push,p=Math.min,S=4294967295,T=!v(function(){return!RegExp(S,"y")});e("split",2,function(O,R,G){var M;return M="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(x,b){var w=String(a(this)),$=void 0===b?S:b>>>0;if(0===$)return[];if(void 0===x)return[w];if(!n(x))return R.call(w,x,$);for(var W,q,nt,D=[],Z=0,A=new RegExp(x.source,(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(x.sticky?"y":"")+"g");(W=l.call(A,w))&&!((q=A.lastIndex)>Z&&(D.push(w.slice(Z,W.index)),W.length>1&&W.index<w.length&&d.apply(D,W.slice(1)),nt=W[0].length,Z=q,D.length>=$));)A.lastIndex===W.index&&A.lastIndex++;return Z===w.length?(nt||!A.test(""))&&D.push(""):D.push(w.slice(Z)),D.length>$?D.slice(0,$):D}:"0".split(void 0,0).length?function(x,b){return void 0===x&&0===b?[]:R.call(this,x,b)}:R,[function(b,w){var $=a(this),D=null==b?void 0:b[O];return void 0!==D?D.call(b,$,w):M.call(String($),b,w)},function(x,b){var w=G(M,x,this,b,M!==R);if(w.done)return w.value;var $=r(x),D=String(this),B=s($,RegExp),Z=$.unicode,W=new B(T?$:"^(?:"+$.source+")",($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(T?"y":"g")),q=void 0===b?S:b>>>0;if(0===q)return[];if(0===D.length)return null===c(W,D)?[D]:[];for(var nt=0,tt=0,ot=[];tt<D.length;){W.lastIndex=T?tt:0;var pt,it=c(W,T?D:D.slice(tt));if(null===it||(pt=p(u(W.lastIndex+(T?0:tt)),D.length))===nt)tt=i(D,tt,Z);else{if(ot.push(D.slice(nt,tt)),ot.length===q)return ot;for(var ht=1;ht<=it.length-1;ht++)if(ot.push(it[ht]),ot.length===q)return ot;tt=nt=pt}}return ot.push(D.slice(nt)),ot}]},!T)},6755:function(o,f,t){"use strict";var p,e=t(2109),n=t(1236).f,r=t(7466),a=t(3929),s=t(4488),i=t(4964),u=t(1913),c="".startsWith,l=Math.min,v=i("startsWith");e({target:"String",proto:!0,forced:!(!u&&!v&&(p=n(String.prototype,"startsWith"),p&&!p.writable)||v)},{startsWith:function(S){var T=String(s(this));a(S);var O=r(l(arguments.length>1?arguments[1]:void 0,T.length)),R=String(S);return c?c.call(T,R,O):T.slice(O,O+R.length)===R}})},7397:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("strike")},{strike:function(){return n(this,"strike","","")}})},86:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("sub")},{sub:function(){return n(this,"sub","","")}})},623:function(o,f,t){"use strict";var e=t(2109),n=t(4230);e({target:"String",proto:!0,forced:t(3429)("sup")},{sup:function(){return n(this,"sup","","")}})},8702:function(o,f,t){"use strict";var e=t(2109),n=t(3111).end,a=t(6091)("trimEnd"),s=a?function(){return n(this)}:"".trimEnd;e({target:"String",proto:!0,forced:a},{trimEnd:s,trimRight:s})},5674:function(o,f,t){"use strict";var e=t(2109),n=t(3111).start,a=t(6091)("trimStart"),s=a?function(){return n(this)}:"".trimStart;e({target:"String",proto:!0,forced:a},{trimStart:s,trimLeft:s})},3210:function(o,f,t){"use strict";var e=t(2109),n=t(3111).trim;e({target:"String",proto:!0,forced:t(6091)("trim")},{trim:function(){return n(this)}})},2443:function(o,f,t){t(7235)("asyncIterator")},1817:function(o,f,t){"use strict";var e=t(2109),n=t(9781),r=t(2474),a=t(6656),s=t(111),i=t(3070).f,u=t(9920),c=r.Symbol;if(n&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var l={},v=function(){var R=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),G=this instanceof v?new c(R):void 0===R?c():c(R);return""===R&&(l[G]=!0),G};u(v,c);var d=v.prototype=c.prototype;d.constructor=v;var p=d.toString,S="Symbol(test)"==String(c("test")),T=/^Symbol\((.*)\)[^)]+$/;i(d,"description",{configurable:!0,get:function(){var R=s(this)?this.valueOf():this,G=p.call(R);if(a(l,R))return"";var M=S?G.slice(7,-1):G.replace(T,"$1");return""===M?void 0:M}}),e({global:!0,forced:!0},{Symbol:v})}},2401:function(o,f,t){t(7235)("hasInstance")},8722:function(o,f,t){t(7235)("isConcatSpreadable")},2165:function(o,f,t){t(7235)("iterator")},2526:function(o,f,t){"use strict";var e=t(2109),n=t(2474),r=t(5005),a=t(1913),s=t(9781),i=t(133),u=t(3307),c=t(7293),l=t(6656),v=t(3157),d=t(111),p=t(9670),S=t(7908),T=t(5656),O=t(7593),R=t(9114),G=t(30),M=t(1956),x=t(8006),b=t(1156),w=t(5181),$=t(1236),D=t(3070),B=t(5296),Z=t(8880),A=t(1320),W=t(2309),q=t(6200),nt=t(3501),tt=t(9711),ot=t(5112),it=t(6061),pt=t(7235),ht=t(8003),Tt=t(9909),bt=t(2092).forEach,Pt=q("hidden"),ee="Symbol",Ht="prototype",fe=ot("toPrimitive"),ce=Tt.set,le=Tt.getterFor(ee),Yt=Object[Ht],wt=n.Symbol,Jt=r("JSON","stringify"),ae=$.f,Wt=D.f,Oe=b.f,ve=B.f,ne=W("symbols"),de=W("op-symbols"),xe=W("string-to-symbol-registry"),Kt=W("symbol-to-string-registry"),Le=W("wks"),Ie=n.QObject,Pe=!Ie||!Ie[Ht]||!Ie[Ht].findChild,ge=s&&c(function(){return 7!=G(Wt({},"a",{get:function(){return Wt(this,"a",{value:7}).a}})).a})?function(E,m,j){var I=ae(Yt,m);I&&delete Yt[m],Wt(E,m,j),I&&E!==Yt&&Wt(Yt,m,I)}:Wt,he=function(E,m){var j=ne[E]=G(wt[Ht]);return ce(j,{type:ee,tag:E,description:m}),s||(j.description=m),j},Ce=u?function(E){return"symbol"==typeof E}:function(E){return Object(E)instanceof wt},Re=function(m,j,I){m===Yt&&Re(de,j,I),p(m);var N=O(j,!0);return p(I),l(ne,N)?(I.enumerable?(l(m,Pt)&&m[Pt][N]&&(m[Pt][N]=!1),I=G(I,{enumerable:R(0,!1)})):(l(m,Pt)||Wt(m,Pt,R(1,{})),m[Pt][N]=!0),ge(m,N,I)):Wt(m,N,I)},Fe=function(m,j){p(m);var I=T(j),N=M(I).concat(Se(I));return bt(N,function(K){(!s||Me.call(I,K))&&Re(m,K,I[K])}),m},Me=function(m){var j=O(m,!0),I=ve.call(this,j);return!(this===Yt&&l(ne,j)&&!l(de,j))&&(!(I||!l(this,j)||!l(ne,j)||l(this,Pt)&&this[Pt][j])||I)},je=function(m,j){var I=T(m),N=O(j,!0);if(I!==Yt||!l(ne,N)||l(de,N)){var K=ae(I,N);return K&&l(ne,N)&&!(l(I,Pt)&&I[Pt][N])&&(K.enumerable=!0),K}},re=function(m){var j=Oe(T(m)),I=[];return bt(j,function(N){!l(ne,N)&&!l(nt,N)&&I.push(N)}),I},Se=function(m){var j=m===Yt,I=Oe(j?de:T(m)),N=[];return bt(I,function(K){l(ne,K)&&(!j||l(Yt,K))&&N.push(ne[K])}),N};i||(wt=function(){if(this instanceof wt)throw TypeError("Symbol is not a constructor");var m=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,j=tt(m),I=function(N){this===Yt&&I.call(de,N),l(this,Pt)&&l(this[Pt],j)&&(this[Pt][j]=!1),ge(this,j,R(1,N))};return s&&Pe&&ge(Yt,j,{configurable:!0,set:I}),he(j,m)},A(wt[Ht],"toString",function(){return le(this).tag}),A(wt,"withoutSetter",function(E){return he(tt(E),E)}),B.f=Me,D.f=Re,$.f=je,x.f=b.f=re,w.f=Se,it.f=function(E){return he(ot(E),E)},s&&(Wt(wt[Ht],"description",{configurable:!0,get:function(){return le(this).description}}),a||A(Yt,"propertyIsEnumerable",Me,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!i,sham:!i},{Symbol:wt}),bt(M(Le),function(E){pt(E)}),e({target:ee,stat:!0,forced:!i},{for:function(E){var m=String(E);if(l(xe,m))return xe[m];var j=wt(m);return xe[m]=j,Kt[j]=m,j},keyFor:function(m){if(!Ce(m))throw TypeError(m+" is not a symbol");if(l(Kt,m))return Kt[m]},useSetter:function(){Pe=!0},useSimple:function(){Pe=!1}}),e({target:"Object",stat:!0,forced:!i,sham:!s},{create:function(m,j){return void 0===j?G(m):Fe(G(m),j)},defineProperty:Re,defineProperties:Fe,getOwnPropertyDescriptor:je}),e({target:"Object",stat:!0,forced:!i},{getOwnPropertyNames:re,getOwnPropertySymbols:Se}),e({target:"Object",stat:!0,forced:c(function(){w.f(1)})},{getOwnPropertySymbols:function(m){return w.f(S(m))}}),Jt&&e({target:"JSON",stat:!0,forced:!i||c(function(){var E=wt();return"[null]"!=Jt([E])||"{}"!=Jt({a:E})||"{}"!=Jt(Object(E))})},{stringify:function(m,j,I){for(var X,N=[m],K=1;arguments.length>K;)N.push(arguments[K++]);if(X=j,(d(j)||void 0!==m)&&!Ce(m))return v(j)||(j=function(lt,ft){if("function"==typeof X&&(ft=X.call(this,lt,ft)),!Ce(ft))return ft}),N[1]=j,Jt.apply(null,N)}}),wt[Ht][fe]||Z(wt[Ht],fe,wt[Ht].valueOf),ht(wt,ee),nt[Pt]=!0},6066:function(o,f,t){t(7235)("matchAll")},9007:function(o,f,t){t(7235)("match")},3510:function(o,f,t){t(7235)("replace")},1840:function(o,f,t){t(7235)("search")},6982:function(o,f,t){t(7235)("species")},2159:function(o,f,t){t(7235)("split")},6649:function(o,f,t){t(7235)("toPrimitive")},9341:function(o,f,t){t(7235)("toStringTag")},543:function(o,f,t){t(7235)("unscopables")},4129:function(o,f,t){"use strict";var d,e=t(2474),n=t(2248),r=t(2423),a=t(7710),s=t(9320),i=t(111),u=t(9909).enforce,c=t(8536),l=!e.ActiveXObject&&"ActiveXObject"in e,v=Object.isExtensible,p=function(x){return function(){return x(this,arguments.length?arguments[0]:void 0)}},S=o.exports=a("WeakMap",p,s);if(c&&l){d=s.getConstructor(p,"WeakMap",!0),r.REQUIRED=!0;var T=S.prototype,O=T.delete,R=T.has,G=T.get,M=T.set;n(T,{delete:function(x){if(i(x)&&!v(x)){var b=u(this);return b.frozen||(b.frozen=new d),O.call(this,x)||b.frozen.delete(x)}return O.call(this,x)},has:function(b){if(i(b)&&!v(b)){var w=u(this);return w.frozen||(w.frozen=new d),R.call(this,b)||w.frozen.has(b)}return R.call(this,b)},get:function(b){if(i(b)&&!v(b)){var w=u(this);return w.frozen||(w.frozen=new d),R.call(this,b)?G.call(this,b):w.frozen.get(b)}return G.call(this,b)},set:function(b,w){if(i(b)&&!v(b)){var $=u(this);$.frozen||($.frozen=new d),R.call(this,b)?M.call(this,b,w):$.frozen.set(b,w)}else M.call(this,b,w);return this}})}},3948:function(o,f,t){var e=t(2474),n=t(8324),r=t(6992),a=t(8880),s=t(5112),i=s("iterator"),u=s("toStringTag"),c=r.values;for(var l in n){var v=e[l],d=v&&v.prototype;if(d){if(d[i]!==c)try{a(d,i,c)}catch(S){d[i]=c}if(d[u]||a(d,u,l),n[l])for(var p in r)if(d[p]!==r[p])try{a(d,p,r[p])}catch(S){d[p]=r[p]}}}}},function(o){o(o.s=4818)}]);
!function(m,w){"use strict";function rt(){var e=K.splice(0,K.length);for(ie=0;e.length;)e.shift().call(null,e.shift())}function me(e,t){for(var n=0,r=e.length;n<r;n++)Te(e[n],t)}function fe(e){return function(t){Lt(t)&&(Te(t,e),L.length&&me(t.querySelectorAll(L),e))}}function de(e){var t=le.call(e,"is"),n=e.nodeName.toUpperCase(),r=v.call(D,t?Y+t.toUpperCase():x+n);return t&&-1<r&&!De(n,t)?-1:r}function De(e,t){return-1<L.indexOf(e+'[is="'+t+'"]')}function Ie(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[W]||2,a=e[He]||3;!ce||o&&o!==t||!t[y]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==l&&n!==a)||t[y](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function Fe(e){var t=fe(e);return function(n){K.push(t,n.target),ie&&clearTimeout(ie),ie=setTimeout(rt,1)}}function pe(e){nt&&(nt=!1,e.currentTarget.removeEventListener(Ze,pe)),L.length&&me((e.target||u).querySelectorAll(L),e.detail===E?E:b),R&&function at(){for(var e,t=0,n=G.length;t<n;t++)V.contains(e=G[t])||(n--,G.splice(t--,1),Te(e,E))}()}function lt(e,t){var n=this;Ye.call(n,e,t),Me.call(n,{target:n})}function Se(e,t,n){var r=t.apply(e,n),o=de(r);return-1<o&&U(r,q[o]),n.pop()&&L.length&&function ot(e){for(var t,n=0,r=e.length;n<r;n++)U(t=e[n],q[de(t)])}(r.querySelectorAll(L)),r}function he(e,t){Tt(e,t),$?$.observe(e,gt):(ue&&(e.setAttribute=lt,e[H]=Ee(e),e[g](st,Me)),e[g](N,Ie)),e[k]&&ce&&(e.created=!0,e[k](),e.created=!1)}function Ve(e){throw new Error("A "+e+" type is already registered")}function Te(e,t){var n,r,o=de(e);-1<o&&!Mt.call(e,"TEMPLATE")&&(Q(e,q[o]),o=0,t!==b||e[b]?t!==E||e[E]||(e[b]=!1,e[E]=!0,r="disconnected",o=1):(e[E]=!1,e[b]=!0,r="connected",o=1,R&&v.call(G,e)<0&&G.push(e)),o&&(n=e[t+O]||e[r+O])&&n.call(e))}function z(){}function Pe(e,t,n){var r=n&&n[_]||"",o=t.prototype,l=Ce(o),a=t.observedAttributes||ye,s={prototype:l};oe(l,k,{value:function(){if(te)te=!1;else if(!this[B]){this[B]=!0,new t(this),o[k]&&o[k].call(this);var i=j[ne.get(t)];(!Z||i.create.length>1)&&_e(this)}}}),oe(l,y,{value:function(i){-1<v.call(a,i)&&o[y]&&o[y].apply(this,arguments)}}),o[qe]&&oe(l,ut,{value:o[qe]}),o[Be]&&oe(l,ct,{value:o[Be]}),r&&(s[_]=r),e=e.toUpperCase(),j[e]={constructor:t,create:r?[r,re(e)]:[e]},ne.set(t,e),u[S](e.toLowerCase(),s),Le(e),P[e].r()}function Re(e){var t=j[e.toUpperCase()];return t&&t.constructor}function Ue(e){return"string"==typeof e?e:e&&e.is||""}function _e(e){for(var t,n=e[y],r=n?e.attributes:ye,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function Le(e){return(e=e.toUpperCase())in P||(P[e]={},P[e].p=new Xe(function(t){P[e].r=t})),P[e].p}function ke(){C&&delete m.customElements,I(m,"customElements",{configurable:!0,value:new z}),I(m,"CustomElementRegistry",{configurable:!0,value:z});for(var e=it.get(/^HTML[A-Z]*[a-z]/),t=e.length;t--;function(n){var r=m[n];if(r){m[n]=function(o){var l,a;return o||(o=this),o[B]||(te=!0,l=j[ne.get(o.constructor)],(o=(a=Z&&1===l.create.length)?Reflect.construct(r,ye,l.constructor):u.createElement.apply(u,l.create))[B]=!0,te=!1,a||_e(o)),o},m[n].prototype=r.prototype;try{r.prototype.constructor=m[n]}catch(o){I(r,B,{value:m[n]})}}}(e[t]));u.createElement=function(n,r){var o=Ue(r);return o?Ae.call(this,n,re(o)):Ae.call(this,n)},et||(Oe=!0,u[S](""))}var u=m.document,T=m.Object,it=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,s=function(d,f){(f=f.toLowerCase())in i||(i[d]=(i[d]||[]).concat(f),i[f]=i[f.toUpperCase()]=d)},i=(T.create||T)(null),c={};for(n in e)for(o in e[n])for(i[o]=r=e[n][o],t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return c.get=function(d){return"string"==typeof d?i[d]||(l.test(d)?[]:""):function(d){var f,h=[];for(f in i)d.test(f)&&h.push(f);return h}(d)},c.set=function(d,f){return l.test(d)?s(d,f):s(f,d),c},c}({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 w&&(w={type:w||"auto"});var K,Me,X,Ee,$,ve,Q,U,A,e,t,n,r,o,S="registerElement",xe=1e5*m.Math.random()>>0,H="__"+S+xe,g="addEventListener",b="attached",O="Callback",E="detached",_="extends",y="attributeChanged"+O,ut=b+O,qe="connected"+O,Be="disconnected"+O,k="created"+O,ct=E+O,W="ADDITION",He="REMOVAL",N="DOMAttrModified",Ze="DOMContentLoaded",st="DOMSubtreeModified",x="<",Y="=",mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ft=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],D=[],q=[],L="",V=u.documentElement,v=D.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ge=T.prototype,be=ge.hasOwnProperty,J=ge.isPrototypeOf,I=T.defineProperty,ye=[],ee=T.getOwnPropertyDescriptor,je=T.getOwnPropertyNames,dt=T.getPrototypeOf,Ge=T.setPrototypeOf,ze=!!T.__proto__,B="__dreCEv1",C=m.customElements,Z=!/^force/.test(w.type)&&!!(C&&C.define&&C.get&&C.whenDefined),Ke=T.create||T,ht=m.Map||function(){var e,t=[],n=[];return{get:function(r){return n[v.call(t,r)]},set:function(r,o){(e=v.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},Xe=m.Promise||function(e){function t(l){for(r=!0;n.length;)n.shift()(l)}var n=[],r=!1,o={catch:function(){return o},then:function(l){return n.push(l),r&&setTimeout(t,1),o}};return e(t),o},te=!1,j=Ke(null),P=Ke(null),ne=new ht,re=function(e){return e.toLowerCase()},Ce=T.create||function e(t){return t?(e.prototype=t,new e):this},Tt=Ge||(ze?function(e,t){return e.__proto__=t,e}:je&&ee?function(){function e(t,n){for(var r,o=je(n),l=0,a=o.length;l<a;l++)be.call(t,r=o[l])||I(t,r,ee(n,r))}return function(t,n){do{e(t,n)}while((n=dt(n))&&!J.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),F=m.MutationObserver||m.WebKitMutationObserver,$e=m.HTMLAnchorElement,p=(m.HTMLElement||m.Element||m.Node).prototype,R=!J.call(p,V),oe=R?function(e,t,n){return e[t]=n.value,e}:I,Lt=R?function(e){return 1===e.nodeType}:function(e){return J.call(p,e)},G=R&&[],Qe=p.attachShadow,We=p.cloneNode,Mt=p.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},we=p.dispatchEvent,le=p.getAttribute,Et=p.hasAttribute,vt=p.removeAttribute,Ye=p.setAttribute,ae=u.createElement,Ht=u.importNode,Ae=ae,gt=F&&{attributes:!0,characterData:!0,attributeOldValue:!0},Je=F||function(e){ue=!1,V.removeEventListener(N,Je)},ie=0,et=S in u&&!/^force-all/.test(w.type),tt=!0,Oe=!1,ue=!0,nt=!0,ce=!0;if(F&&((A=u.createElement("div")).innerHTML="<div><div></div></div>",new F(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(A=ee(p,"innerHTML"))&&A.set;n&&I(p,"innerHTML",{set:function(r){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,r)}})}t.disconnect(),A=null}).observe(A,{childList:!0,subtree:!0}),A.innerHTML=""),et||(Ge||ze?(Q=function(e,t){J.call(t,e)||he(e,t)},U=he):(Q=function(e,t){e[H]||(e[H]=T(!0),he(e,t))},U=Q),R?(ue=!1,e=ee(p,g),t=e.value,n=function(l){var a=new CustomEvent(N,{bubbles:!0});a.attrName=l,a.prevValue=le.call(this,l),a.newValue=null,a[He]=a.attrChange=2,vt.call(this,l),we.call(this,a)},r=function(l,a){var s=Et.call(this,l),i=s&&le.call(this,l),c=new CustomEvent(N,{bubbles:!0});Ye.call(this,l,a),c.attrName=l,c.prevValue=s?i:null,c.newValue=a,s?c.MODIFICATION=c.attrChange=1:c[W]=c.attrChange=0,we.call(this,c)},o=function(l){var a,s=l.currentTarget,i=s[H],c=l.propertyName;i.hasOwnProperty(c)&&(i=i[c],(a=new CustomEvent(N,{bubbles:!0})).attrName=i.name,a.prevValue=i.value||null,a.newValue=i.value=s[c]||null,null==a.prevValue?a[W]=a.attrChange=0:a.MODIFICATION=a.attrChange=1,we.call(s,a))},e.value=function(l,a,s){l===N&&this[y]&&this.setAttribute!==r&&(this[H]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,l,a,s)},I(p,g,e)):F||(V[g](N,Je),V.setAttribute(H,1),V.removeAttribute(H),ue&&(Me=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[H],o[H]=n=Ee(o),n){if(!(r in t))return X(0,o,r,t[r],n[r],W);if(n[r]!==t[r])return X(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return X(2,o,r,t[r],n[r],He)}},X=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,Ie(a)},Ee=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)"setAttribute"!==(n=(t=o[l]).name)&&(r[n]=t.value);return r})),u[S]=function(e,t){if(n=e.toUpperCase(),tt&&(tt=!1,F?($=function(i,c){function d(f,h){for(var M=0,se=f.length;M<se;h(f[M++]));}return new F(function(f){for(var h,M,se,Ne=0,bt=f.length;Ne<bt;Ne++)"childList"===(h=f[Ne]).type?(d(h.addedNodes,i),d(h.removedNodes,c)):(M=h.target,ce&&M[y]&&"style"!==h.attributeName&&(se=le.call(M,h.attributeName))!==h.oldValue&&M[y](h.attributeName,h.oldValue,se))})}(fe(b),fe(E)),(ve=function(i){return $.observe(i,{childList:!0,subtree:!0}),i})(u),Qe&&(p.attachShadow=function(){return ve(Qe.apply(this,arguments))})):(K=[],u[g]("DOMNodeInserted",Fe(b)),u[g]("DOMNodeRemoved",Fe(E))),u[g](Ze,pe),u[g]("readystatechange",pe),u.importNode=function(i,c){switch(i.nodeType){case 1:return Se(u,Ht,[i,!!c]);case 11:for(var d=u.createDocumentFragment(),f=i.childNodes,h=f.length,M=0;M<h;M++)d.appendChild(u.importNode(f[M],!!c));return d;default:return We.call(i,!!c)}},p.cloneNode=function(i){return Se(this,We,[!!i])}),Oe)return Oe=!1;if(-2<v.call(D,Y+n)+v.call(D,x+n)&&Ve(e),!mt.test(n)||-1<v.call(ft,n))throw new Error("The type "+e+" is invalid");var n,r,o=function(){return a?u.createElement(s,n):u.createElement(s)},l=t||ge,a=be.call(l,_),s=a?t[_].toUpperCase():n;return a&&-1<v.call(D,x+s)&&Ve(s),r=D.push((a?Y:x)+n)-1,L=L.concat(L.length?",":"",a?s+'[is="'+e.toLowerCase()+'"]':s),o.prototype=q[r]=be.call(l,"prototype")?l.prototype:Ce(p),L.length&&me(u.querySelectorAll(L),b),o},u.createElement=Ae=function(e,t){var n=Ue(t),r=n?ae.call(u,e,re(n)):ae.call(u,e),o=""+e,l=v.call(D,(n?Y:x)+(n||o).toUpperCase()),a=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),a&&(a=De(o.toUpperCase(),n))),ce=!u.createElement.innerHTMLHelper,a&&U(r,q[l]),r}),addEventListener("beforeunload",function(){delete u.createElement,delete u.importNode,delete u[S]},!1),z.prototype={constructor:z,define:Z?function(e,t,n){if(n)Pe(e,t,n);else{var r=e.toUpperCase();j[r]={constructor:t,create:[r]},ne.set(t,r),C.define(e,t)}}:Pe,get:Z?function(e){return C.get(e)||Re(e)}:Re,whenDefined:Z?function(e){return Xe.race([C.whenDefined(e),Le(e)])}:Le},!C||/^force/.test(w.type))ke();else if(!w.noBuiltIn)try{!function(e,t,n){var r=new RegExp("^<a\\s+is=('|\")"+n+"\\1></a>$");if(t[_]="a",(e.prototype=Ce($e.prototype)).constructor=e,m.customElements.define(n,e,t),!r.test(u.createElement("a",{is:n}).outerHTML)||!r.test((new e).outerHTML))throw t}(function e(){return Reflect.construct($e,[],e)},{},"document-register-element-a"+xe)}catch(e){ke()}if(!w.noBuiltIn)try{if(ae.call(u,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){re=function(t){return{is:t.toLowerCase()}}}}(window);
(self.webpackChunkconfigurator_accordion=self.webpackChunkconfigurator_accordion||[]).push([[179],{6790:function(he,tt,B){"use strict";function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function fe(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&null!==(e=O(e)););return e}function L(){return L="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,t,n){var i=fe(r,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},L.apply(this,arguments)}function j(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,r,t){return r&&j(e.prototype,r),t&&j(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function W(e,r){return(W=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n})(e,r)}function _(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&W(e,r)}function J(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}function Ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e,r){if(r&&("object"===we(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}function z(e){var r=J();return function(){var i,n=O(e);if(r){var a=O(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ye(this,i)}}function Pt(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function ge(e,r){if(e){if("string"==typeof e)return Pt(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pt(e,r)}}function lt(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ge(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Ur(e){if(Array.isArray(e))return e}function li(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(e,r){return Ur(e)||function or(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,n=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(o=t.next()).done)&&(n.push(o.value),!r||n.length!==r);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&null!=t.return&&t.return()}finally{if(a)throw s}}return n}}(e,r)||ge(e,r)||li()}function nt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ut(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function se(e){return function X(e){if(Array.isArray(e))return Pt(e)}(e)||Ut(e)||ge(e)||function Pn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,r,t){return(ln=J()?Reflect.construct:function(i,a,o){var s=[null];s.push.apply(s,a);var c=new(Function.bind.apply(i,s));return o&&W(c,o.prototype),c}).apply(null,arguments)}function it(e){var r="function"==typeof Map?new Map:void 0;return it=function(n){if(null===n||!function Rt(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return ln(n,arguments,O(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),W(i,n)},it(e)}function at(e){return"function"==typeof e}function wo(e){var t=e(function(i){Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var le=wo(function(e){return function(t){e(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(n,i){return"".concat(i+1,") ").concat(n.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=t}});function q(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var e,$=function(){function e(r){v(this,e),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return h(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var a,i=lt(n);try{for(i.s();!(a=i.n()).done;)a.value.remove(this)}catch(f){i.e(f)}finally{i.f()}}else n.remove(this);var s=this.initialTeardown;if(at(s))try{s()}catch(f){t=f instanceof le?f.errors:[f]}var l=this._teardowns;if(l){this._teardowns=null;var u,c=lt(l);try{for(c.s();!(u=c.n()).done;){var d=u.value;try{Ye(d)}catch(f){t=null!=t?t:[],f instanceof le?t=[].concat(se(t),se(f.errors)):t.push(f)}}}catch(f){c.e(f)}finally{c.f()}}if(t)throw new le(t)}}},{key:"add",value:function(t){var n;if(t&&t!==this)if(this.closed)Ye(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}}},{key:"_hasParent",value:function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)}},{key:"_addParent",value:function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}},{key:"_removeParent",value:function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&q(n,t)}},{key:"remove",value:function(t){var n=this._teardowns;n&&q(n,t),t instanceof e&&t._removeParent(this)}}]),e}();$.EMPTY=((e=new $).closed=!0,e);var me=$.EMPTY;function $e(e){return e instanceof $||e&&"closed"in e&&at(e.remove)&&at(e.add)&&at(e.unsubscribe)}function Ye(e){at(e)?e():e.unsubscribe()}var gn={setTimeout:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=gn.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,arguments)}),clearTimeout:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=gn.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function On(e){gn.setTimeout(function(){throw e})}function cn(){}var Xi=m4("C",void 0,void 0);function m4(e,r,t){return{kind:e,value:r,error:t}}function Mc(e){e()}var y4=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this)).isStopped=!1,n?(i.destination=n,$e(n)&&n.add(Ae(i))):i.destination=EC,i}return h(t,[{key:"next",value:function(i){this.isStopped?b4(function Ti(e){return m4("N",e,void 0)}(i),this):this._next(i)}},{key:"error",value:function(i){this.isStopped?b4(function Ea(e){return m4("E",void 0,e)}(i),this):(this.isStopped=!0,this._error(i))}},{key:"complete",value:function(){this.isStopped?b4(Xi,this):(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,L(O(t.prototype),"unsubscribe",this).call(this),this.destination=null)}},{key:"_next",value:function(i){this.destination.next(i)}},{key:"_error",value:function(i){try{this.destination.error(i)}finally{this.unsubscribe()}}},{key:"_complete",value:function(){try{this.destination.complete()}finally{this.unsubscribe()}}}],[{key:"create",value:function(i,a,o){return new _4(i,a,o)}}]),t}($),_4=function(e){_(t,e);var r=z(t);function t(n,i,a){var o,s;if(v(this,t),o=r.call(this),at(n))s=n;else if(n){var l;s=n.next,i=n.error,a=n.complete,Ae(o),l=n,s=null==s?void 0:s.bind(l),i=null==i?void 0:i.bind(l),a=null==a?void 0:a.bind(l)}return o.destination={next:s?C4(s,Ae(o)):cn,error:C4(null!=i?i:h6,Ae(o)),complete:a?C4(a,Ae(o)):cn},o}return h(t)}(y4);function C4(e,r){return function(){try{e.apply(void 0,arguments)}catch(t){On(t)}}}function h6(e){throw e}function b4(e,r){var t=null;t&&gn.setTimeout(function(){return t(e,r)})}var EC={closed:!0,next:cn,error:h6,complete:cn},w4="function"==typeof Symbol&&Symbol.observable||"@@observable";function za(e){return e}function v6(e){return 0===e.length?za:1===e.length?e[0]:function(t){return e.reduce(function(n,i){return i(n)},t)}}var de=function(){var e=function(){function r(t){v(this,r),t&&(this._subscribe=t)}return h(r,[{key:"lift",value:function(n){var i=new r;return i.source=this,i.operator=n,i}},{key:"subscribe",value:function(n,i,a){var o=this,s=function zC(e){return e&&e instanceof y4||function TC(e){return e&&at(e.next)&&at(e.error)&&at(e.complete)}(e)&&$e(e)}(n)?n:new _4(n,i,a);return Mc(function(){var l=o.operator,c=o.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s}},{key:"_trySubscribe",value:function(n){try{return this._subscribe(n)}catch(i){n.error(i)}}},{key:"forEach",value:function(n,i){var a=this;return new(i=p6(i))(function(o,s){var l;l=a.subscribe(function(c){try{n(c)}catch(u){s(u),null==l||l.unsubscribe()}},s,o)})}},{key:"_subscribe",value:function(n){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(n)}},{key:w4,value:function(){return this}},{key:"pipe",value:function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return v6(i)(this)}},{key:"toPromise",value:function(n){var i=this;return new(n=p6(n))(function(a,o){var s;i.subscribe(function(l){return s=l},function(l){return o(l)},function(){return a(s)})})}}]),r}();return e.create=function(r){return new e(r)},e}();function p6(e){var r;return null!==(r=null!=e?e:undefined)&&void 0!==r?r:Promise}var AC=wo(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_e=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.call(this)).closed=!1,i.observers=[],i.isStopped=!1,i.hasError=!1,i.thrownError=null,i}return h(n,[{key:"lift",value:function(a){var o=new g6(this,this);return o.operator=a,o}},{key:"_throwIfClosed",value:function(){if(this.closed)throw new AC}},{key:"next",value:function(a){var o=this;Mc(function(){if(o._throwIfClosed(),!o.isStopped){var c,l=lt(o.observers.slice());try{for(l.s();!(c=l.n()).done;)c.value.next(a)}catch(d){l.e(d)}finally{l.f()}}})}},{key:"error",value:function(a){var o=this;Mc(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=a;for(var s=o.observers;s.length;)s.shift().error(a)}})}},{key:"complete",value:function(){var a=this;Mc(function(){if(a._throwIfClosed(),!a.isStopped){a.isStopped=!0;for(var o=a.observers;o.length;)o.shift().complete()}})}},{key:"unsubscribe",value:function(){this.isStopped=this.closed=!0,this.observers=null}},{key:"observed",get:function(){var a;return(null===(a=this.observers)||void 0===a?void 0:a.length)>0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),L(O(n.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var l=this.observers;return this.hasError||this.isStopped?me:(l.push(a),new $(function(){return q(l,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var l=this.isStopped;this.hasError?a.error(this.thrownError):l&&a.complete()}},{key:"asObservable",value:function(){var a=new de;return a.source=this,a}}]),n}(de);return e.create=function(r,t){return new g6(r,t)},e}(),g6=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this)).destination=n,a.source=i,a}return h(t,[{key:"next",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,i)}},{key:"error",value:function(i){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,i)}},{key:"complete",value:function(){var i,a;null===(a=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===a||a.call(i)}},{key:"_subscribe",value:function(i){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(i))&&void 0!==o?o:me}}]),t}(_e);function un(e){return function(r){if(function PC(e){return at(null==e?void 0:e.lift)}(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var Nt=function(e){_(t,e);var r=z(t);function t(n,i,a,o,s){var l,c,u,d;return v(this,t),(d=r.call(this,n)).onFinalize=s,d._next=i?function(f){try{i(f)}catch(p){n.error(p)}}:L((l=Ae(d),O(t.prototype)),"_next",l),d._error=o?function(f){try{o(f)}catch(p){n.error(p)}finally{this.unsubscribe()}}:L((c=Ae(d),O(t.prototype)),"_error",c),d._complete=a?function(){try{a()}catch(f){n.error(f)}finally{this.unsubscribe()}}:L((u=Ae(d),O(t.prototype)),"_complete",u),d}return h(t,[{key:"unsubscribe",value:function(){var i,a=this.closed;L(O(t.prototype),"unsubscribe",this).call(this),!a&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}]),t}(y4);function mn(e,r){return un(function(t,n){var i=0;t.subscribe(new Nt(n,function(a){n.next(e.call(r,a,i++))}))})}var k4=B(7757),R=B.n(k4);function Aa(e){return this instanceof Aa?(this.v=e,this):new Aa(e)}function IC(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=t.apply(e,r||[]),a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(f){n[f]&&(i[f]=function(p){return new Promise(function(g,m){a.push([f,p,g,m])>1||s(f,p)})})}function s(f,p){try{!function l(f){f.value instanceof Aa?Promise.resolve(f.value.v).then(c,u):d(a[0][2],f)}(n[f](p))}catch(g){d(a[0][3],g)}}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,p){f(p),a.shift(),a.length&&s(a[0][0],a[0][1])}}function LC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function _6(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){!function i(a,o,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},o)}(s,l,(o=e[a](o)).done,o.value)})}}}var S4=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function C6(e){return at(null==e?void 0:e.then)}function b6(e){return at(e[w4])}function w6(e){return Symbol.asyncIterator&&at(null==e?void 0:e[Symbol.asyncIterator])}function k6(e){return new TypeError("You provided ".concat(null!==e&&"object"==typeof e?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var M6=function VC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function S6(e){return at(null==e?void 0:e[M6])}function D6(e){return IC(this,arguments,R().mark(function r(){var t,n,i;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=e.getReader(),s.prev=1;case 2:return s.next=5,Aa(t.read());case 5:if(i=(n=s.sent).value,!n.done){s.next=12;break}return s.next=11,Aa(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,Aa(i);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function x6(e){return at(null==e?void 0:e.getReader)}function Fn(e){if(e instanceof de)return e;if(null!=e){if(b6(e))return function RC(e){return new de(function(r){var t=e[w4]();if(at(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(S4(e))return function NC(e){return new de(function(r){for(var t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}(e);if(C6(e))return function BC(e){return new de(function(r){e.then(function(t){r.closed||(r.next(t),r.complete())},function(t){return r.error(t)}).then(null,On)})}(e);if(w6(e))return E6(e);if(S6(e))return function YC(e){return new de(function(r){var n,t=lt(e);try{for(t.s();!(n=t.n()).done;)if(r.next(n.value),r.closed)return}catch(a){t.e(a)}finally{t.f()}r.complete()})}(e);if(x6(e))return function jC(e){return E6(D6(e))}(e)}throw k6(e)}function E6(e){return new de(function(r){(function UC(e,r){var t,n,i,a;return function OC(e,r,t,n){return new(t||(t=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):function i(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,l)}c((n=n.apply(e,r||[])).next())})}(this,void 0,void 0,R().mark(function o(){return R().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:c.prev=0,t=LC(e);case 2:return c.next=4,t.next();case 4:if((n=c.sent).done){c.next=12;break}if(r.next(n.value),!r.closed){c.next=10;break}return c.abrupt("return");case 10:c.next=2;break;case 12:c.next=17;break;case 14:c.prev=14,c.t0=c.catch(0),i={error:c.t0};case 17:if(c.prev=17,c.prev=18,!n||n.done||!(a=t.return)){c.next=22;break}return c.next=22,a.call(t);case 22:if(c.prev=22,!i){c.next=25;break}throw i.error;case 25:return c.finish(22);case 26:return c.finish(17);case 27:r.complete();case 28:case"end":return c.stop()}},o,null,[[0,14,17,27],[18,,22,26]])}))})(e,r).catch(function(t){return r.error(t)})})}function zi(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function GC(e,r,t,n,i,a,o,s){var l=[],c=0,u=0,d=!1,f=function(){d&&!l.length&&!c&&r.complete()},p=function(C){return c<n?g(C):l.push(C)},g=function m(C){a&&r.next(C),c++;var D=!1;Fn(t(C,u++)).subscribe(new Nt(r,function(x){null==i||i(x),a?p(x):r.next(x)},function(){D=!0},void 0,function(){if(D)try{c--;for(var x=function(){var V=l.shift();o?zi(r,o,function(){return m(V)}):m(V)};l.length&&c<n;)x();f()}catch(F){r.error(F)}}))};return e.subscribe(new Nt(r,p,function(){d=!0,f()})),function(){null==s||s()}}function Pa(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return at(r)?Pa(function(n,i){return mn(function(a,o){return r(n,a,i,o)})(Fn(e(n,i)))},t):("number"==typeof r&&(t=r),un(function(n,i){return GC(n,i,e,t)}))}function T6(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Pa(za,e)}var Sc=new de(function(e){return e.complete()});function z6(e){return e&&at(e.schedule)}function D4(e){return e[e.length-1]}function A6(e){return at(D4(e))?e.pop():void 0}function Js(e){return z6(D4(e))?e.pop():void 0}function qC(e,r){return"number"==typeof D4(e)?e.pop():r}function P6(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return un(function(t,n){t.subscribe(new Nt(n,function(i){return zi(n,e,function(){return n.next(i)},r)},function(){return zi(n,e,function(){return n.complete()},r)},function(i){return zi(n,e,function(){return n.error(i)},r)}))})}function O6(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return un(function(t,n){n.add(e.schedule(function(){return t.subscribe(n)},r))})}function F6(e,r){if(!e)throw new Error("Iterable cannot be null");return new de(function(t){zi(t,r,function(){var n=e[Symbol.asyncIterator]();zi(t,r,function(){n.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function Ai(e,r){return r?function JC(e,r){if(null!=e){if(b6(e))return function $C(e,r){return Fn(e).pipe(O6(r),P6(r))}(e,r);if(S4(e))return function ZC(e,r){return new de(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}(e,r);if(C6(e))return function KC(e,r){return Fn(e).pipe(O6(r),P6(r))}(e,r);if(w6(e))return F6(e,r);if(S6(e))return function QC(e,r){return new de(function(t){var n;return zi(t,r,function(){n=e[M6](),zi(t,r,function(){var i,a;try{var o=n.next();i=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(i)},0,!0)}),function(){return at(null==n?void 0:n.return)&&n.return()}})}(e,r);if(x6(e))return function XC(e,r){return F6(D6(e),r)}(e,r)}throw k6(e)}(e,r):Fn(e)}function ko(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Js(r),i=qC(r,1/0),a=r;return a.length?1===a.length?Fn(a[0]):T6(i)(Ai(a,n)):Sc}function Tr(e){return e<=0?function(){return Sc}:un(function(r,t){var n=0;r.subscribe(new Nt(t,function(i){++n<=e&&(t.next(i),e<=n&&t.complete())}))})}function x4(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.connector,t=void 0===r?function(){return new _e}:r,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,o=void 0===a||a,s=e.resetOnRefCountZero,l=void 0===s||s;return function(c){var u=null,d=null,f=null,p=0,g=!1,m=!1,C=function(){null==d||d.unsubscribe(),d=null},D=function(){C(),u=f=null,g=m=!1},x=function(){var V=u;D(),null==V||V.unsubscribe()};return un(function(F,V){p++,!m&&!g&&C();var ne=f=null!=f?f:t();V.add(function(){0==--p&&!m&&!g&&(d=E4(x,l))}),ne.subscribe(V),u||(u=new _4({next:function(Te){return ne.next(Te)},error:function(Te){m=!0,C(),d=E4(D,i,Te),ne.error(Te)},complete:function(){g=!0,C(),d=E4(D,o),ne.complete()}}),Ai(F).subscribe(u))})(c)}}function E4(e,r){if(!0===r)return e(),null;if(!1===r)return null;for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i<t;i++)n[i-2]=arguments[i];return r.apply(void 0,n).pipe(Tr(1)).subscribe(function(){return e()})}function _t(e){for(var r in e)if(e[r]===_t)return r;throw Error("Could not find renamed property on target object.")}function T4(e,r){for(var t in r)r.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=r[t])}function vt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(vt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var r=e.toString();if(null==r)return""+r;var t=r.indexOf("\n");return-1===t?r:r.substring(0,t)}function z4(e,r){return null==e||""===e?null===r?"":r:null==r||""===r?e:e+" "+r}var eb=_t({__forward_ref__:_t});function wt(e){return e.__forward_ref__=wt,e.toString=function(){return vt(this())},e}function je(e){return I6(e)?e():e}function I6(e){return"function"==typeof e&&e.hasOwnProperty(eb)&&e.__forward_ref__===wt}var ot=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this,function A4(e,r){var t="NG0".concat(Math.abs(e));return"".concat(t).concat(r?": "+r:"")}(n,i))).code=n,a}return h(t)}(it(Error));function Oe(e){return"string"==typeof e?e:null==e?"":String(e)}function qn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Oe(e)}function Dc(e,r){var t=r?" in ".concat(r):"";throw new ot(-201,"No provider for ".concat(qn(e)," found").concat(t))}function hr(e,r){null==e&&function Tt(e,r,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(r," <=Actual]")))}(r,e,null,"!=")}function H(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Le(e){return{providers:e.providers||[],imports:e.imports||[]}}function P4(e){return L6(e,xc)||L6(e,V6)}function L6(e,r){return e.hasOwnProperty(r)?e[r]:null}function H6(e){return e&&(e.hasOwnProperty(O4)||e.hasOwnProperty(sb))?e[O4]:null}var F4,xc=_t({"\u0275prov":_t}),O4=_t({"\u0275inj":_t}),V6=_t({ngInjectableDef:_t}),sb=_t({ngInjectorDef:_t}),Ue=function(){return(Ue=Ue||{})[Ue.Default=0]="Default",Ue[Ue.Host=1]="Host",Ue[Ue.Self=2]="Self",Ue[Ue.SkipSelf=4]="SkipSelf",Ue[Ue.Optional=8]="Optional",Ue}();function lb(){return F4}function Ji(e){var r=F4;return F4=e,r}function R6(e,r,t){var n=P4(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&Ue.Optional?null:void 0!==r?r:void Dc(vt(e),"Injector")}function ea(e){return{toString:e}.toString()}var Gr=function(){return(Gr=Gr||{})[Gr.OnPush=0]="OnPush",Gr[Gr.Default=1]="Default",Gr}(),Wr=function(){return function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Wr||(Wr={})),Wr}(),cb="undefined"!=typeof globalThis&&globalThis,ub="undefined"!=typeof window&&window,db="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fb="undefined"!=typeof global&&global,mt=cb||fb||ub||db,Mo={},Ct=[],Ec=_t({"\u0275cmp":_t}),I4=_t({"\u0275dir":_t}),L4=_t({"\u0275pipe":_t}),N6=_t({"\u0275mod":_t}),Oi=_t({"\u0275fac":_t}),el=_t({__NG_ELEMENT_ID__:_t}),hb=0;function ct(e){return ea(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Gr.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ct,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Wr.Emulated,id:"c",styles:e.styles||Ct,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,a=e.features,o=e.pipes;return n.id+=hb++,n.inputs=U6(e.inputs,t),n.outputs=U6(e.outputs),a&&a.forEach(function(s){return s(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(B6)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Y6)}:null,n})}function B6(e){return In(e)||function ta(e){return e[I4]||null}(e)}function Y6(e){return function Oa(e){return e[L4]||null}(e)}var j6={};function Ne(e){return ea(function(){var r={type:e.type,bootstrap:e.bootstrap||Ct,declarations:e.declarations||Ct,imports:e.imports||Ct,exports:e.exports||Ct,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(j6[e.id]=e.type),r})}function U6(e,r){if(null==e)return Mo;var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),t[i]=n,r&&(r[i]=a)}return t}var U=ct;function Ot(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function In(e){return e[Ec]||null}function zr(e,r){var t=e[N6]||null;if(!t&&!0===r)throw new Error("Type ".concat(vt(e)," does not have '\u0275mod' property."));return t}function ci(e){return Array.isArray(e)&&"object"==typeof e[1]}function $r(e){return Array.isArray(e)&&!0===e[1]}function R4(e){return 0!=(8&e.flags)}function Pc(e){return 2==(2&e.flags)}function Oc(e){return 1==(1&e.flags)}function Kr(e){return null!==e.template}function _b(e){return 0!=(512&e[2])}function Ha(e,r){return e.hasOwnProperty(Oi)?e[Oi]:null}var W6=function(){function e(r,t,n){v(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}return h(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Mt(){return q6}function q6(e){return e.type.prototype.ngOnChanges&&(e.setInput=kb),wb}function wb(){var e=K6(this),r=null==e?void 0:e.current;if(r){var t=e.previous;if(t===Mo)e.previous=r;else for(var n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function kb(e,r,t,n){var i=K6(e)||function Mb(e,r){return e[$6]=r}(e,{previous:Mo,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[t],l=o[s];a[s]=new W6(l&&l.currentValue,r,o===Mo),e[n]=r}Mt.ngInherit=!0;var $6="__ngSimpleChanges__";function K6(e){return e[$6]||null}var U4=void 0;function G4(){return void 0!==U4?U4:"undefined"!=typeof document?document:void 0}function Gt(e){return!!e.listen}var Z6={createRenderer:function(r,t){return G4()}};function dn(e){for(;Array.isArray(e);)e=e[0];return e}function Fc(e,r){return dn(r[e])}function Or(e,r){return dn(r[e.index])}function W4(e,r){return e.data[r]}function To(e,r){return e[r]}function pr(e,r){var t=r[e];return ci(t)?t:t[0]}function Q6(e){return 4==(4&e[2])}function q4(e){return 128==(128&e[2])}function na(e,r){return null==r?null:e[r]}function X6(e){e[18]=0}function $4(e,r){e[5]+=r;for(var t=e,n=e[3];null!==n&&(1===r&&1===t[5]||-1===r&&0===t[5]);)n[5]+=r,t=n,n=n[3]}var xe={lFrame:lf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function J6(){return xe.bindingsEnabled}function Y(){return xe.lFrame.lView}function st(){return xe.lFrame.tView}function Q(e){return xe.lFrame.contextLView=e,e[8]}function yn(){for(var e=ef();null!==e&&64===e.type;)e=e.parent;return e}function ef(){return xe.lFrame.currentTNode}function ui(e,r){var t=xe.lFrame;t.currentTNode=e,t.isParent=r}function K4(){return xe.lFrame.isParent}function Z4(){xe.lFrame.isParent=!1}function Ic(){return xe.isInCheckNoChangesMode}function Lc(e){xe.isInCheckNoChangesMode=e}function $n(){var e=xe.lFrame,r=e.bindingRootIndex;return-1===r&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function Fi(){return xe.lFrame.bindingIndex}function zo(){return xe.lFrame.bindingIndex++}function Ii(e){var r=xe.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}function Bb(e,r){var t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Q4(r)}function Q4(e){xe.lFrame.currentDirectiveIndex=e}function X4(e){var r=xe.lFrame.currentDirectiveIndex;return-1===r?null:e[r]}function rf(){return xe.lFrame.currentQueryIndex}function J4(e){xe.lFrame.currentQueryIndex=e}function jb(e){var r=e[1];return 2===r.type?r.declTNode:1===r.type?e[6]:null}function af(e,r,t){if(t&Ue.SkipSelf){for(var n=r,i=e;!(null!==(n=n.parent)||t&Ue.Host||null===(n=jb(i))||(i=i[15],10&n.type)););if(null===n)return!1;r=n,e=i}var a=xe.lFrame=sf();return a.currentTNode=r,a.lView=e,!0}function Hc(e){var r=sf(),t=e[1];xe.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function sf(){var e=xe.lFrame,r=null===e?null:e.child;return null===r?lf(e):r}function lf(e){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=r),r}function cf(){var e=xe.lFrame;return xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var uf=cf;function Vc(){var e=cf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ub(e){var r=xe.lFrame.contextLView=function Gb(e,r){for(;e>0;)r=r[15],e--;return r}(e,xe.lFrame.contextLView);return r[8]}function Kn(){return xe.lFrame.selectedIndex}function ra(e){xe.lFrame.selectedIndex=e}function Wt(){var e=xe.lFrame;return W4(e.tView,e.selectedIndex)}function Rc(e,r){for(var t=r.directiveStart,n=r.directiveEnd;t<n;t++){var a=e.data[t].type.prototype,o=a.ngAfterContentInit,s=a.ngAfterContentChecked,l=a.ngAfterViewInit,c=a.ngAfterViewChecked,u=a.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-t,o),s&&((e.contentHooks||(e.contentHooks=[])).push(t,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,s)),l&&(e.viewHooks||(e.viewHooks=[])).push(-t,l),c&&((e.viewHooks||(e.viewHooks=[])).push(t,c),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,c)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function Nc(e,r,t){df(e,r,3,t)}function Bc(e,r,t,n){(3&e[2])===t&&df(e,r,t,n)}function e2(e,r){var t=e[2];(3&t)===r&&(t&=2047,e[2]=t+=1)}function df(e,r,t,n){for(var a=null!=n?n:-1,o=r.length-1,s=0,l=void 0!==n?65535&e[18]:0;l<o;l++)if("number"==typeof r[l+1]){if(s=r[l],null!=n&&s>=n)break}else r[l]<0&&(e[18]+=65536),(s<a||-1==a)&&(Xb(e,t,r,l),e[18]=(4294901760&e[18])+l+2),l++}function Xb(e,r,t,n){var i=t[n]<0,a=t[n+1],s=e[i?-t[n]:t[n]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===r){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var al=h(function e(r,t,n){v(this,e),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n});function Yc(e,r,t){for(var n=Gt(e),i=0;i<t.length;){var a=t[i];if("number"==typeof a){if(0!==a)break;i++;var o=t[i++],s=t[i++],l=t[i++];n?e.setAttribute(r,s,l,o):r.setAttributeNS(o,s,l)}else{var c=a,u=t[++i];n2(c)?n&&e.setProperty(r,c,u):n?e.setAttribute(r,c,u):r.setAttribute(c,u),i++}}return i}function ff(e){return 3===e||4===e||6===e}function n2(e){return 64===e.charCodeAt(0)}function jc(e,r){if(null!==r&&0!==r.length)if(null===e||0===e.length)e=r.slice();else for(var t=-1,n=0;n<r.length;n++){var i=r[n];"number"==typeof i?t=i:0===t||hf(e,t,i,null,-1===t||2===t?r[++n]:null)}return e}function hf(e,r,t,n,i){var a=0,o=e.length;if(-1===r)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===r){o=-1;break}if(s>r){o=a-1;break}}}for(;a<e.length;){var l=e[a];if("number"==typeof l)break;if(l===t){if(null===n)return void(null!==i&&(e[a+1]=i));if(n===e[a+1])return void(e[a+2]=i)}a++,null!==n&&a++,null!==i&&a++}-1!==o&&(e.splice(o,0,r),a=o+1),e.splice(a++,0,t),null!==n&&e.splice(a++,0,n),null!==i&&e.splice(a++,0,i)}function vf(e){return-1!==e}function Ao(e){return 32767&e}function Po(e,r){for(var t=function rw(e){return e>>16}(e),n=r;t>0;)n=n[15],t--;return n}var r2=!0;function Uc(e){var r=r2;return r2=e,r}var aw=0;function sl(e,r){var t=o2(e,r);if(-1!==t)return t;var n=r[1];n.firstCreatePass&&(e.injectorIndex=r.length,a2(n.data,e),a2(r,null),a2(n.blueprint,null));var i=Gc(e,r),a=e.injectorIndex;if(vf(i))for(var o=Ao(i),s=Po(i,r),l=s[1].data,c=0;c<8;c++)r[a+c]=s[o+c]|l[o+c];return r[a+8]=i,a}function a2(e,r){e.push(0,0,0,0,0,0,0,0,r)}function o2(e,r){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===r[e.injectorIndex+8]?-1:e.injectorIndex}function Gc(e,r){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,i=r;null!==i;){var a=i[1],o=a.type;if(null===(n=2===o?a.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function Wc(e,r,t){!function ow(e,r,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(el)&&(n=t[el]),null==n&&(n=t[el]=aw++);var i=255&n;r.data[e+(i>>5)]|=1<<i}(e,r,t)}function mf(e,r,t){if(t&Ue.Optional)return e;Dc(r,"NodeInjector")}function yf(e,r,t,n){if(t&Ue.Optional&&void 0===n&&(n=null),0==(t&(Ue.Self|Ue.Host))){var i=e[9],a=Ji(void 0);try{return i?i.get(r,n,t&Ue.Optional):R6(r,n,t&Ue.Optional)}finally{Ji(a)}}return mf(n,r,t)}function _f(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=uw(t);if("function"==typeof a){if(!af(r,e,n))return n&Ue.Host?mf(i,t,n):yf(r,t,n,i);try{var o=a(n);if(null!=o||n&Ue.Optional)return o;Dc(t)}finally{uf()}}else if("number"==typeof a){var s=null,l=o2(e,r),c=-1,u=n&Ue.Host?r[16][6]:null;for((-1===l||n&Ue.SkipSelf)&&(-1!==(c=-1===l?Gc(e,r):r[l+8])&&wf(n,!1)?(s=r[1],l=Ao(c),r=Po(c,r)):l=-1);-1!==l;){var d=r[1];if(bf(a,l,d.data)){var f=cw(l,r,t,s,n,u);if(f!==Cf)return f}-1!==(c=r[l+8])&&wf(n,r[1].data[l+8]===u)&&bf(a,l,r)?(s=d,l=Ao(c),r=Po(c,r)):l=-1}}}return yf(r,t,n,i)}var Cf={};function lw(){return new Oo(yn(),Y())}function cw(e,r,t,n,i,a){var o=r[1],s=o.data[e+8],u=qc(s,o,t,null==n?Pc(s)&&r2:n!=o&&0!=(3&s.type),i&Ue.Host&&a===s);return null!==u?ll(r,o,u,s):Cf}function qc(e,r,t,n,i){for(var a=e.providerIndexes,o=r.data,s=1048575&a,l=e.directiveStart,u=a>>20,f=i?s+u:e.directiveEnd,p=n?s:s+u;p<f;p++){var g=o[p];if(p<l&&t===g||p>=l&&g.type===t)return p}if(i){var m=o[l];if(m&&Kr(m)&&m.type===t)return l}return null}function ll(e,r,t,n){var i=e[t],a=r.data;if(function Jb(e){return e instanceof al}(i)){var o=i;o.resolving&&function tb(e,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(e):"";throw new ot(-200,"Circular dependency in DI detected for ".concat(e).concat(t))}(qn(a[t]));var s=Uc(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?Ji(o.injectImpl):null;af(e,n,Ue.Default);try{i=e[t]=o.factory(void 0,a,e,n),r.firstCreatePass&&t>=n.directiveStart&&function Qb(e,r,t){var n=r.type.prototype,a=n.ngOnInit,o=n.ngDoCheck;if(n.ngOnChanges){var s=q6(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,a[t],r)}finally{null!==l&&Ji(l),Uc(s),o.resolving=!1,uf()}}return i}function uw(e){if("string"==typeof e)return e.charCodeAt(0)||0;var r=e.hasOwnProperty(el)?e[el]:void 0;return"number"==typeof r?r>=0?255&r:lw:r}function bf(e,r,t){return!!(t[r+(e>>5)]&1<<e)}function wf(e,r){return!(e&Ue.Self||e&Ue.Host&&r)}var Oo=function(){function e(r,t){v(this,e),this._tNode=r,this._lView=t}return h(e,[{key:"get",value:function(t,n,i){return _f(this._tNode,this._lView,t,i,n)}}]),e}();function ve(e){return ea(function(){for(var r=e.prototype.constructor,t=r[Oi]||s2(r),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;i&&i!==n;){var a=i[Oi]||s2(i);if(a&&a!==t)return a;i=Object.getPrototypeOf(i)}return function(o){return new o}})}function s2(e){return I6(e)?function(){var r=s2(je(e));return r&&r()}:Ha(e)}var Io="__parameters__";function Ho(e,r,t){return ea(function(){var n=function c2(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(r);function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(this instanceof i)return n.apply(this,o),this;var l=ln(i,o);return c.annotation=l,c;function c(u,d,f){for(var p=u.hasOwnProperty(Io)?u[Io]:Object.defineProperty(u,Io,{value:[]})[Io];p.length<=f;)p.push(null);return(p[f]=p[f]||[]).push(l),u}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var re=function(){function e(r,t){v(this,e),this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=H({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return h(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}();function Fr(e,r){void 0===r&&(r=e);for(var t=0;t<e.length;t++){var n=e[t];Array.isArray(n)?(r===e&&(r=e.slice(0,t)),Fr(n,r)):r!==e&&r.push(n)}return r}function di(e,r){e.forEach(function(t){return Array.isArray(t)?di(t,r):r(t)})}function Mf(e,r,t){r>=e.length?e.push(t):e.splice(r,0,t)}function $c(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function dl(e,r){for(var t=[],n=0;n<e;n++)t.push(r);return t}function gr(e,r,t){var n=Vo(e,r);return n>=0?e[1|n]=t:function vw(e,r,t,n){var i=e.length;if(i==r)e.push(t,n);else if(1===i)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;)e[i]=e[i-2],i--;e[r]=t,e[r+1]=n}}(e,n=~n,r,t),n}function d2(e,r){var t=Vo(e,r);if(t>=0)return e[1|t]}function Vo(e,r){return function xf(e,r,t){for(var n=0,i=e.length>>t;i!==n;){var a=n+(i-n>>1),o=e[a<<t];if(r===o)return a<<t;o>r?i=a:n=a+1}return~(i<<t)}(e,r,1)}var fl={},h2="__NG_DI_FLAG__",Zc="ngTempTokenPath",ww=/\n/gm,Tf="__source",Mw=_t({provide:String,useValue:_t}),hl=void 0;function zf(e){var r=hl;return hl=e,r}function Sw(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default;if(void 0===hl){var t="";throw new ot(203,t)}return null===hl?R6(e,void 0,r):hl.get(e,r&Ue.Optional?null:void 0,r)}function T(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default;return(lb()||Sw)(je(e),r)}var v2=T;function p2(e){for(var r=[],t=0;t<e.length;t++){var n=je(e[t]);if(Array.isArray(n)){if(0===n.length)throw new ot(900,"");for(var a=void 0,o=Ue.Default,s=0;s<n.length;s++){var l=n[s],c=Dw(l);"number"==typeof c?-1===c?a=l.token:o|=c:a=l}r.push(T(a,o))}else r.push(T(n))}return r}function vl(e,r){return e[h2]=r,e.prototype[h2]=r,e}function Dw(e){return e[h2]}function xw(e,r,t,n){var i=e[Zc];throw r[Tf]&&i.unshift(r[Tf]),e.message=function Ew(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=vt(r);if(Array.isArray(r))i=r.map(vt).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):vt(s)))}i="{".concat(a.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(i,"]: ").concat(e.replace(ww,"\n  "))}("\n"+e.message,i,t,n),e.ngTokenPath=i,e[Zc]=null,e}var Jc,eu,Qc=vl(Ho("Inject",function(e){return{token:e}}),-1),Ro=vl(Ho("Optional"),8),pl=vl(Ho("SkipSelf"),4);function Bo(e){var r;return(null===(r=function m2(){if(void 0===Jc&&(Jc=null,mt.trustedTypes))try{Jc=mt.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return Jc}())||void 0===r?void 0:r.createHTML(e))||e}function y2(){if(void 0===eu&&(eu=null,mt.trustedTypes))try{eu=mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(e){}return eu}function Lf(e){var r;return(null===(r=y2())||void 0===r?void 0:r.createHTML(e))||e}function Vf(e){var r;return(null===(r=y2())||void 0===r?void 0:r.createScriptURL(e))||e}var Va=function(){function e(r){v(this,e),this.changingThisBreaksApplicationSecurity=r}return h(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Rw=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(Va),Nw=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(Va),Bw=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(Va),Yw=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(Va),jw=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(Va);function mr(e){return e instanceof Va?e.changingThisBreaksApplicationSecurity:e}function fi(e,r){var t=Rf(e);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function Rf(e){return e instanceof Va&&e.getTypeName()||null}var Kw=function(){function e(r){v(this,e),this.inertDocumentHelper=r}return h(e,[{key:"getInertBodyElement",value:function(t){t="<body><remove></remove>"+t;try{var n=(new window.DOMParser).parseFromString(Bo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(i){return null}}}]),e}(),Zw=function(){function e(r){if(v(this,e),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return h(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Bo(t),n;var i=this.inertDocument.createElement("body");return i.innerHTML=Bo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,i=n.length-1;0<i;i--){var o=n.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}for(var s=t.firstChild;s;)s.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(s),s=s.nextSibling}}]),e}(),Xw=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Jw=/^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 ml(e){return(e=String(e)).match(Xw)||e.match(Jw)?e:"unsafe:"+e}function Bf(e){return(e=String(e)).split(",").map(function(r){return ml(r.trim())}).join(", ")}function hi(e){var n,r={},t=lt(e.split(","));try{for(t.s();!(n=t.n()).done;)r[n.value]=!0}catch(a){t.e(a)}finally{t.f()}return r}function yl(){for(var e={},r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];for(var i=0,a=t;i<a.length;i++){var o=a[i];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var tu,Yf=hi("area,br,col,hr,img,wbr"),jf=hi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Uf=hi("rp,rt"),ek=yl(Uf,jf),_2=yl(Yf,yl(jf,hi("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")),yl(Uf,hi("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")),ek),C2=hi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),b2=hi("srcset"),Gf=yl(C2,b2,hi("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"),hi("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")),ak=hi("script,style,template"),ok=function(){function e(){v(this,e),this.sanitizedSomething=!1,this.buf=[]}return h(e,[{key:"sanitizeChildren",value:function(t){for(var n=t.firstChild,i=!0;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);var a=this.checkClobberedElement(n,n.nextSibling);if(a){n=a;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var n=t.nodeName.toLowerCase();if(!_2.hasOwnProperty(n))return this.sanitizedSomething=!0,!ak.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=t.attributes,a=0;a<i.length;a++){var o=i.item(a),s=o.name,l=s.toLowerCase();if(Gf.hasOwnProperty(l)){var c=o.value;C2[l]&&(c=ml(c)),b2[l]&&(c=Bf(c)),this.buf.push(" ",s,'="',Wf(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();_2.hasOwnProperty(n)&&!Yf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(Wf(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),sk=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lk=/([^\#-~ |!])/g;function Wf(e){return e.replace(/&/g,"&amp;").replace(sk,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(lk,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qf(e,r){var t=null;try{tu=tu||function Nf(e){var r=new Zw(e);return function Qw(){try{return!!(new window.DOMParser).parseFromString(Bo(""),"text/html")}catch(e){return!1}}()?new Kw(r):r}(e);var n=r?String(r):"";t=tu.getInertBodyElement(n);var i=5,a=n;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,n=a,a=t.innerHTML,t=tu.getInertBodyElement(n)}while(n!==a);return Bo((new ok).sanitizeChildren(w2(t)||t))}finally{if(t)for(var l=w2(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function w2(e){return"content"in e&&function ck(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yt=function(){return(yt=yt||{})[yt.NONE=0]="NONE",yt[yt.HTML=1]="HTML",yt[yt.STYLE=2]="STYLE",yt[yt.SCRIPT=3]="SCRIPT",yt[yt.URL=4]="URL",yt[yt.RESOURCE_URL=5]="RESOURCE_URL",yt}();function vi(e){var r=_l();return r?Lf(r.sanitize(yt.HTML,e)||""):fi(e,"HTML")?Lf(mr(e)):qf(G4(),Oe(e))}function $f(e){var r=_l();return r?r.sanitize(yt.STYLE,e)||"":fi(e,"Style")?mr(e):Oe(e)}function qt(e){var r=_l();return r?r.sanitize(yt.URL,e)||"":fi(e,"URL")?mr(e):ml(Oe(e))}function k2(e){var r=_l();if(r)return Vf(r.sanitize(yt.RESOURCE_URL,e)||"");if(fi(e,"ResourceURL"))return Vf(mr(e));throw new ot(904,"")}function _l(){var e=Y();return e&&e[12]}var Zf="__ngContext__";function Hn(e,r){e[Zf]=r}function S2(e){var r=function Cl(e){return e[Zf]||null}(e);return r?Array.isArray(r)?r:r.lView:null}function x2(e){return e.ngOriginalError}function Mk(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var Ra=function(){function e(){v(this,e),this._console=console}return h(e,[{key:"handleError",value:function(t){var n=this._findOriginalError(t),i=function kk(e){return e&&e.ngErrorLogger||Mk}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}},{key:"_findOriginalError",value:function(t){for(var n=t&&x2(t);n&&x2(n);)n=x2(n);return n||null}}]),e}(),th=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(mt)}();function pi(e){return e instanceof Function?e():e}var yr=function(){return(yr=yr||{})[yr.Important=1]="Important",yr[yr.DashCase=2]="DashCase",yr}();function T2(e,r){return undefined(e,r)}function bl(e){var r=e[3];return $r(r)?r[3]:r}function z2(e){return oh(e[13])}function A2(e){return oh(e[4])}function oh(e){for(;null!==e&&!$r(e);)e=e[4];return e}function jo(e,r,t,n,i){if(null!=n){var a,o=!1;$r(n)?a=n:ci(n)&&(o=!0,n=n[0]);var s=dn(n);0===e&&null!==t?null==i?fh(r,t,s):Na(r,t,s,i||null,!0):1===e&&null!==t?Na(r,t,s,i||null,!0):2===e?function _h(e,r,t){var n=nu(e,r);n&&function qk(e,r,t,n){Gt(e)?e.removeChild(r,t,n):r.removeChild(t)}(e,n,r,t)}(r,s,o):3===e&&r.destroyNode(s),null!=a&&function Zk(e,r,t,n,i){var a=t[7];a!==dn(t)&&jo(r,e,n,a,i);for(var s=10;s<t.length;s++){var l=t[s];wl(l[1],l,e,r,n,a)}}(r,e,a,t,i)}}function P2(e,r){return Gt(e)?e.createText(r):e.createTextNode(r)}function O2(e,r,t){if(Gt(e))return e.createElement(r,t);var n=null!==t?function Eb(e){var r=e.toLowerCase();return"svg"===r?"http://www.w3.org/2000/svg":"math"===r?"http://www.w3.org/1998/MathML/":null}(t):null;return null===n?e.createElement(r):e.createElementNS(n,r)}function lh(e,r){var t=e[9],n=t.indexOf(r),i=r[3];1024&r[2]&&(r[2]&=-1025,$4(i,-1)),t.splice(n,1)}function F2(e,r){if(!(e.length<=10)){var t=10+r,n=e[t];if(n){var i=n[17];null!==i&&i!==e&&lh(i,n),r>0&&(e[t-1][4]=n[4]);var a=$c(e,10+r);!function Rk(e,r){wl(e,r,r[11],2,null,null),r[0]=null,r[6]=null}(n[1],n);var o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function ch(e,r){if(!(256&r[2])){var t=r[11];Gt(t)&&t.destroyNode&&wl(e,r,t,3,null,null),function Yk(e){var r=e[13];if(!r)return I2(e[1],e);for(;r;){var t=null;if(ci(r))t=r[13];else{var n=r[10];n&&(t=n)}if(!t){for(;r&&!r[4]&&r!==e;)ci(r)&&I2(r[1],r),r=r[3];null===r&&(r=e),ci(r)&&I2(r[1],r),t=r&&r[4]}r=t}}(r)}}function I2(e,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function Wk(e,r){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n<t.length;n+=2){var i=r[t[n]];if(!(i instanceof al)){var a=t[n+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2){var s=i[a[o]],l=a[o+1];try{l.call(s)}finally{}}else try{a.call(i)}finally{}}}}(e,r),function Gk(e,r){var t=e.cleanup,n=r[7],i=-1;if(null!==t)for(var a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){var o=t[a+1],s="function"==typeof o?o(r):dn(r[o]),l=n[i=t[a+2]],c=t[a+3];"boolean"==typeof c?s.removeEventListener(t[a],l,c):c>=0?n[i=c]():n[i=-c].unsubscribe(),a+=2}else{var u=n[i=t[a+1]];t[a].call(u)}if(null!==n){for(var d=i+1;d<n.length;d++)(0,n[d])();r[7]=null}}(e,r),1===r[1].type&&Gt(r[11])&&r[11].destroy();var t=r[17];if(null!==t&&$r(r[3])){t!==r[3]&&lh(t,r);var n=r[19];null!==n&&n.detachView(e)}}}function uh(e,r,t){return function dh(e,r,t){for(var n=r;null!==n&&40&n.type;)n=(r=n).parent;if(null===n)return t[0];if(2&n.flags){var i=e.data[n.directiveStart].encapsulation;if(i===Wr.None||i===Wr.Emulated)return null}return Or(n,t)}(e,r.parent,t)}function Na(e,r,t,n,i){Gt(e)?e.insertBefore(r,t,n,i):r.insertBefore(t,n,i)}function fh(e,r,t){Gt(e)?e.appendChild(r,t):r.appendChild(t)}function hh(e,r,t,n,i){null!==n?Na(e,r,t,n,i):fh(e,r,t)}function nu(e,r){return Gt(e)?e.parentNode(r):r.parentNode}function vh(e,r,t){return gh(e,r,t)}var gh=function ph(e,r,t){return 40&e.type?Or(e,t):null};function ru(e,r,t,n){var i=uh(e,n,r),a=r[11],s=vh(n.parent||r[6],n,r);if(null!=i)if(Array.isArray(t))for(var l=0;l<t.length;l++)hh(a,i,t[l],s,!1);else hh(a,i,t,s,!1)}function iu(e,r){if(null!==r){var t=r.type;if(3&t)return Or(r,e);if(4&t)return H2(-1,e[r.index]);if(8&t){var n=r.child;if(null!==n)return iu(e,n);var i=e[r.index];return $r(i)?H2(-1,i):dn(i)}if(32&t)return T2(r,e)()||dn(e[r.index]);var s=yh(e,r);return null!==s?Array.isArray(s)?s[0]:iu(bl(e[16]),s):iu(e,r.next)}return null}function yh(e,r){return null!==r?e[16][6].projection[r.projection]:null}function H2(e,r){var t=10+e+1;if(t<r.length){var n=r[t],i=n[1].firstChild;if(null!==i)return iu(n,i)}return r[7]}function V2(e,r,t,n,i,a,o){for(;null!=t;){var s=n[t.index],l=t.type;if(o&&0===r&&(s&&Hn(dn(s),n),t.flags|=4),64!=(64&t.flags))if(8&l)V2(e,r,t.child,n,i,a,!1),jo(r,e,i,s,a);else if(32&l){for(var c=T2(t,n),u=void 0;u=c();)jo(r,e,i,u,a);jo(r,e,i,s,a)}else 16&l?Ch(e,r,n,t,i,a):jo(r,e,i,s,a);t=o?t.projectionNext:t.next}}function wl(e,r,t,n,i,a){V2(t,n,e.firstChild,r,i,a,!1)}function Kk(e,r,t){Ch(r[11],0,r,t,uh(e,t,r),vh(t.parent||r[6],t,r))}function Ch(e,r,t,n,i,a){var o=t[16],l=o[6].projection[n.projection];if(Array.isArray(l))for(var c=0;c<l.length;c++)jo(r,e,i,l[c],a);else V2(e,r,l,o[3],i,a,!0)}function bh(e,r,t){Gt(e)?e.setAttribute(r,"style",t):r.style.cssText=t}function R2(e,r,t){Gt(e)?""===t?e.removeAttribute(r,"class"):e.setAttribute(r,"class",t):r.className=t}function wh(e,r,t){for(var n=e.length;;){var i=e.indexOf(r,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var a=r.length;if(i+a===n||e.charCodeAt(i+a)<=32)return i}t=i+1}}var kh="ng-template";function Xk(e,r,t){for(var n=0;n<e.length;){var i=e[n++];if(t&&"class"===i){if(-1!==wh((i=e[n]).toLowerCase(),r,0))return!0}else if(1===i){for(;n<e.length&&"string"==typeof(i=e[n++]);)if(i.toLowerCase()===r)return!0;return!1}}return!1}function Mh(e){return 4===e.type&&e.value!==kh}function Jk(e,r,t){return r===(4!==e.type||t?e.value:kh)}function eM(e,r,t){for(var n=4,i=e.attrs||[],a=function rM(e){for(var r=0;r<e.length;r++)if(ff(e[r]))return r;return e.length}(i),o=!1,s=0;s<r.length;s++){var l=r[s];if("number"!=typeof l){if(!o)if(4&n){if(n=2|1&n,""!==l&&!Jk(e,l,t)||""===l&&1===r.length){if(Zr(n))return!1;o=!0}}else{var c=8&n?l:r[++s];if(8&n&&null!==e.attrs){if(!Xk(e.attrs,c,t)){if(Zr(n))return!1;o=!0}continue}var d=tM(8&n?"class":l,i,Mh(e),t);if(-1===d){if(Zr(n))return!1;o=!0;continue}if(""!==c){var f;f=d>a?"":i[d+1].toLowerCase();var p=8&n?f:null;if(p&&-1!==wh(p,c,0)||2&n&&c!==f){if(Zr(n))return!1;o=!0}}}}else{if(!o&&!Zr(n)&&!Zr(l))return!1;if(o&&Zr(l))continue;o=!1,n=l|1&n}}return Zr(n)||o}function Zr(e){return 0==(1&e)}function tM(e,r,t,n){if(null===r)return-1;var i=0;if(n||!t){for(var a=!1;i<r.length;){var o=r[i];if(o===e)return i;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=r[++i];"string"==typeof s;)s=r[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=a?1:2}return-1}return function iM(e,r){var t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){var n=e[t];if("number"==typeof n)return-1;if(n===r)return t;t++}return-1}(r,e)}function Sh(e,r){for(var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<r.length;n++)if(eM(e,r[n],t))return!0;return!1}function aM(e,r){e:for(var t=0;t<r.length;t++){var n=r[t];if(e.length===n.length){for(var i=0;i<e.length;i++)if(e[i]!==n[i])continue e;return!0}}return!1}function Dh(e,r){return e?":not("+r.trim()+")":r}function oM(e){for(var r=e[0],t=1,n=2,i="",a=!1;t<e.length;){var o=e[t];if("string"==typeof o)if(2&n){var s=e[++t];i+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""!==i&&!Zr(o)&&(r+=Dh(a,i),i=""),n=o,a=a||!Zr(n);t++}return""!==i&&(r+=Dh(a,i)),r}var Fe={};function w(e){xh(st(),Y(),Kn()+e,Ic())}function xh(e,r,t,n){if(!n)if(3==(3&r[2])){var a=e.preOrderCheckHooks;null!==a&&Nc(r,a,t)}else{var o=e.preOrderHooks;null!==o&&Bc(r,o,0,t)}ra(t)}function au(e,r){return e<<17|r<<2}function Qr(e){return e>>17&32767}function N2(e){return 2|e}function Li(e){return(131068&e)>>2}function B2(e,r){return-131069&e|r<<2}function Y2(e){return 1|e}function Vh(e,r){var t=e.contentQueries;if(null!==t)for(var n=0;n<t.length;n+=2){var a=t[n+1];if(-1!==a){var o=e.data[a];J4(t[n]),o.contentQueries(2,r[a],a)}}}function kl(e,r,t,n,i,a,o,s,l,c){var u=r.blueprint.slice();return u[0]=i,u[2]=140|n,X6(u),u[3]=u[15]=e,u[8]=t,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=a,u[16]=2==r.type?e[16]:u,u}function Uo(e,r,t,n,i){var a=e.data[r];if(null===a)a=function Q2(e,r,t,n,i){var a=ef(),o=K4(),l=e.data[r]=function MM(e,r,t,n,i,a){return{type:t,index:n,insertBeforeIndex:null,injectorIndex:r?r.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,r,n,i);return null===e.firstChild&&(e.firstChild=l),null!==a&&(o?null==a.child&&null!==l.parent&&(a.child=l):null===a.next&&(a.next=l)),l}(e,r,t,n,i),function Nb(){return xe.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=t,a.value=n,a.attrs=i;var o=function il(){var e=xe.lFrame,r=e.currentTNode;return e.isParent?r:r.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return ui(a,!0),a}function Go(e,r,t,n){if(0===t)return-1;for(var i=r.length,a=0;a<t;a++)r.push(n),e.blueprint.push(n),e.data.push(null);return i}function Ml(e,r,t){Hc(r);try{var n=e.viewQuery;null!==n&&s3(1,n,t);var i=e.template;null!==i&&Rh(e,r,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Vh(e,r),e.staticViewQueries&&s3(2,e.viewQuery,t);var a=e.components;null!==a&&function bM(e,r){for(var t=0;t<r.length;t++)YM(e,r[t])}(r,a)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),o}finally{r[2]&=-5,Vc()}}function Wo(e,r,t,n){var i=r[2];if(256!=(256&i)){Hc(r);var a=Ic();try{X6(r),function tf(e){return xe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Rh(e,r,t,2,n);var o=3==(3&i);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&Nc(r,s,null)}else{var l=e.preOrderHooks;null!==l&&Bc(r,l,0,null),e2(r,0)}if(function NM(e){for(var r=z2(e);null!==r;r=A2(r))if(r[2])for(var t=r[9],n=0;n<t.length;n++){var i=t[n];0==(1024&i[2])&&$4(i[3],1),i[2]|=1024}}(r),function RM(e){for(var r=z2(e);null!==r;r=A2(r))for(var t=10;t<r.length;t++){var n=r[t],i=n[1];q4(n)&&Wo(i,n,i.template,n[8])}}(r),null!==e.contentQueries&&Vh(e,r),!a)if(o){var c=e.contentCheckHooks;null!==c&&Nc(r,c)}else{var u=e.contentHooks;null!==u&&Bc(r,u,1),e2(r,1)}!function _M(e,r){var t=e.hostBindingOpCodes;if(null!==t)try{for(var n=0;n<t.length;n++){var i=t[n];if(i<0)ra(~i);else{var a=i,o=t[++n],s=t[++n];Bb(o,a),s(2,r[a])}}}finally{ra(-1)}}(e,r);var d=e.components;null!==d&&function CM(e,r){for(var t=0;t<r.length;t++)BM(e,r[t])}(r,d);var f=e.viewQuery;if(null!==f&&s3(2,f,n),!a)if(o){var p=e.viewCheckHooks;null!==p&&Nc(r,p)}else{var g=e.viewHooks;null!==g&&Bc(r,g,2),e2(r,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(r[2]&=-73),1024&r[2]&&(r[2]&=-1025,$4(r[3],-1))}finally{Vc()}}}function wM(e,r,t,n){var i=r[10],a=!Ic(),o=Q6(r);try{a&&!o&&i.begin&&i.begin(),o&&Ml(e,r,n),Wo(e,r,t,n)}finally{a&&!o&&i.end&&i.end()}}function Rh(e,r,t,n,i){var a=Kn(),o=2&n;try{ra(-1),o&&r.length>20&&xh(e,r,20,Ic()),t(n,i)}finally{ra(a)}}function Nh(e,r,t){if(R4(r))for(var i=r.directiveEnd,a=r.directiveStart;a<i;a++){var o=e.data[a];o.contentQueries&&o.contentQueries(1,t[a],a)}}function X2(e,r,t){!J6()||(function AM(e,r,t,n){var i=t.directiveStart,a=t.directiveEnd;e.firstCreatePass||sl(t,r),Hn(n,r);for(var o=t.initialInputs,s=i;s<a;s++){var l=e.data[s],c=Kr(l);c&&LM(r,t,l);var u=ll(r,e,s,t);Hn(u,r),null!==o&&HM(0,s-i,u,l,0,o),c&&(pr(t.index,r)[8]=u)}}(e,r,t,Or(t,r)),128==(128&t.flags)&&function PM(e,r,t){var n=t.directiveStart,i=t.directiveEnd,o=t.index,s=function Yb(){return xe.lFrame.currentDirectiveIndex}();try{ra(o);for(var l=n;l<i;l++){var c=e.data[l],u=r[l];Q4(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&$h(c,u)}}finally{ra(-1),Q4(s)}}(e,r,t))}function J2(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Or,n=r.localNames;if(null!==n)for(var i=r.index+1,a=0;a<n.length;a+=2){var o=n[a+1],s=-1===o?t(r,e):e[o];e[i++]=s}}function Bh(e){var r=e.tView;return null===r||r.incompleteFirstPass?e.tView=lu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):r}function lu(e,r,t,n,i,a,o,s,l,c){var u=20+n,d=u+i,f=function kM(e,r){for(var t=[],n=0;n<r;n++)t.push(n<e?null:Fe);return t}(u,d),p="function"==typeof c?c():c;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:s,declTNode:r,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Uh(e,r,t,n){var i=ev(r);null===t?i.push(n):(i.push(t),e.firstCreatePass&&tv(e).push(n,i.length-1))}function Gh(e,r,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];(t=null===t?{}:t).hasOwnProperty(n)?t[n].push(r,i):t[n]=[r,i]}return t}function _r(e,r,t,n,i,a,o,s){var u,l=Or(r,t),c=r.inputs;!s&&null!=c&&(u=c[n])?(iv(e,t,u,n,i),Pc(r)&&function xM(e,r){var t=pr(r,e);16&t[2]||(t[2]|=64)}(t,r.index)):3&r.type&&(n=function DM(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),i=null!=o?o(i,r.value||"",n):i,Gt(a)?a.setProperty(l,n,i):n2(n)||(l.setProperty?l.setProperty(n,i):l[n]=i))}function e3(e,r,t,n){var i=!1;if(J6()){var a=function OM(e,r,t){var n=e.directiveRegistry,i=null;if(n)for(var a=0;a<n.length;a++){var o=n[a];Sh(t,o.selectors,!1)&&(i||(i=[]),Wc(sl(t,r),e,o.type),Kr(o)?(Kh(e,t),i.unshift(o)):i.push(o))}return i}(e,r,t),o=null===n?null:{"":-1};if(null!==a){i=!0,Zh(t,e.data.length,a.length);for(var s=0;s<a.length;s++){var l=a[s];l.providersResolver&&l.providersResolver(l)}for(var c=!1,u=!1,d=Go(e,r,a.length,null),f=0;f<a.length;f++){var p=a[f];t.mergedAttrs=jc(t.mergedAttrs,p.hostAttrs),Qh(e,t,r,d,p),IM(d,p,o),null!==p.contentQueries&&(t.flags|=8),(null!==p.hostBindings||null!==p.hostAttrs||0!==p.hostVars)&&(t.flags|=128);var g=p.type.prototype;!c&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),c=!0),!u&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),u=!0),d++}!function SM(e,r){for(var n=r.directiveEnd,i=e.data,a=r.attrs,o=[],s=null,l=null,c=r.directiveStart;c<n;c++){var u=i[c],d=u.inputs,f=null===a||Mh(r)?null:VM(d,a);o.push(f),s=Gh(d,c,s),l=Gh(u.outputs,c,l)}null!==s&&(s.hasOwnProperty("class")&&(r.flags|=16),s.hasOwnProperty("style")&&(r.flags|=32)),r.initialInputs=o,r.inputs=s,r.outputs=l}(e,t)}o&&function FM(e,r,t){if(r)for(var n=e.localNames=[],i=0;i<r.length;i+=2){var a=t[r[i+1]];if(null==a)throw new ot(-301,!1);n.push(r[i],a)}}(t,n,o)}return t.mergedAttrs=jc(t.mergedAttrs,t.attrs),i}function qh(e,r,t,n,i,a){var o=a.hostBindings;if(o){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~r.index;(function zM(e){for(var r=e.length;r>0;){var t=e[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(n,i,o)}}function $h(e,r){null!==e.hostBindings&&e.hostBindings(1,r)}function Kh(e,r){r.flags|=2,(e.components||(e.components=[])).push(r.index)}function IM(e,r,t){if(t){if(r.exportAs)for(var n=0;n<r.exportAs.length;n++)t[r.exportAs[n]]=e;Kr(r)&&(t[""]=e)}}function Zh(e,r,t){e.flags|=1,e.directiveStart=r,e.directiveEnd=r+t,e.providerIndexes=r}function Qh(e,r,t,n,i){e.data[n]=i;var a=i.factory||(i.factory=Ha(i.type)),o=new al(a,Kr(i),null);e.blueprint[n]=o,t[n]=o,qh(e,r,0,n,Go(e,t,i.hostVars,Fe),i)}function LM(e,r,t){var n=Or(r,e),i=Bh(t),a=e[10],o=cu(e,kl(e,i,null,t.onPush?64:16,n,r,a,a.createRenderer(n,t),null,null));e[r.index]=o}function gi(e,r,t,n,i,a){var o=Or(e,r);!function t3(e,r,t,n,i,a,o){if(null==a)Gt(e)?e.removeAttribute(r,i,t):r.removeAttribute(i);else{var s=null==o?Oe(a):o(a,n||"",i);Gt(e)?e.setAttribute(r,i,s,t):t?r.setAttributeNS(t,i,s):r.setAttribute(i,s)}}(r[11],o,a,e.value,t,n,i)}function HM(e,r,t,n,i,a){var o=a[r];if(null!==o)for(var s=n.setInput,l=0;l<o.length;){var c=o[l++],u=o[l++],d=o[l++];null!==s?n.setInput(t,d,c,u):t[u]=d}}function VM(e,r){for(var t=null,n=0;n<r.length;){var i=r[n];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,e[i],r[n+1])),n+=2}else n+=2;else n+=4}return t}function Xh(e,r,t,n){return new Array(e,!0,!1,r,null,0,n,t,null,null)}function BM(e,r){var t=pr(r,e);if(q4(t)){var n=t[1];80&t[2]?Wo(n,t,n.template,t[8]):t[5]>0&&n3(t)}}function n3(e){for(var r=z2(e);null!==r;r=A2(r))for(var t=10;t<r.length;t++){var n=r[t];if(1024&n[2]){var i=n[1];Wo(i,n,i.template,n[8])}else n[5]>0&&n3(n)}var o=e[1].components;if(null!==o)for(var s=0;s<o.length;s++){var l=pr(o[s],e);q4(l)&&l[5]>0&&n3(l)}}function YM(e,r){var t=pr(r,e),n=t[1];(function jM(e,r){for(var t=r.length;t<e.blueprint.length;t++)r.push(e.blueprint[t])})(n,t),Ml(n,t,t[8])}function cu(e,r){return e[13]?e[14][4]=r:e[13]=r,e[14]=r,r}function r3(e){for(;e;){e[2]|=64;var r=bl(e);if(_b(e)&&!r)return e;e=r}return null}function o3(e,r,t){var n=r[10];n.begin&&n.begin();try{Wo(e,r,e.template,t)}catch(i){throw rv(r,i),i}finally{n.end&&n.end()}}function Jh(e){!function a3(e){for(var r=0;r<e.components.length;r++){var t=e.components[r],n=S2(t),i=n[1];wM(i,n,i.template,t)}}(e[8])}function s3(e,r,t){J4(0),r(e,t)}var qM=function(){return Promise.resolve(null)}();function ev(e){return e[7]||(e[7]=[])}function tv(e){return e.cleanup||(e.cleanup=[])}function nv(e,r,t){return(null===e||Kr(e))&&(t=function Ab(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[r.index])),t[11]}function rv(e,r){var t=e[9],n=t?t.get(Ra,null):null;n&&n.handleError(r)}function iv(e,r,t,n,i){for(var a=0;a<t.length;){var o=t[a++],s=t[a++],l=r[o],c=e.data[o];null!==c.setInput?c.setInput(l,i,n,s):l[s]=i}}function Hi(e,r,t){var n=Fc(r,e);!function sh(e,r,t){Gt(e)?e.setValue(r,t):r.textContent=t}(e[11],n,t)}function uu(e,r,t){var n=t?e.styles:null,i=t?e.classes:null,a=0;if(null!==r)for(var o=0;o<r.length;o++){var s=r[o];"number"==typeof s?a=s:1==a?i=z4(i,s):2==a&&(n=z4(n,s+": "+r[++o]+";"))}t?e.styles=n:e.stylesWithoutHost=n,t?e.classes=i:e.classesWithoutHost=i}var l3=new re("INJECTOR",-1),av=function(){function e(){v(this,e)}return h(e,[{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;if(n===fl){var i=new Error("NullInjectorError: No provider for ".concat(vt(t),"!"));throw i.name="NullInjectorError",i}return n}}]),e}(),c3=new re("Set Injector scope."),Sl={},ZM={},u3=void 0;function ov(){return void 0===u3&&(u3=new av),u3}function sv(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=lv(e,r,t,n);return i._resolveInjectorDefTypes(),i}function lv(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new QM(e,t,r||ov(),n)}var QM=function(){function e(r,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&di(t,function(l){return i.processProvider(l,r,t)}),di([r],function(l){return i.processInjectorType(l,[],o)}),this.records.set(l3,qo(void 0,this));var s=this.records.get(c3);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:vt(r))}return h(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.Default;this.assertNotDestroyed();var a=zf(this),o=Ji(void 0);try{if(!(i&Ue.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=aS(t)&&P4(t);s=l&&this.injectableDefInScope(l)?qo(d3(t),Sl):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var c=i&Ue.Self?ov():this.parent;return c.get(t,n=i&Ue.Optional&&n===fl?null:n)}catch(d){if("NullInjectorError"===d.name){var u=d[Zc]=d[Zc]||[];if(u.unshift(vt(t)),a)throw d;return xw(d,t,"R3InjectorError",this.source)}throw d}finally{Ji(o),zf(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(i,a){return t.push(vt(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new ot(205,!1)}},{key:"processInjectorType",value:function(t,n,i){var a=this;if(!(t=je(t)))return!1;var o=H6(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==i.indexOf(l);if(void 0!==s&&(o=H6(s)),null==o)return!1;if(null!=o.imports&&!d){var f;i.push(l);try{di(o.imports,function(x){a.processInjectorType(x,n,i)&&(void 0===f&&(f=[]),f.push(x))})}finally{}if(void 0!==f)for(var p=function(F){var V=f[F],ne=V.ngModule,te=V.providers;di(te,function(Te){return a.processProvider(Te,ne,te||Ct)})},g=0;g<f.length;g++)p(g)}this.injectorDefTypes.add(l);var m=Ha(l)||function(){return new l};this.records.set(l,qo(m,Sl));var C=o.providers;if(null!=C&&!d){var D=t;di(C,function(x){return a.processProvider(x,D,C)})}return void 0!==s&&void 0!==t.providers}},{key:"processProvider",value:function(t,n,i){var a=$o(t=je(t))?t:je(t&&t.provide),o=function JM(e,r,t){return uv(e)?qo(void 0,e.useValue):qo(cv(e),Sl)}(t);if($o(t)||!0!==t.multi)this.records.get(a);else{var s=this.records.get(a);s||((s=qo(void 0,Sl,!0)).factory=function(){return p2(s.multi)},this.records.set(a,s)),a=t,s.multi.push(t)}this.records.set(a,o)}},{key:"hydrate",value:function(t,n){return n.value===Sl&&(n.value=ZM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function iS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}},{key:"injectableDefInScope",value:function(t){if(!t.providedIn)return!1;var n=je(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}]),e}();function d3(e){var r=P4(e),t=null!==r?r.factory:Ha(e);if(null!==t)return t;if(e instanceof re)throw new ot(204,!1);if(e instanceof Function)return function XM(e){var r=e.length;if(r>0)throw dl(r,"?"),new ot(204,!1);var n=function ab(e){var r=e&&(e[xc]||e[V6]);if(r){var t=function ob(e){if(e.hasOwnProperty("name"))return e.name;var r=(""+e).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new ot(204,!1)}function cv(e,r,t){var n=void 0;if($o(e)){var i=je(e);return Ha(i)||d3(i)}if(uv(e))n=function(){return je(e.useValue)};else if(function tS(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,se(p2(e.deps||[])))};else if(function eS(e){return!(!e||!e.useExisting)}(e))n=function(){return T(je(e.useExisting))};else{var a=je(e&&(e.useClass||e.provide));if(!function rS(e){return!!e.deps}(e))return Ha(a)||d3(a);n=function(){return ln(a,se(p2(e.deps)))}}return n}function qo(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:r,multi:t?[]:void 0}}function uv(e){return null!==e&&"object"==typeof e&&Mw in e}function $o(e){return"function"==typeof e}function aS(e){return"function"==typeof e||"object"==typeof e&&e instanceof re}var $t=function(){var e=function(){function r(){v(this,r)}return h(r,null,[{key:"create",value:function(n,i){var a;if(Array.isArray(n))return sv({name:""},i,n,"");var o=null!==(a=n.name)&&void 0!==a?a:"";return sv({name:o},n.parent,n.providers,o)}}]),r}();return e.THROW_IF_NOT_FOUND=fl,e.NULL=new av,e.\u0275prov=H({token:e,providedIn:"any",factory:function(){return T(l3)}}),e.__NG_ELEMENT_ID__=-1,e}();function gS(e,r){Rc(S2(e)[1],yn())}function ee(e){for(var r=function yv(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];r;){var i=void 0;if(Kr(e))i=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new ot(903,"");i=r.\u0275dir}if(i){if(t){n.push(i);var o=e;o.inputs=h3(e.inputs),o.declaredInputs=h3(e.declaredInputs),o.outputs=h3(e.outputs);var s=i.hostBindings;s&&CS(e,s);var l=i.viewQuery,c=i.contentQueries;if(l&&yS(e,l),c&&_S(e,c),T4(e.inputs,i.inputs),T4(e.declaredInputs,i.declaredInputs),T4(e.outputs,i.outputs),Kr(i)&&i.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}var d=i.features;if(d)for(var f=0;f<d.length;f++){var p=d[f];p&&p.ngInherit&&p(e),p===ee&&(t=!1)}}r=Object.getPrototypeOf(r)}!function mS(e){for(var r=0,t=null,n=e.length-1;n>=0;n--){var i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=jc(i.hostAttrs,t=jc(t,i.hostAttrs))}}(n)}function h3(e){return e===Mo?{}:e===Ct?[]:e}function yS(e,r){var t=e.viewQuery;e.viewQuery=t?function(n,i){r(n,i),t(n,i)}:r}function _S(e,r){var t=e.contentQueries;e.contentQueries=t?function(n,i,a){r(n,i,a),t(n,i,a)}:r}function CS(e,r){var t=e.hostBindings;e.hostBindings=t?function(n,i){r(n,i),t(n,i)}:r}var du=null;function Ko(){if(!du){var e=mt.Symbol;if(e&&e.iterator)du=e.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t<r.length;++t){var n=r[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(du=n)}}return du}function Dl(e){return!!v3(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ko()in e)}function v3(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function mi(e,r,t){return e[r]=t}function Vn(e,r,t){return!Object.is(e[r],t)&&(e[r]=t,!0)}function Ba(e,r,t,n){var i=Vn(e,r,t);return Vn(e,r+1,n)||i}function fu(e,r,t,n,i){var a=Ba(e,r,t,n);return Vn(e,r+2,i)||a}function zn(e,r,t,n){var i=Y();return Vn(i,zo(),r)&&(st(),gi(Wt(),i,e,r,t,n)),zn}function Qo(e,r,t,n){return Vn(e,zo(),t)?r+Oe(t)+n:Fe}function ts(e,r,t,n,i,a,o,s,l,c,u,d){var f=Fi(),p=function Lr(e,r,t,n,i,a){var o=Ba(e,r,t,n);return Ba(e,r+2,i,a)||o}(e,f,t,i,o,l);return p=Vn(e,f+4,u)||p,Ii(5),p?r+Oe(t)+n+Oe(i)+a+Oe(o)+s+Oe(l)+c+Oe(u)+d:Fe}function P(e,r,t,n,i,a,o,s){var l=Y(),c=st(),u=e+20,d=c.firstCreatePass?function xS(e,r,t,n,i,a,o,s,l){var c=r.consts,u=Uo(r,e,4,o||null,na(c,s));e3(r,t,u,na(c,l)),Rc(r,u);var d=u.tViews=lu(2,u,n,i,a,r.directiveRegistry,r.pipeRegistry,null,r.schemas,c);return null!==r.queries&&(r.queries.template(r,u),d.queries=r.queries.embeddedTView(u)),u}(u,c,l,r,t,n,i,a,o):c.data[u];ui(d,!1);var f=l[11].createComment("");ru(c,l,f,d),Hn(f,l),cu(l,l[u]=Xh(f,l,f,d)),Oc(d)&&X2(c,l,d),null!=o&&J2(l,d,s)}function Kt(e){return To(function Rb(){return xe.lFrame.contextLView}(),20+e)}function y(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.Default,t=Y();if(null===t)return T(e,r);var n=yn();return _f(n,t,je(e),r)}function E(e,r,t){var n=Y();return Vn(n,zo(),r)&&_r(st(),Wt(),n,e,r,n[11],t,!1),E}function y3(e,r,t,n,i){var o=i?"class":"style";iv(e,t,r.inputs[o],o,n)}function k(e,r,t,n){var i=Y(),a=st(),o=20+e,s=i[11],l=i[o]=O2(s,r,function Zb(){return xe.lFrame.currentNamespace}()),c=a.firstCreatePass?function WS(e,r,t,n,i,a,o){var s=r.consts,c=Uo(r,e,2,i,na(s,a));return e3(r,t,c,na(s,o)),null!==c.attrs&&uu(c,c.attrs,!1),null!==c.mergedAttrs&&uu(c,c.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,c),c}(o,a,i,0,r,t,n):a.data[o];ui(c,!0);var u=c.mergedAttrs;null!==u&&Yc(s,l,u);var d=c.classes;null!==d&&R2(s,l,d);var f=c.styles;null!==f&&bh(s,l,f),64!=(64&c.flags)&&ru(a,i,l,c),0===function Fb(){return xe.lFrame.elementDepthCount}()&&Hn(l,i),function Ib(){xe.lFrame.elementDepthCount++}(),Oc(c)&&(X2(a,i,c),Nh(a,c,i)),null!==n&&J2(i,c)}function M(){var e=yn();K4()?Z4():ui(e=e.parent,!1);var r=e;!function Lb(){xe.lFrame.elementDepthCount--}();var t=st();t.firstCreatePass&&(Rc(t,e),R4(e)&&t.queries.elementEnd(e)),null!=r.classesWithoutHost&&function tw(e){return 0!=(16&e.flags)}(r)&&y3(t,r,Y(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function nw(e){return 0!=(32&e.flags)}(r)&&y3(t,r,Y(),r.stylesWithoutHost,!1)}function Ce(e,r,t,n){k(e,r,t,n),M()}function ut(e,r,t){var n=Y(),i=st(),a=e+20,o=i.firstCreatePass?function qS(e,r,t,n,i){var a=r.consts,o=na(a,n),s=Uo(r,e,8,"ng-container",o);return null!==o&&uu(s,o,!0),e3(r,t,s,na(a,i)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,i,n,r,t):i.data[a];ui(o,!0);var s=n[a]=n[11].createComment("");ru(i,n,s,o),Hn(s,n),Oc(o)&&(X2(i,n,o),Nh(i,o,n)),null!=t&&J2(n,o)}function dt(){var e=yn(),r=st();K4()?Z4():ui(e=e.parent,!1),r.firstCreatePass&&(Rc(r,e),R4(e)&&r.queries.elementEnd(e))}function Ie(){return Y()}function hu(e){return!!e&&"function"==typeof e.then}function Nv(e){return!!e&&"function"==typeof e.subscribe}var Bv=Nv;function ae(e,r,t,n){var i=Y(),a=st(),o=yn();return Yv(a,i,i[11],o,e,r,!!t,n),ae}function vu(e,r){var t=yn(),n=Y(),i=st();return Yv(i,n,nv(X4(i.data),t,n),t,e,r,!1),vu}function Yv(e,r,t,n,i,a,o,s){var l=Oc(n),u=e.firstCreatePass&&tv(e),d=r[8],f=ev(r),p=!0;if(3&n.type||s){var g=Or(n,r),m=s?s(g):g,C=f.length,D=s?function(Wn){return s(dn(Wn[n.index]))}:n.index;if(Gt(t)){var x=null;if(!s&&l&&(x=function KS(e,r,t,n){var i=e.cleanup;if(null!=i)for(var a=0;a<i.length-1;a+=2){var o=i[a];if(o===t&&i[a+1]===n){var s=r[7],l=i[a+2];return s.length>l?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,r,i,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=a,x.__ngLastListenerFn__=a,p=!1;else{a=_3(n,r,d,a,!1);var V=t.listen(m,i,a);f.push(a,V),u&&u.push(i,D,C,C+1)}}else a=_3(n,r,d,a,!0),m.addEventListener(i,a,o),f.push(a),u&&u.push(i,D,C,o)}else a=_3(n,r,d,a,!1);var te,ne=n.outputs;if(p&&null!==ne&&(te=ne[i])){var Te=te.length;if(Te)for(var rt=0;rt<Te;rt+=2){var sn=r[te[rt]][te[rt+1]].subscribe(a),Vt=f.length;f.push(a,sn),u&&u.push(i,n.index,Vt,-(Vt+1))}}}function jv(e,r,t,n){try{return!1!==t(n)}catch(i){return rv(e,i),!1}}function _3(e,r,t,n,i){return function a(o){if(o===Function)return n;var s=2&e.flags?pr(e.index,r):r;0==(32&r[2])&&r3(s);for(var l=jv(r,0,n,o),c=a.__ngNextListenerFn__;c;)l=jv(r,0,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ub(e)}function ZS(e,r){for(var t=null,n=function nM(e){var r=e.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(e),i=0;i<r.length;i++){var a=r[i];if("*"!==a){if(null===n?Sh(e,a,!0):aM(n,a))return i}else t=i}return t}function os(e){var r=Y()[16][6];if(!r.projection)for(var n=r.projection=dl(e?e.length:1,null),i=n.slice(),a=r.child;null!==a;){var o=e?ZS(a,e):0;null!==o&&(i[o]?i[o].projectionNext=a:n[o]=a,i[o]=a),a=a.next}}function Ya(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Y(),i=st(),a=Uo(i,20+e,16,null,t||null);null===a.projection&&(a.projection=r),Z4(),64!=(64&a.flags)&&Kk(i,n,a)}function C3(e,r,t){return b3(e,"",r,"",t),C3}function b3(e,r,t,n,i){var a=Y(),o=Qo(a,r,t,n);return o!==Fe&&_r(st(),Wt(),a,e,o,a[11],i,!1),b3}function Xv(e,r,t,n,i){for(var a=e[t+1],o=null===r,s=n?Qr(a):Li(a),l=!1;0!==s&&(!1===l||o);){var u=e[s+1];JS(e[s],r)&&(l=!0,e[s+1]=n?Y2(u):N2(u)),s=n?Qr(u):Li(u)}l&&(e[t+1]=n?N2(a):Y2(a))}function JS(e,r){return null===e||null==r||(Array.isArray(e)?e[1]:e)===r||!(!Array.isArray(e)||"string"!=typeof r)&&Vo(e,r)>=0}var Cn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jv(e){return e.substring(Cn.key,Cn.keyEnd)}function ep(e,r){var t=Cn.textEnd;return t===r?-1:(r=Cn.keyEnd=function rD(e,r,t){for(;r<t&&e.charCodeAt(r)>32;)r++;return r}(e,Cn.key=r,t),ss(e,r,t))}function ss(e,r,t){for(;r<t&&e.charCodeAt(r)<=32;)r++;return r}function Vi(e,r,t){return Jr(e,r,t,!1),Vi}function We(e,r){return Jr(e,r,null,!0),We}function pu(e){!function ei(e,r,t,n){var i=st(),a=Ii(2);i.firstUpdatePass&&op(i,null,a,n);var o=Y();if(t!==Fe&&Vn(o,a,t)){var s=i.data[Kn()];if(up(s,n)&&!ap(i,a)){var c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=z4(c,t||"")),y3(i,s,o,t,n)}else!function fD(e,r,t,n,i,a,o,s){i===Fe&&(i=Ct);for(var l=0,c=0,u=0<i.length?i[0]:null,d=0<a.length?a[0]:null;null!==u||null!==d;){var f=l<i.length?i[l+1]:void 0,p=c<a.length?a[c+1]:void 0,g=null,m=void 0;u===d?(l+=2,c+=2,f!==p&&(g=d,m=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,m=p),null!==g&&lp(e,r,t,n,g,m,o,s),u=l<i.length?i[l]:null,d=c<a.length?a[c]:null}}(i,s,o,o[11],o[a+1],o[a+1]=function dD(e,r,t){if(null==t||""===t)return Ct;var n=[],i=mr(t);if(Array.isArray(i))for(var a=0;a<i.length;a++)e(n,i[a],!0);else if("object"==typeof i)for(var o in i)i.hasOwnProperty(o)&&e(n,o,i[o]);else"string"==typeof i&&r(n,i);return n}(e,r,t),n,a)}}(gr,_i,e,!0)}function _i(e,r){for(var t=function tD(e){return function np(e){Cn.key=0,Cn.keyEnd=0,Cn.value=0,Cn.valueEnd=0,Cn.textEnd=e.length}(e),ep(e,ss(e,0,Cn.textEnd))}(r);t>=0;t=ep(r,t))gr(e,Jv(r),!0)}function Jr(e,r,t,n){var i=Y(),a=st(),o=Ii(2);a.firstUpdatePass&&op(a,e,o,n),r!==Fe&&Vn(i,o,r)&&lp(a,a.data[Kn()],i,i[11],e,i[o+1]=function hD(e,r){return null==e||("string"==typeof r?e+=r:"object"==typeof e&&(e=vt(mr(e)))),e}(r,t),n,o)}function ap(e,r){return r>=e.expandoStartIndex}function op(e,r,t,n){var i=e.data;if(null===i[t+1]){var a=i[Kn()],o=ap(e,t);up(a,n)&&null===r&&!o&&(r=!1),r=function sD(e,r,t,n){var i=X4(e),a=n?r.residualClasses:r.residualStyles;if(null===i)0===(n?r.classBindings:r.styleBindings)&&(t=El(t=w3(null,e,r,t,n),r.attrs,n),a=null);else{var s=r.directiveStylingLast;if(-1===s||e[s]!==i)if(t=w3(i,e,r,t,n),null===a){var c=function lD(e,r,t){var n=t?r.classBindings:r.styleBindings;if(0!==Li(n))return e[Qr(n)]}(e,r,n);void 0!==c&&Array.isArray(c)&&function cD(e,r,t,n){e[Qr(t?r.classBindings:r.styleBindings)]=n}(e,r,n,c=El(c=w3(null,e,r,c[1],n),r.attrs,n))}else a=function uD(e,r,t){for(var n=void 0,i=r.directiveEnd,a=1+r.directiveStylingLast;a<i;a++)n=El(n,e[a].hostAttrs,t);return El(n,r.attrs,t)}(e,r,n)}return void 0!==a&&(n?r.residualClasses=a:r.residualStyles=a),t}(i,a,r,n),function QS(e,r,t,n,i,a){var o=a?r.classBindings:r.styleBindings,s=Qr(o),l=Li(o);e[n]=t;var u,c=!1;if(Array.isArray(t)?(null===(u=t[1])||Vo(t,u)>0)&&(c=!0):u=t,i)if(0!==l){var p=Qr(e[s+1]);e[n+1]=au(p,s),0!==p&&(e[p+1]=B2(e[p+1],n)),e[s+1]=function cM(e,r){return 131071&e|r<<17}(e[s+1],n)}else e[n+1]=au(s,0),0!==s&&(e[s+1]=B2(e[s+1],n)),s=n;else e[n+1]=au(l,0),0===s?s=n:e[l+1]=B2(e[l+1],n),l=n;c&&(e[n+1]=N2(e[n+1])),Xv(e,u,n,!0),Xv(e,u,n,!1),function XS(e,r,t,n,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof r&&Vo(a,r)>=0&&(t[n+1]=Y2(t[n+1]))}(r,u,e,n,a),o=au(s,l),a?r.classBindings=o:r.styleBindings=o}(i,a,r,t,o,n)}}function w3(e,r,t,n,i){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(n=El(n,(a=r[s]).hostAttrs,i),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),n}function El(e,r,t){var n=t?1:2,i=-1;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];"number"==typeof o?i=o:i===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),gr(e,o,!!t||r[++a]))}return void 0===e?null:e}function lp(e,r,t,n,i,a,o,s){if(3&r.type){var l=e.data,c=l[s+1];gu(function zh(e){return 1==(1&e)}(c)?cp(l,r,t,i,Li(c),o):void 0)||(gu(a)||function Th(e){return 2==(2&e)}(c)&&(a=cp(l,null,t,i,s,o)),function Qk(e,r,t,n,i){var a=Gt(e);if(r)i?a?e.addClass(t,n):t.classList.add(n):a?e.removeClass(t,n):t.classList.remove(n);else{var o=-1===n.indexOf("-")?void 0:yr.DashCase;if(null==i)a?e.removeStyle(t,n,o):t.style.removeProperty(n);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),o|=yr.Important),a?e.setStyle(t,n,i,o):t.style.setProperty(n,i,s?"important":"")}}}(n,o,Fc(Kn(),t),i,a))}}function cp(e,r,t,n,i,a){for(var o=null===r,s=void 0;i>0;){var l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u,f=t[i+1];f===Fe&&(f=d?Ct:void 0);var p=d?d2(f,n):u===n?f:void 0;if(c&&!gu(p)&&(p=d2(l,n)),gu(p)&&(s=p,o))return s;var g=e[i+1];i=o?Qr(g):Li(g)}if(null!==r){var m=a?r.residualClasses:r.residualStyles;null!=m&&(s=d2(m,n))}return s}function gu(e){return void 0!==e}function up(e,r){return 0!=(e.flags&(r?16:32))}function K(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Y(),n=st(),i=e+20,a=n.firstCreatePass?Uo(n,i,1,r,null):n.data[i],o=t[i]=P2(t[11],r);ru(n,t,o,a),ui(a,!1)}function Pe(e){return Ke("",e,""),Pe}function Ke(e,r,t){var n=Y(),i=Qo(n,e,r,t);return i!==Fe&&Hi(n,Kn(),i),Ke}function k3(e,r,t,n,i){var a=Y(),o=function Xo(e,r,t,n,i,a){var s=Ba(e,Fi(),t,i);return Ii(2),s?r+Oe(t)+n+Oe(i)+a:Fe}(a,e,r,t,n,i);return o!==Fe&&Hi(a,Kn(),o),k3}function M3(e,r,t,n,i,a,o){var s=Y(),l=function Jo(e,r,t,n,i,a,o,s){var c=fu(e,Fi(),t,i,o);return Ii(3),c?r+Oe(t)+n+Oe(i)+a+Oe(o)+s:Fe}(s,e,r,t,n,i,a,o);return l!==Fe&&Hi(s,Kn(),l),M3}function S3(e,r,t,n,i,a,o,s,l,c,u){var d=Y(),f=ts(d,e,r,t,n,i,a,o,s,l,c,u);return f!==Fe&&Hi(d,Kn(),f),S3}function mu(e,r,t){var n=Y();if(Vn(n,zo(),r)){var a=st(),o=Wt();_r(a,o,n,e,r,nv(X4(a.data),o,n),t,!0)}return mu}var ja=void 0,OD=["en",[["a","p"],["AM","PM"],ja],[["AM","PM"],ja,ja],[["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"]],ja,[["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"]],ja,[["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}",ja,"{1} 'at' {0}",ja],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function PD(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ls={};function Zn(e){var r=function ID(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=xp(r);if(t)return t;var n=r.split("-")[0];if(t=xp(n))return t;if("en"===n)return OD;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function xp(e){return e in ls||(ls[e]=mt.ng&&mt.ng.common&&mt.ng.common.locales&&mt.ng.common.locales[e]),ls[e]}var oe=function(){return(oe=oe||{})[oe.LocaleId=0]="LocaleId",oe[oe.DayPeriodsFormat=1]="DayPeriodsFormat",oe[oe.DayPeriodsStandalone=2]="DayPeriodsStandalone",oe[oe.DaysFormat=3]="DaysFormat",oe[oe.DaysStandalone=4]="DaysStandalone",oe[oe.MonthsFormat=5]="MonthsFormat",oe[oe.MonthsStandalone=6]="MonthsStandalone",oe[oe.Eras=7]="Eras",oe[oe.FirstDayOfWeek=8]="FirstDayOfWeek",oe[oe.WeekendRange=9]="WeekendRange",oe[oe.DateFormat=10]="DateFormat",oe[oe.TimeFormat=11]="TimeFormat",oe[oe.DateTimeFormat=12]="DateTimeFormat",oe[oe.NumberSymbols=13]="NumberSymbols",oe[oe.NumberFormats=14]="NumberFormats",oe[oe.CurrencyCode=15]="CurrencyCode",oe[oe.CurrencySymbol=16]="CurrencySymbol",oe[oe.CurrencyName=17]="CurrencyName",oe[oe.Currencies=18]="Currencies",oe[oe.Directionality=19]="Directionality",oe[oe.PluralCase=20]="PluralCase",oe[oe.ExtraData=21]="ExtraData",oe}(),yu="en-US";function zx(e,r,t){var n=st();if(n.firstCreatePass){var i=Kr(e);E3(t,n.data,n.blueprint,i,!0),E3(r,n.data,n.blueprint,i,!1)}}function E3(e,r,t,n,i){if(e=je(e),Array.isArray(e))for(var a=0;a<e.length;a++)E3(e[a],r,t,n,i);else{var o=st(),s=Y(),l=$o(e)?e:je(e.provide),c=cv(e),u=yn(),d=1048575&u.providerIndexes,f=u.directiveStart,p=u.providerIndexes>>20;if($o(e)||!e.multi){var g=new al(c,i,y),m=z3(l,r,i?d:d+p,f);-1===m?(Wc(sl(u,s),o,l),T3(o,e,r.length),r.push(l),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(g),s.push(g)):(t[m]=g,s[m]=g)}else{var C=z3(l,r,d+p,f),D=z3(l,r,d,d+p),F=D>=0&&t[D];if(i&&!F||!i&&!(C>=0&&t[C])){Wc(sl(u,s),o,l);var V=function Ox(e,r,t,n,i){var a=new al(e,t,y);return a.multi=[],a.index=r,a.componentProviders=0,Xp(a,i,n&&!t),a}(i?Px:Ax,t.length,i,n,c);!i&&F&&(t[D].providerFactory=V),T3(o,e,r.length,0),r.push(l),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(V),s.push(V)}else T3(o,e,C>-1?C:D,Xp(t[i?D:C],c,!i&&n));!i&&n&&F&&t[D].componentProviders++}}}function T3(e,r,t,n){var i=$o(r),a=function nS(e){return!!e.useClass}(r);if(i||a){var l=(a?je(r.useClass):r).prototype.ngOnDestroy;if(l){var c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){var u=c.indexOf(t);-1===u?c.push(t,[n,l]):c[u+1].push(n,l)}else c.push(t,l)}}}function Xp(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function z3(e,r,t,n){for(var i=t;i<n;i++)if(r[i]===e)return i;return-1}function Ax(e,r,t,n){return A3(this.multi,[])}function Px(e,r,t,n){var a,i=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=ll(t,t[1],this.providerFactory.index,n);A3(i,a=s.slice(0,o));for(var l=o;l<s.length;l++)a.push(s[l])}else A3(i,a=[]);return a}function A3(e,r){for(var t=0;t<e.length;t++)r.push((0,e[t])());return r}function zt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,i){return zx(n,i?i(e):e,r)}}}var Fx=h(function e(){v(this,e)}),Jp=h(function e(){v(this,e)}),Lx=function(){function e(){v(this,e)}return h(e,[{key:"resolveComponentFactory",value:function(t){throw function Ix(e){var r=Error("No component factory found for ".concat(vt(e),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=e,r}(t)}}]),e}(),Ci=function(){var e=h(function r(){v(this,r)});return e.NULL=new Lx,e}();function Hx(){return us(yn(),Y())}function us(e,r){return new Me(Or(e,r))}var Me=function(){var e=h(function r(t){v(this,r),this.nativeElement=t});return e.__NG_ELEMENT_ID__=Hx,e}();function Vx(e){return e instanceof Me?e.nativeElement:e}var Ua=h(function e(){v(this,e)}),bn=function(){var e=h(function r(){v(this,r)});return e.__NG_ELEMENT_ID__=function(){return function Nx(){var e=Y(),t=pr(yn().index,e);return function Rx(e){return e[11]}(ci(t)?t:e)}()},e}(),Bx=function(){var e=h(function r(){v(this,r)});return e.\u0275prov=H({token:e,providedIn:"root",factory:function(){return null}}),e}(),ds=h(function e(r){v(this,e),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),Yx=new ds("13.2.2"),P3={};function ku(e,r,t,n){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&n.push(dn(a)),$r(a))for(var o=10;o<a.length;o++){var s=a[o],l=s[1].firstChild;null!==l&&ku(s[1],s,l,n)}var c=t.type;if(8&c)ku(e,r,t.child,n);else if(32&c)for(var u=T2(t,r),d=void 0;d=u();)n.push(d);else if(16&c){var f=yh(r,t);if(Array.isArray(f))n.push.apply(n,se(f));else{var p=bl(r[16]);ku(p[1],p,f,n,!0)}}t=i?t.projectionNext:t.next}return n}var Ol=function(){function e(r,t){v(this,e),this._lView=r,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}return h(e,[{key:"rootNodes",get:function(){var t=this._lView,n=t[1];return ku(n,t,n.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(t){this._lView[8]=t}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var t=this._lView[3];if($r(t)){var n=t[8],i=n?n.indexOf(this):-1;i>-1&&(F2(t,i),$c(n,i))}this._attachedToViewContainer=!1}ch(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Uh(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){r3(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){o3(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function GM(e,r,t){Lc(!0);try{o3(e,r,t)}finally{Lc(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new ot(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function Bk(e,r){wl(e,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new ot(902,"");this._appRef=t}}]),e}(),jx=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this,n))._view=n,i}return h(t,[{key:"detectChanges",value:function(){Jh(this._view)}},{key:"checkNoChanges",value:function(){!function WM(e){Lc(!0);try{Jh(e)}finally{Lc(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(Ol),tg=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this)).ngModule=n,i}return h(t,[{key:"resolveComponentFactory",value:function(i){var a=In(i);return new O3(a,this.ngModule)}}]),t}(Ci);function ng(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push({propName:e[t],templateName:t});return r}var Gx=new re("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return th}}),O3=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this)).componentDef=n,a.ngModule=i,a.componentType=n.type,a.selector=function sM(e){return e.map(oM).join(",")}(n.selectors),a.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],a.isBoundToModule=!!i,a}return h(t,[{key:"inputs",get:function(){return ng(this.componentDef.inputs)}},{key:"outputs",get:function(){return ng(this.componentDef.outputs)}},{key:"create",value:function(i,a,o,s){var x,F,l=(s=s||this.ngModule)?function Wx(e,r){return{get:function(n,i,a){var o=e.get(n,P3,a);return o!==P3||i===P3?o:r.get(n,i,a)}}}(i,s.injector):i,c=l.get(Ua,Z6),u=l.get(Bx,null),d=c.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=o?function jh(e,r,t){if(Gt(e))return e.selectRootElement(r,t===Wr.ShadowDom);var i="string"==typeof r?e.querySelector(r):r;return i.textContent="",i}(d,o,this.componentDef.encapsulation):O2(c.createRenderer(null,this.componentDef),f,function Ux(e){var r=e.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(f)),g=this.componentDef.onPush?576:528,m=function mv(e,r){return{components:[],scheduler:e||th,clean:qM,playerHandler:r||null,flags:0}}(),C=lu(0,null,null,1,0,null,null,null,null,null),D=kl(null,C,m,g,null,null,c,d,u,l);Hc(D);try{var V=function pv(e,r,t,n,i,a){var o=t[1];t[20]=e;var l=Uo(o,20,2,"#host",null),c=l.mergedAttrs=r.hostAttrs;null!==c&&(uu(l,c,!0),null!==e&&(Yc(i,e,c),null!==l.classes&&R2(i,e,l.classes),null!==l.styles&&bh(i,e,l.styles)));var u=n.createRenderer(e,r),d=kl(t,Bh(r),null,r.onPush?64:16,t[20],l,n,u,a||null,null);return o.firstCreatePass&&(Wc(sl(l,t),o,r.type),Kh(o,l),Zh(l,t.length,1)),cu(t,d),t[20]=d}(p,this.componentDef,D,c,d);if(p)if(o)Yc(d,p,["ng-version",Yx.full]);else{var ne=function lM(e){for(var r=[],t=[],n=1,i=2;n<e.length;){var a=e[n];if("string"==typeof a)2===i?""!==a&&r.push(a,e[++n]):8===i&&t.push(a);else{if(!Zr(i))break;i=a}n++}return{attrs:r,classes:t}}(this.componentDef.selectors[0]),te=ne.attrs,Te=ne.classes;te&&Yc(d,p,te),Te&&Te.length>0&&R2(d,p,Te.join(" "))}if(F=W4(C,20),void 0!==a)for(var rt=F.projection=[],Et=0;Et<this.ngContentSelectors.length;Et++){var ze=a[Et];rt.push(null!=ze?Array.from(ze):null)}x=function gv(e,r,t,n,i){var a=t[1],o=function TM(e,r,t){var n=yn();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),Qh(e,n,r,Go(e,r,1,null),t));var a=ll(r,e,n.directiveStart,n);Hn(a,r);var o=Or(n,r);return o&&Hn(o,r),a}(a,t,r);if(n.components.push(o),e[8]=o,i&&i.forEach(function(u){return u(o,r)}),r.contentQueries){var s=yn();r.contentQueries(1,o,s.directiveStart)}var l=yn();return!a.firstCreatePass||null===r.hostBindings&&null===r.hostAttrs||(ra(l.index),qh(t[1],l,0,l.directiveStart,l.directiveEnd,r),$h(r,o)),o}(V,this.componentDef,D,m,[gS]),Ml(C,D,null)}finally{Vc()}return new $x(this.componentType,x,us(F,D),D,F)}}]),t}(Jp),$x=function(e){_(t,e);var r=z(t);function t(n,i,a,o,s){var l;return v(this,t),(l=r.call(this)).location=a,l._rootLView=o,l._tNode=s,l.instance=i,l.hostView=l.changeDetectorRef=new jx(o),l.componentType=n,l}return h(t,[{key:"injector",get:function(){return new Oo(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(i){this.hostView.onDestroy(i)}}]),t}(Fx),fs=h(function e(){v(this,e)}),Zx=h(function e(){v(this,e)}),hs=new Map;var ag=function(e){_(t,e);var r=z(t);function t(n,i){var a;v(this,t),(a=r.call(this))._parent=i,a._bootstrapComponents=[],a.injector=Ae(a),a.destroyCbs=[],a.componentFactoryResolver=new tg(Ae(a));var o=zr(n);return a._bootstrapComponents=pi(o.bootstrap),a._r3Injector=lv(n,i,[{provide:fs,useValue:Ae(a)},{provide:Ci,useValue:a.componentFactoryResolver}],vt(n)),a._r3Injector._resolveInjectorDefTypes(),a.instance=a.get(n),a}return h(t,[{key:"get",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$t.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.Default;return i===$t||i===fs||i===l3?this:this._r3Injector.get(i,a,o)}},{key:"destroy",value:function(){var i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(i){this.destroyCbs.push(i)}}]),t}(fs),F3=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this)).moduleType=n,null!==zr(n)&&function Qx(e){var r=new Set;!function t(n){var i=zr(n,!0),a=i.id;null!==a&&(function rg(e,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(vt(r)," vs ").concat(vt(r.name)))}(a,hs.get(a),n),hs.set(a,n));var c,l=lt(pi(i.imports));try{for(l.s();!(c=l.n()).done;){var u=c.value;r.has(u)||(r.add(u),t(u))}}catch(d){l.e(d)}finally{l.f()}}(e)}(n),i}return h(t,[{key:"create",value:function(i){return new ag(this.moduleType,i)}}]),t}(Zx);function Mu(e,r,t,n){return og(Y(),$n(),e,r,t,n)}function Su(e,r,t,n,i){return function sg(e,r,t,n,i,a,o){var s=r+t;return Ba(e,s,i,a)?mi(e,s+2,o?n.call(o,i,a):n(i,a)):Fl(e,s+2)}(Y(),$n(),e,r,t,n,i)}function vs(e,r,t,n,i,a){return function lg(e,r,t,n,i,a,o,s){var l=r+t;return fu(e,l,i,a,o)?mi(e,l+3,s?n.call(s,i,a,o):n(i,a,o)):Fl(e,l+3)}(Y(),$n(),e,r,t,n,i,a)}function Fl(e,r){var t=e[r];return t===Fe?void 0:t}function og(e,r,t,n,i,a){var o=r+t;return Vn(e,o,i)?mi(e,o+1,a?n.call(a,i):n(i)):Fl(e,o+1)}function N(e,r){var n,t=st(),i=e+20;t.firstCreatePass?(n=function aE(e,r){if(r)for(var t=r.length-1;t>=0;t--){var n=r[t];if(e===n.name)return n}}(r,t.pipeRegistry),t.data[i]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(i,n.onDestroy)):n=t.data[i];var a=n.factory||(n.factory=Ha(n.type)),o=Ji(y);try{var s=Uc(!1),l=a();return Uc(s),function ES(e,r,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),r[t]=n}(t,Y(),i,l),l}finally{Ji(o)}}function G(e,r,t){var n=e+20,i=Y(),a=To(i,n);return Il(i,n)?og(i,$n(),r,a.transform,t,a):a.transform(t)}function Ga(e,r,t){var n=e+20,i=Y(),a=To(i,n);return Il(i,n)?function ug(e,r,t,n,i,a){for(var o=r+t,s=!1,l=0;l<i.length;l++)Vn(e,o++,i[l])&&(s=!0);return s?mi(e,o,n.apply(a,i)):Fl(e,o)}(i,$n(),r,a.transform,t,a):a.transform.apply(a,t)}function Il(e,r){return e[1].data[r].pure}var cE=function(e){_(t,e);var r=z(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,t),(n=r.call(this)).__isAsync=i,n}return h(t,[{key:"emit",value:function(i){L(O(t.prototype),"next",this).call(this,i)}},{key:"subscribe",value:function(i,a,o){var s,l,c,u=i,d=a||function(){return null},f=o;if(i&&"object"==typeof i){var p=i;u=null===(s=p.next)||void 0===s?void 0:s.bind(p),d=null===(l=p.error)||void 0===l?void 0:l.bind(p),f=null===(c=p.complete)||void 0===c?void 0:c.bind(p)}this.__isAsync&&(d=I3(d),u&&(u=I3(u)),f&&(f=I3(f)));var g=L(O(t.prototype),"subscribe",this).call(this,{next:u,error:d,complete:f});return i instanceof $&&i.add(g),g}}]),t}(_e);function I3(e){return function(r){setTimeout(e,void 0,r)}}var ie=cE;function uE(){return this._results[Ko()]()}var dE=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,e),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=Ko(),n=e.prototype;n[t]||(n[t]=uE)}return h(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ie)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var i=this;i.dirty=!1;var a=Fr(t);(this._changesDetected=!function fw(e,r,t){if(e.length!==r.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],a=r[n];if(t&&(i=t(i),a=t(a)),a!==i)return!1}return!0}(i._results,a,n))&&(i._results=a,i.length=a.length,i.last=a[this.length-1],i.first=a[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}();Symbol;var Qn=function(){var e=h(function r(){v(this,r)});return e.__NG_ELEMENT_ID__=vE,e}(),hE=function(e){_(t,e);var r=z(t);function t(n,i,a){var o;return v(this,t),(o=r.call(this))._declarationLView=n,o._declarationTContainer=i,o.elementRef=a,o}return h(t,[{key:"createEmbeddedView",value:function(i){var a=this._declarationTContainer.tViews,o=kl(this._declarationLView,a,i,16,null,a.declTNode,null,null,null,null);o[17]=this._declarationLView[this._declarationTContainer.index];var l=this._declarationLView[19];return null!==l&&(o[19]=l.createEmbeddedView(a)),Ml(a,o,i),new Ol(o)}}]),t}(Qn);function vE(){return Du(yn(),Y())}function Du(e,r){return 4&e.type?new hE(r,e,us(e,r)):null}var cr=function(){var e=h(function r(){v(this,r)});return e.__NG_ELEMENT_ID__=pE,e}();function pE(){return hg(yn(),Y())}var dg=function(e){_(t,e);var r=z(t);function t(n,i,a){var o;return v(this,t),(o=r.call(this))._lContainer=n,o._hostTNode=i,o._hostLView=a,o}return h(t,[{key:"element",get:function(){return us(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Oo(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var i=Gc(this._hostTNode,this._hostLView);if(vf(i)){var a=Po(i,this._hostLView),o=Ao(i);return new Oo(a[1].data[o+8],a)}return new Oo(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(i){var a=fg(this._lContainer);return null!==a&&a[i]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(i,a,o){var s=i.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(i,a,o,s,l){var u,c=i&&!function ul(e){return"function"==typeof e}(i);if(c)u=a;else{var d=a||{};u=d.index,o=d.injector,s=d.projectableNodes,l=d.ngModuleRef}var f=c?i:new O3(In(i)),p=o||this.parentInjector;if(!l&&null==f.ngModule&&p){var g=p.get(fs,null);g&&(l=g)}var m=f.create(p,s,void 0,l);return this.insert(m.hostView,u),m}},{key:"insert",value:function(i,a){var o=i._lView,s=o[1];if(function Ob(e){return $r(e[3])}(o)){var l=this.indexOf(i);if(-1!==l)this.detach(l);else{var c=o[3],u=new dg(c,c[6],c[3]);u.detach(u.indexOf(i))}}var d=this._adjustIndex(a),f=this._lContainer;!function jk(e,r,t,n){var i=10+n,a=t.length;n>0&&(t[i-1][4]=r),n<a-10?(r[4]=t[i],Mf(t,10+n,r)):(t.push(r),r[4]=null),r[3]=t;var o=r[17];null!==o&&t!==o&&function Uk(e,r){var t=e[9];r[16]!==r[3][3][16]&&(e[2]=!0),null===t?e[9]=[r]:t.push(r)}(o,r);var s=r[19];null!==s&&s.insertView(e),r[2]|=128}(s,o,f,d);var p=H2(d,f),g=o[11],m=nu(g,f[7]);return null!==m&&function Nk(e,r,t,n,i,a){n[0]=i,n[6]=r,wl(e,n,t,1,i,a)}(s,f[6],g,o,m,p),i.attachToViewContainerRef(),Mf(L3(f),d,i),i}},{key:"move",value:function(i,a){return this.insert(i,a)}},{key:"indexOf",value:function(i){var a=fg(this._lContainer);return null!==a?a.indexOf(i):-1}},{key:"remove",value:function(i){var a=this._adjustIndex(i,-1),o=F2(this._lContainer,a);o&&($c(L3(this._lContainer),a),ch(o[1],o))}},{key:"detach",value:function(i){var a=this._adjustIndex(i,-1),o=F2(this._lContainer,a);return o&&null!=$c(L3(this._lContainer),a)?new Ol(o):null}},{key:"_adjustIndex",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==i?this.length+a:i}}]),t}(cr);function fg(e){return e[8]}function L3(e){return e[8]||(e[8]=[])}function hg(e,r){var t,n=r[e.index];if($r(n))t=n;else{var i;if(8&e.type)i=dn(n);else{var a=r[11];i=a.createComment("");var o=Or(e,r);Na(a,nu(a,o),i,function $k(e,r){return Gt(e)?e.nextSibling(r):r.nextSibling}(a,o),!1)}r[e.index]=t=Xh(n,r,i,e),cu(r,t)}return new dg(t,e,r)}var _E=function(){function e(r){v(this,e),this.queryList=r,this.matches=null}return h(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),CE=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=r}return h(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[],o=0;o<i;o++){var s=n.getByIndex(o);a.push(this.queries[s.indexInDeclarationView].clone())}return new e(a)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var n=0;n<this.queries.length;n++)null!==_g(t,n).matches&&this.queries[n].setDirty()}}]),e}(),vg=h(function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;v(this,e),this.predicate=r,this.flags=t,this.read=n}),bE=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v(this,e),this.queries=r}return h(e,[{key:"elementStart",value:function(t,n){for(var i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}},{key:"elementEnd",value:function(t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var a=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,a);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(t,n){for(var i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(t){this.queries.push(t)}}]),e}(),wE=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;v(this,e),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return h(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var i=this.metadata.predicate;if(Array.isArray(i))for(var a=0;a<i.length;a++){var o=i[a];this.matchTNodeWithReadOption(t,n,kE(n,o)),this.matchTNodeWithReadOption(t,n,qc(n,t,o,!1,!1))}else i===Qn?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,qc(n,t,i,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(t,n,i){if(null!==i){var a=this.metadata.read;if(null!==a)if(a===Me||a===cr||a===Qn&&4&n.type)this.addMatch(n.index,-2);else{var o=qc(n,t,a,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,i)}}},{key:"addMatch",value:function(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}]),e}();function kE(e,r){var t=e.localNames;if(null!==t)for(var n=0;n<t.length;n+=2)if(t[n]===r)return t[n+1];return null}function SE(e,r,t,n){return-1===t?function ME(e,r){return 11&e.type?us(e,r):4&e.type?Du(e,r):null}(r,e):-2===t?function DE(e,r,t){return t===Me?us(r,e):t===Qn?Du(r,e):t===cr?hg(r,e):void 0}(e,r,n):ll(e,e[1],t,r)}function pg(e,r,t,n){var i=r[19].queries[n];if(null===i.matches){for(var a=e.data,o=t.matches,s=[],l=0;l<o.length;l+=2){var c=o[l];s.push(c<0?null:SE(r,a[c],o[l+1],t.metadata.read))}i.matches=s}return i.matches}function H3(e,r,t,n){var i=e.queries.getByIndex(t),a=i.matches;if(null!==a)for(var o=pg(e,r,i,t),s=0;s<a.length;s+=2){var l=a[s];if(l>0)n.push(o[s/2]);else{for(var c=a[s+1],u=r[-l],d=10;d<u.length;d++){var f=u[d];f[17]===f[3]&&H3(f[1],f,c,n)}if(null!==u[9])for(var p=u[9],g=0;g<p.length;g++){var m=p[g];H3(m[1],m,c,n)}}}return n}function Cr(e){var r=Y(),t=st(),n=rf();J4(n+1);var i=_g(t,n);if(e.dirty&&Q6(r)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{var a=i.crossesNgTemplate?H3(t,r,n,[]):pg(t,r,i,n);e.reset(a,Vx),e.notifyOnChanges()}return!0}return!1}function Hr(e,r,t){var n=st();n.firstCreatePass&&(yg(n,new vg(e,r,t),-1),2==(2&r)&&(n.staticViewQueries=!0)),mg(n,Y(),r)}function br(){return function xE(e,r){return e[19].queries[r].queryList}(Y(),rf())}function mg(e,r,t){var n=new dE(4==(4&t));Uh(e,r,n,n.destroy),null===r[19]&&(r[19]=new CE),r[19].queries.push(new _E(n))}function yg(e,r,t){null===e.queries&&(e.queries=new bE),e.queries.track(new wE(r,t))}function _g(e,r){return e.queries.getByIndex(r)}function Xn(e,r){return Du(e,r)}function Tu(){}var j3=new re("Application Initializer"),gs=function(){var e=function(){function r(t){var n=this;v(this,r),this.appInits=t,this.resolve=Tu,this.reject=Tu,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(i,a){n.resolve=i,n.reject=a})}return h(r,[{key:"runInitializers",value:function(){var n=this;if(!this.initialized){var i=[],a=function(){n.done=!0,n.resolve()};if(this.appInits)for(var o=function(c){var u=n.appInits[c]();if(hu(u))i.push(u);else if(Bv(u)){var d=new Promise(function(f,p){u.subscribe({complete:f,error:p})});i.push(d)}},s=0;s<this.appInits.length;s++)o(s);Promise.all(i).then(function(){a()}).catch(function(l){n.reject(l)}),0===i.length&&a(),this.initialized=!0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(j3,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),ms=new re("AppId"),WE={provide:ms,useFactory:function GE(){return"".concat(U3()).concat(U3()).concat(U3())},deps:[]};function U3(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Lg=new re("Platform Initializer"),Rn=new re("Platform ID"),G3=new re("appBootstrapListener"),qE=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"log",value:function(n){console.log(n)}},{key:"warn",value:function(n){console.warn(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),sa=new re("LocaleId"),Hg=new re("DefaultCurrencyCode"),$E=h(function e(r,t){v(this,e),this.ngModuleFactory=r,this.componentFactories=t}),Vg=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"compileModuleSync",value:function(n){return new F3(n)}},{key:"compileModuleAsync",value:function(n){return Promise.resolve(this.compileModuleSync(n))}},{key:"compileModuleAndAllComponentsSync",value:function(n){var i=this.compileModuleSync(n),o=pi(zr(n).declarations).reduce(function(s,l){var c=In(l);return c&&s.push(new O3(c)),s},[]);return new $E(i,o)}},{key:"compileModuleAndAllComponentsAsync",value:function(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(n){}},{key:"getModuleId",value:function(n){}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Rg=new re("compilerOptions"),KE=function(){return Promise.resolve(0)}();function W3(e){"undefined"==typeof Zone?KE.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Xe=function(){function e(r){var t=r.enableLongStackTrace,n=void 0!==t&&t,i=r.shouldCoalesceEventChangeDetection,a=void 0!==i&&i,o=r.shouldCoalesceRunChangeDetection,s=void 0!==o&&o;if(v(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&a,l.shouldCoalesceRunChangeDetection=s,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function ZE(){var e=mt.requestAnimationFrame,r=mt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&r){var t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);var n=r[Zone.__symbol__("OriginalDelegate")];n&&(r=n)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function JE(e){var r=function(){!function XE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(mt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,$3(e),e.isCheckStableRunning=!0,q3(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),$3(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(n,i,a,o,s,l){try{return Ng(e),n.invokeTask(a,o,s,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&r(),Bg(e)}},onInvoke:function(n,i,a,o,s,l,c){try{return Ng(e),n.invoke(a,o,s,l,c)}finally{e.shouldCoalesceRunChangeDetection&&r(),Bg(e)}},onHasTask:function(n,i,a,o){n.hasTask(a,o),i===a&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,$3(e),q3(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:function(n,i,a,o){return n.handleError(a,o),e.runOutsideAngular(function(){return e.onError.emit(o)}),!1}})}(l)}return h(e,[{key:"run",value:function(t,n,i){return this._inner.run(t,n,i)}},{key:"runTask",value:function(t,n,i,a){var o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+a,t,QE,Tu,Tu);try{return o.runTask(s,n,i)}finally{o.cancelTask(s)}}},{key:"runGuarded",value:function(t,n,i){return this._inner.runGuarded(t,n,i)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),QE={};function q3(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function $3(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ng(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bg(e){e._nesting--,q3(e)}var ti,eT=function(){function e(){v(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}return h(e,[{key:"run",value:function(t,n,i){return t.apply(n,i)}},{key:"runGuarded",value:function(t,n,i){return t.apply(n,i)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,n,i,a){return t.apply(n,i)}}]),e}(),K3=function(){var e=function(){function r(t){var n=this;v(this,r),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return h(r,[{key:"_watchAngularEvents",value:function(){var n=this;this._ngZone.onUnstable.subscribe({next:function(){n._didWork=!0,n._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.subscribe({next:function(){Xe.assertNotInAngularZone(),W3(function(){n._isZoneStable=!0,n._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var n=this;if(this.isStable())W3(function(){for(;0!==n._callbacks.length;){var a=n._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(n._didWork)}n._didWork=!1});else{var i=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(a){return!a.updateCb||!a.updateCb(i)||(clearTimeout(a.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(n){return{source:n.source,creationLocation:n.creationLocation,data:n.data}}):[]}},{key:"addCallback",value:function(n,i,a){var o=this,s=-1;i&&i>0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),n(o._didWork,o.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(n,i,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,i,a){return[]}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Yg=function(){var e=function(){function r(){v(this,r),this._applications=new Map,Z3.addToWindow(this)}return h(r,[{key:"registerApplication",value:function(n,i){this._applications.set(n,i)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Z3.findTestabilityInTree(this,n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),tT=function(){function e(){v(this,e)}return h(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,i){return null}}]),e}(),Z3=new tT;function rT(e,r,t){var n=new F3(t);return Promise.resolve(n)}var jg=new re("AllowMultipleToken");function aT(e){if(ti&&!ti.destroyed&&!ti.injector.get(jg,!1))throw new ot(400,"");ti=e.get(Gg);var t=e.get(Lg,null);return t&&t.forEach(function(n){return n()}),ti}function Ug(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(r),i=new re(n);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Q3();if(!o||o.injector.get(jg,!1))if(e)e(t.concat(a).concat({provide:i,useValue:!0}));else{var s=t.concat(a).concat({provide:i,useValue:!0},{provide:c3,useValue:"platform"});aT($t.create({providers:s,name:n}))}return oT()}}function oT(e){var r=Q3();if(!r)throw new ot(401,"");return r}function Q3(){return ti&&!ti.destroyed?ti:null}var Gg=function(){var e=function(){function r(t){v(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return h(r,[{key:"bootstrapModuleFactory",value:function(n,i){var a=this,c=function sT(e,r){return"noop"===e?new eT:("zone.js"===e?void 0:e)||new Xe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),u=[{provide:Xe,useValue:c}];return c.run(function(){var d=$t.create({providers:u,parent:a.injector,name:n.moduleType.name}),f=n.create(d),p=f.injector.get(Ra,null);if(!p)throw new ot(402,"");return c.runOutsideAngular(function(){var m=c.onError.subscribe({next:function(D){p.handleError(D)}});f.onDestroy(function(){X3(a._modules,f),m.unsubscribe()})}),function lT(e,r,t){try{var n=t();return hu(n)?n.catch(function(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}):n}catch(i){throw r.runOutsideAngular(function(){return e.handleError(i)}),i}}(p,c,function(){var m=f.injector.get(gs);return m.runInitializers(),m.donePromise.then(function(){return function RD(e){hr(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(f.injector.get(sa,yu)||yu),a._moduleDoBootstrap(f),f})})})}},{key:"bootstrapModule",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=Wg({},a);return rT(0,0,n).then(function(s){return i.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(n){var i=n.injector.get(ys);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(o){return i.bootstrap(o)});else{if(!n.instance.ngDoBootstrap)throw new ot(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new ot(404,"");this._modules.slice().forEach(function(i){return i.destroy()}),this._destroyListeners.forEach(function(i){return i()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T($t))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}();function Wg(e,r){return Array.isArray(r)?r.reduce(Wg,e):Object.assign(Object.assign({},e),r)}var ys=function(){var e=function(){function r(t,n,i,a,o){var s=this;v(this,r),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new de(function(u){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){u.next(s._stable),u.complete()})}),c=new de(function(u){var d;s._zone.runOutsideAngular(function(){d=s._zone.onStable.subscribe(function(){Xe.assertNotInAngularZone(),W3(function(){!s._stable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks&&(s._stable=!0,u.next(!0))})})});var f=s._zone.onUnstable.subscribe(function(){Xe.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){u.next(!1)}))});return function(){d.unsubscribe(),f.unsubscribe()}});this.isStable=ko(l,c.pipe(x4()))}return h(r,[{key:"bootstrap",value:function(n,i){var s,a=this;if(!this._initStatus.done)throw new ot(405,"");s=n instanceof Jp?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);var l=function iT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(fs),u=s.create($t.NULL,[],i||s.selector,l),d=u.location.nativeElement,f=u.injector.get(K3,null),p=f&&u.injector.get(Yg);return f&&p&&p.registerApplication(d,f),u.onDestroy(function(){a.detachView(u.hostView),X3(a.components,u),p&&p.unregisterApplication(d)}),this._loadComponent(u),u}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new ot(101,"");try{this._runningTick=!0;var o,a=lt(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(d){a.e(d)}finally{a.f()}}catch(d){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(d)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var i=n;this._views.push(i),i.attachToAppRef(this)}},{key:"detachView",value:function(n){var i=n;X3(this._views,i),i.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(G3,[]).concat(this._bootstrapListeners).forEach(function(a){return a(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe),T($t),T(Ra),T(Ci),T(gs))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}();function X3(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var $g=!0,Kg=!1;function zu(){return Kg=!0,$g}var xn=function(){var e=h(function r(){v(this,r)});return e.__NG_ELEMENT_ID__=dT,e}();function dT(e){return function fT(e,r,t){if(Pc(e)&&!t){var n=pr(e.index,r);return new Ol(n,n)}return 47&e.type?new Ol(r[16],r):null}(yn(),Y(),16==(16&e))}var Jg=function(){function e(){v(this,e)}return h(e,[{key:"supports",value:function(t){return Dl(t)}},{key:"create",value:function(t){return new gT(t)}}]),e}(),pT=function(r,t){return t},gT=function(){function e(r){v(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||pT}return h(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,i=this._removalsHead,a=0,o=null;n||i;){var s=!i||n&&n.currentIndex<t5(i,a,o)?n:i,l=t5(s,a,o),c=s.currentIndex;if(s===i)a--,i=i._nextRemoved;else if(n=n._next,null==s.previousIndex)a++;else{o||(o=[]);var u=l-a,d=c-a;if(u!=d){for(var f=0;f<u;f++){var p=f<o.length?o[f]:o[f]=0,g=p+f;d<=g&&g<u&&(o[f]=p+1)}o[s.previousIndex]=d-u}}l!==c&&t(s,l,c)}}},{key:"forEachPreviousItem",value:function(t){var n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}},{key:"forEachAddedItem",value:function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}},{key:"forEachMovedItem",value:function(t){var n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}},{key:"forEachRemovedItem",value:function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}},{key:"forEachIdentityChange",value:function(t){var n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Dl(t))throw new ot(900,"");return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var n=this;this._reset();var o,s,l,i=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var c=0;c<this.length;c++)l=this._trackByFn(c,s=t[c]),null!==i&&Object.is(i.trackById,l)?(a&&(i=this._verifyReinsertion(i,s,l,c)),Object.is(i.item,s)||this._addIdentityChange(i,s)):(i=this._mismatch(i,s,l,c),a=!0),i=i._next}else o=0,function DS(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t++)r(e[t]);else for(var i,n=e[Ko()]();!(i=n.next()).done;)r(i.value)}(t,function(u){l=n._trackByFn(o,u),null!==i&&Object.is(i.trackById,l)?(a&&(i=n._verifyReinsertion(i,u,l,o)),Object.is(i.item,u)||n._addIdentityChange(i,u)):(i=n._mismatch(i,u,l,o),a=!0),i=i._next,o++}),this.length=o;return this._truncate(i),this.collection=t,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(t,n,i,a){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,a))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,a)):t=this._addAfter(new mT(n,i),o,a),t}},{key:"_verifyReinsertion",value:function(t,n,i,a){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}},{key:"_truncate",value:function(t){for(;null!==t;){var n=t._next;this._addToRemovals(this._unlink(t)),t=n}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)}},{key:"_reinsertAfter",value:function(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var a=t._prevRemoved,o=t._nextRemoved;return null===a?this._removalsHead=o:a._nextRemoved=o,null===o?this._removalsTail=a:o._prevRemoved=a,this._insertAfter(t,n,i),this._addToMoves(t,i),t}},{key:"_moveAfter",value:function(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}},{key:"_addAfter",value:function(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,n,i){var a=null===n?this._itHead:n._next;return t._next=a,t._prev=n,null===a?this._itTail=t:a._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new e5),this._linkedRecords.put(t),t.currentIndex=i,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}},{key:"_addToMoves",value:function(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new e5),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}},{key:"_addIdentityChange",value:function(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}]),e}(),mT=h(function e(r,t){v(this,e),this.item=r,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),yT=function(){function e(){v(this,e),this._head=null,this._tail=null}return h(e,[{key:"add",value:function(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)}},{key:"get",value:function(t,n){var i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}},{key:"remove",value:function(t){var n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}]),e}(),e5=function(){function e(){v(this,e),this.map=new Map}return h(e,[{key:"put",value:function(t){var n=t.trackById,i=this.map.get(n);i||(i=new yT,this.map.set(n,i)),i.add(t)}},{key:"get",value:function(t,n){var a=this.map.get(t);return a?a.get(t,n):null}},{key:"remove",value:function(t){var n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function t5(e,r,t){var n=e.previousIndex;if(null===n)return n;var i=0;return t&&n<t.length&&(i=t[n]),n+r+i}var n5=function(){function e(){v(this,e)}return h(e,[{key:"supports",value:function(t){return t instanceof Map||v3(t)}},{key:"create",value:function(){return new _T}}]),e}(),_T=function(){function e(){v(this,e),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}return h(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var n;for(n=this._mapHead;null!==n;n=n._next)t(n)}},{key:"forEachPreviousItem",value:function(t){var n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}},{key:"forEachChangedItem",value:function(t){var n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}},{key:"forEachAddedItem",value:function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}},{key:"forEachRemovedItem",value:function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||v3(t)))throw new ot(900,"")}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var n=this;this._reset();var i=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(o,s){if(i&&i.key===s)n._maybeAddToChanges(i,o),n._appendAfter=i,i=i._next;else{var l=n._getOrCreateRecordForKey(s,o);i=n._insertBeforeOrAppend(i,l)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(var a=i;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,n){if(t){var i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}},{key:"_getOrCreateRecordForKey",value:function(t,n){if(this._records.has(t)){var i=this._records.get(t);this._maybeAddToChanges(i,n);var a=i._prev,o=i._next;return a&&(a._next=o),o&&(o._prev=a),i._next=null,i._prev=null,i}var s=new CT(t);return this._records.set(t,s),s.currentValue=n,this._addToAdditions(s),s}},{key:"_reset",value:function(){if(this.isDirty){var 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}}},{key:"_maybeAddToChanges",value:function(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(function(i){return n(t[i],i)})}}]),e}(),CT=h(function e(r){v(this,e),this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function r5(){return new _s([new Jg])}var _s=function(){var e=function(){function r(t){v(this,r),this.factories=t}return h(r,[{key:"find",value:function(n){var i=this.factories.find(function(o){return o.supports(n)});if(null!=i)return i;throw new ot(901,"")}}],[{key:"create",value:function(n,i){if(null!=i){var a=i.factories.slice();n=n.concat(a)}return new r(n)}},{key:"extend",value:function(n){return{provide:r,useFactory:function(a){return r.create(n,a||r5())},deps:[[r,new pl,new Ro]]}}}]),r}();return e.\u0275prov=H({token:e,providedIn:"root",factory:r5}),e}();function a5(){return new la([new n5])}var la=function(){var e=function(){function r(t){v(this,r),this.factories=t}return h(r,[{key:"find",value:function(n){var i=this.factories.find(function(o){return o.supports(n)});if(i)return i;throw new ot(901,"")}}],[{key:"create",value:function(n,i){if(i){var a=i.factories.slice();n=n.concat(a)}return new r(n)}},{key:"extend",value:function(n){return{provide:r,useFactory:function(a){return r.create(n,a||a5())},deps:[[r,new pl,new Ro]]}}}]),r}();return e.\u0275prov=H({token:e,providedIn:"root",factory:a5}),e}(),bT=[new n5],kT=new _s([new Jg]),MT=new la(bT),DT=Ug(null,"core",[{provide:Rn,useValue:"unknown"},{provide:Gg,deps:[$t]},{provide:Yg,deps:[]},{provide:qE,deps:[]}]),AT=[{provide:ys,useClass:ys,deps:[Xe,$t,Ra,Ci,gs]},{provide:Gx,deps:[Xe],useFactory:function PT(e){var r=[];return e.onStable.subscribe(function(){for(;r.length;)r.pop()()}),function(t){r.push(t)}}},{provide:gs,useClass:gs,deps:[[new Ro,j3]]},{provide:Vg,useClass:Vg,deps:[]},WE,{provide:_s,useFactory:function xT(){return kT},deps:[]},{provide:la,useFactory:function ET(){return MT},deps:[]},{provide:sa,useFactory:function TT(e){return e||function zT(){return"undefined"!=typeof $localize&&$localize.locale||yu}()},deps:[[new Qc(sa),new Ro,new pl]]},{provide:Hg,useValue:"USD"}],OT=function(){var e=h(function r(t){v(this,r)});return e.\u0275fac=function(t){return new(t||e)(T(ys))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:AT}),e}(),Au=null;function bi(){return Au}var LT=h(function e(){v(this,e)}),Ze=new re("DocumentToken"),Hl=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:function(){return function HT(){return T(o5)}()},providedIn:"platform"}),e}(),o5=function(){var e=function(r){_(n,r);var t=z(n);function n(i){var a;return v(this,n),(a=t.call(this))._doc=i,a._init(),a}return h(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return bi().getBaseHref(this._doc)}},{key:"onPopState",value:function(a){var o=bi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",a,!1),function(){return o.removeEventListener("popstate",a)}}},{key:"onHashChange",value:function(a){var o=bi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",a,!1),function(){return o.removeEventListener("hashchange",a)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(a){this.location.pathname=a}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(a,o,s){s5()?this._history.pushState(a,o,s):this.location.hash=s}},{key:"replaceState",value:function(a,o,s){s5()?this._history.replaceState(a,o,s):this.location.hash=s}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),n}(Hl);return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:function(){return function VT(){return new o5(T(Ze))}()},providedIn:"platform"}),e}();function s5(){return!!window.history.pushState}function l5(e,r){if(0==e.length)return r;if(0==r.length)return e;var t=0;return e.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?e+r.substring(1):1==t?e+r:e+"/"+r}function c5(e){var r=e.match(/#|\?|$/),t=r&&r.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function qa(e){return e&&"?"!==e[0]?"?"+e:e}var id=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:function(){return function RT(e){var r=T(Ze).location;return new BT(T(Hl),r&&r.origin||"")}()},providedIn:"root"}),e}(),NT=new re("appBaseHref"),BT=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a){var o;if(v(this,n),(o=t.call(this))._platformLocation=i,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)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.");return o._baseHref=a,o}return h(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return l5(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+qa(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var c=this.prepareExternalUrl(s+qa(l));this._platformLocation.pushState(a,o,c)}},{key:"replaceState",value:function(a,o,s,l){var c=this.prepareExternalUrl(s+qa(l));this._platformLocation.replaceState(a,o,c)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),n}(id);return e.\u0275fac=function(t){return new(t||e)(T(Hl),T(NT,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),u5=function(){var e=function(){function r(t,n){var i=this;v(this,r),this._subject=new ie,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=c5(d5(a)),this._platformStrategy.onPopState(function(o){i._subject.emit({url:i.path(!0),pop:!0,state:o.state,type:o.type})})}return h(r,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+qa(i))}},{key:"normalize",value:function(n){return r.stripTrailingSlash(function jT(e,r){return e&&r.startsWith(e)?r.substring(e.length):r}(this._baseHref,d5(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qa(i)),a)}},{key:"replaceState",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qa(i)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var i,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(i=this._platformStrategy).historyGo)||void 0===a||a.call(i,n)}},{key:"onUrlChange",value:function(n){var i=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){i._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(n,i)})}},{key:"subscribe",value:function(n,i,a){return this._subject.subscribe({next:n,error:i,complete:a})}}]),r}();return e.normalizeQueryParams=qa,e.joinWithSlash=l5,e.stripTrailingSlash=c5,e.\u0275fac=function(t){return new(t||e)(T(id),T(Hl))},e.\u0275prov=H({token:e,factory:function(){return function YT(){return new u5(T(id),T(Hl))}()},providedIn:"root"}),e}();function d5(e){return e.replace(/\/index.html$/,"")}var f5={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ur=function(){return(ur=ur||{})[ur.Decimal=0]="Decimal",ur[ur.Percent=1]="Percent",ur[ur.Currency=2]="Currency",ur[ur.Scientific=3]="Scientific",ur}(),fn=function(){return(fn=fn||{})[fn.Zero=0]="Zero",fn[fn.One=1]="One",fn[fn.Two=2]="Two",fn[fn.Few=3]="Few",fn[fn.Many=4]="Many",fn[fn.Other=5]="Other",fn}(),ke=function(){return(ke=ke||{})[ke.Decimal=0]="Decimal",ke[ke.Group=1]="Group",ke[ke.List=2]="List",ke[ke.PercentSign=3]="PercentSign",ke[ke.PlusSign=4]="PlusSign",ke[ke.MinusSign=5]="MinusSign",ke[ke.Exponential=6]="Exponential",ke[ke.SuperscriptingExponent=7]="SuperscriptingExponent",ke[ke.PerMille=8]="PerMille",ke[ke.Infinity=9]="Infinity",ke[ke.NaN=10]="NaN",ke[ke.TimeSeparator=11]="TimeSeparator",ke[ke.CurrencyDecimal=12]="CurrencyDecimal",ke[ke.CurrencyGroup=13]="CurrencyGroup",ke}();function Vr(e,r){var t=Zn(e),n=t[oe.NumberSymbols][r];if(void 0===n){if(r===ke.CurrencyDecimal)return t[oe.NumberSymbols][ke.Decimal];if(r===ke.CurrencyGroup)return t[oe.NumberSymbols][ke.Group]}return n}function KT(e){return Zn(e)[oe.Currencies]}var ZT=function Dp(e){return Zn(e)[oe.PluralCase]};function JT(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",n=KT(t)[e]||f5[e]||[],i=n[1];return"narrow"===r&&"string"==typeof i?i:n[0]||e}var pz=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Rl="0";function _z(e,r,t,n,i){var o=function dd(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(";"),i=n[0],a=n[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf(Rl)+1),i.substring(i.lastIndexOf(Rl)+1)],s=o[0],l=o[1]||"";t.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c<l.length;c++){var u=l.charAt(c);u===Rl?t.minFrac=t.maxFrac=c+1:"#"===u?t.maxFrac=c+1:t.posSuf+=u}var d=s.split(",");if(t.gSize=d[1]?d[1].length:0,t.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,a){var f=i.length-t.posPre.length-t.posSuf.length,p=a.indexOf("#");t.negPre=a.substr(0,p).replace(/'/g,""),t.negSuf=a.substr(p+f).replace(/'/g,"")}else t.negPre=r+t.posPre,t.negSuf=t.posSuf;return t}(function ad(e,r){return Zn(e)[oe.NumberFormats][r]}(r,ur.Currency),Vr(r,ke.MinusSign));return o.minFrac=function tz(e){var r,t=f5[e];return t&&(r=t[2]),"number"==typeof r?r:2}(n),o.maxFrac=o.minFrac,function ud(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var c=kz(e);o&&(c=wz(c));var u=r.minInt,d=r.minFrac,f=r.maxFrac;if(a){var p=a.match(pz);if(null===p)throw new Error("".concat(a," is not a valid digit info"));var g=p[1],m=p[3],C=p[5];null!=g&&(u=fd(g)),null!=m&&(d=fd(m)),null!=C?f=fd(C):null!=m&&d>f&&(f=d)}Mz(c,d,f);var D=c.digits,x=c.integerLen,F=c.exponent,V=[];for(l=D.every(function(te){return!te});x<u;x++)D.unshift(0);for(;x<0;x++)D.unshift(0);x>0?V=D.splice(x,D.length):(V=D,D=[0]);var ne=[];for(D.length>=r.lgSize&&ne.unshift(D.splice(-r.lgSize,D.length).join(""));D.length>r.gSize;)ne.unshift(D.splice(-r.gSize,D.length).join(""));D.length&&ne.unshift(D.join("")),s=ne.join(Vr(t,n)),V.length&&(s+=Vr(t,i)+V.join("")),F&&(s+=Vr(t,ke.Exponential)+"+"+F)}else s=Vr(t,ke.Infinity);return e<0&&!l?r.negPre+s+r.negSuf:r.posPre+s+r.posSuf}(e,o,r,ke.CurrencyGroup,ke.CurrencyDecimal,i).replace("\xa4",t).replace("\xa4","").trim()}function wz(e){if(0===e.digits[0])return e;var r=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===r?e.digits.push(0,0):1===r&&e.digits.push(0),e.integerLen+=2),e}function kz(e){var n,i,a,o,s,r=Math.abs(e)+"",t=0;for((i=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(i<0&&(i=a),i+=+r.slice(a+1),r=r.substring(0,a)):i<0&&(i=r.length),a=0;r.charAt(a)===Rl;a++);if(a===(s=r.length))n=[0],i=1;else{for(s--;r.charAt(s)===Rl;)s--;for(i-=a,n=[],o=0;a<=s;a++,o++)n[o]=Number(r.charAt(a))}return i>22&&(n=n.splice(0,21),t=i-1,i=1),{digits:n,exponent:t,integerLen:i}}function Mz(e,r,t){if(r>t)throw new Error("The minimum number of digits after fraction (".concat(r,") is higher than the maximum (").concat(t,")."));var n=e.digits,i=n.length-e.integerLen,a=Math.min(Math.max(r,i),t),o=a+e.integerLen,s=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(var l=o;l<n.length;l++)n[l]=0}else{i=Math.max(0,i),e.integerLen=1,n.length=Math.max(1,o=a+1),n[0]=0;for(var c=1;c<o;c++)n[c]=0}if(s>=5)if(o-1<0){for(var u=0;u>o;u--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;i<Math.max(0,a);i++)n.push(0);var d=0!==a,f=r+e.integerLen,p=n.reduceRight(function(g,m,C,D){return D[C]=(m+=g)<10?m:m-10,d&&(0===D[C]&&C>=f?D.pop():d=!1),m>=10?1:0},0);p&&(n.unshift(p),e.integerLen++)}function fd(e){var r=parseInt(e);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+e);return r}var Bu=h(function e(){v(this,e)}),Sz=function(){var e=function(r){_(n,r);var t=z(n);function n(i){var a;return v(this,n),(a=t.call(this)).locale=i,a}return h(n,[{key:"getPluralCategory",value:function(a,o){switch(ZT(o||this.locale)(a)){case fn.Zero:return"zero";case fn.One:return"one";case fn.Two:return"two";case fn.Few:return"few";case fn.Many:return"many";default:return"other"}}}]),n}(Bu);return e.\u0275fac=function(t){return new(t||e)(T(sa))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}();function C5(e,r,t){return function FD(e,r,t){"string"!=typeof r&&(t=r,r=e[oe.LocaleId]),r=r.toLowerCase().replace(/_/g,"-"),ls[r]=e,t&&(ls[r][oe.ExtraData]=t)}(e,r,t)}var ca=function(){var e=function(){function r(t,n,i,a){v(this,r),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return h(r,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Dl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var i=this._keyValueDiffer.diff(this._rawClass);i&&this._applyKeyValueChanges(i)}}},{key:"_applyKeyValueChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._toggleClass(a.key,a.currentValue)}),n.forEachRemovedItem(function(a){a.previousValue&&i._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var i=this;n.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(vt(a.item)));i._toggleClass(a.item,!0)}),n.forEachRemovedItem(function(a){return i._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!0)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!!n[a])}))}},{key:"_removeClasses",value:function(n){var i=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(a){return i._toggleClass(a,!1)}):Object.keys(n).forEach(function(a){return i._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(n,i){var a=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(o){i?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(_s),y(la),y(Me),y(bn))},e.\u0275dir=U({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),Ez=function(){function e(r,t,n,i){v(this,e),this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}return h(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Nn=function(){var e=function(){function r(t,n,i){v(this,r),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return h(r,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(n){var i=this,a=this._viewContainer;n.forEachOperation(function(u,d,f){if(null==u.previousIndex)a.createEmbeddedView(i._template,new Ez(u.item,i._ngForOf,-1,-1),null===f?void 0:f);else if(null==f)a.remove(null===d?void 0:d);else if(null!==d){var p=a.get(d);a.move(p,f),b5(p,u)}});for(var o=0,s=a.length;o<s;o++){var c=a.get(o).context;c.index=o,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(function(u){b5(a.get(u.currentIndex),u)})}}],[{key:"ngTemplateContextGuard",value:function(n,i){return!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(cr),y(Qn),y(_s))},e.\u0275dir=U({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}();function b5(e,r){e.context.$implicit=r.item}var Qt=function(){var e=function(){function r(t,n){v(this,r),this._viewContainer=t,this._context=new Tz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return h(r,[{key:"ngIf",set:function(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}},{key:"ngIfThen",set:function(n){w5("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(n){w5("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){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)))}}],[{key:"ngTemplateContextGuard",value:function(n,i){return!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(cr),y(Qn))},e.\u0275dir=U({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),Tz=h(function e(){v(this,e),this.$implicit=null,this.ngIf=null});function w5(e,r){if(r&&!r.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(vt(r),"'."))}var hd=function(){function e(r,t){v(this,e),this._viewContainerRef=r,this._templateRef=t,this._created=!1}return h(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}]),e}(),Cs=function(){var e=function(){function r(){v(this,r),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return h(r,[{key:"ngSwitch",set:function(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}},{key:"_matchCase",value:function(n){var i=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}},{key:"_updateDefaultCases",value:function(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(var i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(n)}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Yu=function(){var e=function(){function r(t,n,i){v(this,r),this.ngSwitch=i,i._addCase(),this._view=new hd(t,n)}return h(r,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(cr),y(Qn),y(Cs,9))},e.\u0275dir=U({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),vd=function(){var e=h(function r(t,n,i){v(this,r),i._addDefault(new hd(t,n))});return e.\u0275fac=function(t){return new(t||e)(y(cr),y(Qn),y(Cs,9))},e.\u0275dir=U({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),$a=function(){var e=function(){function r(t,n,i){v(this,r),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return h(r,[{key:"ngStyle",set:function(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}},{key:"_setStyle",value:function(n,i){var o=Be(n.split("."),2),s=o[0],l=o[1];null!=(i=null!=i&&l?"".concat(i).concat(l):i)?this._renderer.setStyle(this._ngEl.nativeElement,s,i):this._renderer.removeStyle(this._ngEl.nativeElement,s)}},{key:"_applyChanges",value:function(n){var i=this;n.forEachRemovedItem(function(a){return i._setStyle(a.key,null)}),n.forEachAddedItem(function(a){return i._setStyle(a.key,a.currentValue)}),n.forEachChangedItem(function(a){return i._setStyle(a.key,a.currentValue)})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Me),y(la),y(bn))},e.\u0275dir=U({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),M5=function(){var e=function(){function r(t){v(this,r),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return h(r,[{key:"ngOnChanges",value:function(n){if(n.ngTemplateOutlet){var i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(cr))},e.\u0275dir=U({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Mt]}),e}();function ri(e,r){return new ot(2100,"")}var Az=function(){function e(){v(this,e)}return h(e,[{key:"createSubscription",value:function(t,n){return t.subscribe({next:n,error:function(a){throw a}})}},{key:"dispose",value:function(t){t.unsubscribe()}},{key:"onDestroy",value:function(t){t.unsubscribe()}}]),e}(),Pz=function(){function e(){v(this,e)}return h(e,[{key:"createSubscription",value:function(t,n){return t.then(n,function(i){throw i})}},{key:"dispose",value:function(t){}},{key:"onDestroy",value:function(t){}}]),e}(),Oz=new Pz,Fz=new Az,bs=function(){var e=function(){function r(t){v(this,r),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return h(r,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}},{key:"_subscribe",value:function(n){var i=this;this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,function(a){return i._updateLatestValue(n,a)})}},{key:"_selectStrategy",value:function(n){if(hu(n))return Oz;if(Nv(n))return Fz;throw ri()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(xn,16))},e.\u0275pipe=Ot({name:"async",type:e,pure:!1}),e}(),pd=function(){var e=function(){function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";v(this,r),this._locale=t,this._defaultCurrencyCode=n}return h(r,[{key:"transform",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!gd(n))return null;s=s||this._locale,"boolean"==typeof a&&(a=a?"symbol":"code");var l=i||this._defaultCurrencyCode;"code"!==a&&(l="symbol"===a||"symbol-narrow"===a?JT(l,"symbol"===a?"wide":"narrow",s):a);try{var c=md(n);return _z(c,s,l,i,o)}catch(u){throw ri()}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(sa,16),y(Hg,16))},e.\u0275pipe=Ot({name:"currency",type:e,pure:!0}),e}();function gd(e){return!(null==e||""===e||e!=e)}function md(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var wr=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[{provide:Bu,useClass:Sz}]}),e}(),D5="browser";function Ni(e){return e===D5}function Bi(e){return"server"===e}var ju,x5=h(function e(){v(this,e)}),Jz=function(e){_(t,e);var r=z(t);function t(){var n;return v(this,t),(n=r.apply(this,arguments)).supportsDOMEvents=!0,n}return h(t)}(LT),eA=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"onAndCancel",value:function(i,a,o){return i.addEventListener(a,o,!1),function(){i.removeEventListener(a,o,!1)}}},{key:"dispatchEvent",value:function(i,a){i.dispatchEvent(a)}},{key:"remove",value:function(i){i.parentNode&&i.parentNode.removeChild(i)}},{key:"createElement",value:function(i,a){return(a=a||this.getDefaultDocument()).createElement(i)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(i){return i.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(i){return i instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(i,a){return"window"===a?window:"document"===a?i:"body"===a?i.body:null}},{key:"getBaseHref",value:function(i){var a=function tA(){return(Nl=Nl||document.querySelector("base"))?Nl.getAttribute("href"):null}();return null==a?null:function nA(e){(ju=ju||document.createElement("a")).setAttribute("href",e);var r=ju.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){Nl=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(i){return function Dz(e,r){r=encodeURIComponent(r);var n,t=lt(e.split(";"));try{for(t.s();!(n=t.n()).done;){var i=n.value,a=i.indexOf("="),s=Be(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),c=s[1];if(s[0].trim()===r)return decodeURIComponent(c)}}catch(u){t.e(u)}finally{t.f()}return null}(document.cookie,i)}}],[{key:"makeCurrent",value:function(){!function IT(e){Au||(Au=e)}(new t)}}]),t}(Jz),Nl=null,E5=new re("TRANSITION_ID"),iA=[{provide:j3,useFactory:function rA(e,r,t){return function(){t.get(gs).donePromise.then(function(){for(var n=bi(),i=r.querySelectorAll('style[ng-transition="'.concat(e,'"]')),a=0;a<i.length;a++)n.remove(i[a])})}},deps:[E5,Ze,$t],multi:!0}],aA=function(){function e(){v(this,e)}return h(e,[{key:"addToWindow",value:function(t){mt.getAngularTestability=function(i){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(i,a);if(null==o)throw new Error("Could not find testability for element.");return o},mt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},mt.getAllAngularRootElements=function(){return t.getAllRootElements()},mt.frameworkStabilizers||(mt.frameworkStabilizers=[]),mt.frameworkStabilizers.push(function(a){var o=mt.getAllAngularTestabilities(),s=o.length,l=!1,c=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(u){u.whenStable(c)})})}},{key:"findTestabilityInTree",value:function(t,n,i){if(null==n)return null;var a=t.getTestability(n);return null!=a?a:i?bi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function nT(e){Z3=e}(new e)}}]),e}(),oA=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Uu=new re("EventManagerPlugins"),Gu=function(){var e=function(){function r(t,n){var i=this;v(this,r),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=i}),this._plugins=t.slice().reverse()}return h(r,[{key:"addEventListener",value:function(n,i,a){return this._findPluginFor(i).addEventListener(n,i,a)}},{key:"addGlobalEventListener",value:function(n,i,a){return this._findPluginFor(i).addGlobalEventListener(n,i,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var i=this._eventNameToPlugin.get(n);if(i)return i;for(var a=this._plugins,o=0;o<a.length;o++){var s=a[o];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error("No event manager plugin found for event ".concat(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Uu),T(Xe))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),T5=function(){function e(r){v(this,e),this._doc=r}return h(e,[{key:"addGlobalEventListener",value:function(t,n,i){var a=bi().getGlobalEventTarget(this._doc,t);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(n));return this.addEventListener(a,n,i)}}]),e}(),z5=function(){var e=function(){function r(){v(this,r),this._stylesSet=new Set}return h(r,[{key:"addStyles",value:function(n){var i=this,a=new Set;n.forEach(function(o){i._stylesSet.has(o)||(i._stylesSet.add(o),a.add(o))}),this.onStylesAdded(a)}},{key:"onStylesAdded",value:function(n){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Bl=function(){var e=function(r){_(n,r);var t=z(n);function n(i){var a;return v(this,n),(a=t.call(this))._doc=i,a._hostNodes=new Map,a._hostNodes.set(i.head,[]),a}return h(n,[{key:"_addStylesToHost",value:function(a,o,s){var l=this;a.forEach(function(c){var u=l._doc.createElement("style");u.textContent=c,s.push(o.appendChild(u))})}},{key:"addHost",value:function(a){var o=[];this._addStylesToHost(this._stylesSet,a,o),this._hostNodes.set(a,o)}},{key:"removeHost",value:function(a){var o=this._hostNodes.get(a);o&&o.forEach(A5),this._hostNodes.delete(a)}},{key:"onStylesAdded",value:function(a){var o=this;this._hostNodes.forEach(function(s,l){o._addStylesToHost(a,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(a){return a.forEach(A5)})}}]),n}(z5);return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}();function A5(e){bi().remove(e)}var yd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_d=/%COMP%/g,sA="_nghost-".concat("%COMP%"),lA="_ngcontent-".concat("%COMP%");function Wu(e,r,t){for(var n=0;n<r.length;n++){var i=r[n];Array.isArray(i)?Wu(e,i,t):(i=i.replace(_d,e),t.push(i))}return t}function F5(e){return function(r){if("__ngUnwrap__"===r)return e;!1===e(r)&&(r.preventDefault(),r.returnValue=!1)}}var qu=function(){var e=function(){function r(t,n,i){v(this,r),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Cd(t)}return h(r,[{key:"createRenderer",value:function(n,i){if(!n||!i)return this.defaultRenderer;switch(i.encapsulation){case Wr.Emulated:var a=this.rendererByCompId.get(i.id);return a||(a=new fA(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,a)),a.applyToHost(n),a;case 1:case Wr.ShadowDom:return new hA(this.eventManager,this.sharedStylesHost,n,i);default:if(!this.rendererByCompId.has(i.id)){var o=Wu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Gu),T(Bl),T(ms))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Cd=function(){function e(r){v(this,e),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return h(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,n){return n?document.createElementNS(yd[n]||n,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,n){t.appendChild(n)}},{key:"insertBefore",value:function(t,n,i){t&&t.insertBefore(n,i)}},{key:"removeChild",value:function(t,n){t&&t.removeChild(n)}},{key:"selectRootElement",value:function(t,n){var i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error('The selector "'.concat(t,'" did not match any elements'));return n||(i.textContent=""),i}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,n,i,a){if(a){n=a+":"+n;var o=yd[a];o?t.setAttributeNS(o,n,i):t.setAttribute(n,i)}else t.setAttribute(n,i)}},{key:"removeAttribute",value:function(t,n,i){if(i){var a=yd[i];a?t.removeAttributeNS(a,n):t.removeAttribute("".concat(i,":").concat(n))}else t.removeAttribute(n)}},{key:"addClass",value:function(t,n){t.classList.add(n)}},{key:"removeClass",value:function(t,n){t.classList.remove(n)}},{key:"setStyle",value:function(t,n,i,a){a&(yr.DashCase|yr.Important)?t.style.setProperty(n,i,a&yr.Important?"important":""):t.style[n]=i}},{key:"removeStyle",value:function(t,n,i){i&yr.DashCase?t.style.removeProperty(n):t.style[n]=""}},{key:"setProperty",value:function(t,n,i){t[n]=i}},{key:"setValue",value:function(t,n){t.nodeValue=n}},{key:"listen",value:function(t,n,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,F5(i)):this.eventManager.addEventListener(t,n,F5(i))}}]),e}(),fA=function(e){_(t,e);var r=z(t);function t(n,i,a,o){var s;v(this,t),(s=r.call(this,n)).component=a;var l=Wu(o+"-"+a.id,a.styles,[]);return i.addStyles(l),s.contentAttr=function cA(e){return lA.replace(_d,e)}(o+"-"+a.id),s.hostAttr=function uA(e){return sA.replace(_d,e)}(o+"-"+a.id),s}return h(t,[{key:"applyToHost",value:function(i){L(O(t.prototype),"setAttribute",this).call(this,i,this.hostAttr,"")}},{key:"createElement",value:function(i,a){var o=L(O(t.prototype),"createElement",this).call(this,i,a);return L(O(t.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),t}(Cd),hA=function(e){_(t,e);var r=z(t);function t(n,i,a,o){var s;v(this,t),(s=r.call(this,n)).sharedStylesHost=i,s.hostEl=a,s.shadowRoot=a.attachShadow({mode:"open"}),s.sharedStylesHost.addHost(s.shadowRoot);for(var l=Wu(o.id,o.styles,[]),c=0;c<l.length;c++){var u=document.createElement("style");u.textContent=l[c],s.shadowRoot.appendChild(u)}return s}return h(t,[{key:"nodeOrShadowRoot",value:function(i){return i===this.hostEl?this.shadowRoot:i}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(i,a){return L(O(t.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(i),a)}},{key:"insertBefore",value:function(i,a,o){return L(O(t.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(i),a,o)}},{key:"removeChild",value:function(i,a){return L(O(t.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(i),a)}},{key:"parentNode",value:function(i){return this.nodeOrShadowRoot(L(O(t.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(i)))}}]),t}(Cd),vA=function(){var e=function(r){_(n,r);var t=z(n);function n(i){return v(this,n),t.call(this,i)}return h(n,[{key:"supports",value:function(a){return!0}},{key:"addEventListener",value:function(a,o,s){var l=this;return a.addEventListener(o,s,!1),function(){return l.removeEventListener(a,o,s)}}},{key:"removeEventListener",value:function(a,o,s){return a.removeEventListener(o,s)}}]),n}(T5);return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),L5=["alt","control","meta","shift"],gA={"\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"},H5={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"},mA={alt:function(r){return r.altKey},control:function(r){return r.ctrlKey},meta:function(r){return r.metaKey},shift:function(r){return r.shiftKey}},yA=function(){var e=function(r){_(n,r);var t=z(n);function n(i){return v(this,n),t.call(this,i)}return h(n,[{key:"supports",value:function(a){return null!=n.parseEventName(a)}},{key:"addEventListener",value:function(a,o,s){var l=n.parseEventName(o),c=n.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return bi().onAndCancel(a,l.domEventName,c)})}}],[{key:"parseEventName",value:function(a){var o=a.toLowerCase().split("."),s=o.shift();if(0===o.length||"keydown"!==s&&"keyup"!==s)return null;var l=n._normalizeKey(o.pop()),c="";if(L5.forEach(function(d){var f=o.indexOf(d);f>-1&&(o.splice(f,1),c+=d+".")}),c+=l,0!=o.length||0===l.length)return null;var u={};return u.domEventName=s,u.fullKey=c,u}},{key:"getEventFullKey",value:function(a){var o="",s=function _A(e){var r=e.key;if(null==r){if(null==(r=e.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===e.location&&H5.hasOwnProperty(r)&&(r=H5[r]))}return gA[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),L5.forEach(function(l){l!=s&&(0,mA[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){n.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),n}(T5);return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),kA=[{provide:Rn,useValue:D5},{provide:Lg,useValue:function CA(){eA.makeCurrent(),aA.init()},multi:!0},{provide:Ze,useFactory:function wA(){return function Tb(e){U4=e}(document),document},deps:[]}],MA=Ug(DT,"browser",kA),SA=[{provide:c3,useValue:"root"},{provide:Ra,useFactory:function bA(){return new Ra},deps:[]},{provide:Uu,useClass:vA,multi:!0,deps:[Ze,Xe,Rn]},{provide:Uu,useClass:yA,multi:!0,deps:[Ze]},{provide:qu,useClass:qu,deps:[Gu,Bl,ms]},{provide:Ua,useExisting:qu},{provide:z5,useExisting:Bl},{provide:Bl,useClass:Bl,deps:[Ze]},{provide:K3,useClass:K3,deps:[Xe]},{provide:Gu,useClass:Gu,deps:[Uu,Xe]},{provide:x5,useClass:oA,deps:[]}],V5=function(){var e=function(){function r(t){if(v(this,r),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.")}return h(r,null,[{key:"withServerTransition",value:function(n){return{ngModule:r,providers:[{provide:ms,useValue:n.appId},{provide:E5,useExisting:ms},iA]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(e,12))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:SA,imports:[wr,OT]}),e}();"undefined"!=typeof window&&window;var wd=function(){var e=function(){function r(){v(this,r),this.store={},this.onSerializeCallbacks={}}return h(r,[{key:"get",value:function(n,i){return void 0!==this.store[n]?this.store[n]:i}},{key:"set",value:function(n,i){this.store[n]=i}},{key:"remove",value:function(n){delete this.store[n]}},{key:"hasKey",value:function(n){return this.store.hasOwnProperty(n)}},{key:"onSerialize",value:function(n,i){this.onSerializeCallbacks[n]=i}},{key:"toJson",value:function(){for(var n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}],[{key:"init",value:function(n){var i=new r;return i.store=n,i}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}();function PA(e,r){var t=e.getElementById(r+"-state"),n={};if(t&&t.textContent)try{n=JSON.parse(function AA(e){var r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,function(t){return r[t]})}(t.textContent))}catch(i){console.warn("Exception while restoring TransferState for app "+r,i)}return wd.init(n)}var kd,OA=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[{provide:wd,useFactory:PA,deps:[Ze,ms]}]}),e}(),Ka=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:function(t){return t?new(t||e):T(B5)},providedIn:"root"}),e}(),B5=function(){var e=function(r){_(n,r);var t=z(n);function n(i){var a;return v(this,n),(a=t.call(this))._doc=i,a}return h(n,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case yt.NONE:return o;case yt.HTML:return fi(o,"HTML")?mr(o):qf(this._doc,String(o)).toString();case yt.STYLE:return fi(o,"Style")?mr(o):o;case yt.SCRIPT:if(fi(o,"Script"))return mr(o);throw new Error("unsafe value used in a script context");case yt.URL:return Rf(o),fi(o,"URL")?mr(o):ml(String(o));case yt.RESOURCE_URL:if(fi(o,"ResourceURL"))return mr(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function Uw(e){return new Rw(e)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function Gw(e){return new Nw(e)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function Ww(e){return new Bw(e)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function qw(e){return new Yw(e)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function $w(e){return new jw(e)}(a)}}]),n}(Ka);return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:function(t){var n;return n=t?new t:function FA(e){return new B5(e.get(Ze))}(T($t)),n},providedIn:"root"}),e}();try{kd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){kd=!1}var Yl,Qa,Sd,Za=function(){var e=h(function r(t){v(this,r),this._platformId=t,this.isBrowser=this._platformId?Ni(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&&!kd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});return e.\u0275fac=function(t){return new(t||e)(T(Rn))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Md=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}();function jl(e){return function IA(){if(null==Yl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Yl=!0}}))}finally{Yl=Yl||!1}return Yl}()?e:!!e.capture}function LA(){if(null==Qa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qa=!1;if("scrollBehavior"in document.documentElement.style)Qa=!0;else{var e=Element.prototype.scrollTo;Qa=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Qa}function j5(e){if(function HA(){if(null==Sd){var e="undefined"!=typeof document?document.head:null;Sd=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Sd}()){var r=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function ks(e){return e.composedPath?e.composedPath()[0]:e.target}function U5(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function wi(e){return null!=e&&"false"!=="".concat(e)}function G5(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function W5(e){return Array.isArray(e)?e:[e]}function vn(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function dr(e){return e instanceof Me?e.nativeElement:e}var qA=function(){var e=function(){function r(t){v(this,r),this._platform=t}return h(r,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function KA(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var i=function $A(e){try{return e.frameElement}catch(r){return null}}(function rP(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(i&&(-1===Z5(i)||!this.isVisible(i)))return!1;var a=n.nodeName.toLowerCase(),o=Z5(n);return n.hasAttribute("contenteditable")?-1!==o:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function tP(e){var r=e.nodeName.toLowerCase(),t="input"===r&&e.type;return"text"===t||"password"===t||"select"===r||"textarea"===r}(n))&&("audio"===a?!!n.hasAttribute("controls")&&-1!==o:"video"===a?-1!==o&&(null!==o||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,i){return function nP(e){return!function QA(e){return function JA(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function ZA(e){var r=e.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(e)||function XA(e){return function eP(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||K5(e))}(n)&&!this.isDisabled(n)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(n))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Za))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function K5(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var r=e.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Z5(e){if(!K5(e))return null;var r=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}var iP=function(){function e(r,t,n,i){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];v(this,e),this._element=r,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return h(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(i){n._executeOnStable(function(){return i(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]"));return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(t){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var i=this._getFirstTabbableElement(n);return null==i||i.focus(t),!!i}return n.focus(t),!0}return this.focusFirstTabbableElement(t)}},{key:"focusFirstTabbableElement",value:function(t){var n=this._getRegionBoundary("start");return n&&n.focus(t),!!n}},{key:"focusLastTabbableElement",value:function(t){var n=this._getRegionBoundary("end");return n&&n.focus(t),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=0;i<n.length;i++){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children,i=n.length-1;i>=0;i--){var a=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(a)return a}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Tr(1)).subscribe(t)}}]),e}(),Q5=function(){var e=function(){function r(t,n,i){v(this,r),this._checker=t,this._ngZone=n,this._document=i}return h(r,[{key:"create",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new iP(n,this._checker,this._ngZone,this._document,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(qA),T(Xe),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),lP=function(e){_(t,e);var r=z(t);function t(n,i){return v(this,t),r.call(this)}return h(t,[{key:"schedule",value:function(i){return this}}]),t}($),Ku={setInterval:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Ku.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,arguments)}),clearInterval:function(e){function r(t){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){var r=Ku.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)}),delegate:void 0},Dd=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a.pending=!1,a}return h(t,[{key:"schedule",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=i;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Ku.setInterval(i.flush.bind(i,this),o)}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Ku.clearInterval(a)}},{key:"execute",value:function(i,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(i,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(i,a){var s,o=!1;try{this.work(i)}catch(l){o=!0,s=l||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var i=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,q(o,this),null!=i&&(this.id=this.recycleAsyncId(a,i,null)),this.delay=null,L(O(t.prototype),"unsubscribe",this).call(this)}}}]),t}(lP),xd={now:function(){return(xd.delegate||Date).now()},delegate:void 0},Ed=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;v(this,e),this.schedulerActionCtor=r,this.now=t}return h(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(i,n)}}]),e}();Ed.now=xd.now;var Td=function(e){_(t,e);var r=z(t);function t(n){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ed.now;return v(this,t),(i=r.call(this,n,a)).actions=[],i._active=!1,i._scheduled=void 0,i}return h(t,[{key:"flush",value:function(i){var a=this.actions;if(this._active)a.push(i);else{var o;this._active=!0;do{if(o=i.execute(i.state,i.delay))break}while(i=a.shift());if(this._active=!1,o){for(;i=a.shift();)i.unsubscribe();throw o}}}}]),t}(Ed),zd=new Td(Dd),X5=zd;function cP(e){return e instanceof Date&&!isNaN(e)}function Ad(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X5,n=-1;return null!=r&&(z6(r)?t=r:n=r),new de(function(i){var a=cP(e)?+e-t.now():e;a<0&&(a=0);var o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=n?this.schedule(void 0,n):i.complete())},a)})}var Ul={schedule:function(r){var t=requestAnimationFrame,n=cancelAnimationFrame,i=Ul.delegate;i&&(t=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=t(function(o){n=void 0,r(o)});return new $(function(){return null==n?void 0:n(a)})},requestAnimationFrame:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Ul.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(e){function r(){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(){var e=Ul.delegate;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},dP=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return h(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?L(O(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Ul.requestAnimationFrame(function(){return i.flush(void 0)})))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return L(O(t.prototype),"recycleAsyncId",this).call(this,i,a,o);0===i.actions.length&&(Ul.cancelAnimationFrame(a),i._scheduled=void 0)}}]),t}(Dd),fP=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"flush",value:function(i){this._active=!0,this._scheduled=void 0;var o,a=this.actions,s=-1;i=i||a.shift();var l=a.length;do{if(o=i.execute(i.state,i.delay))break}while(++s<l&&(i=a.shift()));if(this._active=!1,o){for(;++s<l&&(i=a.shift());)i.unsubscribe();throw o}}}]),t}(Td),J5=new fP(dP);function ht(e){return un(function(r,t){Fn(e).subscribe(new Nt(t,function(){return t.complete()},cn)),!t.closed&&r.subscribe(t)})}function Nr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Js(r);return Ai(r,n)}var hP=Array.isArray;function Pd(e){return mn(function(r){return function vP(e,r){return hP(r)?e.apply(void 0,se(r)):e(r)}(e,r)})}var pP=["addListener","removeListener"],gP=["addEventListener","removeEventListener"],mP=["on","off"];function Xa(e,r,t,n){if(at(t)&&(n=t,t=void 0),n)return Xa(e,r,t).pipe(Pd(n));var a=Be(function CP(e){return at(e.addEventListener)&&at(e.removeEventListener)}(e)?gP.map(function(l){return function(c){return e[l](r,c,t)}}):function yP(e){return at(e.addListener)&&at(e.removeListener)}(e)?pP.map(em(e,r)):function _P(e){return at(e.on)&&at(e.off)}(e)?mP.map(em(e,r)):[],2),o=a[0],s=a[1];if(!o&&S4(e))return Pa(function(l){return Xa(l,r,t)})(Fn(e));if(!o)throw new TypeError("Invalid event target");return new de(function(l){var c=function(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return l.next(1<f.length?f:f[0])};return o(c),function(){return s(c)}})}function em(e,r){return function(t){return function(n){return e[t](r,n)}}}var Od,bP=1,Zu={};function tm(e){return e in Zu&&(delete Zu[e],!0)}var wP=function(r){var t=bP++;return Zu[t]=!0,Od||(Od=Promise.resolve()),Od.then(function(){return tm(t)&&r()}),t},kP=function(r){tm(r)},Qu={setImmediate:function(){var r=Qu.delegate;return((null==r?void 0:r.setImmediate)||wP).apply(void 0,arguments)},clearImmediate:function(r){var t=Qu.delegate;return((null==t?void 0:t.clearImmediate)||kP)(r)},delegate:void 0},MP=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this,n,i)).scheduler=n,a.work=i,a}return h(t,[{key:"requestAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?L(O(t.prototype),"requestAsyncId",this).call(this,i,a,o):(i.actions.push(this),i._scheduled||(i._scheduled=Qu.setImmediate(i.flush.bind(i,void 0))))}},{key:"recycleAsyncId",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return L(O(t.prototype),"recycleAsyncId",this).call(this,i,a,o);0===i.actions.length&&(Qu.clearImmediate(a),i._scheduled=void 0)}}]),t}(Dd),SP=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"flush",value:function(i){this._active=!0,this._scheduled=void 0;var o,a=this.actions,s=-1;i=i||a.shift();var l=a.length;do{if(o=i.execute(i.state,i.delay))break}while(++s<l&&(i=a.shift()));if(this._active=!1,o){for(;++s<l&&(i=a.shift());)i.unsubscribe();throw o}}}]),t}(Td),rm=new SP(MP);function DP(e){return un(function(r,t){var n=!1,i=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var u=i;i=null,t.next(u)}o&&t.complete()},l=function(){a=null,o&&t.complete()};r.subscribe(new Nt(t,function(c){n=!0,i=c,a||Fn(e(c)).subscribe(a=new Nt(t,s,l))},function(){o=!0,(!n||!a||a.closed)&&t.complete()}))})}function im(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X5;return DP(function(){return Ad(e,r)})}function Xt(e,r){return un(function(t,n){var i=0;t.subscribe(new Nt(n,function(a){return e.call(r,a,i++)&&n.next(a)}))})}var xP=new re("cdk-dir-doc",{providedIn:"root",factory:function EP(){return v2(Ze)}}),TP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Ja=function(){var e=function(){function r(t){v(this,r),this.value="ltr",this.change=new ie,t&&(this.value=function zP(e){var r=(null==e?void 0:e.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?TP.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}return h(r,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(xP,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ua=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),PP=function(){var e=function(){function r(t,n,i){v(this,r),this._ngZone=t,this._platform=n,this._scrolled=new _e,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return h(r,[{key:"register",value:function(n){var i=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return i._scrolled.next(n)}))}},{key:"deregister",value:function(n){var i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new de(function(a){n._globalSubscription||n._addGlobalListener();var o=i>0?n._scrolled.pipe(im(i)).subscribe(a):n._scrolled.subscribe(a);return n._scrolledCount++,function(){o.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):Nr()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(i,a){return n.deregister(a)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,i){var a=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(Xt(function(o){return!o||a.indexOf(o)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var i=this,a=[];return this.scrollContainers.forEach(function(o,s){i._scrollableContainsElement(s,n)&&a.push(s)}),a}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,i){var a=dr(i),o=n.getElementRef().nativeElement;do{if(a==o)return!0}while(a=a.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Xa(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe),T(Za),T(Ze,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Fd=function(){var e=function(){function r(t,n,i){var a=this;v(this,r),this._platform=t,this._change=new _e,this._changeListener=function(o){a._change.next(o)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var o=a._getWindow();o.addEventListener("resize",a._changeListener),o.addEventListener("orientationchange",a._changeListener)}a.change().subscribe(function(){return a._viewportSize=null})})}return h(r,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),i=this.getViewportSize(),a=i.width,o=i.height;return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+a,height:o,width:a}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,i=this._getWindow(),a=n.documentElement,o=a.getBoundingClientRect();return{top:-o.top||n.body.scrollTop||i.scrollY||a.scrollTop||0,left:-o.left||n.body.scrollLeft||i.scrollX||a.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(im(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Za),T(Xe),T(Ze,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Id=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),am=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[ua,Id],ua,Id]}),e}();function Ld(e,r,t){for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i?e.setProperty(n,i,(null==t?void 0:t.has(n))?"important":""):e.removeProperty(n)}return e}function Ms(e,r){var t=r?"":"none";Ld(e.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function om(e,r,t){Ld(e.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Xu(e,r){return r&&"none"!=r?e+" "+r:e}function sm(e){var r=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*r}function Hd(e,r){return e.getPropertyValue(r).split(",").map(function(n){return n.trim()})}function Vd(e){var r=e.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function Rd(e,r,t){return t>=e.top&&t<=e.bottom&&r>=e.left&&r<=e.right}function Gl(e,r,t){e.top+=r,e.bottom=e.top+e.height,e.left+=t,e.right=e.left+e.width}function lm(e,r,t,n){var u=e.width*r,d=e.height*r;return n>e.top-d&&n<e.bottom+d&&t>e.left-u&&t<e.right+u}var cm=function(){function e(r){v(this,e),this._document=r,this.positions=new Map}return h(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(t){var n=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(function(i){n.positions.set(i,{scrollPosition:{top:i.scrollTop,left:i.scrollLeft},clientRect:Vd(i)})})}},{key:"handleScroll",value:function(t){var n=ks(t),i=this.positions.get(n);if(!i)return null;var o,s,a=i.scrollPosition;if(n===this._document){var l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=n.scrollTop,s=n.scrollLeft;var c=a.top-o,u=a.left-s;return this.positions.forEach(function(d,f){d.clientRect&&n!==f&&n.contains(f)&&Gl(d.clientRect,c,u)}),a.top=o,a.left=s,{top:c,left:u}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),e}();function um(e){var r=e.cloneNode(!0),t=r.querySelectorAll("[id]"),n=e.nodeName.toLowerCase();r.removeAttribute("id");for(var i=0;i<t.length;i++)t[i].removeAttribute("id");return"canvas"===n?hm(e,r):("input"===n||"select"===n||"textarea"===n)&&fm(e,r),dm("canvas",e,r,hm),dm("input, textarea, select",e,r,fm),r}function dm(e,r,t,n){var i=r.querySelectorAll(e);if(i.length)for(var a=t.querySelectorAll(e),o=0;o<i.length;o++)n(i[o],a[o])}var IP=0;function fm(e,r){"file"!==r.type&&(r.value=e.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(IP++))}function hm(e,r){var t=r.getContext("2d");if(t)try{t.drawImage(e,0,0)}catch(n){}}var vm=jl({passive:!0}),Ju=jl({passive:!1}),Nd=new Set(["position"]),HP=function(){function e(r,t,n,i,a,o){var s=this;v(this,e),this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=a,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new _e,this._pointerMoveSubscription=$.EMPTY,this._pointerUpSubscription=$.EMPTY,this._scrollSubscription=$.EMPTY,this._resizeSubscription=$.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 _e,this.started=new _e,this.released=new _e,this.ended=new _e,this.entered=new _e,this.exited=new _e,this.dropped=new _e,this.moved=this._moveEvents,this._pointerDown=function(l){if(s.beforeStarted.next(),s._handles.length){var c=s._handles.find(function(u){return l.target&&(l.target===u||u.contains(l.target))});c&&!s._disabledHandles.has(c)&&!s.disabled&&s._initializeDragSequence(c,l)}else s.disabled||s._initializeDragSequence(s._rootElement,l)},this._pointerMove=function(l){var c=s._getPointerPositionOnPage(l);if(s._hasStartedDragging){l.preventDefault();var m=s._getConstrainedPointerPosition(c);if(s._hasMoved=!0,s._lastKnownPointerPosition=c,s._updatePointerDirectionDelta(m),s._dropContainer)s._updateActiveDropContainer(m,c);else{var C=s._activeTransform;C.x=m.x-s._pickupPositionOnPage.x+s._passiveTransform.x,C.y=m.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(C.x,C.y)}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:m,event:l,distance:s._getDragDistance(m),delta:s._pointerDirectionDelta})})}else if(Math.abs(c.x-s._pickupPositionOnPage.x)+Math.abs(c.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var p=Date.now()>=s._dragStartTime+s._getDragStartDelay(l),g=s._dropContainer;if(!p)return void s._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(l)}))}},this._pointerUp=function(l){s._endDragSequence(l)},this.withRootElement(r).withParent(t.parentDragRef||null),this._parentPositions=new cm(n),o.registerDragItem(this)}return h(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var n=wi(t);n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(function(i){return Ms(i,n)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var n=this;this._handles=t.map(function(a){return dr(a)}),this._handles.forEach(function(a){return Ms(a,n.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(a){n._handles.indexOf(a)>-1&&i.add(a)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var n=this,i=dr(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",n._pointerDown,Ju),i.addEventListener("touchstart",n._pointerDown,vm),i.addEventListener("dragstart",ym,Ju)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var n=this;return this._boundaryElement=t?dr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return n._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){var t,n;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(t=this._rootElement)||void 0===t||t.remove()),null===(n=this._anchor)||void 0===n||n.remove(),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=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Ms(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Ms(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(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}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var t,n;null===(t=this._preview)||void 0===t||t.remove(),null===(n=this._previewRef)||void 0===n||n.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var t,n;null===(t=this._placeholder)||void 0===t||t.remove(),null===(n=this._placeholderRef)||void 0===n||n.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var n=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){n._cleanupDragArtifacts(t),n._cleanupCachedDimensions(),n._dragDropRegistry.stopDragging(n)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){n.ended.next({source:n,distance:n._getDragDistance(i),dropPoint:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){Wl(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var n=this._dropContainer;if(n){var i=this._rootElement,a=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();a.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),om(i,!1,Nd),this._document.body.appendChild(a.replaceChild(o,i)),this._getPreviewInsertionPoint(a,l).appendChild(this._preview),this.started.next({source:this}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,n){var i=this;this._parentDragRef&&n.stopPropagation();var a=this.isDragging(),o=Wl(n),s=!o&&0!==n.button,l=this._rootElement,c=ks(n),u=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=o?function oP(e){var r=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}(n):function aP(e){return 0===e.buttons||0===e.offsetX&&0===e.offsetY}(n);if(c&&c.draggable&&"mousedown"===n.type&&n.preventDefault(),!(a||s||u||d)){if(this._handles.length){var f=l.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.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.scrolled(this._getShadowRoot()).subscribe(function(m){return i._updateOnScroll(m)}),this._boundaryElement&&(this._boundaryRect=Vd(this._boundaryElement));var p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,n);var g=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:g.x,y:g.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}}},{key:"_cleanupDragArtifacts",value:function(t){var n=this;om(this._rootElement,!0,Nd),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=n._dropContainer,a=i.getItemIndex(n),o=n._getPointerPositionOnPage(t),s=n._getDragDistance(o),l=i._isOverContainer(o.x,o.y);n.ended.next({source:n,distance:s,dropPoint:o}),n.dropped.next({item:n,currentIndex:a,previousIndex:n._initialIndex,container:i,previousContainer:n._initialContainer,isPointerOverContainer:l,distance:s,dropPoint:o}),i.drop(n,a,n._initialIndex,n._initialContainer,l,s,o),n._dropContainer=n._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,n){var i=this,a=t.x,o=t.y,s=n.x,l=n.y,c=this._initialContainer._getSiblingContainerFromPosition(this,a,o);!c&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,o)&&(c=this._initialContainer),c&&c!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=c,i._dropContainer.enter(i,a,o,c===i._initialContainer&&c.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:c,currentIndex:c.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(s,l),this._dropContainer._sortItem(this,a,o,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,o-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var o=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),a=gm(s,this._document),this._previewRef=s,t.matchSize?mm(a,o):a.style.transform=e1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var l=this._rootElement;mm(a=um(l),l.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return Ld(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},Nd),Ms(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(c){return a.classList.add(c)}):a.classList.add(n)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);var i=function FP(e){var r=getComputedStyle(e),t=Hd(r,"transition-property"),n=t.find(function(s){return"transform"===s||"all"===s});if(!n)return 0;var i=t.indexOf(n),a=Hd(r,"transition-duration"),o=Hd(r,"transition-delay");return sm(a[i])+sm(o[i])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var o=function l(c){var u;(!c||ks(c)===t._preview&&"transform"===c.propertyName)&&(null===(u=t._preview)||void 0===u||u.removeEventListener("transitionend",l),a(),clearTimeout(s))},s=setTimeout(o,1.5*i);t._preview.addEventListener("transitionend",o)})})}},{key:"_createPlaceholderElement",value:function(){var i,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),i=gm(this._placeholderRef,this._document)):i=um(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}},{key:"_getPointerPositionInElement",value:function(t,n){var i=this._rootElement.getBoundingClientRect(),a=t===this._rootElement?null:t,o=a?a.getBoundingClientRect():i,s=Wl(n)?n.targetTouches[0]:n,l=this._getViewportScrollPosition();return{x:o.left-i.left+(s.pageX-o.left-l.left),y:o.top-i.top+(s.pageY-o.top-l.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var n=this._getViewportScrollPosition(),i=Wl(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,a=i.pageX-n.left,o=i.pageY-n.top;if(this._ownerSVGElement){var s=this._ownerSVGElement.getScreenCTM();if(s){var l=this._ownerSVGElement.createSVGPoint();return l.x=a,l.y=o,l.matrixTransform(s.inverse())}}return{x:a,y:o}}},{key:"_getConstrainedPointerPosition",value:function(t){var n=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(t,this):t,a=i.x,o=i.y;if("x"===this.lockAxis||"x"===n?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===n)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var s=this._pickupPositionInElement,l=s.x,c=s.y,u=this._boundaryRect,d=this._getPreviewRect(),g=u.top+c,m=u.bottom-(d.height-c);a=pm(a,u.left+l,u.right-(d.width-l)),o=pm(o,g,m)}return{x:a,y:o}}},{key:"_updatePointerDirectionDelta",value:function(t){var n=t.x,i=t.y,a=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(n-o.x),l=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(a.x=n>o.x?1:-1,o.x=n),l>this._config.pointerDirectionChangeThreshold&&(a.y=i>o.y?1:-1,o.y=i),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Ms(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ju),t.removeEventListener("touchstart",this._pointerDown,vm),t.removeEventListener("dragstart",ym,Ju)}},{key:"_applyRootElementTransform",value:function(t,n){var i=e1(t,n),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Xu(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,n){var i,a=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,o=e1(t,n);this._preview.style.transform=Xu(o,a)}},{key:"_getDragDistance",value:function(t){var n=this._pickupPositionOnPage;return n?{x:t.x-n.x,y:t.y-n.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,n=t.x,i=t.y;if(!(0===n&&0===i||this.isDragging())&&this._boundaryElement){var a=this._boundaryElement.getBoundingClientRect(),o=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===o.width&&0===o.height)){var s=a.left-o.left,l=o.right-a.right,c=a.top-o.top,u=o.bottom-a.bottom;a.width>o.width?(s>0&&(n+=s),l>0&&(n-=l)):n=0,a.height>o.height?(c>0&&(i+=c),u>0&&(i-=u)):i=0,(n!==this._passiveTransform.x||i!==this._passiveTransform.y)&&this.setFreeDragPosition({y:i,x:n})}}}},{key:"_getDragStartDelay",value:function(t){var n=this.dragStartDelay;return"number"==typeof n?n:Wl(t)?n.touch:n?n.mouse:0}},{key:"_updateOnScroll",value:function(t){var n=this._parentPositions.handleScroll(t);if(n){var i=ks(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Gl(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t;return(null===(t=this._parentPositions.positions.get(this._document))||void 0===t?void 0:t.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=j5(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,n){var i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){var a=this._document;return n||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return dr(i)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}}]),e}();function e1(e,r){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(r),"px, 0)")}function pm(e,r,t){return Math.max(r,Math.min(t,e))}function Wl(e){return"t"===e.type[0]}function gm(e,r){var t=e.rootNodes;if(1===t.length&&t[0].nodeType===r.ELEMENT_NODE)return t[0];var n=r.createElement("div");return t.forEach(function(i){return n.appendChild(i)}),n}function mm(e,r){e.style.width="".concat(r.width,"px"),e.style.height="".concat(r.height,"px"),e.style.transform=e1(r.left,r.top)}function ym(e){e.preventDefault()}function ql(e,r){return Math.max(0,Math.min(r,e))}var RP=function(){function e(r,t,n,i,a){var o=this;v(this,e),this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new _e,this.entered=new _e,this.exited=new _e,this.dropped=new _e,this.sorted=new _e,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=$.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new _e,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),function uP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(e=0),Ad(e,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:zd)}(0,J5).pipe(ht(o._stopScrollTimers)).subscribe(function(){var s=o._scrollNode,l=o.autoScrollStep;1===o._verticalScrollDirection?s.scrollBy(0,-l):2===o._verticalScrollDirection&&s.scrollBy(0,l),1===o._horizontalScrollDirection?s.scrollBy(-l,0):2===o._horizontalScrollDirection&&s.scrollBy(l,0)})},this.element=dr(r),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new cm(n)}return h(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(t,n,i,a){var o;this._draggingStarted(),null==a?-1===(o=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(o=this._getItemIndexFromPointerPosition(t,n,i)):o=a;var s=this._activeDraggables,l=s.indexOf(t),c=t.getPlaceholderElement(),u=s[o];if(u===t&&(u=s[o+1]),!u&&(null==o||-1===o||o<s.length-1)&&this._shouldEnterAsFirstChild(n,i)&&(u=s[0]),l>-1&&s.splice(l,1),u&&!this._dragDropRegistry.isDragging(u)){var d=u.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,t)}else dr(this.element).appendChild(c),s.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,n,i,a,o,s,l){this._reset(),this.dropped.next({item:t,currentIndex:n,previousIndex:i,container:this,previousContainer:a,isPointerOverContainer:o,distance:s,dropPoint:l})}},{key:"withItems",value:function(t){var n=this,i=this._draggables;return this._draggables=t,t.forEach(function(o){return o._withDropContainer(n)}),this.isDragging()&&(i.filter(function(o){return o.isDragging()}).every(function(o){return-1===t.indexOf(o)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var n=dr(this.element);return this._scrollableElements=-1===t.indexOf(n)?[n].concat(se(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(i){return i.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,n,i,a){if(!this.sortingDisabled&&this._clientRect&&lm(this._clientRect,.05,n,i)){var o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,n,i,a);if(!(-1===s&&o.length>0)){var l="horizontal"===this._orientation,c=o.findIndex(function(D){return D.drag===t}),u=o[s],f=u.clientRect,p=c>s?1:-1,g=this._getItemOffsetPx(o[c].clientRect,f,p),m=this._getSiblingOffsetPx(c,o,p),C=o.slice();(function VP(e,r,t){var n=ql(r,e.length-1),i=ql(t,e.length-1);if(n!==i){for(var a=e[n],o=i<n?-1:1,s=n;s!==i;s+=o)e[s]=e[s+o];e[i]=a}})(o,c,s),this.sorted.next({previousIndex:c,currentIndex:s,container:this,item:t}),o.forEach(function(D,x){if(C[x]!==D){var F=D.drag===t,V=F?g:m,ne=F?t.getPlaceholderElement():D.drag.getRootElement();D.offset+=V,l?(ne.style.transform=Xu("translate3d(".concat(Math.round(D.offset),"px, 0, 0)"),D.initialTransform),Gl(D.clientRect,0,V)):(ne.style.transform=Xu("translate3d(0, ".concat(Math.round(D.offset),"px, 0)"),D.initialTransform),Gl(D.clientRect,V,0))}}),this._previousSwap.overlaps=Rd(f,n,i),this._previousSwap.drag=u.drag,this._previousSwap.delta=l?a.x:a.y}}}},{key:"_startScrollingIfNecessary",value:function(t,n){var i=this;if(!this.autoScrollDisabled){var a,o=0,s=0;if(this._parentPositions.positions.forEach(function(f,p){if(p!==i._document&&f.clientRect&&!a&&lm(f.clientRect,.05,t,n)){var g=function NP(e,r,t,n){var i=bm(r,n),a=wm(r,t),o=0,s=0;if(i){var l=e.scrollTop;1===i?l>0&&(o=1):e.scrollHeight-l>e.clientHeight&&(o=2)}if(a){var c=e.scrollLeft;1===a?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[o,s]}(p,f.clientRect,t,n),m=Be(g,2);s=m[1],((o=m[0])||s)&&(a=p)}}),!o&&!s){var l=this._viewportRuler.getViewportSize(),c=l.width,u=l.height,d={width:c,height:u,top:0,right:c,bottom:u,left:0};o=bm(d,n),s=wm(d,t),a=window}a&&(o!==this._verticalScrollDirection||s!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=s,this._scrollNode=a,(o||s)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=dr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=dr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(n){var i=n.getVisibleElement();return{drag:n,offset:0,initialTransform:i.style.transform||"",clientRect:Vd(i)}}).sort(function(n,i){return t?n.clientRect.left-i.clientRect.left:n.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var n=dr(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(i){var a,o=i.getRootElement();if(o){var s=null===(a=t._itemPositions.find(function(l){return l.drag===i}))||void 0===a?void 0:a.initialTransform;o.style.transform=s||""}}),this._siblings.forEach(function(i){return i._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,n,i){var a="horizontal"===this._orientation,o=n[t].clientRect,s=n[t+-1*i],l=o[a?"width":"height"]*i;if(s){var c=a?"left":"top",u=a?"right":"bottom";-1===i?l-=s.clientRect[c]-o[u]:l+=o[c]-s.clientRect[u]}return l}},{key:"_getItemOffsetPx",value:function(t,n,i){var a="horizontal"===this._orientation,o=a?n.left-t.left:n.top-t.top;return-1===i&&(o+=a?n.width-t.width:n.height-t.height),o}},{key:"_shouldEnterAsFirstChild",value:function(t,n){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,a="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var s=i[i.length-1].clientRect;return a?t>=s.right:n>=s.bottom}var l=i[0].clientRect;return a?t<=l.left:n<=l.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,n,i,a){var o=this,s="horizontal"===this._orientation,l=this._itemPositions.findIndex(function(c){var u=c.drag,d=c.clientRect;return u!==t&&((!a||u!==o._previousSwap.drag||!o._previousSwap.overlaps||(s?a.x:a.y)!==o._previousSwap.delta)&&(s?n>=Math.floor(d.left)&&n<Math.floor(d.right):i>=Math.floor(d.top)&&i<Math.floor(d.bottom)))});return-1!==l&&this.sortPredicate(l,t,this)?l:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(t,n){return null!=this._clientRect&&Rd(this._clientRect,t,n)}},{key:"_getSiblingContainerFromPosition",value:function(t,n,i){return this._siblings.find(function(a){return a._canReceive(t,n,i)})}},{key:"_canReceive",value:function(t,n,i){if(!this._clientRect||!Rd(this._clientRect,n,i)||!this.enterPredicate(t,this))return!1;var a=this._getShadowRoot().elementFromPoint(n,i);if(!a)return!1;var o=dr(this.element);return a===o||o.contains(a)}},{key:"_startReceiving",value:function(t,n){var i=this,a=this._activeSiblings;!a.has(t)&&n.every(function(o){return i.enterPredicate(o,i)||i._draggables.indexOf(o)>-1})&&(a.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(n){if(t.isDragging()){var i=t._parentPositions.handleScroll(n);i&&(t._itemPositions.forEach(function(a){Gl(a.clientRect,i.top,i.left)}),t._itemPositions.forEach(function(a){var o=a.drag;t._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=j5(dr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,n=this._activeDraggables.filter(function(i){return i.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(t,n)})}}]),e}();function bm(e,r){var t=e.top,n=e.bottom,a=.05*e.height;return r>=t-a&&r<=t+a?1:r>=n-a&&r<=n+a?2:0}function wm(e,r){var t=e.left,n=e.right,a=.05*e.width;return r>=t-a&&r<=t+a?1:r>=n-a&&r<=n+a?2:0}var t1=jl({passive:!1,capture:!0}),BP=function(){var e=function(){function r(t,n){var i=this;v(this,r),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(a){return a.isDragging()},this.pointerMove=new _e,this.pointerUp=new _e,this.scroll=new _e,this._preventDefaultWhileDragging=function(a){i._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=function(a){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&a.preventDefault(),i.pointerMove.next(a))},this._document=n}return h(r,[{key:"registerDropContainer",value:function(n){this._dropInstances.has(n)||this._dropInstances.add(n)}},{key:"registerDragItem",value:function(n){var i=this;this._dragInstances.add(n),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,t1)})}},{key:"removeDropContainer",value:function(n){this._dropInstances.delete(n)}},{key:"removeDragItem",value:function(n){this._dragInstances.delete(n),this.stopDragging(n),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,t1)}},{key:"startDragging",value:function(n,i){var a=this;if(!(this._activeDragInstances.indexOf(n)>-1)&&(this._activeDragInstances.push(n),1===this._activeDragInstances.length)){var o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:function(l){return a.pointerUp.next(l)},options:!0}).set("scroll",{handler:function(l){return a.scroll.next(l)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:t1}),o||this._globalListeners.set("mousemove",{handler:function(l){return a.pointerMove.next(l)},options:t1}),this._ngZone.runOutsideAngular(function(){a._globalListeners.forEach(function(s,l){a._document.addEventListener(l,s.handler,s.options)})})}}},{key:"stopDragging",value:function(n){var i=this._activeDragInstances.indexOf(n);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(n){return this._activeDragInstances.indexOf(n)>-1}},{key:"scrolled",value:function(n){var i=this,a=[this.scroll];return n&&n!==this._document&&a.push(new de(function(o){return i._ngZone.runOutsideAngular(function(){var l=function(u){i._activeDragInstances.length&&o.next(u)};return n.addEventListener("scroll",l,!0),function(){n.removeEventListener("scroll",l,!0)}})})),ko.apply(void 0,a)}},{key:"ngOnDestroy",value:function(){var n=this;this._dragInstances.forEach(function(i){return n.removeDragItem(i)}),this._dropInstances.forEach(function(i){return n.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var n=this;this._globalListeners.forEach(function(i,a){n._document.removeEventListener(a,i.handler,i.options)}),this._globalListeners.clear()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),YP={dragStartThreshold:5,pointerDirectionChangeThreshold:5},km=function(){var e=function(){function r(t,n,i,a){v(this,r),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=a}return h(r,[{key:"createDrag",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YP;return new HP(n,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(n){return new RP(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ze),T(Xe),T(Fd),T(BP))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),jP=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[km],imports:[Id]}),e}(),Bn=void 0,GP=["de",[["AM","PM"],Bn,Bn],Bn,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],Bn,Bn],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Bn,"{1} 'um' {0}",Bn],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],CUC:[Bn,"Cub$"],DEM:["DM"],FKP:[Bn,"Fl\xa3"],GHS:[Bn,"\u20b5"],GNF:[Bn,"F.G."],KMF:[Bn,"FC"],PHP:[Bn,"\u20b1"],RON:[Bn,"L"],RWF:[Bn,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[Bn,"K"]},"ltr",function UP(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],da=void 0,qP=["nl",[["a.m.","p.m."],da,da],da,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],da,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],da,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",da,"{1} 'om' {0}",da],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[da,"\u20b1"],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function WP(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],$l=function(e){_(t,e);var r=z(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xd;return v(this,t),(n=r.call(this))._bufferSize=i,n._windowTime=a,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=a===1/0,n._bufferSize=Math.max(1,i),n._windowTime=Math.max(1,a),n}return h(t,[{key:"next",value:function(i){var o=this._buffer,s=this._infiniteTimeWindow,l=this._timestampProvider,c=this._windowTime;this.isStopped||(o.push(i),!s&&o.push(l.now()+c)),this._trimBuffer(),L(O(t.prototype),"next",this).call(this,i)}},{key:"_subscribe",value:function(i){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(i),o=this._infiniteTimeWindow,l=this._buffer.slice(),c=0;c<l.length&&!i.closed;c+=o?1:2)i.next(l[c]);return this._checkFinalizedStatuses(i),a}},{key:"_trimBuffer",value:function(){var i=this._bufferSize,a=this._timestampProvider,o=this._buffer,s=this._infiniteTimeWindow,l=(s?1:2)*i;if(i<1/0&&l<o.length&&o.splice(0,o.length-l),!s){for(var c=a.now(),u=0,d=1;d<o.length&&o[d]<=c;d+=2)u=d;u&&o.splice(0,u+1)}}}]),t}(_e);function Bd(e,r){return un(function(t,n){var i=null,a=0,o=!1,s=function(){return o&&!i&&n.complete()};t.subscribe(new Nt(n,function(l){null==i||i.unsubscribe();var c=0,u=a++;Fn(e(l,u)).subscribe(i=new Nt(n,function(d){return n.next(r?r(l,d,u,c++):d)},function(){i=null,s()}))},function(){o=!0,s()}))})}var Yd,n1={schedule:function(r,t){var n=setTimeout(r,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(r){if("undefined"==typeof window)return n1.schedule(r,0);if(void 0===window.requestAnimationFrame)return n1.schedule(r,16);var n=window.requestAnimationFrame(r);return function(){return window.cancelAnimationFrame(n)}}};function nO(e,r,t){var n=t;return function KP(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&r.some(function(i,a){return!("*"===i||!function QP(e,r){if(!Yd){var t=Element.prototype;Yd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&Yd.call(e,r)}(e,i)||(n=a,0))}),n}var iO=function(){function e(r,t){v(this,e),this.componentFactory=t.get(Ci).resolveComponentFactory(r)}return h(e,[{key:"create",value:function(t){return new aO(this.componentFactory,t)}}]),e}(),aO=function(){function e(r,t){v(this,e),this.componentFactory=r,this.injector=t,this.eventEmitters=new $l(1),this.events=this.eventEmitters.pipe(Bd(function(n){return ko.apply(void 0,se(n))})),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(function(n){return n.propName})),this.ngZone=this.injector.get(Xe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(function(){return Zone.current})}return h(e,[{key:"connect",value:function(t){var n=this;this.runInZone(function(){if(null!==n.scheduledDestroyFn)return n.scheduledDestroyFn(),void(n.scheduledDestroyFn=null);null===n.componentRef&&n.initializeComponent(t)})}},{key:"disconnect",value:function(){var t=this;this.runInZone(function(){null===t.componentRef||null!==t.scheduledDestroyFn||(t.scheduledDestroyFn=n1.schedule(function(){null!==t.componentRef&&(t.componentRef.destroy(),t.componentRef=null,t.viewChangeDetectorRef=null)},10))})}},{key:"getInputValue",value:function(t){var n=this;return this.runInZone(function(){return null===n.componentRef?n.initialInputValues.get(t):n.componentRef.instance[t]})}},{key:"setInputValue",value:function(t,n){var i=this;this.runInZone(function(){null!==i.componentRef?function XP(e,r){return e===r||e!=e&&r!=r}(n,i.getInputValue(t))&&(void 0!==n||!i.unchangedInputs.has(t))||(i.recordInputChange(t,n),i.unchangedInputs.delete(t),i.hasInputChanges=!0,i.componentRef.instance[t]=n,i.scheduleDetectChanges()):i.initialInputValues.set(t,n)})}},{key:"initializeComponent",value:function(t){var n=$t.create({providers:[],parent:this.injector}),i=function tO(e,r){var t=e.childNodes,n=r.map(function(){return[]}),i=-1;r.some(function(c,u){return"*"===c&&(i=u,!0)});for(var a=0,o=t.length;a<o;++a){var s=t[a],l=nO(s,r,i);-1!==l&&n[l].push(s)}return n}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(xn),this.implementsOnChanges=function ZP(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ys).attachView(this.componentRef.hostView)}},{key:"initializeInputs",value:function(){var t=this;this.componentFactory.inputs.forEach(function(n){var i=n.propName;t.initialInputValues.has(i)&&t.setInputValue(i,t.initialInputValues.get(i))}),this.initialInputValues.clear()}},{key:"initializeOutputs",value:function(t){var n=this.componentFactory.outputs.map(function(i){var o=i.templateName;return t.instance[i.propName].pipe(mn(function(l){return{name:o,value:l}}))});this.eventEmitters.next(n)}},{key:"callNgOnChanges",value:function(t){if(this.implementsOnChanges&&null!==this.inputChanges){var n=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(n)}}},{key:"markViewForCheck",value:function(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}},{key:"scheduleDetectChanges",value:function(){var t=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=n1.scheduleBeforeRender(function(){t.scheduledChangeDetectionFn=null,t.detectChanges()}))}},{key:"recordInputChange",value:function(t,n){if(this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var i=this.inputChanges[t];if(i)return void(i.currentValue=n);var a=this.unchangedInputs.has(t),o=a?void 0:this.getInputValue(t);this.inputChanges[t]=new W6(o,n,a)}}},{key:"detectChanges",value:function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}},{key:"runInZone",value:function(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}]),e}(),oO=function(e){_(t,e);var r=z(t);function t(){var n;return v(this,t),(n=r.apply(this,arguments)).ngElementEventsSubscription=null,n}return h(t)}(it(HTMLElement));var eo=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this))._value=n,i}return h(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(i){var a=L(O(t.prototype),"_subscribe",this).call(this,i);return!a.closed&&i.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(i){L(O(t.prototype),"next",this).call(this,this._value=i)}}]),t}(_e);function Mm(e){for(var r in e){var t=e[r]||"";switch(r){case"display":e.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+r]=t;break;case"flex-direction":e["-webkit-flex-direction"]=t=t||"row",e["flex-direction"]=t;break;case"order":e.order=e["-webkit-"+r]=isNaN(+t)?"0":t}}return e}var jd="inline",r1=["row","column","row-reverse","column-reverse"];function Sm(e){var t=Be(Dm(e),3);return function cO(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}(t[0],t[1],t[2])}function Dm(e){var t=Be((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],a=t[2];return r1.find(function(o){return o===n})||(n=r1[0]),i===jd&&(i=a!==jd?a:"",a=jd),[n,lO(i),!!a]}function Kl(e){return Be(Dm(e),1)[0].indexOf("row")>-1}function lO(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}function Yi(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];for(var i=0,a=t;i<a.length;i++){var o=a[i];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}function Ud(e,r,t){var n=at(e)||r||t?{next:e,error:r,complete:t}:e;return n?un(function(i,a){var o;null===(o=n.subscribe)||void 0===o||o.call(n);var s=!0;i.subscribe(new Nt(a,function(l){var c;null===(c=n.next)||void 0===c||c.call(n,l),a.next(l)},function(){var l;s=!1,null===(l=n.complete)||void 0===l||l.call(n),a.complete()},function(l){var c;s=!1,null===(c=n.error)||void 0===c||c.call(n,l),a.error(l)},function(){var l,c;s&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):za}var fO={provide:G3,useFactory:function dO(e,r){return function(){if(Ni(r)){var t=Array.from(e.querySelectorAll("[class*=".concat(xm,"]"))),n=/\bflex-layout-.+?\b/g;t.forEach(function(i){i.classList.contains("".concat(xm,"ssr"))&&i.parentNode?i.parentNode.removeChild(i):i.className.replace(n,"")})}}},deps:[Ze,Rn],multi:!0},xm="flex-layout-",Gd=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[fO]}),e}(),Ss=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;v(this,e),this.matches=r,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=a,this.property=""}return h(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),hO=function(){var e=function(){function r(){v(this,r),this.stylesheet=new Map}return h(r,[{key:"addStyleToElement",value:function(n,i,a){var o=this.stylesheet.get(n);o?o.set(i,a):this.stylesheet.set(n,new Map([[i,a]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(n,i){var a=this.stylesheet.get(n),o="";if(a){var s=a.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Wd={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},fa=new re("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Wd}}),Ds=new re("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),qd=new re("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function $d(e,r){return e=e?e.clone():new Ss,r&&(e.mqAlias=r.alias,e.mediaQuery=r.mediaQuery,e.suffix=r.suffix,e.priority=r.priority),e}var Jt=function(){function e(){v(this,e),this.shouldCache=!0}return h(e,[{key:"sideEffect",value:function(t,n,i){}}]),e}(),At=function(){var e=function(){function r(t,n,i,a){v(this,r),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=a}return h(r,[{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={};"string"==typeof i&&(o[i]=a,i=o),o=this.layoutConfig.disableVendorPrefixes?i:Mm(i),this._applyMultiValueStyleToElement(o,n)}},{key:"applyStyleToElements",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this.layoutConfig.disableVendorPrefixes?n:Mm(n);a.forEach(function(s){i._applyMultiValueStyleToElement(o,s)})}},{key:"getFlowDirection",value:function(n){var i="flex-direction",a=this.lookupStyle(n,i);return[a||"row",this.lookupInlineStyle(n,i)||Bi(this._platformId)&&this._serverModuleLoaded?a:""]}},{key:"hasWrap",value:function(n){return"wrap"===this.lookupStyle(n,"flex-wrap")}},{key:"lookupAttributeValue",value:function(n,i){return n.getAttribute(i)||""}},{key:"lookupInlineStyle",value:function(n,i){return Ni(this._platformId)?n.style.getPropertyValue(i):this._getServerStyle(n,i)}},{key:"lookupStyle",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="";if(n){var s=o=this.lookupInlineStyle(n,i);s||(Ni(this._platformId)?a||(o=getComputedStyle(n).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(n,i)))}return o?o.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(n,i){var a=this;Object.keys(n).sort().forEach(function(o){var s=n[o],l=Array.isArray(s)?s:[s];l.sort();var u,c=lt(l);try{for(c.s();!(u=c.n()).done;){var d=u.value;d=d?d+"":"",Ni(a._platformId)||!a._serverModuleLoaded?Ni(a._platformId)?i.style.setProperty(o,d):a._setServerStyle(i,o,d):a._serverStylesheet.addStyleToElement(i,o,d)}}catch(f){c.e(f)}finally{c.f()}})}},{key:"_setServerStyle",value:function(n,i,a){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var o=this._readStyleAttribute(n);o[i]=a||"",this._writeStyleAttribute(n,o)}},{key:"_getServerStyle",value:function(n,i){return this._readStyleAttribute(n)[i]||""}},{key:"_readStyleAttribute",value:function(n){var i={},a=n.getAttribute("style");if(a)for(var o=a.split(/;+/g),s=0;s<o.length;s++){var l=o[s].trim();if(l.length>0){var c=l.indexOf(":");if(-1===c)throw new Error("Invalid CSS style: ".concat(l));i[l.substr(0,c).trim()]=l.substr(c+1).trim()}}return i}},{key:"_writeStyleAttribute",value:function(n,i){var a="";for(var o in i)i[o]&&(a+=o+":"+i[o]+";");n.setAttribute("style",a)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(hO),T(Ds),T(Rn),T(fa))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function xs(e,r){return(r&&r.priority||0)-(e&&e.priority||0)}function vO(e,r){return(e.priority||0)-(r.priority||0)}var a1=function(){var e=function(){function r(t,n,i){v(this,r),this._zone=t,this._platformId=n,this._document=i,this.source=new eo(new Ss(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return h(r,[{key:"activations",get:function(){var n=[];return this.registry.forEach(function(i,a){i.matches&&n.push(a)}),n}},{key:"isActive",value:function(n){var i=this.registry.get(n);return i?i.matches:this.registerQuery(n).some(function(a){return a.matches})}},{key:"observe",value:function(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&n.length){var o=this._observable$.pipe(Xt(function(l){return!a||n.indexOf(l.mediaQuery)>-1})),s=new de(function(l){var c=i.registerQuery(n);if(c.length){var u=c.pop();c.forEach(function(d){l.next(d)}),i.source.next(u)}l.complete()});return ko(s,o)}return this._observable$}},{key:"registerQuery",value:function(n){var i=this,a=Array.isArray(n)?n:[n],o=[];return function pO(e,r){var t=e.filter(function(o){return!Em[o]});if(t.length>0){var n=t.join(", ");try{var i=r.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var a="\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(n," {.fx-query-test{ }}\n");i.appendChild(r.createTextNode(a))}r.head.appendChild(i),t.forEach(function(o){return Em[o]=i})}catch(o){console.error(o)}}}(a,this._document),a.forEach(function(s){var l=function(d){i._zone.run(function(){return i.source.next(new Ss(d.matches,s))})},c=i.registry.get(s);c||((c=i.buildMQL(s)).addListener(l),i.pendingRemoveListenerFns.push(function(){return c.removeListener(l)}),i.registry.set(s,c)),c.matches&&o.push(new Ss(!0,s))}),o}},{key:"ngOnDestroy",value:function(){for(var n;n=this.pendingRemoveListenerFns.pop();)n()}},{key:"buildMQL",value:function(n){return function gO(e,r){return r&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(n,Ni(this._platformId))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe),T(Rn),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Em={},mO=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Tm="(orientation: portrait) and (max-width: 599.98px)",zm="(orientation: landscape) and (max-width: 959.98px)",Am="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Pm="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Om="(orientation: portrait) and (min-width: 840px)",Fm="(orientation: landscape) and (min-width: 1280px)",ji={HANDSET:"".concat(Tm,", ").concat(zm),TABLET:"".concat(Am," , ").concat(Pm),WEB:"".concat(Om,", ").concat(Fm," "),HANDSET_PORTRAIT:"".concat(Tm),TABLET_PORTRAIT:"".concat(Am," "),WEB_PORTRAIT:"".concat(Om),HANDSET_LANDSCAPE:"".concat(zm),TABLET_LANDSCAPE:"".concat(Pm),WEB_LANDSCAPE:"".concat(Fm)},yO=[{alias:"handset",priority:2e3,mediaQuery:ji.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ji.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ji.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ji.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ji.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ji.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ji.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ji.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ji.WEB_PORTRAIT,overlapping:!0}],_O=/(\.|-|_)/g;function CO(e){var r=e.length>0?e.charAt(0):"",t=e.length>1?e.slice(1):"";return r.toUpperCase()+t}function wO(e){return e.forEach(function(r){r.suffix||(r.suffix=function bO(e){return e.replace(_O,"|").split("|").map(CO).join("")}(r.alias),r.overlapping=!!r.overlapping)}),e}var MO=new re("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var r=v2(qd),t=v2(fa),n=[].concat.apply([],(r||[]).map(function(a){return Array.isArray(a)?a:[a]}));return function kO(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t={};return e.forEach(function(n){t[n.alias]=n}),r.forEach(function(n){t[n.alias]?Yi(t[n.alias],n):t[n.alias]=n}),wO(Object.keys(t).map(function(n){return t[n]}))}((t.disableDefaultBps?[]:mO).concat(t.addOrientationBps?yO:[]),n)}}),o1=function(){var e=function(){function r(t){v(this,r),this.findByMap=new Map,this.items=se(t).sort(vO)}return h(r,[{key:"findByAlias",value:function(n){return n?this.findWithPredicate(n,function(i){return i.alias==n}):null}},{key:"findByQuery",value:function(n){return this.findWithPredicate(n,function(i){return i.mediaQuery==n})}},{key:"overlappings",get:function(){return this.items.filter(function(n){return 1==n.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(n){return n.alias})}},{key:"suffixes",get:function(){return this.items.map(function(n){return n.suffix?n.suffix:""})}},{key:"findWithPredicate",value:function(n,i){var a=this.findByMap.get(n);return a||(a=this.items.find(i)||null,this.findByMap.set(n,a)),a||null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(MO))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Es="print",SO={alias:Es,mediaQuery:Es,priority:1e3},Im=function(){var e=function(){function r(t,n,i){v(this,r),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new DO,this.deactivations=[]}return h(r,[{key:"withPrintQuery",value:function(n){return[].concat(se(n),[Es])}},{key:"isPrintEvent",value:function(n){return n.mediaQuery.startsWith(Es)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var n=this;return this.printAlias.map(function(i){return n.breakpoints.findByAlias(i)}).filter(function(i){return null!==i})}},{key:"getEventBreakpoints",value:function(n){var a=this.breakpoints.findByQuery(n.mediaQuery);return(a?[].concat(se(this.printBreakPoints),[a]):this.printBreakPoints).sort(xs)}},{key:"updateEvent",value:function(n){var i=this.breakpoints.findByQuery(n.mediaQuery);return this.isPrintEvent(n)&&(i=this.getEventBreakpoints(n)[0],n.mediaQuery=i?i.mediaQuery:""),$d(n,i)}},{key:"registerBeforeAfterPrintHooks",value:function(n){var i=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var a=function(){i.isPrinting||(i.isPrintingBeforeAfterEvent=!0,i.startPrinting(n,i.getEventBreakpoints(new Ss(!0,Es))),n.updateStyles())},o=function(){i.isPrintingBeforeAfterEvent=!1,i.isPrinting&&(i.stopPrinting(n),n.updateStyles())};this._document.defaultView.addEventListener("beforeprint",a),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(a),this.afterPrintEventListeners.push(o)}}},{key:"interceptEvents",value:function(n){var i=this;return this.registerBeforeAfterPrintHooks(n),function(a){i.isPrintEvent(a)?a.matches&&!i.isPrinting?(i.startPrinting(n,i.getEventBreakpoints(a)),n.updateStyles()):!a.matches&&i.isPrinting&&!i.isPrintingBeforeAfterEvent&&(i.stopPrinting(n),n.updateStyles()):i.collectActivations(a)}}},{key:"blockPropagation",value:function(){var n=this;return function(i){return!(n.isPrinting||n.isPrintEvent(i))}}},{key:"startPrinting",value:function(n,i){this.isPrinting=!0,n.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}},{key:"stopPrinting",value:function(n){n.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(n){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(n.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var i=this.breakpoints.findByQuery(n.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(xs))}}},{key:"ngOnDestroy",value:function(){var n=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("beforeprint",i)}),this.afterPrintEventListeners.forEach(function(i){return n._document.defaultView.removeEventListener("afterprint",i)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(o1),T(fa),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),DO=function(){function e(){v(this,e),this.printBreakpoints=[]}return h(e,[{key:"addPrintBreakpoints",value:function(t){var n=this;return t.push(SO),t.sort(xs),t.forEach(function(i){return n.addBreakpoint(i)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(i){return i.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function xO(e){return!!e&&e.mediaQuery.startsWith(Es)}(t)?[t].concat(se(this.printBreakpoints)):[].concat(se(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}(),It=function(){var e=function(){function r(t,n,i){v(this,r),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new _e,this.observeActivations()}return h(r,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(n){var i=this.findByQuery(n.mediaQuery);i&&((n=$d(n,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(xs),this.updateStyles()):!n.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(xs),this.updateStyles()))}},{key:"init",value:function(n,i,a,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Lm(this.updateMap,n,i,a),Lm(this.clearMap,n,i,o),this.buildElementKeyMap(n,i),this.watchExtraTriggers(n,i,s)}},{key:"getValue",value:function(n,i,a){var o=this.elementMap.get(n);if(o){var s=void 0!==a?o.get(a):this.getActivatedValues(o,i);if(s)return s.get(i)}}},{key:"hasValue",value:function(n,i){var a=this.elementMap.get(n);if(a){var o=this.getActivatedValues(a,i);if(o)return void 0!==o.get(i)||!1}return!1}},{key:"setValue",value:function(n,i,a,o){var s=this.elementMap.get(n);if(s){var l=(s.get(o)||new Map).set(i,a);s.set(o,l),this.elementMap.set(n,s)}else s=(new Map).set(o,(new Map).set(i,a)),this.elementMap.set(n,s);var c=this.getValue(n,i);void 0!==c&&this.updateElement(n,i,c)}},{key:"trackValue",value:function(n,i){return this.subject.asObservable().pipe(Xt(function(a){return a.element===n&&a.key===i}))}},{key:"updateStyles",value:function(){var n=this;this.elementMap.forEach(function(i,a){var o=new Set(n.elementKeyMap.get(a)),s=n.getActivatedValues(i);s&&s.forEach(function(l,c){n.updateElement(a,c,l),o.delete(c)}),o.forEach(function(l){if(s=n.getActivatedValues(i,l)){var c=s.get(l);n.updateElement(a,l,c)}else n.clearElement(a,l)})})}},{key:"clearElement",value:function(n,i){var a=this.clearMap.get(n);if(a){var o=a.get(i);o&&(o(),this.subject.next({element:n,key:i,value:""}))}}},{key:"updateElement",value:function(n,i,a){var o=this.updateMap.get(n);if(o){var s=o.get(i);s&&(s(a),this.subject.next({element:n,key:i,value:a}))}}},{key:"releaseElement",value:function(n){var i=this.watcherMap.get(n);i&&(i.forEach(function(o){return o.unsubscribe()}),this.watcherMap.delete(n));var a=this.elementMap.get(n);a&&(a.forEach(function(o,s){return a.delete(s)}),this.elementMap.delete(n))}},{key:"triggerUpdate",value:function(n,i){var a=this,o=this.elementMap.get(n);if(o){var s=this.getActivatedValues(o,i);s&&(i?this.updateElement(n,i,s.get(i)):s.forEach(function(l,c){return a.updateElement(n,c,l)}))}}},{key:"buildElementKeyMap",value:function(n,i){var a=this.elementKeyMap.get(n);a||this.elementKeyMap.set(n,a=new Set),a.add(i)}},{key:"watchExtraTriggers",value:function(n,i,a){var o=this;if(a&&a.length){var s=this.watcherMap.get(n);if(s||this.watcherMap.set(n,s=new Map),!s.get(i)){var c=ko.apply(void 0,se(a)).subscribe(function(){var u=o.getValue(n,i);o.updateElement(n,i,u)});s.set(i,c)}}}},{key:"findByQuery",value:function(n){return this.breakpoints.findByQuery(n)}},{key:"getActivatedValues",value:function(n,i){for(var a=0;a<this.activatedBreakpoints.length;a++){var s=n.get(this.activatedBreakpoints[a].alias);if(s&&(void 0===i||s.has(i)&&null!=s.get(i)))return s}var l=n.get("");return void 0===i||l&&l.has(i)?l:void 0}},{key:"observeActivations",value:function(){var i=this.breakpoints.items.map(function(a){return a.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(Ud(this.hook.interceptEvents(this)),Xt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(a1),T(o1),T(Im))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function Lm(e,r,t,n){if(void 0!==n){var i=e.get(r);i||e.set(r,i=new Map),i.set(t,n)}}var Yt=function(){var e=function(){function r(t,n,i,a){v(this,r),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=a,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new _e,this.styleCache=new Map}return h(r,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(n){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(n){var i=this;Object.keys(n).forEach(function(a){if(-1!==i.inputs.indexOf(a)){var o=a.split(".").slice(1).join(".");i.setValue(n[a].currentValue,o)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),n)}},{key:"addStyles",value:function(n,i){var a=this.styleBuilder,o=a.shouldCache,s=this.styleCache.get(n);(!s||!o)&&(s=a.buildStyles(n,i),o&&this.styleCache.set(n,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),a.sideEffect(n,s,i)}},{key:"clearStyles",value:function(){var n=this;Object.keys(this.mru).forEach(function(i){n.mru[i]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n){var a=this.styler.getFlowDirection(n),o=Be(a,2),s=o[0],l=o[1];if(!l&&i){var c=Sm(s),u=[n];this.styler.applyStyleToElements(c,u)}return s.trim()}return"row"}},{key:"hasWrap",value:function(n){return this.styler.hasWrap(n)}},{key:"applyStyleToElement",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(a,n,i)}},{key:"setValue",value:function(n,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,n,i)}},{key:"updateWithValue",value:function(n){this.currentValue!==n&&(this.addStyles(n),this.currentValue=n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Me),y(Jt),y(At),y(It))},e.\u0275dir=U({type:e,features:[Mt]}),e}(),AO=function(){var e=function(){function r(t,n,i){v(this,r),this.breakpoints=t,this.matchMedia=n,this.hook=i,this.filterOverlaps=!1,this.destroyed$=new _e,this._media$=this.watchActivations(),this.media$=this._media$.pipe(Xt(function(a){return a.length>0}),mn(function(a){return a[0]}))}return h(r,[{key:"ngOnDestroy",value:function(){this.destroyed$.next(),this.destroyed$.complete()}},{key:"asObservable",value:function(){return this._media$}},{key:"isActive",value:function(n){var i=this,a=function OO(e){return e.map(function(r){return r.split(",")}).reduce(function(r,t){return r.concat(t)}).map(function(r){return r.trim()})}(function zO(e){return Array.isArray(e)?e:[e]}(n));return a.some(function(o){var s=function PO(e,r){var t=r.findByAlias(e)||r.findByQuery(e);return t?t.mediaQuery:null}(o,i.breakpoints);return null!==s&&i.matchMedia.isActive(s)})}},{key:"watchActivations",value:function(){var n=this.breakpoints.items.map(function(i){return i.mediaQuery});return this.buildObservable(n)}},{key:"buildObservable",value:function(n){var i=this;return this.matchMedia.observe(this.hook.withPrintQuery(n)).pipe(Xt(function(s){return s.matches}),function uO(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zd;return un(function(t,n){var i=null,a=null,o=null,s=function(){if(i){i.unsubscribe(),i=null;var u=a;a=null,n.next(u)}};function l(){var c=o+e,u=r.now();if(u<c)return i=this.schedule(void 0,c-u),void n.add(i);s()}t.subscribe(new Nt(n,function(c){a=c,o=r.now(),i||(i=r.schedule(l,e),n.add(i))},function(){s(),n.complete()},void 0,function(){a=i=null}))})}(0,rm),Bd(function(s){return Nr(i.findAllActivations())}),mn(function(l){return i.filterOverlaps?l.filter(function(c){var u=i.breakpoints.findByQuery(c.mediaQuery);return!u||!u.overlapping}):l}),Xt(function(l){return l.filter(function(d){return d.mediaQuery.length>0}).length>0}),ht(this.destroyed$))}},{key:"findAllActivations",value:function(){var n=this;return this.matchMedia.activations.map(function(o){return new Ss(!0,o)}).map(function(s){return n.hook.isPrintEvent(s)?n.hook.updateEvent(s):s}).map(function(s){return $d(s,n.breakpoints.findByQuery(s.mediaQuery))}).sort(xs)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(o1),T(a1),T(Im))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function Hm(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",n=[r,t,e],i=e.indexOf("calc");if(i>0){n[2]=Vm(e.substring(i).trim());var a=e.substr(0,i).trim().split(" ");2==a.length&&(n[0]=a[0],n[1]=a[1])}else if(0==i)n[2]=Vm(e.trim());else{var o=e.split(" ");n=3===o.length?o:[r,t,e]}return n}function Vm(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var RO=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c,u){var d;return v(this,n),(d=t.call(this,i,null,a,o)).ngClassInstance=u,d.DIRECTIVE_KEY="ngClass",d.ngClassInstance||(d.ngClassInstance=new ca(s,l,i,c)),d.init(),d.setValue("",""),d}return h(n,[{key:"klass",set:function(a){this.ngClassInstance.klass=a,this.setValue(a,"")}},{key:"updateWithValue",value:function(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(y(Me),y(At),y(It),y(_s),y(la),y(bn),y(ca,10))},e.\u0275dir=U({type:e,inputs:{klass:["class","klass"]},features:[ee]}),e}(),NO=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],Kd=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.apply(this,arguments)).inputs=NO,i}return h(n)}(RO);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[ee]}),e}(),BO=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n,[{key:"buildStyles",value:function(a,o){return{display:"true"===a?o.display||(o.isServer?"initial":""):"none"}}}]),n}(Jt);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),YO=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c,u){var d;return v(this,n),(d=t.call(this,i,a,o,s)).layoutConfig=l,d.platformId=c,d.serverModuleLoaded=u,d.DIRECTIVE_KEY="show-hide",d.display="",d.hasLayout=!1,d.hasFlexChild=!1,d}return h(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var a=Array.from(this.nativeElement.children),o=0;o<a.length;o++)if(this.marshal.hasValue(a[o],"flex")){this.hasFlexChild=!0;break}Zd.has(this.nativeElement)?this.display=Zd.get(this.nativeElement):(this.display=this.getDisplayStyle(),Zd.set(this.nativeElement,this.display)),this.init();var s=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===s||""===s?this.setValue(!0,""):this.triggerUpdate()}},{key:"ngOnChanges",value:function(a){var o=this;Object.keys(a).forEach(function(s){if(-1!==o.inputs.indexOf(s)){var l=s.split("."),c=l.slice(1).join("."),u=a[s].currentValue,d=""===u||0!==u&&wi(u);"fxHide"===l[0]&&(d=!d),o.setValue(d,c)}})}},{key:"trackExtraTriggers",value:function(){var a=this;this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(function(o){a.marshal.trackValue(a.nativeElement,o).pipe(ht(a.destroySubject)).subscribe(a.triggerUpdate.bind(a))})}},{key:"getDisplayStyle",value:function(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}},{key:"updateWithValue",value:function(){var a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(""!==a){var o=Bi(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:o}),o&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(y(Me),y(BO),y(At),y(It),y(fa),y(Rn),y(Ds))},e.\u0275dir=U({type:e,features:[ee,Mt]}),e}(),Zd=new WeakMap,jO=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],Rm=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.apply(this,arguments)).inputs=jO,i}return h(n)}(YO);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[ee]}),e}(),Gm=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Gd]]}),e}(),ZO=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n,[{key:"buildStyles",value:function(a){return Sm(a)}}]),n}(Jt);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),QO=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],XO=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s){var l;return v(this,n),(l=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout",l.styleCache=JO,l.init(),l}return h(n)}(Yt);return e.\u0275fac=function(t){return new(t||e)(y(Me),y(At),y(ZO),y(It))},e.\u0275dir=U({type:e,features:[ee]}),e}(),ha=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.apply(this,arguments)).inputs=QO,i}return h(n)}(XO);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[ee]}),e}(),JO=new Map,dF=function(){var e=function(r){_(n,r);var t=z(n);function n(i){var a;return v(this,n),(a=t.call(this)).layoutConfig=i,a}return h(n,[{key:"buildStyles",value:function(a,o){var l=function sr(e){return Ur(e)||Ut(e)||ge(e)||li()}(a.split(" ")),c=l[0],u=l[1],f=l.slice(2).join(" "),p=o.direction.indexOf("column")>-1?"column":"row",g=Kl(p)?"max-width":"max-height",m=Kl(p)?"min-width":"min-height",C=String(f).indexOf("calc")>-1,D=C||"auto"===f,x=String(f).indexOf("%")>-1&&!C,F=String(f).indexOf("px")>-1||String(f).indexOf("rem")>-1||String(f).indexOf("em")>-1||String(f).indexOf("vw")>-1||String(f).indexOf("vh")>-1,V=C||F;u="0"==u?0:u;var ne=!(c="0"==c?0:c)&&!u,te={},Te={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(f||""){case"":f="row"===p?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":c=0,f="auto";break;case"grow":f="100%";break;case"noshrink":u=0,f="auto";break;case"auto":break;case"none":c=0,u=0,f="auto";break;default:!V&&!x&&!isNaN(f)&&(f+="%"),"0%"===f&&(V=!0),"0px"===f&&(f="0%"),te=Yi(Te,C?{"flex-grow":c,"flex-shrink":u,"flex-basis":V?f:"100%"}:{flex:"".concat(c," ").concat(u," ").concat(V?f:"100%")})}return te.flex||te["flex-grow"]||(te=Yi(Te,C?{"flex-grow":c,"flex-shrink":u,"flex-basis":f}:{flex:"".concat(c," ").concat(u," ").concat(f)})),"0%"!==f&&"0px"!==f&&"0.000000001px"!==f&&"auto"!==f&&(te[m]=ne||V&&c?f:null,te[g]=ne||!D&&u?f:null),te[m]||te[g]?o.hasWrap&&(te[C?"flex-basis":"flex"]=te[g]?C?te[g]:"".concat(c," ").concat(u," ").concat(te[g]):C?te[m]:"".concat(c," ").concat(u," ").concat(te[m])):te=Yi(Te,C?{"flex-grow":c,"flex-shrink":u,"flex-basis":f}:{flex:"".concat(c," ").concat(u," ").concat(f)}),Yi(te,{"box-sizing":"border-box"})}}]),n}(Jt);return e.\u0275fac=function(t){return new(t||e)(T(fa))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),fF=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],hF=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l){var c;return v(this,n),(c=t.call(this,i,s,a,l)).layoutConfig=o,c.marshal=l,c.DIRECTIVE_KEY="flex",c.direction=void 0,c.wrap=void 0,c.flexGrow="1",c.flexShrink="1",c.init(),c}return h(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(a){this.flexShrink=a||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(a){this.flexGrow=a||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(ht(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(ht(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(a){var s=a.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(a){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var s=this.direction,l=s.startsWith("row"),c=this.wrap;l&&c?this.styleCache=gF:l&&!c?this.styleCache=vF:!l&&c?this.styleCache=mF:!l&&!c&&(this.styleCache=pF);var d=Hm(String(a).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(d.join(" "),{direction:s,hasWrap:c})}},{key:"triggerReflow",value:function(){var a=this.activatedValue;if(void 0!==a){var o=Hm(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,o.join(" "))}}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(y(Me),y(At),y(fa),y(dF),y(It))},e.\u0275dir=U({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[ee]}),e}(),$m=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.apply(this,arguments)).inputs=fF,i}return h(n)}(hF);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[ee]}),e}(),vF=new Map,pF=new Map,gF=new Map,mF=new Map,NF=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n,[{key:"buildStyles",value:function(a,o){var s={},c=Be(a.split(" "),2),d=c[1];switch(c[0]){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;default:s["justify-content"]="flex-start"}switch(d){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;default:s["align-items"]=s["align-content"]="stretch"}return Yi(s,{display:o.inline?"inline-flex":"flex","flex-direction":o.layout,"box-sizing":"border-box","max-width":"stretch"===d?Kl(o.layout)?null:"100%":null,"max-height":"stretch"===d&&Kl(o.layout)?"100%":null})}}]),n}(Jt);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),BF=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],YF=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s){var l;return v(this,n),(l=t.call(this,i,o,a,s)).DIRECTIVE_KEY="layout-align",l.layout="row",l.inline=!1,l.init(),l.marshal.trackValue(l.nativeElement,"layout").pipe(ht(l.destroySubject)).subscribe(l.onLayoutChange.bind(Ae(l))),l}return h(n,[{key:"updateWithValue",value:function(a){var o=this.layout||"row",s=this.inline;"row"===o&&s?this.styleCache=qF:"row"!==o||s?"row-reverse"===o&&s?this.styleCache=KF:"row-reverse"!==o||s?"column"===o&&s?this.styleCache=$F:"column"!==o||s?"column-reverse"===o&&s?this.styleCache=ZF:"column-reverse"===o&&!s&&(this.styleCache=WF):this.styleCache=UF:this.styleCache=GF:this.styleCache=jF,this.addStyles(a,{layout:o,inline:s})}},{key:"onLayoutChange",value:function(a){var o=this,s=a.value.split(" ");this.layout=s[0],this.inline=a.value.includes("inline"),r1.find(function(l){return l===o.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(y(Me),y(At),y(NF),y(It))},e.\u0275dir=U({type:e,features:[ee]}),e}(),Ts=function(){var e=function(r){_(n,r);var t=z(n);function n(){var i;return v(this,n),(i=t.apply(this,arguments)).inputs=BF,i}return h(n)}(YF);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[ee]}),e}(),jF=new Map,UF=new Map,GF=new Map,WF=new Map,qF=new Map,$F=new Map,KF=new Map,ZF=new Map,Km=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Gd,ua]]}),e}(),r7=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Gd]]}),e}(),yL=function(){var e=function(){function r(t,n){v(this,r),Bi(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return h(r,null,[{key:"withConfig",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:r,providers:n.serverLoaded?[{provide:fa,useValue:Object.assign(Object.assign({},Wd),n)},{provide:qd,useValue:i,multi:!0},{provide:Ds,useValue:!0}]:[{provide:fa,useValue:Object.assign(Object.assign({},Wd),n)},{provide:qd,useValue:i,multi:!0}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ds),T(Rn))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Km,Gm,r7],Km,Gm,r7]}),e}(),_L=Array.isArray,CL=Object.getPrototypeOf,bL=Object.prototype,wL=Object.keys;function i7(e){if(1===e.length){var r=e[0];if(_L(r))return{args:r,keys:null};if(function kL(e){return e&&"object"==typeof e&&CL(e)===bL}(r)){var t=wL(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}function a7(e,r){return e.reduce(function(t,n,i){return t[n]=r[i],t},{})}function Qd(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=A6(r),i=i7(r),a=i.args,o=i.keys,s=new de(function(l){var c=a.length;if(c)for(var u=new Array(c),d=c,f=c,p=function(C){var D=!1;Fn(a[C]).subscribe(new Nt(l,function(x){D||(D=!0,f--),u[C]=x},function(){return d--},void 0,function(){(!d||!D)&&(f||l.next(o?a7(o,u):u),l.complete())}))},g=0;g<c;g++)p(g);else l.complete()});return n?s.pipe(Pd(n)):s}var o7=function(){var e=function(){function r(t,n){v(this,r),this._renderer=t,this._elementRef=n,this.onChange=function(i){},this.onTouched=function(){}}return h(r,[{key:"setProperty",value:function(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"registerOnChange",value:function(n){this.onChange=n}},{key:"setDisabledState",value:function(n){this.setProperty("disabled",n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(bn),y(Me))},e.\u0275dir=U({type:e}),e}(),to=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n)}(o7);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275dir=U({type:e,features:[ee]}),e}(),ki=new re("NgValueAccessor"),SL={provide:ki,useExisting:wt(function(){return l1}),multi:!0},xL=new re("CompositionEventMode"),l1=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o){var s;return v(this,n),(s=t.call(this,i,a))._compositionMode=o,s._composing=!1,null==s._compositionMode&&(s._compositionMode=!function DL(){var e=bi()?bi().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}()),s}return h(n,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"_handleInput",value:function(a){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(a)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(a){this._composing=!1,this._compositionMode&&this.onChange(a)}}]),n}(o7);return e.\u0275fac=function(t){return new(t||e)(y(bn),y(Me),y(xL,8))},e.\u0275dir=U({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,n){1&t&&ae("input",function(a){return n._handleInput(a.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(a){return n._compositionEnd(a.target.value)})},features:[zt([SL]),ee]}),e}(),Yn=new re("NgValidators"),pa=new re("NgAsyncValidators");function c7(e){return null!=e}function u7(e){var r=hu(e)?Ai(e):e;return Bv(r),r}function d7(e){var r={};return e.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function f7(e,r){return r.map(function(t){return t(e)})}function h7(e){return e.map(function(r){return function HL(e){return!e.validate}(r)?r:function(t){return r.validate(t)}})}function Jd(e){return null!=e?function VL(e){if(!e)return null;var r=e.filter(c7);return 0==r.length?null:function(t){return d7(f7(t,r))}}(h7(e)):null}function e8(e){return null!=e?function RL(e){if(!e)return null;var r=e.filter(c7);return 0==r.length?null:function(t){return Qd(f7(t,r).map(u7)).pipe(mn(d7))}}(h7(e)):null}function v7(e,r){return null===e?[r]:Array.isArray(e)?[].concat(se(e),[r]):[e,r]}function t8(e){return e?Array.isArray(e)?e:[e]:[]}function c1(e,r){return Array.isArray(e)?e.includes(r):e===r}function m7(e,r){var t=t8(r);return t8(e).forEach(function(i){c1(t,i)||t.push(i)}),t}function y7(e,r){return t8(r).filter(function(t){return!c1(e,t)})}var _7=function(){function e(){v(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return h(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=Jd(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=e8(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,n){return!!this.control&&this.control.hasError(t,n)}},{key:"getError",value:function(t,n){return this.control?this.control.getError(t,n):null}}]),e}(),ga=function(e){_(t,e);var r=z(t);function t(){var n;return v(this,t),(n=r.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return h(t)}(_7),er=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(_7),C7=function(){function e(r){v(this,e),this._cd=r}return h(e,[{key:"is",value:function(t){var n,i,a;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(a=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===a?void 0:a[t])}}]),e}(),b7=function(){var e=function(r){_(n,r);var t=z(n);function n(i){return v(this,n),t.call(this,i)}return h(n)}(C7);return e.\u0275fac=function(t){return new(t||e)(y(ga,2))},e.\u0275dir=U({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&We("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[ee]}),e}();function Zl(e,r){(function i8(e,r){var t=function p7(e){return e._rawValidators}(e);null!==r.validator?e.setValidators(v7(t,r.validator)):"function"==typeof t&&e.setValidators([t]);var n=function g7(e){return e._rawAsyncValidators}(e);null!==r.asyncValidator?e.setAsyncValidators(v7(n,r.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var i=function(){return e.updateValueAndValidity()};h1(r._rawValidators,i),h1(r._rawAsyncValidators,i)})(e,r),r.valueAccessor.writeValue(e.value),function $L(e,r){r.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&k7(e,r)})}(e,r),function ZL(e,r){var t=function(i,a){r.valueAccessor.writeValue(i),a&&r.viewToModelUpdate(i)};e.registerOnChange(t),r._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,r),function KL(e,r){r.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&k7(e,r),"submit"!==e.updateOn&&e.markAsTouched()})}(e,r),function qL(e,r){if(r.valueAccessor.setDisabledState){var t=function(i){r.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),r._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,r)}function h1(e,r){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function k7(e,r){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function s8(e,r){var t=e.indexOf(r);t>-1&&e.splice(t,1)}var Ql="VALID",p1="INVALID",zs="PENDING",Xl="DISABLED";function c8(e){return(g1(e)?e.validators:e)||null}function D7(e){return Array.isArray(e)?Jd(e):e||null}function u8(e,r){return(g1(r)?r.asyncValidators:e)||null}function x7(e){return Array.isArray(e)?e8(e):e||null}function g1(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var d8=function(r){return r instanceof h8};function T7(e){return e instanceof P7?e.value:e.getRawValue()}function z7(e,r){var t=d8(e),n=e.controls;if(!(t?Object.keys(n):n).length)throw new ot(1e3,"");if(!n[r])throw new ot(1001,"")}function A7(e,r){d8(e),e._forEachChild(function(n,i){if(void 0===r[i])throw new ot(1002,"")})}var f8=function(){function e(r,t){v(this,e),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=D7(this._rawValidators),this._composedAsyncValidatorFn=x7(this._rawAsyncValidators)}return h(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Ql}},{key:"invalid",get:function(){return this.status===p1}},{key:"pending",get:function(){return this.status==zs}},{key:"disabled",get:function(){return this.status===Xl}},{key:"enabled",get:function(){return this.status!==Xl}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=D7(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=x7(t)}},{key:"addValidators",value:function(t){this.setValidators(m7(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(m7(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(y7(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(y7(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return c1(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return c1(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=zs,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=Xl,this.errors=null,this._forEachChild(function(i){i.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:n})),this._onDisabledChange.forEach(function(i){return i(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=Ql,this._forEachChild(function(i){i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(i){return i(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ql||this.status===zs)&&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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Xl:Ql}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=zs,this._hasOwnPendingAsyncValidator=!0;var i=u7(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(a){n._hasOwnPendingAsyncValidator=!1,n.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function eH(e,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var n=e;return r.forEach(function(i){n=d8(n)?n.controls.hasOwnProperty(i)?n.controls[i]:null:function(r){return r instanceof nH}(n)&&n.at(i)||null}),n}(this,t,".")}},{key:"getError",value:function(t,n){var i=n?this.get(n):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ie,this.statusChanges=new ie}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Xl:this.errors?p1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zs)?zs:this._anyControlsHaveStatus(p1)?p1:Ql}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){g1(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),P7=function(e){_(t,e);var r=z(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return v(this,t),(n=r.call(this,c8(a),u8(o,a))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(i),n._setUpdateStrategy(a),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),g1(a)&&a.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(i)?i.value:i),n}return h(t,[{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=i,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(i,a)}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(i),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(i){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(i){this._onChange.push(i)}},{key:"_unregisterOnChange",value:function(i){s8(this._onChange,i)}},{key:"registerOnDisabledChange",value:function(i){this._onDisabledChange.push(i)}},{key:"_unregisterOnDisabledChange",value:function(i){s8(this._onDisabledChange,i)}},{key:"_forEachChild",value:function(i){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(i){this._isBoxedValue(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}}]),t}(f8),h8=function(e){_(t,e);var r=z(t);function t(n,i,a){var o;return v(this,t),(o=r.call(this,c8(i),u8(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return h(t,[{key:"registerControl",value:function(i,a){return this.controls[i]?this.controls[i]:(this.controls[i]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),delete this.controls[i],a&&this.registerControl(i,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A7(this,i),Object.keys(i).forEach(function(s){z7(a,s),a.controls[s].setValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(Object.keys(i).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(i[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(i,a,o){return i[o]=T7(a),i})}},{key:"_syncPendingControls",value:function(){var i=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&i(s,o)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){a.setParent(i),a._registerOnCollectionChange(i._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(i){for(var a=0,o=Object.keys(this.controls);a<o.length;a++){var s=o[a],l=this.controls[s];if(this.contains(s)&&i(l))return!0}return!1}},{key:"_reduceValue",value:function(){var i=this;return this._reduceChildren({},function(a,o,s){return(o.enabled||i.disabled)&&(a[s]=o.value),a})}},{key:"_reduceChildren",value:function(i,a){var o=i;return this._forEachChild(function(s,l){o=a(o,s,l)}),o}},{key:"_allControlsDisabled",value:function(){for(var i=0,a=Object.keys(this.controls);i<a.length;i++)if(this.controls[a[i]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}]),t}(f8),nH=function(e){_(t,e);var r=z(t);function t(n,i,a){var o;return v(this,t),(o=r.call(this,c8(i),u8(a,i))).controls=n,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return h(t,[{key:"at",value:function(i){return this.controls[i]}},{key:"push",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(i,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(i,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[i]&&this.controls[i]._registerOnCollectionChange(function(){}),this.controls.splice(i,1),a&&(this.controls.splice(i,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A7(this,i),i.forEach(function(s,l){z7(a,l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(i){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i&&(i.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(i[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(i){return T7(i)})}},{key:"clear",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}},{key:"_syncPendingControls",value:function(){var i=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}},{key:"_forEachChild",value:function(i){this.controls.forEach(function(a,o){i(a,o)})}},{key:"_updateValue",value:function(){var i=this;this.value=this.controls.filter(function(a){return a.enabled||i.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(i){return this.controls.some(function(a){return a.enabled&&i(a)})}},{key:"_setUpControls",value:function(){var i=this;this._forEachChild(function(a){return i._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,i=lt(this.controls);try{for(i.s();!(a=i.n()).done;)if(a.value.enabled)return!1}catch(s){i.e(s)}finally{i.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}}]),t}(f8),aH={provide:ga,useExisting:wt(function(){return p8})},I7=function(){return Promise.resolve(null)}(),p8=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l){var c;return v(this,n),(c=t.call(this))._changeDetectorRef=l,c.control=new P7,c._registered=!1,c.update=new ie,c._parent=i,c._setValidators(a),c._setAsyncValidators(o),c.valueAccessor=function o8(e,r){if(!r)return null;Array.isArray(r);var t=void 0,n=void 0,i=void 0;return r.forEach(function(a){a.constructor===l1?t=a:function JL(e){return Object.getPrototypeOf(e.constructor)===to}(a)?n=a:i=a}),i||n||t||null}(Ae(c),s),c}return h(n,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),function a8(e,r){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Zl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;I7.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,l=""===s||s&&"false"!==s;I7.then(function(){var c;l&&!o.control.disabled?o.control.disable():!l&&o.control.disabled&&o.control.enable(),null===(c=o._changeDetectorRef)||void 0===c||c.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function d1(e,r){return[].concat(se(r.path),[e])}(a,this._parent):[a]}}]),n}(ga);return e.\u0275fac=function(t){return new(t||e)(y(er,9),y(Yn,10),y(pa,10),y(ki,10),y(xn,8))},e.\u0275dir=U({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[zt([aH]),ee,Mt]}),e}(),H7=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),AH=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[H7]]}),e}(),m1=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[AH]}),e}(),t9=h(function e(){v(this,e)}),PH=h(function e(){v(this,e)}),Ui="*";function ii(e,r){return{type:7,name:e,definitions:r,options:{}}}function Lt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:e}}function n9(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:r}}function He(e){return{type:6,styles:e,offset:null}}function Mi(e,r,t){return{type:0,name:e,styles:r,options:t}}function jt(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:r,options:t}}function r9(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:r,options:t}}function i9(e,r){return{type:12,timings:e,animation:r}}function a9(e){Promise.resolve(null).then(e)}var ec=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;a9(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),o9=function(){function e(r){var t=this;v(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var n=0,i=0,a=0,o=this.players.length;0==o?a9(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++n==o&&t._onFinish()}),s.onDestroy(function(){++i==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(i){var a=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,i){return null===n||i.totalTime>n.totalTime?i:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}();function OH(){return"undefined"!=typeof window&&void 0!==window.document}function k8(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ma(e){switch(e.length){case 0:return new ec;case 1:return e[0];default:return new o9(e)}}function s9(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(n.forEach(function(d){var f=d.offset,p=f==l,g=p&&c||{};Object.keys(d).forEach(function(m){var C=m,D=d[m];if("offset"!==m)switch(C=r.normalizePropertyName(C,o),D){case"!":D=i[m];break;case Ui:D=a[m];break;default:D=r.normalizeStyleValue(m,C,D,o)}g[C]=D}),p||s.push(g),c=g,l=f}),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function M8(e,r,t,n){switch(r){case"start":e.onStart(function(){return n(t&&S8(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&S8(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&S8(t,"destroy",e))})}}function S8(e,r,t){var n=t.totalTime,a=D8(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,null==n?e.totalTime:n,!!t.disabled),o=e._data;return null!=o&&(a._data=o),a}function D8(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:r,fromState:t,toState:n,phaseName:i,totalTime:a,disabled:!!o}}function kr(e,r,t){var n;return e instanceof Map?(n=e.get(r))||e.set(r,n=t):(n=e[r])||(n=e[r]=t),n}function l9(e){var r=e.indexOf(":");return[e.substring(1,r),e.substr(r+1)]}var x8=function(r,t){return!1},c9=function(r,t,n){return[]};(k8()||"undefined"!=typeof Element)&&(x8=OH()?function(r,t){for(;t&&t!==document.documentElement;){if(t===r)return!0;t=t.parentNode||t.host}return!1}:function(r,t){return r.contains(t)},c9=function(r,t,n){if(n)return Array.from(r.querySelectorAll(t));var i=r.querySelector(t);return i?[i]:[]});var ro=null,u9=!1;function d9(e){ro||(ro=function LH(){return"undefined"!=typeof document?document.body:null}()||{},u9=!!ro.style&&"WebkitAppearance"in ro.style);var r=!0;return ro.style&&!function IH(e){return"ebkit"==e.substring(1,6)}(e)&&!(r=e in ro.style)&&u9&&(r="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ro.style),r}var f9=x8,h9=c9,v9=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"validateStyleProperty",value:function(n){return d9(n)}},{key:"matchesElement",value:function(n,i){return!1}},{key:"containsElement",value:function(n,i){return f9(n,i)}},{key:"query",value:function(n,i,a){return h9(n,i,a)}},{key:"computeStyle",value:function(n,i,a){return a||""}},{key:"animate",value:function(n,i,a,o,s){return new ec(a,o)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),E8=function(){var e=h(function r(){v(this,r)});return e.NOOP=new v9,e}(),g9="ng-enter",T8="ng-leave",y1="ng-trigger",_1=".ng-trigger",m9="ng-animating",z8=".ng-animating";function io(e){if("number"==typeof e)return e;var r=e.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:A8(parseFloat(r[1]),r[2])}function A8(e,r){return"s"===r?1e3*e:e}function C1(e,r,t){return e.hasOwnProperty("duration")?e:function RH(e,r,t){var i,a=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=A8(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=A8(parseFloat(l),s[4]));var c=s[5];c&&(o=c)}else i=e;if(!t){var u=!1,d=r.length;i<0&&(r.push("Duration values below 0 are not allowed for this animation step."),u=!0),a<0&&(r.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&r.splice(d,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:a,easing:o}}(e,r,t)}function As(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function ya(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var n in e)t[n]=e[n];else As(e,t);return t}function y9(e,r,t){return t?r+":"+t+";":""}function _9(e){for(var r="",t=0;t<e.style.length;t++){var n=e.style.item(t);r+=y9(0,n,e.style.getPropertyValue(n))}for(var i in e.style)e.style.hasOwnProperty(i)&&!i.startsWith("_")&&(r+=y9(0,YH(i),e.style[i]));e.setAttribute("style",r)}function Si(e,r,t){e.style&&(Object.keys(r).forEach(function(n){var i=O8(n);t&&!t.hasOwnProperty(n)&&(t[n]=e.style[i]),e.style[i]=r[n]}),k8()&&_9(e))}function ao(e,r){e.style&&(Object.keys(r).forEach(function(t){var n=O8(t);e.style[n]=""}),k8()&&_9(e))}function tc(e){return Array.isArray(e)?1==e.length?e[0]:n9(e):e}var P8=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function C9(e){var r=[];if("string"==typeof e){for(var t;t=P8.exec(e);)r.push(t[1]);P8.lastIndex=0}return r}function b1(e,r,t){var n=e.toString(),i=n.replace(P8,function(a,o){var s=r[o];return r.hasOwnProperty(o)||(t.push("Please provide a value for the animation param ".concat(o)),s=""),s.toString()});return i==n?e:i}function w1(e){for(var r=[],t=e.next();!t.done;)r.push(t.value),t=e.next();return r}var BH=/-+([a-z0-9])/g;function O8(e){return e.replace(BH,function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function YH(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function jH(e,r){return 0===e||0===r}function UH(e,r,t){var n=Object.keys(t);if(n.length&&r.length){var i=r[0],a=[];if(n.forEach(function(l){i.hasOwnProperty(l)||a.push(l),i[l]=t[l]}),a.length)for(var o=function(){var c=r[s];a.forEach(function(u){c[u]=b9(e,u)})},s=1;s<r.length;s++)o()}return r}function Mr(e,r,t){switch(r.type){case 7:return e.visitTrigger(r,t);case 0:return e.visitState(r,t);case 1:return e.visitTransition(r,t);case 2:return e.visitSequence(r,t);case 3:return e.visitGroup(r,t);case 4:return e.visitAnimate(r,t);case 5:return e.visitKeyframes(r,t);case 6:return e.visitStyle(r,t);case 8:return e.visitReference(r,t);case 9:return e.visitAnimateChild(r,t);case 10:return e.visitAnimateRef(r,t);case 11:return e.visitQuery(r,t);case 12:return e.visitStagger(r,t);default:throw new Error("Unable to resolve animation metadata node #".concat(r.type))}}function b9(e,r){return window.getComputedStyle(e)[r]}function GH(e,r){var t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(function(n){return function WH(e,r,t){if(":"==e[0]){var n=function qH(e,r){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n)<parseFloat(t)};default:return r.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,t);if("function"==typeof n)return void r.push(n);e=n}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),r;var a=i[1],o=i[2],s=i[3];r.push(w9(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(w9(s,a))}(n,t,r)}):t.push(e),t}var M1=new Set(["true","1"]),S1=new Set(["false","0"]);function w9(e,r){var t=M1.has(e)||S1.has(e),n=M1.has(r)||S1.has(r);return function(i,a){var o="*"==e||e==i,s="*"==r||r==a;return!o&&t&&"boolean"==typeof i&&(o=i?M1.has(e):S1.has(e)),!s&&n&&"boolean"==typeof a&&(s=a?M1.has(r):S1.has(r)),o&&s}}var $H=new RegExp("s*".concat(":self","s*,?"),"g");function M9(e,r,t){return new KH(e).build(r,t)}var KH=function(){function e(r){v(this,e),this._driver=r}return h(e,[{key:"build",value:function(t,n){var i=new XH(n);return this._resetContextStyleTimingState(i),Mr(this,tc(t),i)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var i=this,a=n.queryCount=0,o=n.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(c){if(i._resetContextStyleTimingState(n),0==c.type){var u=c,d=u.name;d.toString().split(/\s*,\s*/).forEach(function(p){u.name=p,s.push(i.visitState(u,n))}),u.name=d}else if(1==c.type){var f=i.visitTransition(c,n);a+=f.queryCount,o+=f.depCount,l.push(f)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,n){var i=this.visitStyle(t.styles,n),a=t.options&&t.options.params||null;if(i.containsDynamicStyles){var o=new Set,s=a||{};if(i.styles.forEach(function(c){if(D1(c)){var u=c;Object.keys(u).forEach(function(d){C9(u[d]).forEach(function(f){s.hasOwnProperty(f)||o.add(f)})})}}),o.size){var l=w1(o.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(l.join(", ")))}}return{type:0,name:t.name,style:i,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var i=Mr(this,tc(t.animation),n);return{type:1,matchers:GH(t.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:oo(t.options)}}},{key:"visitSequence",value:function(t,n){var i=this;return{type:2,steps:t.steps.map(function(a){return Mr(i,a,n)}),options:oo(t.options)}}},{key:"visitGroup",value:function(t,n){var i=this,a=n.currentTime,o=0,s=t.steps.map(function(l){n.currentTime=a;var c=Mr(i,l,n);return o=Math.max(o,n.currentTime),c});return n.currentTime=o,{type:3,steps:s,options:oo(t.options)}}},{key:"visitAnimate",value:function(t,n){var i=function eV(e,r){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return F8(C1(e,r).duration,0,"");var i=e,a=i.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(a){var o=F8(0,0,"");return o.dynamic=!0,o.strValue=i,o}return F8((t=t||C1(i,r)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var a,o=t.styles?t.styles:He({});if(5==o.type)a=this.visitKeyframes(o,n);else{var s=t.styles,l=!1;if(!s){l=!0;var c={};i.easing&&(c.easing=i.easing),s=He(c)}n.currentTime+=i.duration+i.delay;var u=this.visitStyle(s,n);u.isEmptyStep=l,a=u}return n.currentAnimateTimings=null,{type:4,timings:i,style:a,options:null}}},{key:"visitStyle",value:function(t,n){var i=this._makeStyleAst(t,n);return this._validateStyleAst(i,n),i}},{key:"_makeStyleAst",value:function(t,n){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==Ui?i.push(s):n.errors.push("The provided style string value ".concat(s," is not allowed.")):i.push(s)}):i.push(t.styles);var a=!1,o=null;return i.forEach(function(s){if(D1(s)){var l=s,c=l.easing;if(c&&(o=c,delete l.easing),!a)for(var u in l)if(l[u].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,n){var i=this,a=n.currentAnimateTimings,o=n.currentTime,s=n.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(c){if(i._driver.validateStyleProperty(c)){var u=n.collectedStyles[n.currentQuerySelector],d=u[c],f=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(n.errors.push('The CSS property "'.concat(c,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(s,'ms" and "').concat(o,'ms"')),f=!1),s=d.startTime),f&&(u[c]={startTime:s,endTime:o}),n.options&&function NH(e,r,t){var n=r.params||{},i=C9(e);i.length&&i.forEach(function(a){n.hasOwnProperty(a)||t.push("Unable to resolve the local animation param ".concat(a," in the given list of values"))})}(l[c],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(c,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var i=this,a={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),a;var s=0,l=[],c=!1,u=!1,d=0,f=t.steps.map(function(F){var V=i._makeStyleAst(F,n),ne=null!=V.offset?V.offset:function JH(e){if("string"==typeof e)return null;var r=null;if(Array.isArray(e))e.forEach(function(n){if(D1(n)&&n.hasOwnProperty("offset")){var i=n;r=parseFloat(i.offset),delete i.offset}});else if(D1(e)&&e.hasOwnProperty("offset")){var t=e;r=parseFloat(t.offset),delete t.offset}return r}(V.styles),te=0;return null!=ne&&(s++,te=V.offset=ne),u=u||te<0||te>1,c=c||te<d,d=te,l.push(te),V});u&&n.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),c&&n.errors.push("Please ensure that all keyframe offsets are in order");var p=t.steps.length,g=0;s>0&&s<p?n.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(g=1/(p-1));var m=p-1,C=n.currentTime,D=n.currentAnimateTimings,x=D.duration;return f.forEach(function(F,V){var ne=g>0?V==m?1:g*V:l[V],te=ne*x;n.currentTime=C+D.delay+te,D.duration=te,i._validateStyleAst(F,n),F.offset=ne,a.styles.push(F)}),a}},{key:"visitReference",value:function(t,n){return{type:8,animation:Mr(this,tc(t.animation),n),options:oo(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:oo(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:oo(t.options)}}},{key:"visitQuery",value:function(t,n){var i=n.currentQuerySelector,a=t.options||{};n.queryCount++,n.currentQuery=t;var o=function ZH(e){var r=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(e=e.replace($H,"")),e=e.replace(/@\*/g,_1).replace(/@\w+/g,function(t){return _1+"-"+t.substr(1)}).replace(/:animating/g,z8),[e,r]}(t.selector),s=Be(o,2),l=s[0],c=s[1];n.currentQuerySelector=i.length?i+" "+l:l,kr(n.collectedStyles,n.currentQuerySelector,{});var u=Mr(this,tc(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:u,originalSelector:t.selector,options:oo(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:C1(t.timings,n.errors,!0);return{type:12,animation:Mr(this,tc(t.animation),n),timings:i,options:null}}}]),e}(),XH=h(function e(r){v(this,e),this.errors=r,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 D1(e){return!Array.isArray(e)&&"object"==typeof e}function oo(e){return e?(e=As(e)).params&&(e.params=function QH(e){return e?As(e):null}(e.params)):e={},e}function F8(e,r,t){return{duration:e,delay:r,easing:t}}function I8(e,r,t,n,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:n,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var L8=function(){function e(){v(this,e),this._map=new Map}return h(e,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,n){var i,a=this._map.get(t);a||this._map.set(t,a=[]),(i=a).push.apply(i,se(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),rV=new RegExp(":enter","g"),aV=new RegExp(":leave","g");function D9(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new oV).buildKeyframes(e,r,t,n,i,a,o,s,l,c)}var oV=function(){function e(){v(this,e)}return h(e,[{key:"buildKeyframes",value:function(t,n,i,a,o,s,l,c,u){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new L8;var f=new sV(t,n,u,a,o,d,[]);f.options=c,f.currentTimeline.setStyles([s],null,f.errors,c),Mr(this,i,f);var p=f.timelines.filter(function(D){return D.containsAnimation()});if(Object.keys(l).length){for(var g,m=p.length-1;m>=0;m--){var C=p[m];if(C.element===n){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,f.errors,c)}return p.length?p.map(function(D){return D.buildKeyframes()}):[I8(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var i=n.subInstructions.get(n.element);if(i){var a=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(i,a,a.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var i=n.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,i){var o=n.currentTimeline.currentTime,s=null!=i.duration?io(i.duration):null,l=null!=i.delay?io(i.delay):null;return 0!==s&&t.forEach(function(c){var u=n.appendInstructionToTimeline(c,s,l);o=Math.max(o,u.duration+u.delay)}),o}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),Mr(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var i=this,a=n.subContextCount,o=n,s=t.options;if(s&&(s.params||s.delay)&&((o=n.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=x1);var l=io(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(c){return Mr(i,c,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var i=this,a=[],o=n.currentTimeline.currentTime,s=t.options&&t.options.delay?io(t.options.delay):0;t.steps.forEach(function(l){var c=n.createSubContext(t.options);s&&c.delayNextStep(s),Mr(i,l,c),o=Math.max(o,c.currentTimeline.currentTime),a.push(c.currentTimeline)}),a.forEach(function(l){return n.currentTimeline.mergeTimelineCollectedStyles(l)}),n.transformIntoNewTimeline(o),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var i=t.strValue;return C1(n.params?b1(i,n.params,n.errors):i,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var i=n.currentAnimateTimings=this._visitTiming(t.timings,n),a=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(i.duration),this.visitStyle(o,n),a.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var i=n.currentTimeline,a=n.currentAnimateTimings;!a&&i.getCurrentStyleProperties().length&&i.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var i=n.currentAnimateTimings,a=n.currentTimeline.duration,o=i.duration,l=n.createSubContext().currentTimeline;l.easing=i.easing,t.styles.forEach(function(c){l.forwardTime((c.offset||0)*o),l.setStyles(c.styles,c.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(a+o),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var i=this,a=n.currentTimeline.currentTime,o=t.options||{},s=o.delay?io(o.delay):0;s&&(6===n.previousNode.type||0==a&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=x1);var l=a,c=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=c.length;var u=null;c.forEach(function(d,f){n.currentQueryIndex=f;var p=n.createSubContext(t.options,d);s&&p.delayNextStep(s),d===n.element&&(u=p.currentTimeline),Mr(i,t.animation,p),p.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,p.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(l),u&&(n.currentTimeline.mergeTimelineCollectedStyles(u),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var i=n.parentContext,a=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=l-c;break;case"full":c=i.currentStaggerTime}var d=n.currentTimeline;c&&d.delayNextStep(c);var f=d.currentTime;Mr(this,t.animation,n),n.previousNode=t,i.currentStaggerTime=a.currentTime-f+(a.startTime-i.currentTimeline.startTime)}}]),e}(),x1={},sV=function(){function e(r,t,n,i,a,o,s,l){v(this,e),this._driver=r,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=x1,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new x9(this._driver,t,0),s.push(this.currentTimeline)}return h(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var i=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=io(a.duration)),null!=a.delay&&(o.delay=io(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(c){(!n||!l.hasOwnProperty(c))&&(l[c]=b1(s[c],l,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var i=t.params={};Object.keys(n).forEach(function(a){i[a]=n[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,o=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=x1,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,i){var a={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new lV(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,i,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(rV,"."+this._enterClassName)).replace(aV,"."+this._leaveClassName);var u=this._driver.query(this.element,t,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),l.push.apply(l,se(u))}return!o&&0==l.length&&s.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),l}}]),e}(),x9=function(){function e(r,t,n,i){v(this,e),this._driver=r,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return h(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(i){n._backFill[i]=n._globalTimelineStyles[i]||Ui,n._currentKeyframe[i]=Ui}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,i,a){var o=this;n&&(this._previousKeyframe.easing=n);var s=a&&a.params||{},l=function cV(e,r){var n,t={};return e.forEach(function(i){"*"===i?(n=n||Object.keys(r)).forEach(function(a){t[a]=Ui}):ya(i,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(c){var u=b1(l[c],s,i);o._pendingStyles[c]=u,o._localTimelineStyles.hasOwnProperty(c)||(o._backFill[c]=o._globalTimelineStyles.hasOwnProperty(c)?o._globalTimelineStyles[c]:Ui),o._updateStyle(c,u)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,i=Object.keys(n);0!=i.length&&(this._pendingStyles={},i.forEach(function(a){t._currentKeyframe[a]=n[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var i=t._localTimelineStyles[n];t._pendingStyles[n]=i,t._updateStyle(n,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(i){var a=n._styleSummary[i],o=t._styleSummary[i];(!a||o.time>a.time)&&n._updateStyle(i,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,f){var p=ya(d,!0);Object.keys(p).forEach(function(g){var m=p[g];"!"==m?n.add(g):m==Ui&&i.add(g)}),a||(p.offset=f/t.duration),o.push(p)});var s=n.size?w1(n.values()):[],l=i.size?w1(i.values()):[];if(a){var c=o[0],u=As(c);c.offset=0,u.offset=1,o=[c,u]}return I8(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),e}(),lV=function(e){_(t,e);var r=z(t);function t(n,i,a,o,s,l){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return v(this,t),(c=r.call(this,n,i,l.delay)).keyframes=a,c.preStyleProps=o,c.postStyleProps=s,c._stretchStartingKeyframe=u,c.timings={duration:l.duration,delay:l.delay,easing:l.easing},c}return h(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var i=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var c=[],u=s+o,d=o/u,f=ya(i[0],!1);f.offset=0,c.push(f);var p=ya(i[0],!1);p.offset=E9(d),c.push(p);for(var g=i.length-1,m=1;m<=g;m++){var C=ya(i[m],!1);C.offset=E9((o+C.offset*s)/u),c.push(C)}s=u,o=0,l="",i=c}return I8(this.element,i,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(x9);function E9(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(e*t)/t}var H8=h(function e(){v(this,e)}),uV=function(e){_(t,e);var r=z(t);function t(){return v(this,t),r.apply(this,arguments)}return h(t,[{key:"normalizePropertyName",value:function(i,a){return O8(i)}},{key:"normalizeStyleValue",value:function(i,a,o,s){var l="",c=o.toString().trim();if(dV[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var u=o.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&s.push("Please provide a CSS unit value for ".concat(i,":").concat(o))}return c+l}}]),t}(H8),dV=function(){return function fV(e){var r={};return e.forEach(function(t){return r[t]=!0}),r}("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 T9(e,r,t,n,i,a,o,s,l,c,u,d,f){return{type:0,element:e,triggerName:r,isRemovalTransition:i,fromState:t,fromStyles:a,toState:n,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}var V8={},z9=function(){function e(r,t,n){v(this,e),this._triggerName=r,this.ast=t,this._stateStyles=n}return h(e,[{key:"match",value:function(t,n,i,a){return function hV(e,r,t,n,i){return e.some(function(a){return a(r,t,n,i)})}(this.ast.matchers,t,n,i,a)}},{key:"buildStyles",value:function(t,n,i){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(n,i):{};return o?o.buildStyles(n,i):s}},{key:"build",value:function(t,n,i,a,o,s,l,c,u,d){var f=[],p=this.ast.options&&this.ast.options.params||V8,m=this.buildStyles(i,l&&l.params||V8,f),C=c&&c.params||V8,D=this.buildStyles(a,C,f),x=new Set,F=new Map,V=new Map,ne="void"===a,te={params:Object.assign(Object.assign({},p),C)},Te=d?[]:D9(t,n,this.ast.animation,o,s,m,D,te,u,f),rt=0;if(Te.forEach(function(ze){rt=Math.max(ze.duration+ze.delay,rt)}),f.length)return T9(n,this._triggerName,i,a,ne,m,D,[],[],F,V,rt,f);Te.forEach(function(ze){var ft=ze.element,Ht=kr(F,ft,{});ze.preStyleProps.forEach(function(Vt){return Ht[Vt]=!0});var sn=kr(V,ft,{});ze.postStyleProps.forEach(function(Vt){return sn[Vt]=!0}),ft!==n&&x.add(ft)});var Et=w1(x.values());return T9(n,this._triggerName,i,a,ne,m,D,Te,Et,F,V,rt)}}]),e}(),vV=function(){function e(r,t,n){v(this,e),this.styles=r,this.defaultParams=t,this.normalizer=n}return h(e,[{key:"buildStyles",value:function(t,n){var i=this,a={},o=As(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(c){var u=l[c];u.length>1&&(u=b1(u,o,n));var d=i.normalizer.normalizePropertyName(c,n);u=i.normalizer.normalizeStyleValue(c,d,u,n),a[d]=u})}}),a}}]),e}(),gV=function(){function e(r,t,n){var i=this;v(this,e),this.name=r,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(a){i.states[a.name]=new vV(a.style,a.options&&a.options.params||{},n)}),A9(this.states,"true","1"),A9(this.states,"false","0"),t.transitions.forEach(function(a){i.transitionFactories.push(new z9(r,a,i.states))}),this.fallbackTransition=function mV(e,r,t){return new z9(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return h(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,i,a){return this.transitionFactories.find(function(s){return s.match(t,n,i,a)})||null}},{key:"matchStyles",value:function(t,n,i){return this.fallbackTransition.buildStyles(t,n,i)}}]),e}();function A9(e,r,t){e.hasOwnProperty(r)?e.hasOwnProperty(t)||(e[t]=e[r]):e.hasOwnProperty(t)&&(e[r]=e[t])}var yV=new L8,_V=function(){function e(r,t,n){v(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return h(e,[{key:"register",value:function(t,n){var i=[],a=M9(this._driver,n,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=a}},{key:"_buildPlayer",value:function(t,n,i){var a=t.element,o=s9(this._driver,this._normalizer,a,t.keyframes,n,i);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var l,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],c=new Map;if(s?(l=D9(this._driver,n,s,g9,T8,{},{},a,yV,o)).forEach(function(f){var p=kr(c,f.element,{});f.postStyleProps.forEach(function(g){return p[g]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),l=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));c.forEach(function(f,p){Object.keys(f).forEach(function(g){f[g]=i._driver.computeStyle(p,g,Ui)})});var u=l.map(function(f){var p=c.get(f.element);return i._buildPlayer(f,{},p)}),d=ma(u);return this._playersById[t]=d,d.onDestroy(function(){return i.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,i,a){var o=D8(n,"","","");return M8(this._getPlayer(t),i,o,a),function(){}}},{key:"command",value:function(t,n,i,a){if("register"!=i)if("create"!=i){var s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,a[0]||{});else this.register(t,a[0])}}]),e}(),P9="ng-animate-queued",R8="ng-animate-disabled",wV="ng-star-inserted",MV=[],O9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},SV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Br="__ng_removed",N8=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";v(this,e),this.namespaceId=t;var n=r&&r.hasOwnProperty("value"),i=n?r.value:r;if(this.value=TV(i),n){var a=As(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return h(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var i=this.options.params;Object.keys(n).forEach(function(a){null==i[a]&&(i[a]=n[a])})}}}]),e}(),nc="void",B8=new N8(nc),DV=function(){function e(r,t,n){v(this,e),this.id=r,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Yr(t,this._hostClassName)}return h(e,[{key:"listen",value:function(t,n,i,a){var o=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function zV(e){return"start"==e||"done"==e}(i))throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(n,'" is not supported!'));var s=kr(this._elementListeners,t,[]),l={name:n,phase:i,callback:a};s.push(l);var c=kr(this._engine.statesByElement,t,{});return c.hasOwnProperty(n)||(Yr(t,y1),Yr(t,y1+"-"+n),c[n]=B8),function(){o._engine.afterFlush(function(){var u=s.indexOf(l);u>=0&&s.splice(u,1),o._triggers[n]||delete c[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,i){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(n),l=new Y8(this.id,n,t),c=this._engine.statesByElement.get(t);c||(Yr(t,y1),Yr(t,y1+"-"+n),this._engine.statesByElement.set(t,c={}));var u=c[n],d=new N8(i,this.id),f=i&&i.hasOwnProperty("value");!f&&u&&d.absorbOptions(u.options),c[n]=d,u||(u=B8);var p=d.value===nc;if(p||u.value!==d.value){var D=kr(this._engine.playersByElement,t,[]);D.forEach(function(V){V.namespaceId==a.id&&V.triggerName==n&&V.queued&&V.destroy()});var x=s.matchTransition(u.value,d.value,t,d.params),F=!1;if(!x){if(!o)return;x=s.fallbackTransition,F=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:x,fromState:u,toState:d,player:l,isFallbackTransition:F}),F||(Yr(t,P9),l.onStart(function(){Ps(t,P9)})),l.onDone(function(){var V=a.players.indexOf(l);V>=0&&a.players.splice(V,1);var ne=a._engine.playersByElement.get(t);if(ne){var te=ne.indexOf(l);te>=0&&ne.splice(te,1)}}),this.players.push(l),D.push(l),l}if(!OV(u.params,d.params)){var g=[],m=s.matchStyles(u.value,u.params,g),C=s.matchStyles(d.value,d.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){ao(t,m),Si(t,C)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(i,a){delete i[t]}),this._elementListeners.forEach(function(i,a){n._elementListeners.set(a,i.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(i){return i.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var i=this,a=this._engine.driver.query(t,_1,!0);a.forEach(function(o){if(!o[Br]){var s=i._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,n,!1,!0)}):i.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return i.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,n,i,a){var o=this,s=this._engine.statesByElement.get(t),l=new Map;if(s){var c=[];if(Object.keys(s).forEach(function(u){if(l.set(u,s[u].value),o._triggers[u]){var d=o.trigger(t,u,nc,a);d&&c.push(d)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,l),i&&ma(c).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,i=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(i&&a){var o=new Set;i.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var u=n._triggers[l].fallbackTransition,d=a[l]||B8,f=new N8(nc),p=new Y8(n.id,l,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:l,transition:u,fromState:d,toState:f,player:p,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var i=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,n);else{var u=t[Br];(!u||u===O9)&&(a.afterFlush(function(){return i.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Yr(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,i=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=n._elementListeners.get(s);l&&l.forEach(function(c){if(c.name==a.triggerName){var u=D8(s,a.triggerName,a.fromState.value,a.toState.value);u._data=t,M8(a.player,c.phase,u,c.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):i.push(a)}}),this._queue=[],i.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:n._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(i){return i.element===t})||n}}]),e}(),xV=function(){function e(r,t,n){v(this,e),this.bodyNode=r,this.driver=t,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=function(i,a){}}return h(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(i){i.queued&&t.push(i)})}),t}},{key:"createNamespace",value:function(t,n){var i=new DV(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[t]=i}},{key:"_balanceNamespaceList",value:function(t,n){var i=this._namespaceList.length-1;if(i>=0){for(var a=!1,o=i;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,n)){this._namespaceList.splice(o+1,0,t),a=!0;break}a||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,n)),i}},{key:"registerTrigger",value:function(t,n,i){var a=this._namespaceLookup[t];a&&a.register(n,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var i=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(a.hostElement),delete i._namespaceLookup[t];var o=i._namespaceList.indexOf(a);o>=0&&i._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,i=this.statesByElement.get(t);if(i)for(var a=Object.keys(i),o=0;o<a.length;o++){var s=i[a[o]].namespaceId;if(s){var l=this._fetchNamespace(s);l&&n.add(l)}}return n}},{key:"trigger",value:function(t,n,i,a){if(E1(n)){var o=this._fetchNamespace(t);if(o)return o.trigger(n,i,a),!0}return!1}},{key:"insertNode",value:function(t,n,i,a){if(E1(n)){var o=n[Br];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(n,i)}a&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yr(t,R8)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ps(t,R8))}},{key:"removeNode",value:function(t,n,i,a){if(E1(n)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(n,a):this.markElementAsRemoved(t,n,!1,a),i){var s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,a)}}else this._onRemovalComplete(n,a)}},{key:"markElementAsRemoved",value:function(t,n,i,a,o){this.collectedLeaveElements.push(n),n[Br]={namespaceId:t,setForRemoval:a,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,n,i,a,o){return E1(n)?this._fetchNamespace(t).listen(n,i,a,o):function(){}}},{key:"_buildInstruction",value:function(t,n,i,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,a,t.fromState.options,t.toState.options,n,o)}},{key:"destroyInnerAnimations",value:function(t){var n=this,i=this.driver.query(t,_1,!0);i.forEach(function(a){return n.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,z8,!0)).forEach(function(a){return n.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(i){i.queued?i.markedForDestroy=!0:i.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(i){return i.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return ma(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var i,n=this,a=t[Br];if(a&&a.setForRemoval){if(t[Br]=O9,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(i=t.classList)||void 0===i?void 0:i.contains(R8))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){n.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(f,p){return t._balanceNamespaceList(f,p)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var o=this.collectedEnterElements[a];Yr(o,wV)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var s=[];try{i=this._flushAnimations(s,n)}finally{for(var l=0;l<s.length;l++)s[l]()}}else for(var c=0;c<this.collectedLeaveElements.length;c++){var u=this.collectedLeaveElements[c];this.processLeaveNode(u)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(f){return f()}),this._flushFns=[],this._whenQuietFns.length){var d=this._whenQuietFns;this._whenQuietFns=[],i.length?ma(i).onDone(function(){d.forEach(function(f){return f()})}):d.forEach(function(f){return f()})}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,n){var i=this,a=new L8,o=[],s=new Map,l=[],c=new Map,u=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(function(ue){f.add(ue);for(var De=i.driver.query(ue,".ng-animate-queued",!0),Re=0;Re<De.length;Re++)f.add(De[Re])});var p=this.bodyNode,g=Array.from(this.statesByElement.keys()),m=L9(g,this.collectedEnterElements),C=new Map,D=0;m.forEach(function(ue,De){var Re=g9+D++;C.set(De,Re),ue.forEach(function(rn){return Yr(rn,Re)})});for(var x=[],F=new Set,V=new Set,ne=0;ne<this.collectedLeaveElements.length;ne++){var te=this.collectedLeaveElements[ne],Te=te[Br];Te&&Te.setForRemoval&&(x.push(te),F.add(te),Te.hasAnimation?this.driver.query(te,".ng-star-inserted",!0).forEach(function(ue){return F.add(ue)}):V.add(te))}var rt=new Map,Et=L9(g,Array.from(F));Et.forEach(function(ue,De){var Re=T8+D++;rt.set(De,Re),ue.forEach(function(rn){return Yr(rn,Re)})}),t.push(function(){m.forEach(function(ue,De){var Re=C.get(De);ue.forEach(function(rn){return Ps(rn,Re)})}),Et.forEach(function(ue,De){var Re=rt.get(De);ue.forEach(function(rn){return Ps(rn,Re)})}),x.forEach(function(ue){i.processLeaveNode(ue)})});for(var ze=[],ft=[],Ht=this._namespaceList.length-1;Ht>=0;Ht--)this._namespaceList[Ht].drainQueuedTransitions(n).forEach(function(ue){var De=ue.player,Re=ue.element;if(ze.push(De),i.collectedEnterElements.length){var rn=Re[Br];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(ue.triggerName)){var Xs=rn.previousTriggersValues.get(ue.triggerName),xa=i.statesByElement.get(ue.element);xa&&xa[ue.triggerName]&&(xa[ue.triggerName].value=Xs)}return void De.destroy()}}var wc=!p||!i.driver.containsElement(p,Re),v4=rt.get(Re),d6=C.get(Re),Tn=i._buildInstruction(ue,a,d6,v4,wc);if(Tn.errors&&Tn.errors.length)ft.push(Tn);else{if(wc)return De.onStart(function(){return ao(Re,Tn.fromStyles)}),De.onDestroy(function(){return Si(Re,Tn.toStyles)}),void o.push(De);if(ue.isFallbackTransition)return De.onStart(function(){return ao(Re,Tn.fromStyles)}),De.onDestroy(function(){return Si(Re,Tn.toStyles)}),void o.push(De);var p4=[];Tn.timelines.forEach(function(Qi){Qi.stretchStartingKeyframe=!0,i.disabledNodes.has(Qi.element)||p4.push(Qi)}),Tn.timelines=p4,a.append(Re,Tn.timelines),l.push({instruction:Tn,player:De,element:Re}),Tn.queriedElements.forEach(function(Qi){return kr(c,Qi,[]).push(De)}),Tn.preStyleProps.forEach(function(Qi,kc){var g4=Object.keys(Qi);if(g4.length){var bo=u.get(kc);bo||u.set(kc,bo=new Set),g4.forEach(function(f6){return bo.add(f6)})}}),Tn.postStyleProps.forEach(function(Qi,kc){var g4=Object.keys(Qi),bo=d.get(kc);bo||d.set(kc,bo=new Set),g4.forEach(function(f6){return bo.add(f6)})})}});if(ft.length){var Vt=[];ft.forEach(function(ue){Vt.push("@".concat(ue.triggerName," has failed due to:\n")),ue.errors.forEach(function(De){return Vt.push("- ".concat(De,"\n"))})}),ze.forEach(function(ue){return ue.destroy()}),this.reportError(Vt)}var Wn=new Map,ar=new Map;l.forEach(function(ue){var De=ue.element;a.has(De)&&(ar.set(De,De),i._beforeAnimationBuild(ue.player.namespaceId,ue.instruction,Wn))}),o.forEach(function(ue){var De=ue.element;i._getPreviousPlayers(De,!1,ue.namespaceId,ue.triggerName,null).forEach(function(rn){kr(Wn,De,[]).push(rn),rn.destroy()})});var Da=x.filter(function(ue){return V9(ue,u,d)}),Zs=new Map;I9(Zs,this.driver,V,d,Ui).forEach(function(ue){V9(ue,u,d)&&Da.push(ue)});var a6=new Map;m.forEach(function(ue,De){I9(a6,i.driver,new Set(ue),u,"!")}),Da.forEach(function(ue){var De=Zs.get(ue),Re=a6.get(ue);Zs.set(ue,Object.assign(Object.assign({},De),Re))});var o6=[],wC=[],kC={};l.forEach(function(ue){var De=ue.element,Re=ue.player,rn=ue.instruction;if(a.has(De)){if(f.has(De))return Re.onDestroy(function(){return Si(De,rn.toStyles)}),Re.disabled=!0,Re.overrideTotalTime(rn.totalTime),void o.push(Re);var Xs=kC;if(ar.size>1){for(var xa=De,wc=[];xa=xa.parentNode;){var v4=ar.get(xa);if(v4){Xs=v4;break}wc.push(xa)}wc.forEach(function(p4){return ar.set(p4,Xs)})}var d6=i._buildAnimation(Re.namespaceId,rn,Wn,s,a6,Zs);if(Re.setRealPlayer(d6),Xs===kC)o6.push(Re);else{var Tn=i.playersByElement.get(Xs);Tn&&Tn.length&&(Re.parentPlayer=ma(Tn)),o.push(Re)}}else ao(De,rn.fromStyles),Re.onDestroy(function(){return Si(De,rn.toStyles)}),wC.push(Re),f.has(De)&&o.push(Re)}),wC.forEach(function(ue){var De=s.get(ue.element);if(De&&De.length){var Re=ma(De);ue.setRealPlayer(Re)}}),o.forEach(function(ue){ue.parentPlayer?ue.syncPlayerEvents(ue.parentPlayer):ue.destroy()});for(var s6=0;s6<x.length;s6++){var Qs=x[s6],MC=Qs[Br];if(Ps(Qs,T8),!MC||!MC.hasAnimation){var bc=[];if(c.size){var l6=c.get(Qs);l6&&l6.length&&bc.push.apply(bc,se(l6));for(var SC=this.driver.query(Qs,z8,!0),c6=0;c6<SC.length;c6++){var u6=c.get(SC[c6]);u6&&u6.length&&bc.push.apply(bc,se(u6))}}var DC=bc.filter(function(ue){return!ue.destroyed});DC.length?AV(this,Qs,DC):this.processLeaveNode(Qs)}}return x.length=0,o6.forEach(function(ue){i.players.push(ue),ue.onDone(function(){ue.destroy();var De=i.players.indexOf(ue);i.players.splice(De,1)}),ue.play()}),o6}},{key:"elementContainsData",value:function(t,n){var i=!1,a=n[Br];return a&&a.setForRemoval&&(i=!0),this.playersByElement.has(n)&&(i=!0),this.playersByQueriedElement.has(n)&&(i=!0),this.statesByElement.has(n)&&(i=!0),this._fetchNamespace(t).elementContainsData(n)||i}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,n,i,a,o){var s=[];if(n){var l=this.playersByQueriedElement.get(t);l&&(s=l)}else{var c=this.playersByElement.get(t);if(c){var u=!o||o==nc;c.forEach(function(d){d.queued||!u&&d.triggerName!=a||s.push(d)})}}return(i||a)&&(s=s.filter(function(d){return!(i&&i!=d.namespaceId||a&&a!=d.triggerName)})),s}},{key:"_beforeAnimationBuild",value:function(t,n,i){var d,a=this,s=n.element,l=n.isRemovalTransition?void 0:t,c=n.isRemovalTransition?void 0:n.triggerName,u=lt(n.timelines);try{var f=function(){var m=d.value.element,C=m!==s,D=kr(i,m,[]);a._getPreviousPlayers(m,C,l,c,n.toState).forEach(function(F){var V=F.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),F.destroy(),D.push(F)})};for(u.s();!(d=u.n()).done;)f()}catch(p){u.e(p)}finally{u.f()}ao(s,n.fromStyles)}},{key:"_buildAnimation",value:function(t,n,i,a,o,s){var l=this,c=n.triggerName,u=n.element,d=[],f=new Set,p=new Set,g=n.timelines.map(function(C){var D=C.element;f.add(D);var x=D[Br];if(x&&x.removedBeforeQueried)return new ec(C.duration,C.delay);var F=D!==u,V=function PV(e){var r=[];return H9(e,r),r}((i.get(D)||MV).map(function(ze){return ze.getRealPlayer()})).filter(function(ze){return!!ze.element&&ze.element===D}),ne=o.get(D),te=s.get(D),Te=s9(l.driver,l._normalizer,D,C.keyframes,ne,te),rt=l._buildPlayer(C,Te,V);if(C.subTimeline&&a&&p.add(D),F){var Et=new Y8(t,c,D);Et.setRealPlayer(rt),d.push(Et)}return rt});d.forEach(function(C){kr(l.playersByQueriedElement,C.element,[]).push(C),C.onDone(function(){return function EV(e,r,t){var n;if(e instanceof Map){if(n=e.get(r)){if(n.length){var i=n.indexOf(t);n.splice(i,1)}0==n.length&&e.delete(r)}}else if(n=e[r]){if(n.length){var a=n.indexOf(t);n.splice(a,1)}0==n.length&&delete e[r]}return n}(l.playersByQueriedElement,C.element,C)})}),f.forEach(function(C){return Yr(C,m9)});var m=ma(g);return m.onDestroy(function(){f.forEach(function(C){return Ps(C,m9)}),Si(u,n.toStyles)}),p.forEach(function(C){kr(a,C,[]).push(m)}),m}},{key:"_buildPlayer",value:function(t,n,i){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,i):new ec(t.duration,t.delay)}}]),e}(),Y8=function(){function e(r,t,n){v(this,e),this.namespaceId=r,this.triggerName=t,this.element=n,this._player=new ec,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return h(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){n._queuedCallbacks[i].forEach(function(a){return M8(t,i,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){kr(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function TV(e){return null!=e?e:null}function E1(e){return e&&1===e.nodeType}function F9(e,r){var t=e.style.display;return e.style.display=null!=r?r:"none",t}function I9(e,r,t,n,i){var a=[];t.forEach(function(l){return a.push(F9(l))});var o=[];n.forEach(function(l,c){var u={};l.forEach(function(d){var f=u[d]=r.computeStyle(c,d,i);(!f||0==f.length)&&(c[Br]=SV,o.push(c))}),e.set(c,u)});var s=0;return t.forEach(function(l){return F9(l,a[s++])}),o}function L9(e,r){var t=new Map;if(e.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var i=new Set(r),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var c=s.parentNode;return l=t.has(c)?c:i.has(c)?1:o(c),a.set(s,l),l}return r.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}function Yr(e,r){var t;null===(t=e.classList)||void 0===t||t.add(r)}function Ps(e,r){var t;null===(t=e.classList)||void 0===t||t.remove(r)}function AV(e,r,t){ma(t).onDone(function(){return e.processLeaveNode(r)})}function H9(e,r){for(var t=0;t<e.length;t++){var n=e[t];n instanceof o9?H9(n.players,r):r.push(n)}}function OV(e,r){var t=Object.keys(e),n=Object.keys(r);if(t.length!=n.length)return!1;for(var i=0;i<t.length;i++){var a=t[i];if(!r.hasOwnProperty(a)||e[a]!==r[a])return!1}return!0}function V9(e,r,t){var n=t.get(e);if(!n)return!1;var i=r.get(e);return i?n.forEach(function(a){return i.add(a)}):r.set(e,n),t.delete(e),!0}var T1=function(){function e(r,t,n){var i=this;v(this,e),this.bodyNode=r,this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=function(a,o){},this._transitionEngine=new xV(r,t,n),this._timelineEngine=new _V(r,t,n),this._transitionEngine.onRemovalComplete=function(a,o){return i.onRemovalComplete(a,o)}}return h(e,[{key:"registerTrigger",value:function(t,n,i,a,o){var s=t+"-"+a,l=this._triggerCache[s];if(!l){var c=[],u=M9(this._driver,o,c);if(c.length)throw new Error('The animation trigger "'.concat(a,'" has failed to build due to the following errors:\n - ').concat(c.join("\n - ")));l=function pV(e,r,t){return new gV(e,r,t)}(a,u,this._normalizer),this._triggerCache[s]=l}this._transitionEngine.registerTrigger(n,a,l)}},{key:"register",value:function(t,n){this._transitionEngine.register(t,n)}},{key:"destroy",value:function(t,n){this._transitionEngine.destroy(t,n)}},{key:"onInsert",value:function(t,n,i,a){this._transitionEngine.insertNode(t,n,i,a)}},{key:"onRemove",value:function(t,n,i,a){this._transitionEngine.removeNode(t,n,a||!1,i)}},{key:"disableAnimations",value:function(t,n){this._transitionEngine.markElementAsDisabled(t,n)}},{key:"process",value:function(t,n,i,a){if("@"==i.charAt(0)){var s=Be(l9(i),2);this._timelineEngine.command(s[0],n,s[1],a)}else this._transitionEngine.trigger(t,n,i,a)}},{key:"listen",value:function(t,n,i,a,o){if("@"==i.charAt(0)){var l=Be(l9(i),2);return this._timelineEngine.listen(l[0],n,l[1],o)}return this._transitionEngine.listen(t,n,i,a,o)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function FV(e,r){var t=null,n=null;return Array.isArray(r)&&r.length?(t=j8(r[0]),r.length>1&&(n=j8(r[r.length-1]))):r&&(t=j8(r)),t||n?new IV(e,t,n):null}var IV=function(){var e=function(){function r(t,n,i){v(this,r),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return h(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Si(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Si(this._element,this._initialStyles),this._endStyles&&(Si(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ao(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ao(this._element,this._endStyles),this._endStyles=null),Si(this._element,this._initialStyles),this._state=3)}}]),r}();return e.initialStylesByElement=new WeakMap,e}();function j8(e){for(var r=null,t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];LV(i)&&((r=r||{})[i]=e[i])}return r}function LV(e){return"display"===e||"position"===e}var R9=function(){function e(r,t,n,i){v(this,e),this.element=r,this.keyframes=t,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}return h(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,i){return t.animate(n,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};if(this.hasStarted()){var i=this._finalKeyframe;Object.keys(i).forEach(function(a){"offset"!=a&&(n[a]=t._finished?i[a]:b9(t.element,a))})}this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(i){return i()}),n.length=0}}]),e}(),HV=function(){function e(){v(this,e)}return h(e,[{key:"validateStyleProperty",value:function(t){return d9(t)}},{key:"matchesElement",value:function(t,n){return!1}},{key:"containsElement",value:function(t,n){return f9(t,n)}},{key:"query",value:function(t,n,i){return h9(t,n,i)}},{key:"computeStyle",value:function(t,n,i){return window.getComputedStyle(t)[n]}},{key:"animate",value:function(t,n,i,a,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=0==a?"both":"forwards",c={duration:i,delay:a,fill:l};o&&(c.easing=o);var u={},d=s.filter(function(p){return p instanceof R9});jH(i,a)&&d.forEach(function(p){var g=p.currentSnapshot;Object.keys(g).forEach(function(m){return u[m]=g[m]})});var f=FV(t,n=UH(t,n=n.map(function(p){return ya(p,!1)}),u));return new R9(t,n,c,f)}}]),e}(),VV=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a){var o;return v(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=i.createRenderer(a.body,{id:"0",encapsulation:Wr.None,styles:[],data:{animation:[]}}),o}return h(n,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?n9(a):a;return N9(this._renderer,null,o,"register",[s]),new RV(o,this._renderer)}}]),n}(t9);return e.\u0275fac=function(t){return new(t||e)(T(Ua),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),RV=function(e){_(t,e);var r=z(t);function t(n,i){var a;return v(this,t),(a=r.call(this))._id=n,a._renderer=i,a}return h(t,[{key:"create",value:function(i,a){return new NV(this._id,i,a||{},this._renderer)}}]),t}(PH),NV=function(){function e(r,t,n,i){v(this,e),this.id=r,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return h(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return N9(this._renderer,this.element,this.id,t,i)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){var t,n;return null!==(n=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==n?n:0}}]),e}();function N9(e,r,t,n,i){return e.setProperty(r,"@@".concat(t,":").concat(n),i)}var B9="@.disabled",BV=function(){var e=function(){function r(t,n,i){v(this,r),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(a,o){var s=null==o?void 0:o.parentNode(a);s&&o.removeChild(s,a)}}return h(r,[{key:"createRenderer",value:function(n,i){var a=this,s=this.delegate.createRenderer(n,i);if(!(n&&i&&i.data&&i.data.animation)){var l=this._rendererCache.get(s);return l||(l=new Y9("",s,this.engine),this._rendererCache.set(s,l)),l}var c=i.id,u=i.id+"-"+this._currentId;return this._currentId++,this.engine.register(u,n),i.data.animation.forEach(function p(g){Array.isArray(g)?g.forEach(p):a.engine.registerTrigger(c,u,n,g.name,g)}),new YV(this,u,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var n=this;this.promise.then(function(){n._microtaskId++})}},{key:"scheduleListenerCallback",value:function(n,i,a){var o=this;n>=0&&n<this._microtaskId?this._zone.run(function(){return i(a)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){o._zone.run(function(){o._animationCallbacksBuffer.forEach(function(s){var l=Be(s,2);(0,l[0])(l[1])}),o._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,a]))}},{key:"end",value:function(){var n=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){n._scheduleCountTask(),n.engine.flush(n._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ua),T(T1),T(Xe))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Y9=function(){function e(r,t,n){v(this,e),this.namespaceId=r,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(i){return t.destroyNode(i)}:null}return h(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(t,n){return this.delegate.createElement(t,n)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}},{key:"appendChild",value:function(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}},{key:"insertBefore",value:function(t,n,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,i),this.engine.onInsert(this.namespaceId,n,t,a)}},{key:"removeChild",value:function(t,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,i,a){this.delegate.setAttribute(t,n,i,a)}},{key:"removeAttribute",value:function(t,n,i){this.delegate.removeAttribute(t,n,i)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,i,a){this.delegate.setStyle(t,n,i,a)}},{key:"removeStyle",value:function(t,n,i){this.delegate.removeStyle(t,n,i)}},{key:"setProperty",value:function(t,n,i){"@"==n.charAt(0)&&n==B9?this.disableAnimations(t,!!i):this.delegate.setProperty(t,n,i)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,i){return this.delegate.listen(t,n,i)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),YV=function(e){_(t,e);var r=z(t);function t(n,i,a,o){var s;return v(this,t),(s=r.call(this,i,a,o)).factory=n,s.namespaceId=i,s}return h(t,[{key:"setProperty",value:function(i,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==B9?this.disableAnimations(i,o=void 0===o||!!o):this.engine.process(this.namespaceId,i,a.substr(1),o):this.delegate.setProperty(i,a,o)}},{key:"listen",value:function(i,a,o){var s=this;if("@"==a.charAt(0)){var l=function jV(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(i),c=a.substr(1),u="";if("@"!=c.charAt(0)){var d=function UV(e){var r=e.indexOf(".");return[e.substring(0,r),e.substr(r+1)]}(c),f=Be(d,2);c=f[0],u=f[1]}return this.engine.listen(this.namespaceId,l,c,u,function(p){s.factory.scheduleListenerCallback(p._data||-1,o,p)})}return this.delegate.listen(i,a,o)}}]),t}(Y9),GV=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o){return v(this,n),t.call(this,i.body,a,o)}return h(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(T1);return e.\u0275fac=function(t){return new(t||e)(T(Ze),T(E8),T(H8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Os=new re("AnimationModuleType"),j9=[{provide:t9,useClass:VV},{provide:H8,useFactory:function WV(){return new uV}},{provide:T1,useClass:GV},{provide:Ua,useFactory:function qV(e,r,t){return new BV(e,r,t)},deps:[qu,T1,Xe]}],U9=[{provide:E8,useFactory:function(){return new HV}},{provide:Os,useValue:"BrowserAnimations"}].concat(j9),$V=[{provide:E8,useClass:v9},{provide:Os,useValue:"NoopAnimations"}].concat(j9),KV=function(){var e=function(){function r(){v(this,r)}return h(r,null,[{key:"withConfig",value:function(n){return{ngModule:r,providers:n.disableAnimations?$V:U9}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:U9,imports:[V5]}),e}();function ZV(e,r){return e===r}function QV(e,r,t){if(null===r||null===t||r.length!==t.length)return!1;for(var n=r.length,i=0;i<n;i++)if(!e(r[i],t[i]))return!1;return!0}function A1(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ZV,t=null,n=null;function i(){return QV(r,t,arguments)||(n=e.apply(null,arguments)),t=arguments,n}return i.reset=function(){t=null,n=null},i}var JV=A1(function XV(){var e=Q3();if(!e)return!1;var r=e.injector.get(Rg,null);return!!r&&r.some(function(n){return(n&&n.providers||[]).some(function(a){return a&&a.provide&&"MockNgModuleResolver"===a.provide.name||!1})})}),U8=function(){var e=function(){function r(){v(this,r),this.bootstrap$=new $l(1)}return h(r,[{key:"appBootstrapped$",get:function(){return this.bootstrap$.asObservable()}},{key:"bootstrap",value:function(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),G8=new re("INITIAL_STATE_TOKEN"),eR=function(){var e=function(){function r(){v(this,r)}return h(r,null,[{key:"set",value:function(n){this.value=n}},{key:"pop",value:function(){var n=this.value;return this.value={},n}}]),r}();return e.value={},e}(),tR=new re("Internals.StateContextFactory"),nR=new re("Internals.StateFactory");function P1(e,r){var t=at(e)?e:function(){return e},n=function(a){return a.error(t())};return new de(r?function(i){return r.schedule(n,0,i)}:n)}function O1(e,r,t){var n,i,a,o=!1;return e&&"object"==typeof e?(a=null!==(n=e.bufferSize)&&void 0!==n?n:1/0,r=null!==(i=e.windowTime)&&void 0!==i?i:1/0,o=!!e.refCount,t=e.scheduler):a=null!=e?e:1/0,x4({connector:function(){return new $l(a,r,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function G9(e,r){return r?function(t){return t.pipe(G9(function(n,i){return Fn(e(n,i)).pipe(mn(function(a,o){return r(n,a,i,o)}))}))}:un(function(t,n){var i=0,a=null,o=!1;t.subscribe(new Nt(n,function(s){a||(a=new Nt(n,void 0,function(){a=null,o&&n.complete()}),Fn(e(s,i++)).subscribe(a))},function(){o=!0,!a&&n.complete()}))})}function W8(e){return un(function(r,t){var n=!1;r.subscribe(new Nt(t,function(i){n=!0,t.next(i)},function(){n||t.next(e),t.complete()}))})}function F1(e){return un(function(r,t){var a,n=null,i=!1;n=r.subscribe(new Nt(t,void 0,void 0,function(o){a=Fn(e(o,F1(e)(r))),n?(n.unsubscribe(),n=null,a.subscribe(t)):i=!0})),i&&(n.unsubscribe(),n=null,a.subscribe(t))})}function W9(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:za;return e=null!=e?e:rR,un(function(t,n){var i,a=!0;t.subscribe(new Nt(n,function(o){var s=r(o);(a||!e(i,s))&&(a=!1,i=s,n.next(o))}))})}function rR(e,r){return e===r}var tr,Sr=(nt(tr={},"STATE_NAME",function(e){return"".concat(e," is not a valid state name. It needs to be a valid object property name.")}),nt(tr,"STATE_NAME_PROPERTY",function(){return"States must register a 'name' property"}),nt(tr,"STATE_UNIQUE",function(e,r,t){return"State name '".concat(e,"' from ").concat(r," already exists in ").concat(t)}),nt(tr,"STATE_DECORATOR",function(){return"States must be decorated with @State() decorator"}),nt(tr,"INCORRECT_PRODUCTION",function(){return"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })"}),nt(tr,"INCORRECT_DEVELOPMENT",function(){return"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })"}),nt(tr,"SELECT_FACTORY_NOT_CONNECTED",function(){return"You have forgotten to import the NGXS module!"}),nt(tr,"ACTION_DECORATOR",function(){return"@Action() decorator cannot be used with static methods"}),nt(tr,"SELECTOR_DECORATOR",function(){return"Selectors only work on methods"}),nt(tr,"ZONE_WARNING",function(){return"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })"}),nt(tr,"PATCHING_ARRAY",function(){return"Patching arrays is not supported."}),nt(tr,"PATCHING_PRIMITIVE",function(){return"Patching primitives is not supported."}),nt(tr,"UNDECORATED_STATE_IN_IVY",function(e){return"'".concat(e,"' class should be decorated with @Injectable() right after the @State() decorator")}),tr),q9=function(){var e=function(){function r(t,n){v(this,r),this._ngZone=t,this._platformId=n,this.verifyZoneIsNotNooped(this._ngZone)}return h(r,[{key:"enter",value:function(n){return Bi(this._platformId)?this.runInsideAngular(n):this.runOutsideAngular(n)}},{key:"leave",value:function(n){return this.runInsideAngular(n)}},{key:"runInsideAngular",value:function(n){return Xe.isInAngularZone()?n():this._ngZone.run(n)}},{key:"runOutsideAngular",value:function(n){return Xe.isInAngularZone()?this._ngZone.runOutsideAngular(n):n()}},{key:"verifyZoneIsNotNooped",value:function(n){n instanceof Xe||console.warn(Sr.ZONE_WARNING())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Xe),T(Rn))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),$9=new re("ROOT_STATE_TOKEN"),K9=new re("FEATURE_STATE_TOKEN"),iR=new re("NGXS_PLUGINS"),Z9=new re("NG_TEST_MODE"),Q9=new re("NG_DEV_MODE"),Gi="NGXS_META",X9="NGXS_OPTIONS_META",q8="NGXS_SELECTOR_META",so=function(){var e=h(function r(){v(this,r),this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=q9});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),aR=h(function e(r,t,n){v(this,e),this.previousValue=r,this.currentValue=t,this.firstChange=n}),J9=new re("NGXS_EXECUTION_STRATEGY");function Fs(e){return e.constructor&&e.constructor.type?e.constructor.type:e.type}var ey=function(r,t,n){r=Object.assign({},r);var i=t.split("."),a=i.length-1;return i.reduce(function(o,s,l){return o[s]=l===a?n:Array.isArray(o[s])?o[s].slice():Object.assign({},o[s]),o&&o[s]},r),r},I1=function(r,t){return t.split(".").reduce(function(n,i){return n&&n[i]},r)},$8=function(r){return r&&"object"==typeof r&&!Array.isArray(r)},oR=function e(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(!n.length)return r;var a=n.shift();if($8(r)&&$8(a))for(var o in a)$8(a[o])?(r[o]||Object.assign(r,nt({},o,{})),e(r[o],a[o])):Object.assign(r,nt({},o,a[o]));return e.apply(void 0,[r].concat(n))};function K8(e){if(!e.hasOwnProperty(Gi)){var r={name:null,actions:{},defaults:{},path:null,makeRootSelector:function(n){return n.getStateGetter(r.name)},children:[]};Object.defineProperty(e,Gi,{value:r})}return rc(e)}function rc(e){return e[Gi]}function Z8(e){return e[q8]}function ny(e,r){return r&&r.compatibility&&r.compatibility.strictContentSecurityPolicy?function sR(e){var r=e.slice();return function(t){return r.reduce(function(n,i){return n&&n[i]},t)}}(e):function lR(e){for(var r=e,t="store."+r[0],n=0,i=r.length,a=t;++n<i;)a=a+" && "+(t=t+"."+r[n]);return new Function("store","return "+a+";")}(e)}function fR(e){var r=[],t={},n=function i(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(o)||(o=[]),o.push(a),t[a]=!0,e[a].forEach(function(s){if(o.indexOf(s)>=0)throw new Error("Circular dependency '".concat(s,"' is required by '").concat(a,"': ").concat(o.join(" -> ")));t[s]||i(s,o.slice(0))}),r.indexOf(a)<0&&r.push(a)};return Object.keys(e).forEach(function(i){return n(i)}),r.reverse()}function ry(e,r){var t=I1(r.currentAppState,e.path),n=I1(r.newAppState,e.path);return new aR(t,n,!e.isInitialised)}function lo(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Is(r,["DISPATCHED"])}function Is(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gR,n=mR(e),i=r&&yR(r);return function(a){return a.pipe(vR(n,i),t())}}function vR(e,r){return Xt(function(t){var n=Fs(t.action);return e[n]&&(!r||r[t.status])})}function gR(){return mn(function(e){return e.action})}function mR(e){return e.reduce(function(r,t){return r[Fs(t)]=!0,r},{})}function yR(e){return e.reduce(function(r,t){return r[t]=!0,r},{})}function L1(e){return function(r){return new de(function(t){return r.subscribe({next:function(i){e.leave(function(){return t.next(i)})},error:function(i){e.leave(function(){return t.error(i)})},complete:function(){e.leave(function(){return t.complete()})}})})}}var H1=function(){var e=function(){function r(t){v(this,r),this._executionStrategy=t}return h(r,[{key:"enter",value:function(n){return this._executionStrategy.enter(n)}},{key:"leave",value:function(n){return this._executionStrategy.leave(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(J9))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),_R=function(e){_(t,e);var r=z(t);function t(){var n;return v(this,t),(n=r.apply(this,arguments))._itemQueue=[],n._busyPushingNext=!1,n}return h(t,[{key:"next",value:function(i){if(this._busyPushingNext)this._itemQueue.unshift(i);else{for(this._busyPushingNext=!0,L(O(t.prototype),"next",this).call(this,i);this._itemQueue.length>0;){var a=this._itemQueue.pop();L(O(t.prototype),"next",this).call(this,a)}this._busyPushingNext=!1}}}]),t}(_e),V1=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n)}(_R);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),R1=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a){return v(this,n),t.call(this,function(o){var s=i.pipe(L1(a)).subscribe({next:function(c){return o.next(c)},error:function(c){return o.error(c)},complete:function(){return o.complete()}});o.add(s)})}return h(n)}(de);return e.\u0275fac=function(t){return new(t||e)(T(V1),T(H1))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),CR=function e(r){return function(){for(var t=r.shift(),n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.apply(void 0,i.concat([function(){return e(r).apply(void 0,arguments)}]))}},N1=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.call(this,{})}return h(n)}(eo);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Q8=function(){var e=function(){function r(t,n){v(this,r),this._parentManager=t,this._pluginHandlers=n,this.plugins=[],this.registerHandlers()}return h(r,[{key:"rootPlugins",get:function(){return this._parentManager&&this._parentManager.plugins||this.plugins}},{key:"registerHandlers",value:function(){var n,i=this.getPluginHandlers();(n=this.rootPlugins).push.apply(n,se(i))}},{key:"getPluginHandlers",value:function(){return(this._pluginHandlers||[]).map(function(i){return i.handle?i.handle.bind(i):i})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(e,12),T(iR,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),X8=function(){var e=function(r){_(n,r);var t=z(n);function n(){return v(this,n),t.apply(this,arguments)}return h(n)}(_e);return e.\u0275fac=function(){var r;return function(n){return(r||(r=ve(e)))(n||e)}}(),e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),iy=function(){var e=function(){function r(t,n,i,a,o,s){v(this,r),this._injector=t,this._actions=n,this._actionResults=i,this._pluginManager=a,this._stateStream=o,this._ngxsExecutionStrategy=s}return h(r,[{key:"dispatch",value:function(n){var i=this,a=this._ngxsExecutionStrategy.enter(function(){return i.dispatchByEvents(n)});return a.subscribe({error:function(s){return i._ngxsExecutionStrategy.leave(function(){try{i._errorHandler=i._errorHandler||i._injector.get(Ra),i._errorHandler.handleError(s)}catch(l){}})}}),a.pipe(L1(this._ngxsExecutionStrategy))}},{key:"dispatchByEvents",value:function(n){var i=this;return Array.isArray(n)?0===n.length?Nr(this._stateStream.getValue()):Qd(n.map(function(a){return i.dispatchSingle(a)})):this.dispatchSingle(n)}},{key:"dispatchSingle",value:function(n){var i=this;if(!Fs(n))return P1(new Error("This action doesn't have a type property: ".concat(n.constructor.name)));var s=this._stateStream.getValue();return CR([].concat(se(this._pluginManager.plugins),[function(c,u){c!==s&&i._stateStream.next(c);var d=i.getActionResultStream(u);return d.subscribe(function(f){return i._actions.next(f)}),i._actions.next({action:u,status:"DISPATCHED"}),i.createDispatchObservable(d)}]))(s,n).pipe(O1())}},{key:"getActionResultStream",value:function(n){return this._actionResults.pipe(Xt(function(i){return i.action===n&&"DISPATCHED"!==i.status}),Tr(1),O1())}},{key:"createDispatchObservable",value:function(n){var i=this;return n.pipe(G9(function(a){switch(a.status){case"SUCCESSFUL":return Nr(i._stateStream.getValue());case"ERRORED":return P1(a.error);default:return Sc}})).pipe(O1())}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T($t),T(V1),T(X8),T(Q8),T(N1),T(H1))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),bR=function e(r){Object.freeze(r);var t="function"==typeof r,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(r).forEach(function(i){n.call(r,i)&&(!t||"caller"!==i&&"callee"!==i&&"arguments"!==i)&&null!==r[i]&&("object"==typeof r[i]||"function"==typeof r[i])&&!Object.isFrozen(r[i])&&e(r[i])}),r},ay=function(){var e=h(function r(t,n){v(this,r),this.isDevMode=t,this.isTestMode=n});return e.\u0275fac=function(t){return new(t||e)(T(Q9),T(Z9))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),oy=function(){var e=function(){function r(t,n){v(this,r),this._host=t,this._config=n}return h(r,[{key:"isIncorrectProduction",get:function(){return!this._host.isDevMode()&&this._config.developmentMode}},{key:"isIncorrectDevelopment",get:function(){return this._host.isDevMode()&&!this._config.developmentMode}},{key:"verifyDevMode",value:function(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(Sr.INCORRECT_PRODUCTION()):this.isIncorrectDevelopment&&console.warn(Sr.INCORRECT_DEVELOPMENT()))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(ay),T(so))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Ls=function(){var e=function(){function r(t,n,i,a){v(this,r),this._stateStream=t,this._dispatcher=n,this._config=i,a.verifyDevMode()}return h(r,[{key:"getRootStateOperations",value:function(){var n=this,i={getState:function(){return n._stateStream.getValue()},setState:function(o){return n._stateStream.next(o)},dispatch:function(o){return n._dispatcher.dispatch(o)}};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(i):i}},{key:"ensureStateAndActionsAreImmutable",value:function(n){return{getState:function(){return n.getState()},setState:function(a){var o=bR(a);return n.setState(o)},dispatch:function(a){return n.dispatch(a)}}}},{key:"setStateToTheCurrentWithNew",value:function(n){var i=this.getRootStateOperations(),a=i.getState();i.setState(Object.assign({},a,n.defaults))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(N1),T(iy),T(so),T(oy))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),B1=function(){var e=function(){function r(t){v(this,r),this._internalStateOperations=t}return h(r,[{key:"createStateContext",value:function(n){var i=this._internalStateOperations.getRootStateOperations();function a(c){return I1(c,n.path)}function o(c,u){var d=ey(c,n.path,u),f=n.instance;if(f.ngxsOnChanges){var p=ry(n,{currentAppState:c,newAppState:d});f.ngxsOnChanges(p)}return i.setState(d),d}function s(c,u){return o(c,u(a(c)))}return{getState:function(){return a(i.getState())},patchState:function(u){var d=i.getState(),f=function wR(e){return function(r){if(Array.isArray(e))throw new Error(Sr.PATCHING_ARRAY());if("object"!=typeof e)throw new Error(Sr.PATCHING_PRIMITIVE());var t=Object.assign({},r);for(var n in e)t[n]=e[n];return t}}(u);return s(d,f)},setState:function(u){var d=i.getState();return function l(c){return"function"==typeof c}(u)?s(d,u):o(d,u)},dispatch:function(u){return i.dispatch(u)}}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ls))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Y1=function(){function e(){v(this,e)}return h(e,null,[{key:"stateNameErrorMessage",value:function(t){return Sr.STATE_NAME(t)}},{key:"checkCorrectStateName",value:function(t){if(!t)throw new Error(Sr.STATE_NAME_PROPERTY());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}},{key:"checkStateNameIsUnique",value:function(t,n){var a=this.getValidStateMeta(t).name,o=n[a];if(o&&o!==t)throw new Error(Sr.STATE_UNIQUE(a,t.name,o.name));return a}},{key:"getValidStateMeta",value:function(t){var n=rc(t);if(!n)throw new Error(Sr.STATE_DECORATOR());return n}}]),e}();Y1.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$");var Hs=function(){var e=function(){function r(t,n,i,a,o,s,l){var c=this;v(this,r),this._injector=t,this._config=n,this._parentFactory=i,this._actions=a,this._actionResults=o,this._stateContextFactory=s,this._initialState=l,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=A1(function(){var u=c;function d(p){var g=u.statePaths[p];return g?ny(g.split("."),u._config):null}var f=c._parentFactory?c._parentFactory.getRuntimeSelectorContext():{getStateGetter:function(g){var m=d(g);return m||function(){return m||(m=d(g)),m?m.apply(void 0,arguments):void 0}},getSelectorOptions:function(g){return Object.assign({},u._config.selectorOptions,g||{})}};return f})}return h(r,[{key:"states",get:function(){return this._parentFactory?this._parentFactory.states:this._states}},{key:"statesByName",get:function(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}},{key:"statePaths",get:function(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}},{key:"ngOnDestroy",value:function(){this._actionsSubscription.unsubscribe()}},{key:"add",value:function(n){r.checkStatesAreValid(n);var a=this.addToStatesMap(n).newStates;if(!a.length)return[];var f,o=function cR(e){var r=function(n){var i=e.find(function(a){return a===n});if(!i)throw new Error("Child state not found: ".concat(n,". \r\nYou may have forgotten to add states to module"));return i[Gi].name};return e.reduce(function(t,n){var i=n[Gi];return t[i.name]=(i.children||[]).map(r),t},{})}(a),s=fR(o),l=function dR(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=function a(o,s){for(var l in o)if(o.hasOwnProperty(l)&&o[l].indexOf(s)>=0){var c=a(o,l);return null!==c?"".concat(c,".").concat(l):l}return null};for(var n in e)if(e.hasOwnProperty(n)){var i=t(e,n);r[n]=i?"".concat(i,".").concat(n):n}return r}(o),c=function uR(e){return e.reduce(function(r,t){return r[t[Gi].name]=t,r},{})}(a),u=[],d=lt(s);try{for(d.s();!(f=d.n()).done;){var p=f.value,g=c[p],m=l[p],C=g[Gi];this.addRuntimeInfoToMeta(C,m);var D={name:p,path:m,isInitialised:!1,actions:C.actions,instance:this._injector.get(g),defaults:r.cloneDefaults(C.defaults)};this.hasBeenMountedAndBootstrapped(p,m)||u.push(D),this.states.push(D)}}catch(x){d.e(x)}finally{d.f()}return u}},{key:"addAndReturnDefaults",value:function(n){var a=this.add(n||[]);return{defaults:a.reduce(function(s,l){return ey(s,l.path,l.defaults)},{}),states:a}}},{key:"connectActionHandlers",value:function(){var n=this;null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe(Xt(function(i){return"DISPATCHED"===i.status}),Pa(function(i){var a=i.action;return n.invokeActions(n._actions,a).pipe(mn(function(){return{action:a,status:"SUCCESSFUL"}}),W8({action:a,status:"CANCELED"}),F1(function(o){return Nr({action:a,status:"ERRORED",error:o})}))})).subscribe(function(i){return n._actionResults.next(i)}))}},{key:"invokeActions",value:function(n,i){var l,a=Fs(i),o=[],s=lt(this.states);try{for(s.s();!(l=s.n()).done;){var c=l.value,u=c.actions[a];if(u){var f,d=lt(u);try{for(d.s();!(f=d.n()).done;){var p=f.value,g=this._stateContextFactory.createStateContext(c);try{var m=c.instance[p.fn](g,i);m instanceof Promise&&(m=Ai(m)),m instanceof de?(m=m.pipe(W8({})),p.options.cancelUncompleted&&(m=m.pipe(ht(n.pipe(lo(i)))))):m=Nr({}).pipe(O1()),o.push(m)}catch(C){o.push(P1(C))}}}catch(C){d.e(C)}finally{d.f()}}}}catch(C){s.e(C)}finally{s.f()}return o.length||o.push(Nr({})),Qd(o)}},{key:"addToStatesMap",value:function(n){var s,i=[],a=this.statesByName,o=lt(n);try{for(o.s();!(s=o.n()).done;){var l=s.value,c=Y1.checkStateNameIsUnique(l,a);!a[c]&&(i.push(l),a[c]=l)}}catch(d){o.e(d)}finally{o.f()}return{newStates:i}}},{key:"addRuntimeInfoToMeta",value:function(n,i){this.statePaths[n.name]=i,n.path=i}},{key:"hasBeenMountedAndBootstrapped",value:function(n,i){var a=void 0!==I1(this._initialState,i);return this.statesByName[n]&&a}}],[{key:"cloneDefaults",value:function(n){var i;return i=Array.isArray(n)?n.slice():function hR(e){return"object"==typeof e&&null!==e||"function"==typeof e}(n)?Object.assign({},n):void 0===n?{}:n,i}},{key:"checkStatesAreValid",value:function(n){n.forEach(Y1.getValidStateMeta)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T($t),T(so),T(e,12),T(V1),T(X8),T(B1),T(G8,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),J8=function(){var e=function(){function r(t,n,i){v(this,r),this.internalStateOperations=t,this.stateContextFactory=n,this.bootstrapper=i}return h(r,[{key:"ngxsBootstrap",value:function(n,i){var a=this;this.internalStateOperations.getRootStateOperations().dispatch(n).pipe(Xt(function(){return!!i}),Ud(function(){return a.invokeInit(i.states)}),Pa(function(){return a.bootstrapper.appBootstrapped$}),Xt(function(o){return!!o})).subscribe(function(){return a.invokeBootstrap(i.states)})}},{key:"invokeInit",value:function(n){var a,i=lt(n);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=o.instance;if(s.ngxsOnChanges){var u=ry(o,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});s.ngxsOnChanges(u)}s.ngxsOnInit&&s.ngxsOnInit(this.getStateContext(o)),o.isInitialised=!0}}catch(d){i.e(d)}finally{i.f()}}},{key:"invokeBootstrap",value:function(n){var a,i=lt(n);try{for(i.s();!(a=i.n()).done;){var o=a.value,s=o.instance;s.ngxsAfterBootstrap&&s.ngxsAfterBootstrap(this.getStateContext(o))}}catch(l){i.e(l)}finally{i.f()}}},{key:"getStateContext",value:function(n){return this.stateContextFactory.createStateContext(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ls),T(B1),T(U8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),j1_getOptions=function(r){return r&&r.NGXS_SELECTOR_OPTIONS_META||{}};function kR(e,r,t){var n=t&&t.containerClass,a=A1(function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var f=r.apply(n,u);if(f instanceof Function){var p=A1.apply(null,[f]);return p}return f});Object.setPrototypeOf(a,r);var o=function MR(e,r){var t=function ty(e){return e.hasOwnProperty(q8)||Object.defineProperty(e,q8,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:function(){return{}}}}),Z8(e)}(e);t.originalFn=e;var n=function(){return{}};r&&(t.containerClass=r.containerClass,t.selectorName=r.selectorName,n=r.getSelectorOptions||n);var i=Object.assign({},t);return t.getSelectorOptions=function(){return function DR(e,r){return Object.assign({},j1_getOptions(e.containerClass)||{},j1_getOptions(e.originalFn)||{},e.getSelectorOptions()||{},r)}(i,n())},t}(r,t);return o.makeRootSelector=function(c){var u=function SR(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=r.getSelectorOptions(),i=e.getSelectorOptions(n),o=xR(t,i,r.containerClass).map(function(s){return ly(s)(e)});return{selectorOptions:i,argumentSelectorFunctions:o}}(c,o,e),d=u.argumentSelectorFunctions,f=u.selectorOptions;return function(g){var m=d.map(function(C){return C(g)});try{return a.apply(void 0,se(m))}catch(C){if(C instanceof TypeError&&f.suppressErrors)return;throw C}}},a}function xR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=[],i=0===e.length||r.injectContainerState;if(t&&i){var a=rc(t);a&&n.push(t)}return e&&n.push.apply(n,se(e)),n}function ly(e){var r=Z8(e)||rc(e);return r&&r.makeRootSelector||function(){return e}}var pt=function(){var e=function(){function r(t,n,i,a,o,s){v(this,r),this._stateStream=t,this._internalStateOperations=n,this._config=i,this._internalExecutionStrategy=a,this._stateFactory=o,this.initStateStream(s)}return h(r,[{key:"dispatch",value:function(n){return this._internalStateOperations.getRootStateOperations().dispatch(n)}},{key:"select",value:function(n){var i=this,a=this.getStoreBoundSelectorFn(n);return this._stateStream.pipe(mn(a),F1(function(o){return o instanceof TypeError&&i._config.selectorOptions.suppressErrors?Nr(void 0):P1(o)}),W9(),L1(this._internalExecutionStrategy))}},{key:"selectOnce",value:function(n){return this.select(n).pipe(Tr(1))}},{key:"selectSnapshot",value:function(n){return this.getStoreBoundSelectorFn(n)(this._stateStream.getValue())}},{key:"subscribe",value:function(n){return this._stateStream.pipe(L1(this._internalExecutionStrategy)).subscribe(n)}},{key:"snapshot",value:function(){return this._internalStateOperations.getRootStateOperations().getState()}},{key:"reset",value:function(n){return this._internalStateOperations.getRootStateOperations().setState(n)}},{key:"getStoreBoundSelectorFn",value:function(n){return ly(n)(this._stateFactory.getRuntimeSelectorContext())}},{key:"initStateStream",value:function(n){var i=this._stateStream.value;if(!i||0===Object.keys(i).length){var s=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,n):n;this._stateStream.next(s)}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(N1),T(Ls),T(so),T(H1),T(Hs),T(G8,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),ic=function(){var e=function(){function r(t,n){v(this,r),r.store=t,r.config=n}return h(r,[{key:"ngOnDestroy",value:function(){r.store=null,r.config=null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt),T(so))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e.store=null,e.config=null,e}(),ER=function(){function e(){v(this,e)}return h(e,null,[{key:"type",get:function(){return"@@INIT"}}]),e}(),TR=function(){function e(r){v(this,e),this.addedStates=r}return h(e,null,[{key:"type",get:function(){return"@@UPDATE_STATE"}}]),e}(),U1=new $l(1);function zR(){try{var e=window.ng,t=!(e.probe&&e.coreTokens)&&zu();U1.next(t)}catch(n){U1.next(!1)}finally{U1.complete()}}var AR=function(){var e=h(function r(t,n,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5?arguments[5]:void 0;v(this,r),zR();var l=t.addAndReturnDefaults(o);n.setStateToTheCurrentWithNew(l),t.connectActionHandlers(),s.ngxsBootstrap(new ER,l)});return e.\u0275fac=function(t){return new(t||e)(T(Hs),T(Ls),T(pt),T(ic),T($9,8),T(J8))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),PR=function(){var e=function(){function r(t,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;v(this,r);var s=r.flattenStates(a),l=i.addAndReturnDefaults(s);l.states.length&&(n.setStateToTheCurrentWithNew(l),o.ngxsBootstrap(new TR(l.defaults),l))}return h(r,null,[{key:"flattenStates",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.reduce(function(i,a){return i.concat(a)},[])}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt),T(Ls),T(Hs),T(K9,8),T(J8))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),co=function(){function e(){v(this,e)}return h(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:AR,providers:[Hs,B1,R1,V1,U8,oy,ay,J8,iy,X8,Ls,H1,pt,N1,ic,Q8].concat(se(t),se(e.ngxsTokenProviders(t,n)))}}},{key:"forFeature",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:PR,providers:[Hs,Q8].concat(se(t),[{provide:K9,multi:!0,useValue:t}])}}},{key:"ngxsTokenProviders",value:function(t,n){return[{provide:Z9,useValue:JV},{provide:Q9,useValue:zu},{provide:J9,useClass:n.executionStrategy||q9},{provide:$9,useValue:t},{provide:e.ROOT_OPTIONS,useValue:n},{provide:so,useFactory:e.ngxsConfigFactory,deps:[e.ROOT_OPTIONS]},{provide:G3,useFactory:e.appBootstrapListenerFactory,multi:!0,deps:[U8]},{provide:G8,useFactory:e.getInitialState},{provide:tR,useExisting:B1},{provide:nR,useExisting:Hs}]}},{key:"ngxsConfigFactory",value:function(t){return oR(new so,t)}},{key:"appBootstrapListenerFactory",value:function(t){return function(){return t.bootstrap()}}},{key:"getInitialState",value:function(){return eR.pop()}}]),e}();function xt(e,r){return function(t,n){if(t.hasOwnProperty("prototype"))throw new Error(Sr.ACTION_DECORATOR());var a=K8(t.constructor);Array.isArray(e)||(e=[e]);var s,o=lt(e);try{for(o.s();!(s=o.n()).done;){var c=s.value.type;a.actions[c]||(a.actions[c]=[]),a.actions[c].push({fn:n,options:r||{},type:c})}}catch(u){o.e(u)}finally{o.f()}}}function Vs(e){return function(n){!function OR(e){U1.subscribe(function(r){r&&(e.\u0275prov||console.warn(Sr.UNDECORATED_STATE_IN_IVY(e.name)))})}(n);var i=n,a=K8(i),o=Object.getPrototypeOf(i),s=function r(n){return Object.assign({},n[X9]||{},e)}(o);(function t(n){var i=n.meta,a=n.inheritedStateClass,o=n.optionsWithInheritance,s=o.children,l=o.defaults,c=o.name,u="string"==typeof c?c:c&&c.getName()||null;Y1.checkCorrectStateName(u),a.hasOwnProperty(Gi)&&(i.actions=Object.assign({},i.actions,(a[Gi]||{}).actions)),i.children=s,i.defaults=l,i.name=u})({meta:a,inheritedStateClass:o,optionsWithInheritance:s}),i[X9]=s}}function IR(e){if(!ic.store)throw new Error(Sr.SELECT_FACTORY_NOT_CONNECTED());return ic.store.select(e)}function LR(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if("string"==typeof(r=r||HR(e))){var n=t.length?[r].concat(se(t)):r.split(".");return ny(n,ic.config)}return r}function HR(e){var r=e.length-1;return 36===e.charCodeAt(r)?e.slice(0,r):e}function et(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return function(i,a){var o,s=a.toString(),l="__".concat(s,"__selector"),c=LR(s,e,t);Object.defineProperties(i,(nt(o={},l,{writable:!0,enumerable:!1,configurable:!0}),nt(o,s,{enumerable:!0,configurable:!0,get:function(){return this[l]||(this[l]=IR(c))}}),o))}}function Ve(e){return function(r,t,n){if(!n||null===n.value)throw new Error(Sr.SELECTOR_DECORATOR());var a=n.value,o=kR(e,a,{containerClass:r,selectorName:t.toString(),getSelectorOptions:function(){return{}}}),s={configurable:!0,get:function(){return o}};return s.originalFn=a,s}}function I(e,r,t,n){var o,i=arguments.length,a=i<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(r,t,a):o(r,t))||a);return i>3&&a&&Object.defineProperty(r,t,a),a}function b(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function be(e,r,t,n){return new(t||(t=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):function i(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,l)}c((n=n.apply(e,r||[])).next())})}co.\u0275fac=function(r){return new(r||co)},co.\u0275mod=Ne({type:co}),co.\u0275inj=Le({}),co.ROOT_OPTIONS=new re("ROOT_OPTIONS");var xi,W1=function(){return function(e){e[e.General=0]="General",e[e.MeasurementInstructions=1]="MeasurementInstructions",e[e.HelpCSVImport=2]="HelpCSVImport"}(W1||(W1={})),W1}(),Dr=function(){return function(e){e[e.None=0]="None",e[e.MaterialPrice=1]="MaterialPrice",e[e.WagePrice=2]="WagePrice",e[e.Price=3]="Price",e[e.Width=4]="Width",e[e.Height=5]="Height",e[e.Dimensions=6]="Dimensions",e[e.Property=7]="Property"}(Dr||(Dr={})),Dr}(),uo=function(){return function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error",e[e.Fatal=3]="Fatal"}(uo||(uo={})),uo}(),ac=function(){return function(e){e[e.None=0]="None",e[e.String=1]="String",e[e.Number=2]="Number",e[e.Currency=3]="Currency",e[e.Integer=4]="Integer",e[e.Date=5]="Date",e[e.Time=6]="Time",e[e.Memo=7]="Memo",e[e.FmtMemo=8]="FmtMemo",e[e.Graphic=9]="Graphic",e[e.Boolean=10]="Boolean",e[e.List=11]="List",e[e.ListGroups=12]="ListGroups",e[e.ListRooms=13]="ListRooms",e[e.ListPolygons=14]="ListPolygons",e[e.ListMaterials=15]="ListMaterials",e[e.ListOrder=16]="ListOrder",e[e.ListProject=17]="ListProject"}(ac||(ac={})),ac}(),NR=B(3014),en=B.n(NR),_a=function(){function e(){v(this,e)}return h(e,[{key:"buildInputConfiguratorProject",value:function(t){var n=this,i={hubProjectId:t.hubProjectId,projects:[]};return t.deliveryAddress&&(i.deliveryAddress=Object.assign({},t.deliveryAddress)),t.projects.forEach(function(a){var o=n.buildInputProject(a);i.projects.push(o)}),i}},{key:"buildInputProject",value:function(t){return{id:t.id,applicationId:t.applicationId,customerId:t.customerId,deliveryAddress:t.deliveryAddress,deliveryRef:t.deliveryRef,description:t.description,polygons:this.buildInputPolygons(t.polygons),projectStatus:t.projectStatus,reference:t.reference,referenceId:t.referenceId,projectDiscounts:t.projectDiscounts}}},{key:"buildInputPolygons",value:function(t){var n=this;return t?t.map(function(i){return n.buildInputPolygon(i)}):[]}},{key:"buildInputPolygon",value:function(t){return{id:t.id,categoryLinks:this.buildInputCategoryLinks(t.categoryLinks),description:t.description,isTemporary:t.isTemporary,height:t.height,modelId:t.modelId,width:t.width,polygonTypeId:t.polygonTypeId,parentPolygonId:t.parentPolygonId,categoryFavoriteId:t.categoryFavoriteId,referenceId:t.referenceId,chainedChildren:this.buildInputPolygons(t.chainedChildren),grossHeight:t.grossHeight,grossWidth:t.grossWidth,heightCorrection:t.heightCorrection,widthCorrection:t.widthCorrection,attributes:t.attributes}}},{key:"buildInputCategoryLinks",value:function(t){var n=this;return t?t.map(function(i){return n.buildInputCategoryLink(i)}):[]}},{key:"buildInputCategoryLink",value:function(t){var n={id:t.id,statuses:this.buildInputCategoryLinkStatuses(t.statuses),properties:[]};return t.categoryLinkMaterial&&(n.materialCode=t.categoryLinkMaterial.materialCode,n.materialId=t.categoryLinkMaterial.materialId,n.properties=this.buildInputProperties(t.categoryLinkMaterial.properties)),n}},{key:"buildInputProperties",value:function(t){var n=this;return t?t.map(function(i){return n.buildInputProperty(i)}):[]}},{key:"buildInputProperty",value:function(t){return{id:t.id,isModified:t.isModified,value:t.value}}},{key:"buildInputCategoryLinkStatuses",value:function(t){var n=this;return t?t.map(function(i){return n.buildInputCategoryLinkStatus(i)}):[]}},{key:"buildInputCategoryLinkStatus",value:function(t){return{id:t.id,assignedAt:t.assignedAt,remarks:t.remarks,statusId:t.statusId,supplierOrderNumber:t.supplierOrderNumber}}}]),e}(),BR=function(){function e(){v(this,e),this.apiKey="",this.baseUrl="",this.languageCode=null}return h(e,[{key:"apiUrl",get:function(){return this.baseUrl&&this.baseUrl.endsWith("/")?"".concat(this.baseUrl,"api"):"".concat(this.baseUrl,"/api")}},{key:"setBaseUrl",value:function(t){return this.baseUrl=t,this}},{key:"setApiKey",value:function(t){return this.apiKey=t,this}},{key:"setLanguageCode",value:function(t){this.languageCode=t}},{key:"getExtendedModels",value:function(){return be(this,void 0,void 0,R().mark(function t(){var n,i;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=this.createAuthHeaders(),i="".concat(this.apiUrl,"/Configurator/Model/GetExtendedModels"),s.next=4,en().get(i,{headers:n});case 4:return s.abrupt("return",s.sent.data);case 6:case"end":return s.stop()}},t,this)}))}},{key:"findMaterialById",value:function(t,n,i){return be(this,void 0,void 0,R().mark(function a(){var o,s;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return o=this.createAuthHeaders(),s="".concat(this.apiUrl,"/Configurator/Material/FindById?applicationId=").concat(t,"&materialId=").concat(n),i&&(s+="&customerId=".concat(i)),u.next=5,en().get(s,{headers:o});case 5:return u.abrupt("return",u.sent.data);case 7:case"end":return u.stop()}},a,this)}))}},{key:"findMaterialByCode",value:function(t,n,i){return be(this,void 0,void 0,R().mark(function a(){var o,s;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return o=this.createAuthHeaders(),s="".concat(this.apiUrl,"/Configurator/Material/FindByCode?applicationId=").concat(t,"&code=").concat(n),i&&(s+="&customerId=".concat(i)),u.next=5,en().get(s,{headers:o});case 5:return u.abrupt("return",u.sent.data);case 7:case"end":return u.stop()}},a,this)}))}},{key:"getExtendedModelsForMaterialId",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o;return R().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=this.createAuthHeaders(),o="".concat(this.apiUrl,"/Configurator/Model/GetExtendedModelsForMaterial?materialId=").concat(t),n&&(o+="&applicationId=".concat(n)),c.next=5,en().get(o,{headers:a});case 5:return c.abrupt("return",c.sent.data);case 7:case"end":return c.stop()}},i,this)}))}},{key:"getExtendedModelsForMaterialCode",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o;return R().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=this.createAuthHeaders(),o="".concat(this.apiUrl,"/Configurator/Model/GetExtendedModelsForMaterialByCode?materialCode=").concat(t),n&&(o+="&applicationId=".concat(n)),c.next=5,en().get(o,{headers:a});case 5:return c.abrupt("return",c.sent.data);case 7:case"end":return c.stop()}},i,this)}))}},{key:"getSampleModel",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Model/GetSampleModel?applicationId=").concat(t),l.next=4,en().get(a,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"createProject",value:function(t,n,i,a,o,s,l){return be(this,void 0,void 0,R().mark(function c(){var u,d,f;return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return u=this.createAuthHeaders(),d="".concat(this.apiUrl,"/Configurator/Project/CreateWithPolygon?"),(f=[]).push("applicationId=".concat(t)),n&&f.push("modelId=".concat(n)),i&&f.push("materialId=".concat(i)),a&&f.push("materialCode=".concat(a)),o&&f.push("width=".concat(o)),s&&f.push("height=".concat(s)),l&&f.push("polygonTypeId=".concat(l)),d+=f.join("&"),m.next=13,en().put(d,null,{headers:u});case 13:return m.abrupt("return",m.sent.data);case 15:case"end":return m.stop()}},c,this)}))}},{key:"calculateProject",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Project/Calculate"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"addVoucher",value:function(t,n,i,a){return be(this,void 0,void 0,R().mark(function o(){var s,l,u;return R().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return s="".concat(this.apiUrl,"/Configurator/Project/AddVoucher"),l={inputProject:t,discountCodes:n},p.next=4,this.getToken(i,a);case 4:return u={Authorization:"bearer "+p.sent.access_token},p.next=8,en().post(s,l,{headers:u});case 8:return p.abrupt("return",p.sent.data);case 10:case"end":return p.stop()}},o,this)}))}},{key:"save",value:function(t,n,i,a){return be(this,void 0,void 0,R().mark(function o(){var s,l,u;return R().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return s="".concat(this.apiUrl,"/Configurator/Project/save"),l={inputProject:t,discountCodes:n},p.next=4,this.getToken(i,a);case 4:return u={Authorization:"bearer "+p.sent.access_token},p.next=8,en().post(s,l,{headers:u});case 8:return p.abrupt("return",p.sent.data);case 10:case"end":return p.stop()}},o,this)}))}},{key:"addPolygon",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/Add"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"movePolygon",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/Move"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"setCategoryFavorite",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/SetCategoryFavorite"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"setChainedPolygon",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/SetChainedPolygonModel"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"setModel",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/SetModel"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"setPolygonMaterial",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/SetPolygonMaterial"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"setPolygonMaterialByCode",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Polygon/SetPolygonMaterialByCode"),l.next=4,en().put(a,t,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"getEmployeeApplications",value:function(){return be(this,void 0,void 0,R().mark(function t(){var n,i;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=this.createAuthHeaders(),i="".concat(this.apiUrl,"/Configurator/Application/GetEmployeeApplications"),s.next=4,en().get(i,{headers:n});case 4:return s.abrupt("return",s.sent.data);case 6:case"end":return s.stop()}},t,this)}))}},{key:"getResources",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/Resource/Get?languageCode=").concat(t),l.next=4,en().get(a,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"browseMaterials",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o;return R().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=this.createAuthHeaders(),o="".concat(this.apiUrl,"/Configurator/Material/Browse?applicationId=").concat(n),c.next=4,en().post(o,t,{headers:a});case 4:return c.abrupt("return",c.sent.data);case 6:case"end":return c.stop()}},i,this)}))}},{key:"getPolygonTypes",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return i=this.createAuthHeaders(),a="".concat(this.apiUrl,"/Configurator/PolygonType/GetPolygonTypesForApplication?applicationId=").concat(t),l.next=4,en().get(a,{headers:i});case 4:return l.abrupt("return",l.sent.data);case 6:case"end":return l.stop()}},n,this)}))}},{key:"deletePolygon",value:function(t,n){for(var i=function(u){var d=t.projects[u],f=d.polygons.findIndex(function(m){return m.referenceId===n});if(f>-1){var p=d.polygons.splice(f,1)[0];return d.polygons.filter(function(m){return m.parentPolygonId===p.id}).forEach(function(m){var C=d.polygons.findIndex(function(D){return D.referenceId===m.referenceId});d.polygons.splice(C,1)}),"break"}},a=0;a<t.projects.length&&"break"!==i(a);a++);var l=(new _a).buildInputConfiguratorProject(t);return this.calculateProject(l)}},{key:"getImageUrl",value:function(t,n){return t.endsWith("/")||(t+="/"),n=encodeURIComponent(n),"".concat(t,"publicfile/image?relativePath=").concat(n)}},{key:"createAuthHeaders",value:function(){var t={Authorization:this.apiKey};return this.languageCode&&(t["Hub-Request-Language"]=this.languageCode),t}},{key:"getToken",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=JSON.stringify({emailAddress:t,password:n}),o="".concat(this.apiUrl,"/token"),s={Authorization:this.apiKey,"Content-Type":"application/json"},u.next=5,en().post(o,a,{headers:s});case 5:return u.abrupt("return",u.sent.data);case 7:case"end":return u.stop()}},i,this)}))}}]),e}(),pn=function(){var e=function(){function r(t){v(this,r),this.store=t,this.hubClient=new BR}return h(r,[{key:"setBaseUrl",value:function(n){this.hubClient.setBaseUrl(n)}},{key:"setApiKey",value:function(n){this.hubClient.setApiKey(n)}},{key:"setLanguageCode",value:function(n){this.hubClient.setLanguageCode(n)}},{key:"getEmployeeApplications",value:function(){return this.hubClient.getEmployeeApplications()}},{key:"getResources",value:function(n){return this.hubClient.getResources(n)}},{key:"getModelsForMaterialId",value:function(n,i){return this.hubClient.getExtendedModelsForMaterialId(n,i)}},{key:"getModelsForMaterialCode",value:function(n,i){return this.hubClient.getExtendedModelsForMaterialCode(n,i)}},{key:"getModels",value:function(){return this.hubClient.getExtendedModels()}},{key:"getSampleModel",value:function(n){return this.hubClient.getSampleModel(n)}},{key:"addPolygon",value:function(n){return this.hubClient.addPolygon(n)}},{key:"movePolygon",value:function(n){return this.hubClient.movePolygon(n)}},{key:"setChainedPolygon",value:function(n){return this.hubClient.setChainedPolygon(n)}},{key:"getPolygonTypes",value:function(n){return this.hubClient.getPolygonTypes(n)}},{key:"createProject",value:function(n,i,a,o,s,l,c){return this.hubClient.createProject(n,i,a,o,s,l,c)}},{key:"findMaterialById",value:function(n,i,a){return this.hubClient.findMaterialById(n,i,a)}},{key:"findMaterialByCode",value:function(n,i,a){return this.hubClient.findMaterialByCode(n,i,a)}},{key:"browseMaterials",value:function(n,i){return this.hubClient.browseMaterials(n,i)}},{key:"getImageUrl",value:function(n,i){var o=this.store.selectSnapshot(function(s){return s.common.applications}).find(function(s){return s.applicationId===n});if(!o)throw new Error('Application with id "'.concat(n,'" not found.'));return this.hubClient.getImageUrl(o.url,i)}},{key:"setModel",value:function(n){return this.hubClient.setModel(n)}},{key:"setCategoryFavorite",value:function(n){return this.hubClient.setCategoryFavorite(n)}},{key:"setPolygonMaterial",value:function(n){return this.hubClient.setPolygonMaterial(n)}},{key:"setPolygonMaterialByCode",value:function(n){return this.hubClient.setPolygonMaterialByCode(n)}},{key:"calculateProject",value:function(n){return this.hubClient.calculateProject(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),n0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Set Api Key",e}(),q1=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Set Selected Application Id",e}(),$1=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Set Language",e}(),r0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Set Options",e}(),fy=function(){var e=h(function r(){v(this,r)});return e.type="[Common] Init",e}(),oc=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Load Selected material",e}(),hy=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Load Selected material finished",e}(),a0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Set Selected material",e}(),Ca=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Common] Activity",e}(),o0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Set Project",e}(),sc=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Add Polygon",e}(),s0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Set Chained Polygon",e}(),lc=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Set Model",e}(),Rs=function(){var e=h(function r(){v(this,r)});return e.type="[Project] Calculate",e}(),vy=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Calculate Finished",e}(),cc=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Set Material",e}(),l0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Remove Material",e}(),c0=function(){var e=h(function r(){v(this,r)});return e.type="[Project] Finalize Selected Polygon",e}(),u0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Select Polygon By Id",e}(),ai=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] SelectedPolygonChange",e}(),d0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Set Category Favorite",e}(),YR=function(){var e=h(function r(){v(this,r)});return e.type="[Project] Reset Project",e}(),f0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Project] Move Polygon",e}(),uc=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[PolygonType] Load Polygon Types",e}(),Ns=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[ProductSelector] Load Models]",e}(),Di=function(){return function(e){e[e.SelectModel=0]="SelectModel",e[e.SetDimensions=1]="SetDimensions",e[e.SetCategoryFavorite=2]="SetCategoryFavorite",e[e.SetProperty=3]="SetProperty",e[e.SetDescription=4]="SetDescription",e[e.ClickInfoTooltip=5]="ClickInfoTooltip",e[e.AddToCart=6]="AddToCart",e[e.AddToWishlist=7]="AddToWishlist"}(Di||(Di={})),Di}(),nr=h(function e(){v(this,e)}),pe=xi=function(){function e(r,t){v(this,e),this.hubService=r,this.store=t}return h(e,[{key:"setProject",value:function(t,n){var i=n.payload;t.patchState({configuratorProject:i,originalProject:i})}},{key:"addPolygon",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f,p;return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a=t.getState(),o=n.payload.applicationId,!((u=(s=a.configuratorProject?a.configuratorProject:{hubProjectId:0,projects:[],price:{priceGroups:[],promotions:[],totalPrice:0,totalPriceBeforePromotions:0,discountAmount:0,totalPriceWithDiscount:0}}).projects.findIndex(function(C){return C.applicationId===o}))>-1)){m.next=15;break}return d=s.projects[u],f=new _a,p=f.buildInputProject(d),m.next=10,this.hubService.addPolygon({applicationId:o,inputProject:p,modelId:n.payload.modelId,height:n.payload.height,materialId:n.payload.materialId,materialCode:n.payload.materialCode,width:n.payload.width,polygonTypeId:n.payload.polygonTypeId,categoryFavoriteId:n.payload.categoryFavoriteId,parentPolygonId:n.payload.parentPolygonId});case 10:s.projects[u]=l=m.sent,c=l.polygons[l.polygons.length-1],m.next=20;break;case 15:return m.next=17,this.hubService.createProject(o||0,n.payload.modelId,n.payload.materialId,n.payload.materialCode,n.payload.width,n.payload.height,n.payload.polygonTypeId);case 17:c=(l=m.sent).polygons[l.polygons.length-1],s.projects.push(l);case 20:c.isTemporary=!0,t.patchState({configuratorProject:s,selectedPolygon:c}),t.dispatch(new ai({polygon:c})),this.updateOriginalProject(t,s);case 24:case"end":return m.stop()}},i,this)}))}},{key:"movePolygon",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u;return R().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a=t.getState(),o=new _a,s=o.buildInputConfiguratorProject(a.configuratorProject),f.next=5,this.hubService.movePolygon({inputProject:s,materialCode:n.payload.materialCode,materialId:n.payload.materialId,modelId:n.payload.modelId,polygonId:n.payload.polygonId,polygonTypeId:n.payload.polygonTypeId,targetApplicationId:n.payload.targetApplicationId});case 5:c=(l=f.sent).projects.find(function(p){return p.applicationId===n.payload.targetApplicationId}),(u=c.polygons.find(function(p){return p.referenceId===n.payload.polygonId})).isTemporary=!0,t.patchState({configuratorProject:l,selectedPolygon:u}),t.dispatch(new ai({polygon:u})),this.updateOriginalProject(t,l);case 12:case"end":return f.stop()}},i,this)}))}},{key:"SetChainedPolygon",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f,p;return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(t.patchState({isCalculating:!0}),a=t.getState(),o=n.payload.applicationId,c=a.selectedPolygon,!((u=(s=a.configuratorProject).projects.findIndex(function(C){return C.applicationId===o}))>-1)){m.next=15;break}return d=s.projects[u],f=new _a,p=f.buildInputProject(d),m.next=12,this.hubService.setChainedPolygon({applicationId:o,inputProject:p,modelId:n.payload.modelId,categoryFavoriteId:n.payload.categoryFavoriteId,parentPolygonId:n.payload.parentPolygonId});case 12:s.projects[u]=l=m.sent,c=l.polygons.find(function(C){return C.referenceId===c.referenceId});case 15:t.patchState({configuratorProject:s,selectedPolygon:c,isCalculating:!1}),t.dispatch(new ai({polygon:c})),this.updateOriginalProject(t,s);case 18:case"end":return m.stop()}},i,this)}))}},{key:"setModel",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f,p,g;return R().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(t.patchState({isCalculating:!0}),a=t.getState(),o=a.configuratorProject){D.next=5;break}throw new Error("No configurator project available.");case 5:if(s=o.projects.findIndex(function(x){return x.applicationId===n.payload.new.applicationId}),l=o.projects[s],c=a.selectedPolygon){D.next=10;break}throw new Error("No selected polygon available");case 10:return u=new _a,d=u.buildInputProject(l),f=this.store.selectSnapshot(function(x){return x.common.selectedMaterial}),p=f?f.id:null,D.next=16,this.hubService.setModel({applicationId:n.payload.new.applicationId||0,inputProject:d,modelId:n.payload.new.id,polygonId:c.id,materialId:p});case 16:return o.projects[s]=g=D.sent,c=g.polygons.find(function(x){return x.referenceId===c.referenceId})||null,t.patchState({configuratorProject:o,selectedPolygon:c,isCalculating:!1}),t.dispatch(new ai({polygon:c})),D.next=23,this.store.dispatch(new q1(n.payload.new.applicationId)).toPromise();case 23:this.updateOriginalProject(t,o),t.dispatch(new Ca({details:{new:n.payload.new,previous:n.payload.previous},kind:Di.SelectModel,polygon:c}));case 26:case"end":return D.stop()}},i,this)}))}},{key:"setMaterial",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(t.patchState({isCalculating:!0}),a=t.getState(),s=(o=a.configuratorProject).projects.findIndex(function(m){return m.applicationId===n.payload.applicationId}),l=o.projects[s],c=new _a,u=c.buildInputProject(l),d=null,!n.payload.materialId){g.next=14;break}return g.next=11,this.hubService.setPolygonMaterial({applicationId:n.payload.applicationId,categoryLinkId:n.payload.categoryLinkId,inputProject:u,materialId:n.payload.materialId,polygonId:a.selectedPolygon.id});case 11:d=g.sent,g.next=21;break;case 14:if(!n.payload.materialCode){g.next=20;break}return g.next=17,this.hubService.setPolygonMaterialByCode({applicationId:n.payload.applicationId,categoryLinkId:n.payload.categoryLinkId,inputProject:u,materialCode:n.payload.materialCode,polygonId:a.selectedPolygon.id});case 17:d=g.sent,g.next=21;break;case 20:throw new Error("Material id or code has to be set when setting a material.");case 21:if(f=a.selectedPolygon,o.projects[s]=d,f=d.polygons.find(function(m){return m.referenceId===f.referenceId})){g.next=26;break}throw new Error("The old selected polygon is not present in the calculated project");case 26:t.patchState({configuratorProject:o,selectedPolygon:f,isCalculating:!1}),t.dispatch(new ai({polygon:f})),this.updateOriginalProject(t,o);case 29:case"end":return g.stop()}},i,this)}))}},{key:"removeMaterial",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o;return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t.patchState({isCalculating:!0}),(o=(a=n.payload.polygon).categoryLinks.indexOf(n.payload.categoryLink))>-1&&a.categoryLinks.splice(o,1),l.next=6,this.store.dispatch(new Rs);case 6:t.patchState({isCalculating:!1});case 7:case"end":return l.stop()}},i,this)}))}},{key:"finalizeSelectedPolygon",value:function(t){var n=t.getState(),i=n.selectedPolygon;i&&(i.isTemporary=!1);var a=n.configuratorProject;a.projects.forEach(function(o){return o.polygons=o.polygons.filter(function(s){return!s.isTemporary})}),t.patchState({configuratorProject:a,selectedPolygon:i})}},{key:"selectPolygonById",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=t.getState(),o=0;case 2:if(!(o<a.configuratorProject.projects.length)){u.next=14;break}if(!(l=(s=a.configuratorProject.projects[o]).polygons.find(function(d){return d.referenceId===n.payload}))){u.next=11;break}return t.patchState({selectedPolygon:l}),u.next=9,this.store.dispatch(new q1(s.applicationId||0)).toPromise();case 9:return this.store.dispatch(new ai({polygon:l})),u.abrupt("break",14);case 11:o++,u.next=2;break;case 14:case"end":return u.stop()}},i,this)}))}},{key:"calculate",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a,o,s,l,c,u,d,f;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return t.patchState({isCalculating:!0}),i=t.getState(),a=new _a,o=i.configuratorProject.projects.map(function(m){return a.buildInputProject(m)}),s={hubProjectId:i.configuratorProject.hubProjectId,projects:o},g.next=7,this.hubService.calculateProject(s);case 7:if(t.patchState({configuratorProject:l=g.sent}),!i.selectedPolygon){g.next=20;break}if(u=i.selectedPolygon,d=this.store.selectSnapshot(function(m){return m.common.selectedApplicationId}),f=l.projects.find(function(m){return m.applicationId===d}),!(c=f.polygons.find(function(m){return m.referenceId===u.referenceId}))){g.next=19;break}t.patchState({selectedPolygon:c,isCalculating:!1}),this.store.dispatch(new ai({polygon:c})),g.next=20;break;case 19:throw new Error('Polygon with referenceId "'.concat(u.referenceId,'" not found.'));case 20:this.updateOriginalProject(t,l),t.dispatch(new vy(c));case 22:case"end":return g.stop()}},n,this)}))}},{key:"setCategoryFavorite",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f;return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(t.patchState({isCalculating:!0}),a=t.getState(),o=a.configuratorProject){m.next=5;break}throw new Error("No configurator project available.");case 5:return s=a.selectedPolygon,l=o.projects.findIndex(function(C){return!!C.polygons.find(function(D){return D.referenceId===s.referenceId})}),c=o.projects[l],u=new _a,d=u.buildInputProject(c),m.next=12,this.hubService.setCategoryFavorite({applicationId:c.applicationId,categoryFavoriteId:n.payload.categoryFavorite.id,inputProject:d,polygonId:s.id});case 12:o.projects[l]=f=m.sent,s=f.polygons.find(function(C){return C.referenceId===s.referenceId})||null,t.patchState({configuratorProject:o,selectedPolygon:s,isCalculating:!1}),t.dispatch(new ai({polygon:s})),this.updateOriginalProject(t,o),t.dispatch(new Ca({details:{new:n.payload.categoryFavorite},kind:Di.SetCategoryFavorite,polygon:s}));case 20:case"end":return m.stop()}},i,this)}))}},{key:"resetProject",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var i,a;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i=t.getState(),(a=i.configuratorProject).projects=[],t.patchState({configuratorProject:a});case 4:case"end":return s.stop()}},n)}))}},{key:"updateOriginalProject",value:function(t,n){var a=t.getState().originalProject;if(a){var o=["deliveryAddress","hubProjectId","price","projects","projectNumber"];if(Object.keys(n).some(function(l){return!o.includes(l)}))throw new Error("All properties need to be copied to the original project reference. If you have added a new property, please make sure you add it here.");a.price=n.price,a.deliveryAddress=n.deliveryAddress,a.hubProjectId=n.hubProjectId,a.projects=n.projects,a.projectNumber=n.projectNumber}}}],[{key:"polygonPrice",value:function(t){if(!t.selectedPolygon||!t.selectedPolygon.prices.totalPrice&&0!==t.selectedPolygon.prices.totalPrice)return null;var n=0;return t.selectedPolygon.chainedChildren&&t.selectedPolygon.chainedChildren.length>0&&(n=t.selectedPolygon.chainedChildren.map(function(a){return a.prices.totalPrice}).reduce(function(a,o){return a+o})),(t.selectedPolygon.prices.totalPrice+n).toFixed(2)}},{key:"polygonPriceBeforePromotion",value:function(t){if(!t.selectedPolygon||!t.selectedPolygon.prices.totalPriceBeforePromotions)return null;var n=0;return t.selectedPolygon.chainedChildren&&t.selectedPolygon.chainedChildren.length>0&&(n=t.selectedPolygon.chainedChildren.map(function(a){return a.prices.totalPriceBeforePromotions}).reduce(function(a,o){return a+o})),(t.selectedPolygon.prices.totalPriceBeforePromotions+n).toFixed(2)}},{key:"getConfiguratorProject",value:function(t){return t.configuratorProject}},{key:"getSelectedPolygon",value:function(t){return t.selectedPolygon}},{key:"getVisuals",value:function(t){if(!t.selectedPolygon||!t.selectedPolygon.visualGroups)return[];var n=[];return t.selectedPolygon.visualGroups.forEach(function(i){return i.scenes.forEach(function(a){return a.visuals.forEach(function(o){return n.push(o)})})}),n}},{key:"getProperties",value:function(t){if(!t.selectedPolygon||!t.selectedPolygon.categoryLinks)return[];var n=t.selectedPolygon.categoryLinks.filter(function(a){return a.categoryLinkMaterial&&a.categoryLinkMaterial.materialId}),i=[];return n.forEach(function(a){return i.push.apply(i,se(a.categoryLinkMaterial.properties.filter(function(o){return o.isVisible})))}),i}},{key:"getMessages",value:function(t){var n=t.selectedPolygon;if(!n)return[];var i=xi.getMessagesForPolygon(n);return n.chainedChildren&&t.selectedPolygon.chainedChildren.forEach(function(a){return i=i.concat(xi.getMessagesForPolygon(a))}),i=i.sort(function(a,o){return o.kind-a.kind})}},{key:"getErrorMessages",value:function(t,n){return n&&t.selectedPolygon?n.filter(function(i){return i.kind===uo.Error}):[]}},{key:"getGenericMessages",value:function(t,n){if(!n||!t.selectedPolygon)return[];var i=n.filter(function(s){return s.context===Dr.None}),a=n.filter(function(s){return s.context===Dr.Property&&!s.contextReference}),o=[];return t.selectedPolygon.categoryLinks.filter(function(s){return!!s.categoryLinkMaterial}).forEach(function(s){var l=s.categoryLinkMaterial.messages.filter(function(c){return c.context===Dr.Property&&!!c.contextReference&&s.categoryLinkMaterial.properties.some(function(u){return!u.isVisible&&u.description.toLowerCase()===c.contextReference})});o.push.apply(o,se(l))}),[].concat(se(i),se(a),o)}},{key:"getDimensionMessages",value:function(t,n){return n?n.filter(function(i){return i.context===Dr.Dimensions||i.context===Dr.Height||i.context===Dr.Width}):[]}},{key:"getPriceMessages",value:function(t,n){return n?n.filter(function(i){return i.context===Dr.Price||i.context===Dr.WagePrice||i.context===Dr.MaterialPrice}):[]}},{key:"getPropertyMessages",value:function(t,n){return n?n.filter(function(i){return i.context===Dr.Property}):[]}},{key:"getMessagesForPolygon",value:function(t){if(!t||!t.categoryLinks)return[];var n=t.categoryLinks.filter(function(a){return a.categoryLinkMaterial&&a.categoryLinkMaterial.materialId}),i=[];return n.forEach(function(a){return i.push.apply(i,se(a.categoryLinkMaterial.messages))}),i}},{key:"isCalculating",value:function(t){return t.isCalculating}},{key:"isPolygonValid",value:function(t,n){return!!t.selectedPolygon&&!(n.some(function(a){return a.kind===uo.Error||a.kind===uo.Fatal})||t.selectedPolygon.isHeightEnabled&&!t.selectedPolygon.height||t.selectedPolygon.isWidthEnabled&&!t.selectedPolygon.width)}},{key:"measureDocumentation",value:function(t){var n=t.selectedPolygon;return n?n.documentations.find(function(i){return i.documentationKind===W1.MeasurementInstructions}):null}}]),e}();pe.\u0275fac=function(r){return new(r||pe)(T(pn),T(pt))},pe.\u0275prov=H({token:pe,factory:pe.\u0275fac}),I([xt(o0),b("design:type",Function),b("design:paramtypes",[Object,o0]),b("design:returntype",void 0)],pe.prototype,"setProject",null),I([xt(sc),b("design:type",Function),b("design:paramtypes",[Object,sc]),b("design:returntype",Promise)],pe.prototype,"addPolygon",null),I([xt(f0),b("design:type",Function),b("design:paramtypes",[Object,f0]),b("design:returntype",Promise)],pe.prototype,"movePolygon",null),I([xt(s0),b("design:type",Function),b("design:paramtypes",[Object,s0]),b("design:returntype",Promise)],pe.prototype,"SetChainedPolygon",null),I([xt(lc),b("design:type",Function),b("design:paramtypes",[Object,lc]),b("design:returntype",Promise)],pe.prototype,"setModel",null),I([xt(cc),b("design:type",Function),b("design:paramtypes",[Object,cc]),b("design:returntype",Promise)],pe.prototype,"setMaterial",null),I([xt(l0),b("design:type",Function),b("design:paramtypes",[Object,l0]),b("design:returntype",Promise)],pe.prototype,"removeMaterial",null),I([xt(c0),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],pe.prototype,"finalizeSelectedPolygon",null),I([xt(u0),b("design:type",Function),b("design:paramtypes",[Object,u0]),b("design:returntype",Promise)],pe.prototype,"selectPolygonById",null),I([xt(Rs),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",Promise)],pe.prototype,"calculate",null),I([xt(d0),b("design:type",Function),b("design:paramtypes",[Object,d0]),b("design:returntype",Promise)],pe.prototype,"setCategoryFavorite",null),I([xt(YR),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",Promise)],pe.prototype,"resetProject",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"polygonPrice",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"polygonPriceBeforePromotion",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"getConfiguratorProject",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"getSelectedPolygon",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"getVisuals",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"getProperties",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"getMessages",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"getErrorMessages",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"getGenericMessages",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"getDimensionMessages",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"getPriceMessages",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"getPropertyMessages",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"isCalculating",null),I([Ve([xi.getMessages]),b("design:type",Function),b("design:paramtypes",[nr,Array]),b("design:returntype",void 0)],pe,"isPolygonValid",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[nr]),b("design:returntype",void 0)],pe,"measureDocumentation",null),pe=xi=I([Vs({name:"project",defaults:{configuratorProject:null,originalProject:null,selectedPolygon:null,isCalculating:!1}}),b("design:paramtypes",[pn,pt])],pe);var ba,py=function(){var e=function(){function r(t){v(this,r),this.store=t}return h(r,[{key:"selectPolygon",value:function(n,i,a){return be(this,void 0,void 0,R().mark(function o(){var s,l,c,u;return R().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.store.dispatch(new u0(n.polygonId)).toPromise();case 2:if(s=f.sent,!n.material||n.material.applicationId===s.common.selectedApplicationId){f.next=13;break}return l=[new uc({applicationId:n.material.applicationId}),new Ns({applicationId:n.material.applicationId,materialCode:n.material.materialCode,materialId:n.material.materialId})],f.next=7,Promise.all(l.map(function(p){return i.dispatch(p).toPromise()}));case 7:c=s.project.selectedPolygon,u=this.getDefaultPolygonValues(n),a.push(new f0({polygonId:c.referenceId,targetApplicationId:n.material.applicationId,modelId:u.modelId,materialCode:n.material.materialCode,materialId:n.material.materialId,polygonTypeId:u.polygonTypeId})),a.push(new oc({applicationId:n.material.applicationId,materialId:n.material.materialId,materialCode:n.material.materialCode})),f.next=15;break;case 13:return f.next=15,this.changeMaterial(s,n,i,a);case 15:case"end":return f.stop()}},o,this)}))}},{key:"addPolygon",value:function(n,i,a){return be(this,void 0,void 0,R().mark(function o(){var s,l,c;return R().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(s=1===n.length?n[0].applicationId:i.material.applicationId,l=new Ns,c=new uc({applicationId:s}),i.material&&(l.payload={applicationId:s},l.payload.materialId=i.material.materialId,l.payload.materialCode=i.material.materialCode),!i.startWithDefaultModel&&!i.defaultProductCategoryId){d.next=9;break}return d.next=7,this.setPolygonModel(l,c,i,a,s);case 7:d.next=12;break;case 9:a.push(new Ns),a.push(c),a.push(new sc({applicationId:s,height:i.defaultHeight,width:i.defaultWidth}));case 12:case"end":return d.stop()}},o,this)}))}},{key:"setPolygonModel",value:function(n,i,a,o,s){return be(this,void 0,void 0,R().mark(function l(){var c;return R().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Promise.all([this.store.dispatch(n).toPromise(),this.store.dispatch(i).toPromise()]);case 2:c=this.getDefaultPolygonValues(a),o.push(new sc({applicationId:s,modelId:c.modelId,materialCode:a.material.materialCode,materialId:a.material.materialId,width:a.defaultWidth,height:a.defaultHeight,polygonTypeId:c.polygonTypeId}));case 4:case"end":return d.stop()}},l,this)}))}},{key:"getDefaultPolygonValues",value:function(n){var a,i=this.store.snapshot();if(n.defaultProductCategoryId){var o=i.productSelector.models.find(function(l){return l.productCategoryId===n.defaultProductCategoryId&&l.isDefaultModel});if(o||(o=i.productSelector.models.find(function(l){return l.productCategoryId===n.defaultProductCategoryId})),!o)throw new Error("No valid model found for product category id '".concat(n.defaultProductCategoryId,"'"));a=o.id}else a=i.productSelector.models[0].id;var s=null;return i.polygonType.polygonTypes.length&&(s=i.polygonType.polygonTypes[0].id),{modelId:a,polygonTypeId:s}}},{key:"isSameMaterial",value:function(n,i){return i.materialId?n.categoryLinkMaterial&&n.categoryLinkMaterial.materialId===i.materialId:!!i.materialCode&&n.categoryLinkMaterial&&n.categoryLinkMaterial.materialCode===i.materialCode}},{key:"changeMaterial",value:function(n,i,a,o){return be(this,void 0,void 0,R().mark(function s(){var l,c,u;return R().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c=(l=n.project.selectedPolygon).categoryLinks.find(function(p){return p.isMainCategory}),!i.material||this.isSameMaterial(c,i.material)){f.next=7;break}return f.next=5,a.dispatch(new cc({categoryLinkId:c.id,materialId:i.material.materialId,materialCode:i.material.materialCode,applicationId:n.common.selectedApplicationId}));case 5:l=this.store.selectSnapshot(pe.getSelectedPolygon),c=l.categoryLinks.find(function(p){return p.isMainCategory});case 7:u=new Ns,c&&c.categoryLinkMaterial&&(o.push(new uc({applicationId:n.common.selectedApplicationId})),u.payload={materialId:c.categoryLinkMaterial.materialId,applicationId:n.common.selectedApplicationId},o.push(new oc({applicationId:n.common.selectedApplicationId,materialId:c.categoryLinkMaterial.materialId}))),o.push(u);case 10:case"end":return f.stop()}},s,this)}))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Bs=function(){return function(e){e[e.ConfigurableProduct=0]="ConfigurableProduct",e[e.Article=1]="Article"}(Bs||(Bs={})),Bs}(),fo=function(){return function(e){e[e.pdf=0]="pdf",e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.Thumbnail=3]="Thumbnail"}(fo||(fo={})),fo}(),rr=h(function e(){v(this,e)}),Ee=ba=function(){function e(r,t,n){v(this,e),this.hubService=r,this.store=t,this.controller=n}return h(e,[{key:"setConfig",value:function(t,n){var i=n.payload,a={};this.hubService.setBaseUrl(i.useProduction?"https://sievalhub.sieval.com":"https://sievalhub.test.sieval.com/"),a.options=i,i.settings&&(a.settings=i.settings),t.patchState(a)}},{key:"setSelectedApplicationId",value:function(t,n){t.patchState({selectedApplicationId:n.payload})}},{key:"setApiKey",value:function(t,n){var i=n.payload;t.patchState({apiKey:i}),this.hubService.setApiKey(i)}},{key:"setLanguage",value:function(t,n){var i=n.payload;t.patchState({languageCode:i}),this.hubService.setLanguageCode(i)}},{key:"setSelectedMaterial",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t.patchState({selectedMaterial:n.payload.material});case 2:case"end":return s.stop()}},i)}))}},{key:"loadSelectedMaterial",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(a=t.getState(),o=n.payload,s=0,!a.isSingleApplicationConfig||o.applicationId){u.next=7;break}s=a.applications[0].applicationId,u.next=12;break;case 7:if(!o.applicationId){u.next=11;break}s=o.applicationId,u.next=12;break;case 11:throw new Error("Please set the application id when requesting a material.");case 12:if(t.patchState({selectedApplicationId:s}),l=null,!o.materialCode){u.next=20;break}return u.next=17,this.hubService.findMaterialByCode(s,o.materialCode);case 17:l=u.sent,u.next=23;break;case 20:return u.next=22,this.hubService.findMaterialById(s,o.materialId);case 22:l=u.sent;case 23:t.patchState({selectedMaterial:l}),t.dispatch(new hy({material:l,applicationId:s}));case 25:case"end":return u.stop()}},i,this)}))}},{key:"init",value:function(t){return be(this,void 0,void 0,R().mark(function n(){var a,o,s,l,u,i=this;return R().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(t.patchState({isLoading:!0}),a=t.getState(),!(o=a.options).project){f.next=6;break}return f.next=6,this.store.dispatch(new o0(o.project)).toPromise();case 6:return f.next=8,Promise.all([this.hubService.getEmployeeApplications(),this.hubService.getResources(a.languageCode||"NL")]);case 8:if(t.patchState({applications:l=(s=f.sent)[0],isSingleApplicationConfig:1===l.length,resources:s[1]}),u=[],!o.polygonId){f.next=18;break}return f.next=16,this.controller.selectPolygon(o,t,u);case 16:f.next=21;break;case 18:if(!(1===l.length||o.material&&o.material.applicationId)){f.next=21;break}return f.next=21,this.controller.addPolygon(l,o,u);case 21:return o.material&&u.push(new oc({applicationId:o.material.applicationId,materialId:o.material.materialId,materialCode:o.material.materialCode})),f.next=24,Promise.all(u.map(function(p){return i.store.dispatch(p).toPromise()}));case 24:t.patchState({isLoading:!1});case 25:case"end":return f.stop()}},n,this)}))}}],[{key:"getSettings",value:function(t){return t.settings}},{key:"getSelectedApplication",value:function(t){return t.applications.find(function(n){return n.applicationId===t.selectedApplicationId})}},{key:"getApiKey",value:function(t){return t.apiKey}},{key:"getIsLoading",value:function(t){return t.isLoading}},{key:"getSelectedMaterial",value:function(t){return t.selectedMaterial}},{key:"getAttachments",value:function(t){return t.selectedMaterial.attachments}},{key:"getResources",value:function(t){return t.resources}},{key:"getOptions",value:function(t){return t.options}},{key:"getLanguageCode",value:function(t){return t.languageCode}},{key:"getSelectedMaterialColor",value:function(t){return ba.getProperty("color",t)}},{key:"getSelectedMaterialWidth",value:function(t){return ba.getProperty("patternwidth",t)}},{key:"getSelectedMaterialHeight",value:function(t){return ba.getProperty("patternlength",t)}},{key:"getSelectedMaterialWashingSymbols",value:function(t){return ba.getProperty("washingsymbols",t)}},{key:"getSelectedMaterialDescription",value:function(t){var n="",i=t.selectedMaterial;if(i){n=i.description;var a=i.displayProperties.find(function(o){return"color"===o.description.toLowerCase()});a&&(n+=", "+a.value)}return n}},{key:"getFabricPath",value:function(t,n,i){var a;if(!(null===(a=null==n?void 0:n.scenes)||void 0===a?void 0:a.useAttachments)||(null==n?void 0:n.productType)===Bs.Article||!(null==i?void 0:i.attachments))return null==i?void 0:i.imageUrl;var o=null==i?void 0:i.attachments.filter(function(s){return s.kind===fo.Thumbnail}).sort(function(s,l){return s.path<l.path?-1:1});return o.hasOwnProperty(n.scenes.fabricIndex)?o[n.scenes.fabricIndex].path:i.imageUrl}},{key:"getProperty",value:function(t,n){var a=n.selectedMaterial.displayProperties.find(function(o){return o.description.toLowerCase()===t.toLowerCase()});if(a)return a.value}}]),e}();Ee.\u0275fac=function(r){return new(r||Ee)(T(pn),T(pt),T(py))},Ee.\u0275prov=H({token:Ee,factory:Ee.\u0275fac}),I([xt(r0),b("design:type",Function),b("design:paramtypes",[Object,r0]),b("design:returntype",void 0)],Ee.prototype,"setConfig",null),I([xt(q1),b("design:type",Function),b("design:paramtypes",[Object,q1]),b("design:returntype",void 0)],Ee.prototype,"setSelectedApplicationId",null),I([xt(n0),b("design:type",Function),b("design:paramtypes",[Object,n0]),b("design:returntype",void 0)],Ee.prototype,"setApiKey",null),I([xt($1),b("design:type",Function),b("design:paramtypes",[Object,$1]),b("design:returntype",void 0)],Ee.prototype,"setLanguage",null),I([xt(a0),b("design:type",Function),b("design:paramtypes",[Object,a0]),b("design:returntype",Promise)],Ee.prototype,"setSelectedMaterial",null),I([xt(oc),b("design:type",Function),b("design:paramtypes",[Object,oc]),b("design:returntype",Promise)],Ee.prototype,"loadSelectedMaterial",null),I([xt(fy),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",Promise)],Ee.prototype,"init",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSettings",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedApplication",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getApiKey",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getIsLoading",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterial",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getAttachments",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getResources",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getOptions",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getLanguageCode",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterialColor",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterialWidth",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterialHeight",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterialWashingSymbols",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[rr]),b("design:returntype",void 0)],Ee,"getSelectedMaterialDescription",null),I([Ve([ba.getOptions,ba.getSelectedMaterial]),b("design:type",Function),b("design:paramtypes",[rr,Object,Object]),b("design:returntype",void 0)],Ee,"getFabricPath",null),Ee=ba=I([Vs({name:"common",defaults:{apiKey:null,applications:[],options:null,isLoading:!1,isSingleApplicationConfig:!0,languageCode:null,resources:{},selectedMaterial:null,selectedApplicationId:0,settings:{}}}),b("design:paramtypes",[pn,pt,py])],Ee);var kn=function(){function e(r){v(this,e),this.cd=r,this.translated=null,this.lastKey=null}return h(e,[{key:"transform",value:function(t){var n=this,i=null;return t&&(i=t.toLowerCase()),i===this.lastKey||(this.lastKey=i,this.resources$.pipe(Tr(1)).subscribe(function(a){n.setTranslation(a,i,t)})),this.translated}},{key:"setTranslation",value:function(t,n,i){t&&(this.translated=t[n]||i,this.cd.markForCheck())}}]),e}();kn.\u0275fac=function(r){return new(r||kn)(y(xn,16))},kn.\u0275pipe=Ot({name:"translate",type:kn,pure:!1}),I([et(Ee.getResources),b("design:type",de)],kn.prototype,"resources$",void 0);var gy=function(){var e=function(){function r(t){v(this,r),this.cd=t,this.previousLinks=[],this.filteredLinks=[]}return h(r,[{key:"transform",value:function(n){return n===this.previousLinks?this.filteredLinks:n?(this.filteredLinks=n.filter(function(i){return!i.isMainCategory}),this.previousLinks=n,this.filteredLinks):this.filteredLinks}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(xn,16))},e.\u0275pipe=Ot({name:"categoryLinkMaterialFilter",type:e,pure:!1}),e}(),h0=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}();function jR(){return T6(1)}function yy(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return jR()(Ai(r,Js(r)))}function v0(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Js(r);return un(function(i,a){(n?yy(r,i,n):yy(r,i)).subscribe(a)})}var GR=new re("nz-config"),_y=function(r){return void 0!==r},wa=function(){var e=function(){function r(t){v(this,r),this.configUpdated$=new _e,this.config=t||{}}return h(r,[{key:"getConfig",value:function(){return this.config}},{key:"getConfigForComponent",value:function(n){return this.config[n]}},{key:"getConfigChangeEventForComponent",value:function(n){return this.configUpdated$.pipe(Xt(function(i){return i===n}),function UR(e){return mn(function(){return e})}(void 0))}},{key:"set",value:function(n,i){this.config[n]=Object.assign(Object.assign({},this.config[n]),i),this.configUpdated$.next(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(GR,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function Ys(){return function(r,t,n){var i="$$__zorroConfigDecorator__".concat(t);return Object.defineProperty(r,i,{configurable:!0,writable:!0,enumerable:!1}),{get:function(){var o,s,l=(null==n?void 0:n.get)?n.get.bind(this)():this[i],c=((null===(o=this.propertyAssignCounter)||void 0===o?void 0:o[t])||0)>1,u=null===(s=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===s?void 0:s[t];return c&&_y(l)?l:_y(u)?u:l},set:function(o){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[t]=(this.propertyAssignCounter[t]||0)+1,(null==n?void 0:n.set)?n.set.bind(this)(o):this[i]=o},configurable:!0,enumerable:!0}}}var Cy={},p0="[NG-ZORRO]:";function qR(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=r.reduce(function(i,a){return i+a.toString()},"");return!Cy[n]&&(Cy[n]=!0,!0)}function by(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];zu()&&qR.apply(void 0,t)&&e.apply(void 0,t)}var K1=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return by.apply(void 0,[function(){for(var i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(i=console).warn.apply(i,[p0].concat(o))}].concat(t))};function wy(e){return null!=e}function KR(e){return wi(e)}function g0(e,r){return function t(n,i,a){var o="$$__zorroPropDecorator__".concat(i);return Object.prototype.hasOwnProperty.call(n,o)&&K1('The prop "'.concat(o,'" is already exist, it will be overrided by ').concat(e," decorator.")),Object.defineProperty(n,o,{configurable:!0,writable:!0}),{get:function(){return a&&a.get?a.get.bind(this)():this[o]},set:function(l){a&&a.set&&a.set.bind(this)(r(l)),this[o]=r(l)}}}}function jn(){return g0("InputBoolean",KR)}function XR(e){return g0("InputNumber",function(r){return function ZR(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return G5(e)?Number(e):r}(r,e)})}function m0(e){return!!e&&"function"==typeof e.then&&"function"==typeof e.catch}function My(e){return"number"==typeof e&&isFinite(e)}function Sy(e,r){return Math.round(e*Math.pow(10,r))/Math.pow(10,r)}function An(e,r){(function cN(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function uN(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===r?e:Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:e=360===r?(e<0?e%r+r:e%r)/parseFloat(String(r)):e%r/parseFloat(String(r))}function Q1(e){return Math.min(1,Math.max(0,e))}function Ty(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X1(e){return e<=1?100*Number(e)+"%":e}function ho(e){return 1===e.length?"0"+e:String(e)}function zy(e,r,t){e=An(e,255),r=An(r,255),t=An(t,255);var n=Math.max(e,r,t),i=Math.min(e,r,t),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(r-t)/l+(r<t?6:0);break;case r:a=(t-e)/l+2;break;case t:a=(e-r)/l+4}a/=6}return{h:a,s:o,l:s}}function k0(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*t*(r-e):t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function Ay(e,r,t){e=An(e,255),r=An(r,255),t=An(t,255);var n=Math.max(e,r,t),i=Math.min(e,r,t),a=0,o=n,s=n-i,l=0===n?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(r-t)/s+(r<t?6:0);break;case r:a=(t-e)/s+2;break;case t:a=(e-r)/s+4}a/=6}return{h:a,s:l,v:o}}function Py(e,r,t,n){var i=[ho(Math.round(e).toString(16)),ho(Math.round(r).toString(16)),ho(Math.round(t).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Oy(e){return Math.round(255*parseFloat(e)).toString(16)}function Fy(e){return xr(e)/255}function xr(e){return parseInt(e,16)}"undefined"!=typeof window&&window;var M0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ka="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",S0="[\\s|\\(]+("+ka+")[,|\\s]+("+ka+")[,|\\s]+("+ka+")\\s*\\)?",D0="[\\s|\\(]+("+ka+")[,|\\s]+("+ka+")[,|\\s]+("+ka+")[,|\\s]+("+ka+")\\s*\\)?",oi={CSS_UNIT:new RegExp(ka),rgb:new RegExp("rgb"+S0),rgba:new RegExp("rgba"+D0),hsl:new RegExp("hsl"+S0),hsla:new RegExp("hsla"+D0),hsv:new RegExp("hsv"+S0),hsva:new RegExp("hsva"+D0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Wi(e){return Boolean(oi.CSS_UNIT.exec(String(e)))}var dc=function(){function e(r,t){var n;if(void 0===r&&(r=""),void 0===t&&(t={}),r instanceof e)return r;"number"==typeof r&&(r=function pN(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(r)),this.originalInput=r;var i=function gN(e){var r={r:0,g:0,b:0},t=1,n=null,i=null,a=null,o=!1,s=!1;return"string"==typeof e&&(e=function _N(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var r=!1;if(M0[e])e=M0[e],r=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var t=oi.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=oi.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=oi.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=oi.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=oi.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=oi.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=oi.hex8.exec(e))?{r:xr(t[1]),g:xr(t[2]),b:xr(t[3]),a:Fy(t[4]),format:r?"name":"hex8"}:(t=oi.hex6.exec(e))?{r:xr(t[1]),g:xr(t[2]),b:xr(t[3]),format:r?"name":"hex"}:(t=oi.hex4.exec(e))?{r:xr(t[1]+t[1]),g:xr(t[2]+t[2]),b:xr(t[3]+t[3]),a:Fy(t[4]+t[4]),format:r?"name":"hex8"}:!!(t=oi.hex3.exec(e))&&{r:xr(t[1]+t[1]),g:xr(t[2]+t[2]),b:xr(t[3]+t[3]),format:r?"name":"hex"}}(e)),"object"==typeof e&&(Wi(e.r)&&Wi(e.g)&&Wi(e.b)?(r=function dN(e,r,t){return{r:255*An(e,255),g:255*An(r,255),b:255*An(t,255)}}(e.r,e.g,e.b),o=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Wi(e.h)&&Wi(e.s)&&Wi(e.v)?(n=X1(e.s),i=X1(e.v),r=function hN(e,r,t){e=6*An(e,360),r=An(r,100),t=An(t,100);var n=Math.floor(e),i=e-n,a=t*(1-r),o=t*(1-i*r),s=t*(1-(1-i)*r),l=n%6;return{r:255*[t,o,a,a,s,t][l],g:255*[s,t,t,o,a,a][l],b:255*[a,a,s,t,t,o][l]}}(e.h,n,i),o=!0,s="hsv"):Wi(e.h)&&Wi(e.s)&&Wi(e.l)&&(n=X1(e.s),a=X1(e.l),r=function fN(e,r,t){var n,i,a;if(e=An(e,360),r=An(r,100),t=An(t,100),0===r)i=t,a=t,n=t;else{var o=t<.5?t*(1+r):t+r-t*r,s=2*t-o;n=k0(s,o,e+1/3),i=k0(s,o,e),a=k0(s,o,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Ty(t),{ok:o,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}(r);this.originalInput=r,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:i.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},e.prototype.getLuminance=function(){var r=this.toRgb(),a=r.r/255,o=r.g/255,s=r.b/255;return.2126*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(r){return this.a=Ty(r),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var r=Ay(this.r,this.g,this.b);return{h:360*r.h,s:r.s,v:r.v,a:this.a}},e.prototype.toHsvString=function(){var r=Ay(this.r,this.g,this.b),t=Math.round(360*r.h),n=Math.round(100*r.s),i=Math.round(100*r.v);return 1===this.a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var r=zy(this.r,this.g,this.b);return{h:360*r.h,s:r.s,l:r.l,a:this.a}},e.prototype.toHslString=function(){var r=zy(this.r,this.g,this.b),t=Math.round(360*r.h),n=Math.round(100*r.s),i=Math.round(100*r.l);return 1===this.a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHex=function(r){return void 0===r&&(r=!1),Py(this.r,this.g,this.b,r)},e.prototype.toHexString=function(r){return void 0===r&&(r=!1),"#"+this.toHex(r)},e.prototype.toHex8=function(r){return void 0===r&&(r=!1),function vN(e,r,t,n,i){var a=[ho(Math.round(e).toString(16)),ho(Math.round(r).toString(16)),ho(Math.round(t).toString(16)),ho(Oy(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,r)},e.prototype.toHex8String=function(r){return void 0===r&&(r=!1),"#"+this.toHex8(r)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var r=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+r+", "+t+", "+n+")":"rgba("+r+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var r=function(n){return Math.round(100*An(n,255))+"%"};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var r=function(n){return Math.round(100*An(n,255))};return 1===this.a?"rgb("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%)":"rgba("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var r="#"+Py(this.r,this.g,this.b,!1),t=0,n=Object.entries(M0);t<n.length;t++){var i=n[t];if(r===i[1])return i[0]}return!1},e.prototype.toString=function(r){var t=Boolean(r);r=null!=r?r:this.format;var n=!1;return!t&&this.a<1&&this.a>=0&&(r.startsWith("hex")||"name"===r)?"name"===r&&0===this.a?this.toName():this.toRgbString():("rgb"===r&&(n=this.toRgbString()),"prgb"===r&&(n=this.toPercentageRgbString()),("hex"===r||"hex6"===r)&&(n=this.toHexString()),"hex3"===r&&(n=this.toHexString(!0)),"hex4"===r&&(n=this.toHex8String(!0)),"hex8"===r&&(n=this.toHex8String()),"name"===r&&(n=this.toName()),"hsl"===r&&(n=this.toHslString()),"hsv"===r&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l+=r/100,t.l=Q1(t.l),new e(t)},e.prototype.brighten=function(r){void 0===r&&(r=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),new e(t)},e.prototype.darken=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l-=r/100,t.l=Q1(t.l),new e(t)},e.prototype.tint=function(r){return void 0===r&&(r=10),this.mix("white",r)},e.prototype.shade=function(r){return void 0===r&&(r=10),this.mix("black",r)},e.prototype.desaturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s-=r/100,t.s=Q1(t.s),new e(t)},e.prototype.saturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s+=r/100,t.s=Q1(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(r){var t=this.toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,new e(t)},e.prototype.mix=function(r,t){void 0===t&&(t=50);var n=this.toRgb(),i=new e(r).toRgb(),a=t/100;return new e({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},e.prototype.analogous=function(r,t){void 0===r&&(r=6),void 0===t&&(t=30);var n=this.toHsl(),i=360/t,a=[this];for(n.h=(n.h-(i*r>>1)+720)%360;--r;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new e(r)},e.prototype.monochromatic=function(r){void 0===r&&(r=6);for(var t=this.toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/r;r--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var r=this.toHsl(),t=r.h;return[this,new e({h:(t+72)%360,s:r.s,l:r.l}),new e({h:(t+216)%360,s:r.s,l:r.l})]},e.prototype.onBackground=function(r){var t=this.toRgb(),n=new e(r).toRgb();return new e({r:n.r+(t.r-n.r)*t.a,g:n.g+(t.g-n.g)*t.a,b:n.b+(t.b-n.b)*t.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(r){for(var t=this.toHsl(),n=t.h,i=[this],a=360/r,o=1;o<r;o++)i.push(new e({h:(n+o*a)%360,s:t.s,l:t.l}));return i},e.prototype.equals=function(r){return this.toRgbString()===new e(r).toRgbString()},e}(),kN=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Vy(e,r,t){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?t?Math.round(e.h)-2*r:Math.round(e.h)+2*r:t?Math.round(e.h)+2*r:Math.round(e.h)-2*r)<0?n+=360:n>=360&&(n-=360),n}function Ry(e,r,t){return 0===e.h&&0===e.s?e.s:((n=t?e.s-.16*r:4===r?e.s+.16:e.s+.05*r)>1&&(n=1),t&&5===r&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function Ny(e,r,t){var n;return(n=t?e.v+.05*r:e.v-.15*r)>1&&(n=1),Number(n.toFixed(2))}function x0(e){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[],n=new dc(e),i=5;i>0;i-=1){var a=n.toHsv(),o=new dc({h:Vy(a,i,!0),s:Ry(a,i,!0),v:Ny(a,i,!0)}).toHexString();t.push(o)}t.push(n.toHexString());for(var s=1;s<=4;s+=1){var l=n.toHsv(),c=new dc({h:Vy(l,s),s:Ry(l,s),v:Ny(l,s)}).toHexString();t.push(c)}return"dark"===r.theme?kN.map(function(u){var d=u.index,f=u.opacity;return new dc(r.backgroundColor||"#141414").mix(t[d],100*f).toHexString()}):t}var E0={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Un={},T0={};function MN(e,r){return at(r)?Pa(e,r,1):Pa(e,1)}Object.keys(E0).forEach(function(e){Un[e]=x0(E0[e]),Un[e].primary=Un[e][5],T0[e]=x0(E0[e],{theme:"dark",backgroundColor:"#141414"}),T0[e].primary=T0[e][5]});var SN=h(function e(){v(this,e)}),By=h(function e(){v(this,e)}),e4=function(){function e(r){var t=this;v(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,r?this.lazyInit="string"==typeof r?function(){t.headers=new Map,r.split("\n").forEach(function(n){var i=n.indexOf(":");if(i>0){var a=n.slice(0,i),o=a.toLowerCase(),s=n.slice(i+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(n){var i=r[n],a=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(t.headers.set(a,i),t.maybeSetNormalizedName(n,a))})}:this.headers=new Map}return h(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){n.headers.set(i,t.headers.get(i)),n.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,n);var a=("a"===t.op?this.headers.get(n):void 0)||[];a.push.apply(a,se(i)),this.headers.set(n,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(n);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(n.normalizedNames.get(i),n.headers.get(i))})}}]),e}(),DN=function(){function e(){v(this,e)}return h(e,[{key:"encodeKey",value:function(t){return Yy(t)}},{key:"encodeValue",value:function(t){return Yy(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function xN(e,r){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(i){var a=i.indexOf("="),s=Be(-1==a?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,a)),r.decodeValue(i.slice(a+1))],2),l=s[0],c=s[1],u=t.get(l)||[];u.push(c),t.set(l,u)}),t}var EN=/%(\d[a-f0-9])/gi,TN={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Yy(e){return encodeURIComponent(e).replace(EN,function(r,t){var n;return null!==(n=TN[t])&&void 0!==n?n:r})}function jy(e){return"".concat(e)}var js=function(){function e(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new DN,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=xN(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var i=t.fromObject[n];r.map.set(n,Array.isArray(i)?i:[i])})):this.map=null}return h(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(i){var a=t[i];Array.isArray(a)?a.forEach(function(o){n.push({param:i,value:o,op:"a"})}):n.push({param:i,value:a,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var i=t.encoder.encodeKey(n);return t.map.get(n).map(function(a){return i+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var i=("a"===n.op?t.map.get(n.param):void 0)||[];i.push(jy(n.value)),t.map.set(n.param,i);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var a=t.map.get(n.param)||[],o=a.indexOf(jy(n.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(n.param,a):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),zN=function(){function e(){v(this,e),this.map=new Map}return h(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Uy(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Gy(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Wy(e){return"undefined"!=typeof FormData&&e instanceof FormData}var z0=function(){function e(r,t,n,i){var a;if(v(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function AN(e){switch(e){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,a=i):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new e4),this.context||(this.context=new zN),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s<t.length-1?"&":"")+o}}else this.params=new js,this.urlWithParams=t}return h(e,[{key:"serializeBody",value:function(){return null===this.body?null:Uy(this.body)||Gy(this.body)||Wy(this.body)||function PN(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof js?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Wy(this.body)?null:Gy(this.body)?this.body.type||null:Uy(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof js?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,c=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,d=t.params||this.params,f=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(p,g){return p.set(g,t.setHeaders[g])},u)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(p,g){return p.set(g,t.setParams[g])},d)),new e(i,a,s,{params:d,headers:u,context:f,reportProgress:c,responseType:o,withCredentials:l})}}]),e}(),Gn=function(){return(Gn=Gn||{})[Gn.Sent=0]="Sent",Gn[Gn.UploadProgress=1]="UploadProgress",Gn[Gn.ResponseHeader=2]="ResponseHeader",Gn[Gn.DownloadProgress=3]="DownloadProgress",Gn[Gn.Response=4]="Response",Gn[Gn.User=5]="User",Gn}(),ON=h(function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";v(this,e),this.headers=r.headers||new e4,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),FN=function(e){_(t,e);var r=z(t);function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v(this,t),(n=r.call(this,i)).type=Gn.Response,n.body=void 0!==i.body?i.body:null,n}return h(t,[{key:"clone",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}]),t}(ON);function A0(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var IN=function(){var e=function(){function r(t){v(this,r),this.handler=t}return h(r,[{key:"request",value:function(n,i){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof z0)s=n;else{var l=void 0;l=o.headers instanceof e4?o.headers:new e4(o.headers);var c=void 0;o.params&&(c=o.params instanceof js?o.params:new js({fromObject:o.params})),s=new z0(n,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var u=Nr(s).pipe(MN(function(f){return a.handler.handle(f)}));if(n instanceof z0||"events"===o.observe)return u;var d=u.pipe(Xt(function(f){return f instanceof FN}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(mn(function(f){if(null!==f.body&&!(f.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return f.body}));case"blob":return d.pipe(mn(function(f){if(null!==f.body&&!(f.body instanceof Blob))throw new Error("Response is not a Blob.");return f.body}));case"text":return d.pipe(mn(function(f){if(null!==f.body&&"string"!=typeof f.body)throw new Error("Response is not a string.");return f.body}));default:return d.pipe(mn(function(f){return f.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,i)}},{key:"get",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,i)}},{key:"head",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,i)}},{key:"jsonp",value:function(n,i){return this.request("JSONP",n,{params:(new js).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,i)}},{key:"patch",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,A0(a,i))}},{key:"post",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,A0(a,i))}},{key:"put",value:function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,A0(a,i))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(SN))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),qi="[@ant-design/icons-angular]:";function qy(e){zu()&&console.warn("".concat(qi," ").concat(e,"."))}function $y(e){return x0(e)[0]}function t4(e,r){switch(r){case"fill":return"".concat(e,"-fill");case"outline":return"".concat(e,"-o");case"twotone":return"".concat(e,"-twotone");case void 0:return e;default:throw new Error("".concat(qi,'Theme "').concat(r,'" is not a recognized theme!'))}}function Ky(e){return"object"==typeof e&&"string"==typeof e.name&&("string"==typeof e.theme||void 0===e.theme)&&"string"==typeof e.icon}function n4(e){var r=e.split(":");switch(r.length){case 1:return[e,""];case 2:return[r[1],r[0]];default:throw new Error("".concat(qi,"The icon type ").concat(e," is not valid!"))}}function Zy(e){return new Error("".concat(qi,"the icon ").concat(e," does not exist or is not registered."))}function KN(){return new Error("".concat(qi,"<svg> tag not found."))}var XN=new re("ant_icons"),Qy=function(){var e=function(){function r(t,n,i,a,o){v(this,r),this._rendererFactory=t,this._handler=n,this._document=i,this.sanitizer=a,this._antIcons=o,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new _e,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new IN(this._handler)),this._antIcons&&this.addIcon.apply(this,se(this._antIcons))}return h(r,[{key:"twoToneColor",get:function(){return Object.assign({},this._twoToneColorPalette)},set:function(n){var i=n.primaryColor,a=n.secondaryColor;this._twoToneColorPalette.primaryColor=i,this._twoToneColorPalette.secondaryColor=a||$y(i)}},{key:"_disableDynamicLoading",get:function(){return!1}},{key:"useJsonpLoading",value:function(){var n=this;this._enableJsonpLoading?qy("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=function(i){n._jsonpIconLoad$.next(i)})}},{key:"changeAssetsSource",value:function(n){this._assetsUrlRoot=n.endsWith("/")?n:n+"/"}},{key:"addIcon",value:function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];a.forEach(function(s){n._svgDefinitions.set(t4(s.name,s.theme),s)})}},{key:"addIconLiteral",value:function(n,i){if(!Be(n4(n),2)[1])throw function WN(){return new Error("".concat(qi,'Type should have a namespace. Try "namespace:').concat(name,'".'))}();this.addIcon({name:n,icon:i})}},{key:"clear",value:function(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}},{key:"getRenderedContent",value:function(n,i){var a=this,o=Ky(n)?n:this._svgDefinitions.get(n)||null;if(!o&&this._disableDynamicLoading)throw Zy(n);return(o?Nr(o):this._loadIconDynamically(n)).pipe(mn(function(l){if(!l)throw Zy(n);return a._loadSVGFromCacheOrCreateNew(l,i)}))}},{key:"getCachedIcons",value:function(){return this._svgDefinitions}},{key:"_loadIconDynamically",value:function(n){var i=this;if(!this._http&&!this._enableJsonpLoading)return Nr(function qN(){return function VN(e){console.error("".concat(qi," ").concat(e,"."))}('you need to import "HttpClientModule" to use dynamic importing.'),null}());var a=this._inProgressFetches.get(n);if(!a){var s=Be(n4(n),2),l=s[0],c=s[1],u=c?{name:n,icon:""}:function YN(e){var r=e.split("-"),t=function NN(e){return"o"===e?"outline":e}(r.splice(r.length-1,1)[0]);return{name:r.join("-"),theme:t,icon:""}}(l),d=this._enableJsonpLoading?".js":".svg",f=(c?"".concat(this._assetsUrlRoot,"assets/").concat(c,"/").concat(l):"".concat(this._assetsUrlRoot,"assets/").concat(u.theme,"/").concat(u.name))+d,p=this.sanitizer.sanitize(yt.URL,f);if(!p)throw function $N(e){return new Error("".concat(qi,'The url "').concat(e,'" is unsafe.'))}(f);a=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(u,p):this._http.get(p,{responseType:"text"}).pipe(mn(function(m){return Object.assign(Object.assign({},u),{icon:m})}))).pipe(Ud(function(m){return i.addIcon(m)}),function HN(e){return un(function(r,t){try{r.subscribe(t)}finally{t.add(e)}})}(function(){return i._inProgressFetches.delete(n)}),F1(function(){return Nr(null)}),x4()),this._inProgressFetches.set(n,a)}return a}},{key:"_loadIconDynamicallyWithJsonp",value:function(n,i){var a=this;return new de(function(o){var s=a._document.createElement("script"),l=setTimeout(function(){c(),o.error(function ZN(){return new Error("".concat(qi,"Importing timeout error."))}())},6e3);function c(){s.parentNode.removeChild(s),clearTimeout(l)}s.src=i,a._document.body.appendChild(s),a._jsonpIconLoad$.pipe(Xt(function(u){return u.name===n.name&&u.theme===n.theme}),Tr(1)).subscribe(function(u){o.next(u),c()})})}},{key:"_loadSVGFromCacheOrCreateNew",value:function(n,i){var a,o=i||this._twoToneColorPalette.primaryColor,s=$y(o)||this._twoToneColorPalette.secondaryColor,l="twotone"===n.theme?function RN(e,r,t,n){return"".concat(t4(e,r),"-").concat(t,"-").concat(n)}(n.name,n.theme,o,s):void 0===n.theme?n.name:t4(n.name,n.theme),c=this._svgRenderedDefinitions.get(l);return c?a=c.icon:(a=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function GN(e){return""!==n4(e)[1]}(n.name)?n.icon:function UN(e){return e.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(n.icon)),"twotone"===n.theme,o,s)),this._svgRenderedDefinitions.set(l,Object.assign(Object.assign({},n),{icon:a}))),function jN(e){return e.cloneNode(!0)}(a)}},{key:"_createSVGElementFromString",value:function(n){var i=this._document.createElement("div");i.innerHTML=n;var a=i.querySelector("svg");if(!a)throw KN;return a}},{key:"_setSVGAttribute",value:function(n){return this._renderer.setAttribute(n,"width","1em"),this._renderer.setAttribute(n,"height","1em"),n}},{key:"_colorizeSVGIcon",value:function(n,i,a,o){if(i)for(var s=n.childNodes,l=s.length,c=0;c<l;c++){var u=s[c];"secondaryColor"===u.getAttribute("fill")?this._renderer.setAttribute(u,"fill",o):this._renderer.setAttribute(u,"fill",a)}return this._renderer.setAttribute(n,"fill","currentColor"),n}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ua),T(By,8),T(Ze,8),T(Ka),T(XN,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),eB=function(){var e=function(){function r(t,n,i){v(this,r),this._iconService=t,this._elementRef=n,this._renderer=i}return h(r,[{key:"ngOnChanges",value:function(n){(n.type||n.theme||n.twoToneColor)&&this._changeIcon()}},{key:"_changeIcon",value:function(){var n=this;return new Promise(function(i){if(!n.type)return n._clearSVGElement(),void i(null);var a=n._getSelfRenderMeta();n._iconService.getRenderedContent(n._parseIconType(n.type,n.theme),n.twoToneColor).subscribe(function(o){var s=n._getSelfRenderMeta();!function JN(e,r){return e.type===r.type&&e.theme===r.theme&&e.twoToneColor===r.twoToneColor}(a,s)?i(null):(n._setSVGElement(o),i(o))})})}},{key:"_getSelfRenderMeta",value:function(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}},{key:"_parseIconType",value:function(n,i){if(Ky(n))return n;var o=Be(n4(n),2),s=o[0];return o[1]?n:function BN(e){return e.endsWith("-fill")||e.endsWith("-o")||e.endsWith("-twotone")}(s)?(i&&qy("'type' ".concat(s," already gets a theme inside so 'theme' ").concat(i," would be ignored")),s):t4(s,i||this._iconService.defaultTheme)}},{key:"_setSVGElement",value:function(n){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,n)}},{key:"_clearSVGElement",value:function(){for(var n,i=this._elementRef.nativeElement,a=i.childNodes,s=a.length-1;s>=0;s--){var l=a[s];"svg"===(null===(n=l.tagName)||void 0===n?void 0:n.toLowerCase())&&this._renderer.removeChild(i,l)}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Qy),y(Me),y(bn))},e.\u0275dir=U({type:e,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[Mt]}),e}(),Xy={name:"star",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /></svg>'},YB=[{name:"bars",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" /></svg>'},{name:"calendar",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /></svg>'},{name:"caret-up",theme:"fill",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" /></svg>'},{name:"caret-up",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" /></svg>'},{name:"caret-down",theme:"fill",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /></svg>'},{name:"caret-down",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /></svg>'},{name:"check-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /></svg>'},{name:"check-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" /><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /></svg>'},{name:"check",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /></svg>'},{name:"clock-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /></svg>'},{name:"close-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" /><path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /></svg>'},{name:"close-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" /></svg>'},{name:"close",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" /></svg>'},{name:"copy",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /></svg>'},{name:"double-left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" /></svg>'},{name:"double-right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" /></svg>'},{name:"down",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /></svg>'},{name:"edit",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /></svg>'},{name:"ellipsis",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /></svg>'},{name:"exclamation-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></svg>'},{name:"exclamation-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" /></svg>'},{name:"eye",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /></svg>'},{name:"file",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z" /></svg>'},{name:"file",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" /></svg>'},{name:"filter",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" /></svg>'},{name:"info-circle",theme:"fill",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /></svg>'},{name:"info-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /></svg>'},{name:"left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /></svg>'},{name:"loading",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /></svg>'},{name:"paper-clip",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" /></svg>'},{name:"question-circle",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /><path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /></svg>'},{name:"right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /></svg>'},{name:"rotate-right",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><defs><style /></defs><path d="M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" /><path d="M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" /></svg>'},{name:"rotate-left",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><defs><style /></defs><path d="M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" /><path d="M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" /></svg>'},Xy,{name:"search",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /></svg>'},Xy,{name:"upload",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /></svg>'},{name:"vertical-align-top",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z" /></svg>'},{name:"up",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /></svg>'},{name:"swap-right",theme:"outline",icon:'<svg viewBox="0 0 1024 1024" focusable="false"><path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /></svg>'},{name:"zoom-in",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" /></svg>'},{name:"zoom-out",theme:"outline",icon:'<svg viewBox="64 64 896 896" focusable="false"><path d="M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" /></svg>'}],Jy=new re("nz_icons"),e_=(new re("nz_icon_default_twotone_color"),"#1890ff"),t_=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c){var u,d;return v(this,n),(d=t.call(this,i,s,l,a)).nzConfigService=o,d.configUpdated$=new _e,d.iconfontCache=new Set,d.subscription=null,d.onConfigChange(),(u=d).addIcon.apply(u,YB.concat(se(c||[]))),d.configDefaultTwotoneColor(),d.configDefaultTheme(),d}return h(n,[{key:"ngOnDestroy",value:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}},{key:"normalizeSvgElement",value:function(a){a.getAttribute("viewBox")||this._renderer.setAttribute(a,"viewBox","0 0 1024 1024"),(!a.getAttribute("width")||!a.getAttribute("height"))&&(this._renderer.setAttribute(a,"width","1em"),this._renderer.setAttribute(a,"height","1em")),a.getAttribute("fill")||this._renderer.setAttribute(a,"fill","currentColor")}},{key:"fetchFromIconfont",value:function(a){var o=a.scriptUrl;if(this._document&&!this.iconfontCache.has(o)){var s=this._renderer.createElement("script");this._renderer.setAttribute(s,"src",o),this._renderer.setAttribute(s,"data-namespace",o.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,s),this.iconfontCache.add(o)}}},{key:"createIconfontIcon",value:function(a){return this._createSVGElementFromString('<svg><use xlink:href="'.concat(a,'"></svg>'))}},{key:"onConfigChange",value:function(){var a=this;this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(function(){a.configDefaultTwotoneColor(),a.configDefaultTheme(),a.configUpdated$.next()})}},{key:"configDefaultTheme",value:function(){var a=this.getConfig();this.defaultTheme=a.nzTheme||"outline"}},{key:"configDefaultTwotoneColor",value:function(){var o=this.getConfig().nzTwotoneColor||e_,s=e_;o&&(o.startsWith("#")?s=o:K1("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:s}}},{key:"getConfig",value:function(){return this.nzConfigService.getConfigForComponent("icon")||{}}}]),n}(Qy);return e.\u0275fac=function(t){return new(t||e)(T(Ua),T(Ka),T(wa),T(By,8),T(Ze,8),T(Jy,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),n_=new re("nz_icons_patch"),r_=function(){var e=function(){function r(t,n){v(this,r),this.extraIcons=t,this.rootIconService=n,this.patched=!1}return h(r,[{key:"doPatch",value:function(){var n=this;this.patched||(this.extraIcons.forEach(function(i){return n.rootIconService.addIcon(i)}),this.patched=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(n_,2),T(t_))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),fc=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c){var u;return v(this,n),(u=t.call(this,s,o,l)).ngZone=i,u.changeDetectorRef=a,u.iconService=s,u.renderer=l,u.cacheClassName=null,u.nzRotate=0,u.spin=!1,u.destroy$=new _e,c&&c.doPatch(),u.el=o.nativeElement,u}return h(n,[{key:"nzSpin",set:function(a){this.spin=a}},{key:"nzType",set:function(a){this.type=a}},{key:"nzTheme",set:function(a){this.theme=a}},{key:"nzTwotoneColor",set:function(a){this.twoToneColor=a}},{key:"nzIconfont",set:function(a){this.iconfont=a}},{key:"ngOnChanges",value:function(a){var u=a.nzRotate;a.nzType||a.nzTwotoneColor||a.nzSpin||a.nzTheme?this.changeIcon2():u?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon("#".concat(this.iconfont)))}},{key:"ngOnInit",value:function(){this.renderer.setAttribute(this.el,"class","anticon ".concat(this.el.className).trim())}},{key:"ngAfterContentChecked",value:function(){if(!this.type){var a=this.el.children,o=a.length;if(!this.type&&a.length)for(;o--;){var s=a[o];"svg"===s.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(s)}}}},{key:"ngOnDestroy",value:function(){this.destroy$.next()}},{key:"changeIcon2",value:function(){var a=this;this.setClassName(),this.ngZone.runOutsideAngular(function(){Ai(a._changeIcon()).pipe(ht(a.destroy$)).subscribe(function(o){a.changeDetectorRef.detectChanges(),o&&(a.setSVGData(o),a.handleSpin(o),a.handleRotate(o))})})}},{key:"handleSpin",value:function(a){this.spin||"loading"===this.type?this.renderer.addClass(a,"anticon-spin"):this.renderer.removeClass(a,"anticon-spin")}},{key:"handleRotate",value:function(a){this.nzRotate?this.renderer.setAttribute(a,"style","transform: rotate(".concat(this.nzRotate,"deg)")):this.renderer.removeAttribute(a,"style")}},{key:"setClassName",value:function(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName="anticon-".concat(this.type),this.renderer.addClass(this.el,this.cacheClassName)}},{key:"setSVGData",value:function(a){this.renderer.setAttribute(a,"data-icon",this.type),this.renderer.setAttribute(a,"aria-hidden","true")}}]),n}(eB);return e.\u0275fac=function(t){return new(t||e)(y(Xe),y(xn),y(Me),y(t_),y(bn),y(r_,8))},e.\u0275dir=U({type:e,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(t,n){2&t&&We("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[ee,Mt]}),I([jn()],e.prototype,"nzSpin",null),e}(),P0=function(){var e=function(){function r(){v(this,r)}return h(r,null,[{key:"forRoot",value:function(n){return{ngModule:r,providers:[{provide:Jy,useValue:n}]}}},{key:"forChild",value:function(n){return{ngModule:r,providers:[r_,{provide:n_,useValue:n}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Md]]}),e}(),Ei=function(){var e=function(){function r(t,n){v(this,r),this.elementRef=t,this.renderer=n,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}return h(r,[{key:"setHiddenAttribute",value:function(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}},{key:"ngOnChanges",value:function(){this.setHiddenAttribute()}},{key:"ngAfterViewInit",value:function(){this.setHiddenAttribute()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Me),y(bn))},e.\u0275dir=U({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[Mt]}),e}(),i_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Md]]}),e}(),jB=function(){function e(r,t,n,i){var a=this;v(this,e),this.triggerElement=r,this.ngZone=t,this.insertExtraNode=n,this.platformId=i,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=function(o){!a.triggerElement||!a.triggerElement.getAttribute||a.triggerElement.getAttribute("disabled")||"INPUT"===o.target.tagName||a.triggerElement.className.indexOf("disabled")>=0||a.fadeOutWave()},this.platform=new Za(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}return h(e,[{key:"waveAttributeName",get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"bindTriggerEvent",value:function(){var t=this;this.platform.isBrowser&&this.ngZone.runOutsideAngular(function(){t.removeTriggerEvent(),t.triggerElement&&t.triggerElement.addEventListener("click",t.clickHandler,!0)})}},{key:"removeTriggerEvent",value:function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}},{key:"removeStyleAndExtraNode",value:function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}},{key:"destroy",value:function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}},{key:"fadeOutWave",value:function(){var t=this,n=this.triggerElement,i=this.getWaveColor(n);n.setAttribute(this.waveAttributeName,"true"),!(Date.now()<this.lastTime+this.waveTransitionDuration)&&(this.isValidColor(i)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="\n      [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n        --antd-wave-shadow-color: ".concat(i,";\n      }"),document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",n.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone(function(){n.removeAttribute(t.waveAttributeName),t.removeStyleAndExtraNode()},this.waveTransitionDuration))}},{key:"isValidColor",value:function(t){return!!t&&"#ffffff"!==t&&"rgb(255, 255, 255)"!==t&&this.isNotGrey(t)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(t)&&"transparent"!==t}},{key:"isNotGrey",value:function(t){var n=t.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(n&&n[1]&&n[2]&&n[3]&&n[1]===n[2]&&n[2]===n[3])}},{key:"getWaveColor",value:function(t){var n=getComputedStyle(t);return n.getPropertyValue("border-top-color")||n.getPropertyValue("border-color")||n.getPropertyValue("background-color")}},{key:"runTimeoutOutsideZone",value:function(t,n){this.ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}}]),e}(),UB={disabled:!1},GB=new re("nz-wave-global-options",{providedIn:"root",factory:function WB(){return UB}}),vo=function(){var e=function(){function r(t,n,i,a,o){v(this,r),this.ngZone=t,this.elementRef=n,this.config=i,this.animationType=a,this.platformId=o,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}return h(r,[{key:"disabled",get:function(){return this.waveDisabled}},{key:"rendererRef",get:function(){return this.waveRenderer}},{key:"isConfigDisabled",value:function(){var n=!1;return this.config&&"boolean"==typeof this.config.disabled&&(n=this.config.disabled),"NoopAnimations"===this.animationType&&(n=!0),n}},{key:"ngOnDestroy",value:function(){this.waveRenderer&&this.waveRenderer.destroy()}},{key:"ngOnInit",value:function(){this.renderWaveIfEnabled()}},{key:"renderWaveIfEnabled",value:function(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new jB(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}},{key:"disable",value:function(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}},{key:"enable",value:function(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Xe),y(Me),y(GB,8),y(Os,8),y(Rn))},e.\u0275dir=U({type:e,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),e}(),a_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[Md]]}),e}(),qB=["nz-button",""];function $B(e,r){1&e&&Ce(0,"i",1)}var KB=["*"],po=function(){var e=function(){function r(t,n,i,a,o,s){var l=this;v(this,r),this.ngZone=t,this.elementRef=n,this.cdr=i,this.renderer=a,this.nzConfigService=o,this.directionality=s,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new _e,this.loading$=new _e,this.nzConfigService.getConfigChangeEventForComponent("button").pipe(ht(this.destroy$)).subscribe(function(){l.cdr.markForCheck()})}return h(r,[{key:"insertSpan",value:function(n,i){n.forEach(function(a){if("#text"===a.nodeName){var o=i.createElement("span"),s=i.parentNode(a);i.insertBefore(s,o,a),i.appendChild(o,a)}})}},{key:"assertIconOnly",value:function(n,i){var a=Array.from(n.childNodes),o=a.filter(function(u){return"I"===u.nodeName}).length,s=a.every(function(u){return"#text"!==u.nodeName});a.every(function(u){return"SPAN"!==u.nodeName})&&s&&o>=1&&i.addClass(n,"ant-btn-icon-only")}},{key:"ngOnInit",value:function(){var i,n=this;null===(i=this.directionality.change)||void 0===i||i.pipe(ht(this.destroy$)).subscribe(function(a){n.dir=a,n.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(function(){Xa(n.elementRef.nativeElement,"click").pipe(ht(n.destroy$)).subscribe(function(a){var o;n.disabled&&"A"===(null===(o=a.target)||void 0===o?void 0:o.tagName)&&(a.preventDefault(),a.stopImmediatePropagation())})})}},{key:"ngOnChanges",value:function(n){n.nzLoading&&this.loading$.next(this.nzLoading)}},{key:"ngAfterViewInit",value:function(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}},{key:"ngAfterContentInit",value:function(){var n=this;this.loading$.pipe(v0(this.nzLoading),Xt(function(){return!!n.nzIconDirectiveElement}),ht(this.destroy$)).subscribe(function(i){var a=n.nzIconDirectiveElement.nativeElement;i?n.renderer.setStyle(a,"display","none"):n.renderer.removeStyle(a,"display")})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Xe),y(Me),y(xn),y(bn),y(wa),y(Ja,8))},e.\u0275cmp=ct({type:e,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(t,n,i){var a;1&t&&function gg(e,r,t,n){var i=st();if(i.firstCreatePass){var a=yn();yg(i,new vg(r,t,n),a.index),function EE(e,r){var t=e.contentQueries||(e.contentQueries=[]);r!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,r)}(i,e),2==(2&t)&&(i.staticContentQueries=!0)}mg(i,Y(),t)}(i,fc,5,Me),2&t&&Cr(a=br())&&(n.nzIconDirectiveElement=a.first)},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(t,n){2&t&&(zn("tabindex",n.disabled?-1:null===n.tabIndex?null:n.tabIndex)("disabled",n.disabled||null),We("ant-btn-primary","primary"===n.nzType)("ant-btn-dashed","dashed"===n.nzType)("ant-btn-link","link"===n.nzType)("ant-btn-text","text"===n.nzType)("ant-btn-circle","circle"===n.nzShape)("ant-btn-round","round"===n.nzShape)("ant-btn-lg","large"===n.nzSize)("ant-btn-sm","small"===n.nzSize)("ant-btn-dangerous",n.nzDanger)("ant-btn-loading",n.nzLoading)("ant-btn-background-ghost",n.nzGhost)("ant-btn-block",n.nzBlock)("ant-input-search-button",n.nzSearch)("ant-btn-rtl","rtl"===n.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[Mt],attrs:qB,ngContentSelectors:KB,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(t,n){1&t&&(os(),P(0,$B,1,0,"i",0),Ya(1)),2&t&&E("ngIf",n.nzLoading)},directives:[Qt,fc,Ei],encapsulation:2,changeDetection:0}),I([jn()],e.prototype,"nzBlock",void 0),I([jn()],e.prototype,"nzGhost",void 0),I([jn()],e.prototype,"nzSearch",void 0),I([jn()],e.prototype,"nzLoading",void 0),I([jn()],e.prototype,"nzDanger",void 0),I([jn()],e.prototype,"disabled",void 0),I([Ys()],e.prototype,"nzSize",void 0),e}(),O0=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[ua,wr,a_,P0,i_],i_,a_]}),e}(),QB=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),XB=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[QB]}),e}();function JB(e,r){1&e&&(k(0,"span",3),Ce(1,"i",4),Ce(2,"i",4),Ce(3,"i",4),Ce(4,"i",4),M())}function eY(e,r){}function tY(e,r){if(1&e&&(k(0,"div",8),K(1),M()),2&e){var t=S(2);w(1),Pe(t.nzTip)}}function nY(e,r){if(1&e&&(k(0,"div"),k(1,"div",5),P(2,eY,0,0,"ng-template",6),P(3,tY,2,1,"div",7),M(),M()),2&e){var t=S(),n=Kt(1);w(1),We("ant-spin-rtl","rtl"===t.dir)("ant-spin-spinning",t.isLoading)("ant-spin-lg","large"===t.nzSize)("ant-spin-sm","small"===t.nzSize)("ant-spin-show-text",t.nzTip),w(1),E("ngTemplateOutlet",t.nzIndicator||n),w(1),E("ngIf",t.nzTip)}}function rY(e,r){1&e&&(k(0,"div",9),Ya(1),M()),2&e&&We("ant-spin-blur",S().isLoading)}var iY=["*"],r4=function(){var e=function(){function r(t,n,i){v(this,r),this.nzConfigService=t,this.cdr=n,this.directionality=i,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new _e,this.spinning$=new eo(this.nzSpinning),this.delay$=new $l(1),this.isLoading=!1,this.dir="ltr"}return h(r,[{key:"ngOnInit",value:function(){var i,n=this,a=this.delay$.pipe(v0(this.nzDelay),W9(),Bd(function(o){return 0===o?n.spinning$:n.spinning$.pipe(function ZB(e){return un(function(r,t){var n=!1,i=null,a=null,o=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var l=i;i=null,t.next(l)}};r.subscribe(new Nt(t,function(s){null==a||a.unsubscribe(),n=!0,i=s,a=new Nt(t,o,cn),Fn(e(s)).subscribe(a)},function(){o(),t.complete()},void 0,function(){i=a=null}))})}(function(s){return Ad(s?o:0)}))}),ht(this.destroy$));a.subscribe(function(o){n.isLoading=o,n.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe(ht(this.destroy$)).subscribe(function(){return n.cdr.markForCheck()}),null===(i=this.directionality.change)||void 0===i||i.pipe(ht(this.destroy$)).subscribe(function(o){n.dir=o,n.cdr.detectChanges()}),this.dir=this.directionality.value}},{key:"ngOnChanges",value:function(n){var a=n.nzDelay;n.nzSpinning&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(wa),y(xn),y(Ja,8))},e.\u0275cmp=ct({type:e,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,n){2&t&&We("ant-spin-nested-loading",!n.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[Mt],ngContentSelectors:iY,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,n){1&t&&(os(),P(0,JB,5,0,"ng-template",null,0,Xn),P(2,nY,4,12,"div",1),P(3,rY,2,2,"div",2)),2&t&&(w(2),E("ngIf",n.isLoading),w(1),E("ngIf",!n.nzSimple))},directives:[Qt,M5],encapsulation:2}),I([Ys()],e.prototype,"nzIndicator",void 0),I([XR()],e.prototype,"nzDelay",void 0),I([jn()],e.prototype,"nzSimple",void 0),I([jn()],e.prototype,"nzSpinning",void 0),e}(),l_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[ua,wr,XB]]}),e}(),aY=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[m1,h0,l_,O0,wr]]}),e}(),F0=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"convert",value:function(n,i){if(null==n)return null;var o;if("number"==typeof n)o=n;else{var s=n.toString();s=s.replace(",","."),o=parseFloat(s)}return i&&(o=parseFloat(o.toFixed(i))),o}},{key:"tryConvert",value:function(n,i,a){var o=!1,s=0;if(null==n||"string"==typeof n&&(!n||n&&!n.trim()))return i&&i(0),!1;if("number"==typeof n)return i&&(a&&(n=parseFloat(n.toFixed(a))),i(n)),!0;if(0===n||"0"===n)return i&&i(0),!0;var l=n.toString();if(l=l.replace(",","."),isNaN(l))return i&&i(0),!1;try{var c=this.convert(n,a);null!=c&&(s=c,o=!0)}catch(u){}return i&&i(s),o}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),i4=function(){var e=function(){function r(t){v(this,r),this.store=t,this.decimalConverter=new F0}return h(r,[{key:"setDimensions",value:function(n,i,a){var o={details:{new:{height:n.height,width:n.width},previous:{height:i.height,width:i.width}},kind:Di.SetDimensions,polygon:i},s=!1;if(n.grossWidth){var l=this.setDimension(n.grossWidth,"grossWidth",i,a),c=this.setDimension(n.widthCorrection,"widthCorrection",i,a);(l||c)&&(s=this.setDimension(n.grossWidth+n.widthCorrection,"width",i,a))}else void 0!==n.width&&(i.grossWidth=null,i.grossHeight=null,s=this.setDimension(n.width,"width",i,a));var u=!1;if(n.grossHeight){var d=this.setDimension(n.grossHeight,"grossHeight",i,a),f=this.setDimension(n.heightCorrection,"heightCorrection",i,a);(d||f)&&(u=this.setDimension(n.grossWidth+n.heightCorrection,"height",i,a))}else void 0!==n.height&&(i.grossHeight=null,i.heightCorrection=null,u=this.setDimension(n.height,"height",i,a));!s&&!u||(!i.isWidthEnabled||i.width)&&(!i.isHeightEnabled||i.height)&&(this.store.dispatch(new Ca(o)),this.store.dispatch(new Rs))}},{key:"setDimension",value:function(n,i,a,o){var d,l=0;if(this.decimalConverter.tryConvert(n,function(u){l=u},2)){var c=!0;switch(i){case"width":case"grossWidth":case"height":case"grossHeight":c=l>0}if(c&&l!==a[i])return a[i]=l,!0}return d=a[i],a[i]=null,o&&o.detectChanges(),a[i]=d,o&&o.detectChanges(),!1}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}();function cY(e,r){if(1&e&&(k(0,"div",10),k(1,"span",11),K(2),M(),k(3,"div",12),k(4,"span",13),K(5),M(),k(6,"span",14),K(7),M(),k(8,"span",15),K(9),M(),k(10,"span",16),K(11),N(12,"translate"),M(),M(),M()),2&e){var t=S(3);w(2),Pe(t.selectedPolygon.width),w(3),Pe(t.selectedPolygon.grossWidth),w(2),Pe(t.selectedPolygon.widthCorrection>=0?"+":"-"),w(2),Pe(t.abs(t.selectedPolygon.widthCorrection)),w(2),Pe(G(12,5,"label.correction"))}}function uY(e,r){if(1&e){var t=Ie();k(0,"input",17,18),ae("focus",function(){return Q(t),Kt(1).select()})("keydown.tab",function(){return Q(t),S(3).onTab(!1)})("keydown.enter",function(){Q(t);var a=Kt(1);return S(3).onWidthChange(a.value)})("blur",function(){Q(t);var a=Kt(1);return S(3).onWidthChange(a.value)}),M()}if(2&e){var n=S(3);E("readonly",n.isDisabled)("value",n.selectedPolygon.width)}}function dY(e,r){if(1&e&&(k(0,"div",6),k(1,"span",7),K(2),N(3,"translate"),M(),P(4,cY,13,7,"div",8),P(5,uY,2,2,"ng-template",null,9,Xn),M()),2&e){var t=Kt(6),n=S(2);w(2),Pe(G(3,3,"label.width")),w(2),E("ngIf",n.selectedPolygon.grossWidth)("ngIfElse",t)}}function fY(e,r){if(1&e&&(k(0,"div",10),k(1,"span",22),K(2),M(),k(3,"div",23),k(4,"span",24),K(5),M(),k(6,"span",14),K(7),M(),k(8,"span",25),K(9),M(),k(10,"span",26),K(11),N(12,"translate"),M(),M(),M()),2&e){var t=S(3);w(2),Pe(t.selectedPolygon.height),w(3),Pe(t.selectedPolygon.grossHeight),w(2),Pe(t.selectedPolygon.heightCorrection>=0?"+":"-"),w(2),Pe(t.abs(t.selectedPolygon.heightCorrection)),w(2),Pe(G(12,5,"label.correction"))}}function hY(e,r){if(1&e){var t=Ie();k(0,"input",17,27),ae("focus",function(){return Q(t),Kt(1).select()})("keydown.tab",function(){return Q(t),S(3).onTab(!0)})("keydown.enter",function(){Q(t);var a=Kt(1);return S(3).onHeightChange(a.value)})("blur",function(){Q(t);var a=Kt(1);return S(3).onHeightChange(a.value)}),M()}if(2&e){var n=S(3);E("readonly",n.isDisabled)("value",n.selectedPolygon.height)}}function vY(e,r){if(1&e&&(k(0,"div",19),k(1,"span",20),K(2),N(3,"translate"),M(),P(4,fY,13,7,"div",8),P(5,hY,2,2,"ng-template",null,21,Xn),M()),2&e){var t=Kt(6),n=S(2);w(2),Pe(G(3,3,"label.height")),w(2),E("ngIf",n.selectedPolygon.grossHeight)("ngIfElse",t)}}function pY(e,r){if(1&e){var t=Ie();k(0,"div",28),k(1,"button",29),ae("click",function(){return Q(t),S(2).onModifyMeasurements()}),K(2),N(3,"translate"),M(),k(4,"button",30),ae("click",function(){return Q(t),S(2).onRemoveMeasurements()}),K(5),N(6,"translate"),M(),M()}2&e&&(w(2),Pe(G(3,2,"button.modify")),w(3),Pe(G(6,4,"button.remove")))}function gY(e,r){if(1&e&&Ce(0,"div",33),2&e){var t=r.$implicit;We("info",0===t.kind)("warning",1===t.kind)("error",2===t.kind||3===t.kind),E("innerHtml",t.text,vi)}}function mY(e,r){if(1&e&&(k(0,"div",31),P(1,gY,1,7,"div",32),M()),2&e){var t=S(2);w(1),E("ngForOf",t.messages)}}function yY(e,r){if(1&e&&(ut(0),k(1,"div",1),P(2,dY,7,5,"div",2),P(3,vY,7,5,"div",3),M(),P(4,pY,7,6,"div",4),P(5,mY,2,1,"div",5),dt()),2&e){var t=S();w(2),E("ngIf",t.selectedPolygon.isWidthEnabled),w(1),E("ngIf",t.selectedPolygon.isHeightEnabled),w(1),E("ngIf",t.selectedPolygon.grossWidth||t.selectedPolygon.grossHeight),w(1),E("ngIf",null==t.messages?null:t.messages.length)}}var c_=function(){var e=function(){function r(t,n,i){v(this,r),this.store=t,this.cd=n,this.dimensionsService=i,this.decimalConverter=new F0,this.itemSelected=new ie,this.modifyMeasurements=new ie,this.removeMeasurements=new ie,this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onWidthChange",value:function(n){this.isDisabled||this.dimensionsService.setDimensions({width:n},this.selectedPolygon,this.cd)}},{key:"onHeightChange",value:function(n){this.isDisabled||(this.dimensionsService.setDimensions({height:n},this.selectedPolygon,this.cd),this.selectedPolygon.width&&this.selectedPolygon.height&&this.itemSelected.emit())}},{key:"abs",value:function(n){return Math.abs(n)}},{key:"onModifyMeasurements",value:function(){this.modifyMeasurements.emit()}},{key:"onRemoveMeasurements",value:function(){this.removeMeasurements.emit()}},{key:"setDimension",value:function(n,i){var a=this,o=function(){var u=a.selectedPolygon[i];a.selectedPolygon[i]=null,a.cd.detectChanges(),a.selectedPolygon[i]=u,a.cd.detectChanges()},s=0;if(this.decimalConverter.tryConvert(n,function(c){s=c},2))if(s&&s>0&&s!==this.selectedPolygon[i]){var l={details:{new:{},previous:{}},kind:Di.SetDimensions,polygon:this.selectedPolygon};l.details.new[i]=s,l.details.previous[i]=this.selectedPolygon[i],this.store.dispatch(new Ca(l)),this.selectedPolygon[i]=s,this.selectedPolygon.width&&this.selectedPolygon.height&&this.store.dispatch(new Rs)}else o();else o()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pt),y(xn),y(i4))},e.\u0275cmp=ct({type:e,selectors:[["sds-dimensions"]],inputs:{selectedPolygon:"selectedPolygon",isDisabled:"isDisabled",messages:"messages"},outputs:{itemSelected:"itemSelected",modifyMeasurements:"modifyMeasurements",removeMeasurements:"removeMeasurements",tabOut:"tabOut"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"configurator-dimensions-group"],["class","configurator-width",4,"ngIf"],["class","configurator-height",4,"ngIf"],["class","configurator-dimensions-buttons",4,"ngIf"],["class","configurator-dimension-messages",4,"ngIf"],[1,"configurator-width"],[1,"configurator-width-label"],["class","configurator-width-measurements",4,"ngIf","ngIfElse"],["widthInput",""],[1,"configurator-width-measurements"],[1,"configurator-width-value"],[1,"configurator-width-formula"],[1,"configurator-width-formula-value"],[1,"configurator-width-formula-symbol"],[1,"configurator-width-formula-correction"],[1,"configurator-width-formula-suffix"],["type","text","required","",3,"readonly","value","focus","keydown.tab","keydown.enter","blur"],["width",""],[1,"configurator-height"],[1,"configurator-height-label"],["heightInput",""],[1,"configurator-height-value"],[1,"configurator-height-formula"],[1,"configurator-height-formula-value"],[1,"configurator-height-formula-correction"],[1,"configurator-height-formula-suffix"],["height",""],[1,"configurator-dimensions-buttons"],[1,"configurator-modify-measurements",3,"click"],[1,"configurator-remove-measurements",3,"click"],[1,"configurator-dimension-messages"],["class","configurator-message",3,"info","warning","error","innerHtml",4,"ngFor","ngForOf"],[1,"configurator-message",3,"innerHtml"]],template:function(t,n){1&t&&P(0,yY,6,4,"ng-container",0),2&t&&E("ngIf",n.selectedPolygon)},directives:[Qt,Nn],pipes:[kn],styles:[".configurator-dimensions-group{display:flex;flex-direction:row;justify-content:space-between}.configurator-dimensions-group .configurator-width,.configurator-dimensions-group .configurator-height{flex:1 1 40%}sds-dimensions{display:flex;flex-direction:row}input.ng-dirty.ng-invalid{border:1px solid red}\n"],encapsulation:2}),e}();function _Y(e,r){if(1&e&&(k(0,"li"),K(1),M()),2&e){var t=r.$implicit;w(1),Pe(t.text)}}var u_=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"ngOnInit",value:function(){}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["sds-message"]],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"]],template:function(t,n){1&t&&(k(0,"ul"),P(1,_Y,2,1,"li",0),M()),2&t&&(w(1),E("ngForOf",n.messagesToShow))},directives:[Nn],styles:[""]}),e}(),tn=function(){function e(r){v(this,e),this.hubService=r}return h(e,[{key:"loadModels",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l,c,u,d,f,p;return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,t.patchState({isLoading:!0}),o=n.payload?n.payload.materialCode:null,s=[],!(a=n.payload?n.payload.materialId:null)){m.next=11;break}return m.next=8,this.hubService.getModelsForMaterialId(a,n.payload.applicationId);case 8:l=m.sent,m.next=20;break;case 11:if(!o){m.next=17;break}return m.next=14,this.hubService.getModelsForMaterialCode(o,n.payload.applicationId);case 14:l=m.sent,m.next=20;break;case 17:return m.next=19,this.hubService.getModels();case 19:l=m.sent;case 20:(c=(s=l.models).find(function(C){return"STL"===C.code.toUpperCase()}))&&(u=s.indexOf(c),s.splice(u,1),s.push(c)),f=l.categoryFavorites,(d=l.chainedCategories).forEach(function(C){C.favorites=f.filter(function(D){return D.categoryId===C.categoryId})}),p=this.flattenHierarchy(s).filter(function(C){return!C.children.length}),t.patchState({models:p}),t.patchState({chainedCategories:d}),t.patchState({categoryFavorites:f});case 30:return m.prev=30,t.patchState({isLoading:!1}),m.finish(30);case 33:case"end":return m.stop()}},i,this,[[0,,30,33]])}))}},{key:"flattenHierarchy",value:function(t){var n=this,i=[];return t.forEach(function(a){i.push(a),a.children&&a.children.length&&i.push.apply(i,se(n.flattenHierarchy(a.children)))}),i}}],[{key:"getModels",value:function(t){return t.models}},{key:"multipleModels",value:function(t){return t.models&&t.models.length>1}},{key:"getChainedCategories",value:function(t,n){if(!n)return[];var i=t.models.find(function(a){return a.id===n.modelId});return i&&i.chainedCategories?t.chainedCategories.filter(function(a){return i.chainedCategories.includes(a.categoryId)}):[]}},{key:"getCategoryFavorites",value:function(t,n){if(!n)return[];var i=t.models.find(function(a){return a.id===n.modelId});return i?t.categoryFavorites.filter(function(a){return a.categoryId===i.productCategoryId}):[]}},{key:"getChainedCategoryFavorites",value:function(t,n){if(!n)return[];var i=t.models.find(function(a){return a.id===n.modelId});return i&&i.chainedCategories?t.categoryFavorites.filter(function(a){return i.chainedCategories.some(function(o){return o===a.categoryId})&&a.applicableModelCodes.some(function(o){return o===i.code})}):[]}}]),e}();tn.\u0275fac=function(r){return new(r||tn)(T(pn))},tn.\u0275prov=H({token:tn,factory:tn.\u0275fac}),I([xt(Ns),b("design:type",Function),b("design:paramtypes",[Object,Ns]),b("design:returntype",Promise)],tn.prototype,"loadModels",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],tn,"getModels",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],tn,"multipleModels",null),I([Ve([pe.getSelectedPolygon]),b("design:type",Function),b("design:paramtypes",[Object,Object]),b("design:returntype",void 0)],tn,"getChainedCategories",null),I([Ve([pe.getSelectedPolygon]),b("design:type",Function),b("design:paramtypes",[Object,Object]),b("design:returntype",void 0)],tn,"getCategoryFavorites",null),I([Ve([pe.getSelectedPolygon]),b("design:type",Function),b("design:paramtypes",[Object,Object]),b("design:returntype",void 0)],tn,"getChainedCategoryFavorites",null),tn=I([Vs({name:"productSelector",defaults:{models:[],chainedCategories:[],categoryFavorites:[],isLoading:!1}}),b("design:paramtypes",[pn])],tn);var kY=function(){function e(){v(this,e)}return h(e,[{key:"convert",value:function(t){if(null==t)return null;if("number"==typeof t)return Math.floor(t);var i=t.toString();return i=i.replace(",","."),parseInt(i,10)}},{key:"tryConvert",value:function(t,n){var i=!1,a=0;if(null==t)return n&&n(0),!1;if(0===t||"0"===t)return n&&n(0),!0;try{var o=this.convert(t);o&&(a=o,i=!0)}catch(s){}return n(a),i}}]),e}();function MY(e,r){if(1&e&&(k(0,"span"),K(1),M()),2&e){var t=S();w(1),Ke(" ",t.property.value,"\n")}}function SY(e,r){if(1&e&&(k(0,"span"),K(1),M()),2&e){var t=S(2);w(1),Ke(" ",t.property.value," ")}}function DY(e,r){if(1&e){var t=Ie();k(0,"input",7,8),ae("keydown.tab",function(){return Q(t),S(2).onTab(!0)})("keydown.enter",function(){Q(t);var a=Kt(1);return S(2).onPropertyValueChange(a.value)})("blur",function(){Q(t);var a=Kt(1);return S(2).onPropertyValueChange(a.value)}),M()}if(2&e){var n=S(2);E("readonly",n.isDisabled)("value",n.property.value)}}function xY(e,r){if(1&e){var t=Ie();k(0,"div",11),ae("keydown.tab",function(){var s=Q(t).last;return S(3).onTab(s)})("keyup.enter",function(){var s=Q(t).$implicit;return S(3).onPropertyValueChange(s.value)})("click",function(){var s=Q(t).$implicit;return S(3).onPropertyValueChange(s.value)}),Ce(1,"img",12),k(2,"span"),K(3),M(),M()}if(2&e){var n=r.$implicit,i=S(3);We("is-selected",i.property.value===n.value),w(1),E("src",i.getImageUrl(n),qt),w(2),Pe(n.description)}}function EY(e,r){if(1&e&&(ut(0),k(1,"div",9),P(2,xY,4,4,"div",10),M(),dt()),2&e){var t=S(2);w(2),E("ngForOf",t.property.listValues)("ngForTrackBy",t.listValueTrackByFn)}}function TY(e,r){if(1&e&&(k(0,"span"),K(1),M()),2&e){var t=S(2);w(1),Ke(" ",t.property.value," ")}}function zY(e,r){1&e&&(ut(0,3),P(1,SY,2,1,"span",4),P(2,DY,2,2,"input",5),P(3,EY,3,2,"ng-container",4),P(4,TY,2,1,"span",6),dt()),2&e&&(E("ngSwitch",S().property.controlType),w(1),E("ngSwitchCase",0),w(1),E("ngSwitchCase",1),w(1),E("ngSwitchCase",2))}function AY(e,r){if(1&e&&Ce(0,"div",15),2&e){var t=r.$implicit;We("info",0===t.kind)("warning",1===t.kind)("error",2===t.kind||3===t.kind),E("innerHtml",t.text,vi)}}function PY(e,r){if(1&e&&(k(0,"div",13),P(1,AY,1,7,"div",14),M()),2&e){var t=S();w(1),E("ngForOf",t.getPropertyMessages())}}var d_=function(){var e=function(){function r(t,n){v(this,r),this.store=t,this.hubService=n,this.itemSelected=new ie,this.tabOut=new ie}return h(r,[{key:"classes",get:function(){return this.property?"configurator-property-control configurator-property-".concat(this.property.description.toLowerCase()):"configurator-property-control"}},{key:"ngOnInit",value:function(){}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onPropertyValueChange",value:function(n){if(!this.isDisabled){var a;if(this.property.dataType===ac.Integer)n=(new kY).tryConvert(n,function(c){return a=c})?a.toString():null;else if(this.property.dataType===ac.Number){var s;n=(new F0).tryConvert(n,function(c){return s=c})?s.toString():null}if(n!==this.property.value||!this.property.listValues){var l={details:{property:this.property,new:n,previous:this.property.value},polygon:this.store.selectSnapshot(pe.getSelectedPolygon),kind:Di.SetProperty};this.store.dispatch(new Ca(l)),this.property.value=n,this.property.isModified=!0,this.store.dispatch(new Rs),this.itemSelected.emit()}}}},{key:"getImageUrl",value:function(n){if(this.imagePath){var i=this.imagePath;return i.endsWith("/")||(i+="/"),i+n.imageUrl}if(n.imageUrl&&n.imageUrl.startsWith("https://"))return n.imageUrl;var a=this.store.selectSnapshot(function(o){return o.common.selectedApplicationId});return this.hubService.getImageUrl(a,n.imageUrl)}},{key:"getPropertyMessages",value:function(){var n=this;return this.messages.filter(function(i){return!!i.contextReference&&i.contextReference.toLowerCase()===n.property.description.toLowerCase()})}},{key:"listValueTrackByFn",value:function(n,i){return i.value}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pt),y(pn))},e.\u0275cmp=ct({type:e,selectors:[["sds-property-control"]],hostVars:2,hostBindings:function(t,n){2&t&&pu(n.classes)},inputs:{property:"property",imagePath:"imagePath",isDisabled:"isDisabled",messages:"messages"},outputs:{itemSelected:"itemSelected",tabOut:"tabOut"},decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["control",""],["class","configurator-property-messages",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","text","nz-input","",3,"readonly","value","keydown.tab","keydown.enter","blur",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","text","nz-input","",3,"readonly","value","keydown.tab","keydown.enter","blur"],["propertyInput",""],[1,"configurator-image-list"],["tabIndex","0","class","configurator-image-list-item",3,"is-selected","keydown.tab","keyup.enter","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabIndex","0",1,"configurator-image-list-item",3,"keydown.tab","keyup.enter","click"],[3,"src"],[1,"configurator-property-messages"],["class","configurator-message",3,"info","warning","error","innerHtml",4,"ngFor","ngForOf"],[1,"configurator-message",3,"innerHtml"]],template:function(t,n){if(1&t&&(P(0,MY,2,1,"span",0),P(1,zY,5,4,"ng-template",null,1,Xn),P(3,PY,2,1,"div",2)),2&t){var i=Kt(2);E("ngIf",n.property.isReadOnly)("ngIfElse",i),w(3),E("ngIf",null==n.messages?null:n.messages.length)}},directives:[Qt,Cs,Yu,Nn,vd],styles:[".configurator-image-list{display:flex;flex-direction:row;flex-wrap:wrap}\n"],encapsulation:2}),e}(),hc="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,OY=function(){for(var e=["Edge","Trident","Firefox"],r=0;r<e.length;r+=1)if(hc&&navigator.userAgent.indexOf(e[r])>=0)return 1;return 0}(),HY=hc&&window.Promise?function FY(e){var r=!1;return function(){r||(r=!0,window.Promise.resolve().then(function(){r=!1,e()}))}}:function IY(e){var r=!1;return function(){r||(r=!0,setTimeout(function(){r=!1,e()},OY))}};function f_(e){return e&&"[object Function]"==={}.toString.call(e)}function go(e,r){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return r?n[r]:n}function I0(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function vc(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var r=go(e);return/(auto|scroll|overlay)/.test(r.overflow+r.overflowY+r.overflowX)?e:vc(I0(e))}function h_(e){return e&&e.referenceNode?e.referenceNode:e}var v_=hc&&!(!window.MSInputMethodContext||!document.documentMode),p_=hc&&/MSIE 10/.test(navigator.userAgent);function Us(e){return 11===e?v_:10===e?p_:v_||p_}function Gs(e){if(!e)return document.documentElement;for(var r=Us(10)?document.body:null,t=e.offsetParent||null;t===r&&e.nextElementSibling;)t=(e=e.nextElementSibling).offsetParent;var n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===go(t,"position")?Gs(t):t:e?e.ownerDocument.documentElement:document.documentElement}function L0(e){return null!==e.parentNode?L0(e.parentNode):e}function a4(e,r){if(!(e&&e.nodeType&&r&&r.nodeType))return document.documentElement;var t=e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING,n=t?e:r,i=t?r:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&r!==o||n.contains(i))return function VY(e){var r=e.nodeName;return"BODY"!==r&&("HTML"===r||Gs(e.firstElementChild)===e)}(o)?o:Gs(o);var s=L0(e);return s.host?a4(s.host,r):a4(e,L0(r).host)}function Ws(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===r?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[t]}return e[t]}function RY(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Ws(r,"top"),i=Ws(r,"left"),a=t?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function g_(e,r){var t="x"===r?"Left":"Top",n="Left"===t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+n+"Width"])}function m_(e,r,t,n){return Math.max(r["offset"+e],r["scroll"+e],t["client"+e],t["offset"+e],t["scroll"+e],Us(10)?parseInt(t["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function y_(e){var r=e.body,t=e.documentElement,n=Us(10)&&getComputedStyle(t);return{height:m_("Height",r,t,n),width:m_("Width",r,t,n)}}var NY=function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")},BY=function(){function e(r,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),qs=function(r,t,n){return t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r},jr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function Ma(e){return jr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function H0(e){var r={};try{if(Us(10)){r=e.getBoundingClientRect();var t=Ws(e,"top"),n=Ws(e,"left");r.top+=t,r.left+=n,r.bottom+=t,r.right+=n}else r=e.getBoundingClientRect()}catch(d){}var i={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},a="HTML"===e.nodeName?y_(e.ownerDocument):{},l=e.offsetWidth-(a.width||e.clientWidth||i.width),c=e.offsetHeight-(a.height||e.clientHeight||i.height);if(l||c){var u=go(e);l-=g_(u,"x"),c-=g_(u,"y"),i.width-=l,i.height-=c}return Ma(i)}function V0(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Us(10),i="HTML"===r.nodeName,a=H0(e),o=H0(r),s=vc(e),l=go(r),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Ma({top:a.top-o.top-c,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-p,d.right-=u-p,d.marginTop=f,d.marginLeft=p}return(n&&!t?r.contains(s):r===s&&"BODY"!==s.nodeName)&&(d=RY(d,r)),d}function YY(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.ownerDocument.documentElement,n=V0(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),a=Math.max(t.clientHeight,window.innerHeight||0),o=r?0:Ws(t),s=r?0:Ws(t,"left"),l={top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:a};return Ma(l)}function __(e){var r=e.nodeName;if("BODY"===r||"HTML"===r)return!1;if("fixed"===go(e,"position"))return!0;var t=I0(e);return!!t&&__(t)}function C_(e){if(!e||!e.parentElement||Us())return document.documentElement;for(var r=e.parentElement;r&&"none"===go(r,"transform");)r=r.parentElement;return r||document.documentElement}function R0(e,r,t,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?C_(e):a4(e,h_(r));if("viewport"===n)a=YY(o,i);else{var s=void 0;"scrollParent"===n?"BODY"===(s=vc(I0(r))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===n?e.ownerDocument.documentElement:n;var l=V0(s,o,i);if("HTML"!==s.nodeName||__(o))a=l;else{var c=y_(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var f="number"==typeof(t=t||0);return a.left+=f?t:t.left||0,a.top+=f?t:t.top||0,a.right-=f?t:t.right||0,a.bottom-=f?t:t.bottom||0,a}function jY(e){return e.width*e.height}function b_(e,r,t,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=R0(t,n,a,i),s={top:{width:o.width,height:r.top-o.top},right:{width:o.right-r.right,height:o.height},bottom:{width:o.width,height:o.bottom-r.bottom},left:{width:r.left-o.left,height:o.height}},l=Object.keys(s).map(function(f){return jr({key:f},s[f],{area:jY(s[f])})}).sort(function(f,p){return p.area-f.area}),c=l.filter(function(f){return f.width>=t.clientWidth&&f.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function w_(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=n?C_(r):a4(r,h_(t));return V0(t,i,n)}function k_(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function o4(e){var r={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(t){return r[t]})}function M_(e,r,t){t=t.split("-")[0];var n=k_(e),i={width:n.width,height:n.height},a=-1!==["right","left"].indexOf(t),o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return i[o]=r[o]+r[l]/2-n[l]/2,i[s]=t===s?r[s]-n[c]:r[o4(s)],i}function pc(e,r){return Array.prototype.find?e.find(r):e.filter(r)[0]}function S_(e,r,t){var n=void 0===t?e:e.slice(0,function UY(e,r,t){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[r]===t});var n=pc(e,function(i){return i[r]===t});return e.indexOf(n)}(e,"name",t));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&f_(a)&&(r.offsets.popper=Ma(r.offsets.popper),r.offsets.reference=Ma(r.offsets.reference),r=a(r,i))}),r}function GY(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=w_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=b_(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M_(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=S_(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function D_(e,r){return e.some(function(t){return t.enabled&&t.name===r})}function N0(e){for(var r=[!1,"ms","Webkit","Moz","O"],t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<r.length;n++){var i=r[n],a=i?""+i+t:e;if(void 0!==document.body.style[a])return a}return null}function WY(){return this.state.isDestroyed=!0,D_(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[N0("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function x_(e){var r=e.ownerDocument;return r?r.defaultView:window}function E_(e,r,t,n){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(r,t,{passive:!0}),i||E_(vc(a.parentNode),r,t,n),n.push(a)}function qY(e,r,t,n){t.updateBound=n,x_(e).addEventListener("resize",t.updateBound,{passive:!0});var i=vc(e);return E_(i,"scroll",t.updateBound,t.scrollParents),t.scrollElement=i,t.eventsEnabled=!0,t}function $Y(){this.state.eventsEnabled||(this.state=qY(this.reference,0,this.state,this.scheduleUpdate))}function ZY(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function KY(e,r){return x_(e).removeEventListener("resize",r.updateBound),r.scrollParents.forEach(function(t){t.removeEventListener("scroll",r.updateBound)}),r.updateBound=null,r.scrollParents=[],r.scrollElement=null,r.eventsEnabled=!1,r}(this.reference,this.state))}function B0(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y0(e,r){Object.keys(r).forEach(function(t){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&B0(r[t])&&(n="px"),e.style[t]=r[t]+n})}var tj=hc&&/Firefox/i.test(navigator.userAgent);function T_(e,r,t){var n=pc(e,function(s){return s.name===r}),i=!!n&&e.some(function(s){return s.name===t&&s.enabled&&s.order<n.order});if(!i){var a="`"+r+"`";console.warn("`"+t+"` modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}var z_=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],j0=z_.slice(3);function A_(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=j0.indexOf(e),n=j0.slice(t+1).concat(j0.slice(0,t));return r?n.reverse():n}var vj={shift:{order:100,enabled:!0,fn:function dj(e){var r=e.placement,t=r.split("-")[0],n=r.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(t),l=s?"left":"top",c=s?"width":"height",u={start:qs({},l,a[l]),end:qs({},l,a[l]+a[c]-o[c])};e.offsets.popper=jr({},o,u[n])}return e}},offset:{order:200,enabled:!0,fn:function cj(e,r){var l,t=r.offset,i=e.offsets,a=i.popper,o=i.reference,s=e.placement.split("-")[0];return l=B0(+t)?[+t,0]:function lj(e,r,t,n){var i=[0,0],a=-1!==["right","left"].indexOf(n),o=e.split(/(\+|\-)/).map(function(u){return u.trim()}),s=o.indexOf(pc(o,function(u){return-1!==u.search(/,|\s/)}));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return c=c.map(function(u,d){var f=(1===d?!a:a)?"height":"width",p=!1;return u.reduce(function(g,m){return""===g[g.length-1]&&-1!==["+","-"].indexOf(m)?(g[g.length-1]=m,p=!0,g):p?(g[g.length-1]+=m,p=!1,g):g.concat(m)},[]).map(function(g){return function sj(e,r,t,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];return a?0===o.indexOf("%")?Ma("%p"===o?t:n)[r]/100*a:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a:e}(g,f,r,t)})}),c.forEach(function(u,d){u.forEach(function(f,p){B0(f)&&(i[d]+=f*("-"===u[p-1]?-1:1))})}),i}(t,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function uj(e,r){var t=r.boundariesElement||Gs(e.instance.popper);e.instance.reference===t&&(t=Gs(t));var n=N0("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[n];i.top="",i.left="",i[n]="";var l=R0(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=a,i.left=o,i[n]=s,r.boundaries=l;var u=e.offsets.popper,d={primary:function(p){var g=u[p];return u[p]<l[p]&&!r.escapeWithReference&&(g=Math.max(u[p],l[p])),qs({},p,g)},secondary:function(p){var g="right"===p?"left":"top",m=u[g];return u[p]>l[p]&&!r.escapeWithReference&&(m=Math.min(u[g],l[p]-("right"===p?u.width:u.height))),qs({},g,m)}};return r.priority.forEach(function(f){var p=-1!==["left","top"].indexOf(f)?"primary":"secondary";u=jr({},u,d[p](f))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function oj(e){var r=e.offsets,t=r.popper,n=r.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[s]<a(n[l])&&(e.offsets.popper[l]=a(n[l])-t[c]),t[l]>a(n[s])&&(e.offsets.popper[l]=a(n[s])),e}},arrow:{order:500,enabled:!0,fn:function rj(e,r){var t;if(!T_(e.instance.modifiers,"arrow","keepTogether"))return e;var n=r.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",g=k_(n)[c];s[p]-g<o[d]&&(e.offsets.popper[d]-=o[d]-(s[p]-g)),s[d]+g>o[p]&&(e.offsets.popper[d]+=s[d]+g-o[p]),e.offsets.popper=Ma(e.offsets.popper);var m=s[d]+s[c]/2-g/2,C=go(e.instance.popper),D=parseFloat(C["margin"+u]),x=parseFloat(C["border"+u+"Width"]),F=m-e.offsets.popper[d]-D-x;return F=Math.max(Math.min(o[c]-g,F),0),e.arrowElement=n,e.offsets.arrow=(qs(t={},d,Math.round(F)),qs(t,f,""),t),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function aj(e,r){if(D_(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var t=R0(e.instance.popper,e.instance.reference,r.padding,r.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=o4(n),a=e.placement.split("-")[1]||"",o=[];switch(r.behavior){case"flip":o=[n,i];break;case"clockwise":o=A_(n);break;case"counterclockwise":o=A_(n,!0);break;default:o=r.behavior}return o.forEach(function(s,l){if(n!==s||o.length===l+1)return e;n=e.placement.split("-")[0],i=o4(n);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===n&&d(c.right)>d(u.left)||"right"===n&&d(c.left)<d(u.right)||"top"===n&&d(c.bottom)>d(u.top)||"bottom"===n&&d(c.top)<d(u.bottom),p=d(c.left)<d(t.left),g=d(c.right)>d(t.right),m=d(c.top)<d(t.top),C=d(c.bottom)>d(t.bottom),D="left"===n&&p||"right"===n&&g||"top"===n&&m||"bottom"===n&&C,x=-1!==["top","bottom"].indexOf(n),ne=!!r.flipVariations&&(x&&"start"===a&&p||x&&"end"===a&&g||!x&&"start"===a&&m||!x&&"end"===a&&C)||!!r.flipVariationsByContent&&(x&&"start"===a&&g||x&&"end"===a&&p||!x&&"start"===a&&C||!x&&"end"===a&&m);(f||D||ne)&&(e.flipped=!0,(f||D)&&(n=o[l+1]),ne&&(a=function ij(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=jr({},e.offsets.popper,M_(e.instance.popper,e.offsets.reference,e.placement)),e=S_(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function hj(e){var r=e.placement,t=r.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return i[o?"left":"top"]=a[t]-(s?i[o?"width":"height"]:0),e.placement=o4(r),e.offsets.popper=Ma(i),e}},hide:{order:800,enabled:!0,fn:function fj(e){if(!T_(e.instance.modifiers,"hide","preventOverflow"))return e;var r=e.offsets.reference,t=pc(e.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(r.bottom<t.top||r.left>t.right||r.top>t.bottom||r.right<t.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function nj(e,r){var t=r.x,n=r.y,i=e.offsets.popper,a=pc(e.instance.modifiers,function(F){return"applyStyle"===F.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var g,m,o=void 0!==a?a:r.gpuAcceleration,s=Gs(e.instance.popper),l=H0(s),c={position:i.position},u=function ej(e,r){var t=e.offsets,n=t.popper,a=Math.round,o=Math.floor,s=function(D){return D},l=a(t.reference.width),c=a(n.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),g=r?u||d||l%2==c%2?a:o:s,m=r?a:s;return{left:g(l%2==1&&c%2==1&&!d&&r?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:g(n.right)}}(e,window.devicePixelRatio<2||!tj),d="bottom"===t?"top":"bottom",f="right"===n?"left":"right",p=N0("transform");if(m="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,g="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&p)c[p]="translate3d("+g+"px, "+m+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var D="right"===f?-1:1;c[d]=m*("bottom"===d?-1:1),c[f]=g*D,c.willChange=d+", "+f}return e.attributes=jr({},{"x-placement":e.placement},e.attributes),e.styles=jr({},c,e.styles),e.arrowStyles=jr({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function XY(e){return Y0(e.instance.popper,e.styles),function QY(e,r){Object.keys(r).forEach(function(t){!1!==r[t]?e.setAttribute(t,r[t]):e.removeAttribute(t)})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Y0(e.arrowElement,e.arrowStyles),e},onLoad:function JY(e,r,t,n,i){var a=w_(i,r,e,t.positionFixed),o=b_(t.placement,a,r,e,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return r.setAttribute("x-placement",o),Y0(r,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},pj={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:vj},s4=function(){function e(r,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};NY(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=HY(this.update.bind(this)),this.options=jr({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=r&&r.jquery?r[0]:r,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(jr({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=jr({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return jr({name:o},n.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&f_(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return BY(e,[{key:"update",value:function(){return GY.call(this)}},{key:"destroy",value:function(){return WY.call(this)}},{key:"enableEventListeners",value:function(){return $Y.call(this)}},{key:"disableEventListeners",value:function(){return ZY.call(this)}}]),e}();s4.Utils=("undefined"!=typeof window?window:global).PopperUtils,s4.placements=z_,s4.Defaults=pj;var gj=s4,mj=["popperViewRef"];function yj(e,r){1&e&&(k(0,"div",5),Ya(1),M()),2&e&&E("innerHTML",S().text,vi)}function _j(e,r){1&e&&(k(0,"div",6),Ya(1,1),M())}var P_=["*","*"],mo=function(){var e=h(function r(){v(this,r)});return e.CLICK="click",e.HOVER="hover",e.MOUSEDOWN="mousedown",e.NONE="none",e}(),O_=function(){var e=h(function r(){v(this,r)});return e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.TopStart="top-start",e.BottomStart="bottom-start",e.LeftStart="left-start",e.RightStart="right-start",e.TopEnd="top-end",e.BottomEnd="bottom-end",e.LeftEnd="left-end",e.RightEnd="right-end",e.Auto="auto",e.AutoStart="auto-start",e.AutoEnd="auto-end",e}(),Cj=function(){var e=function(){function r(t,n,i,a){v(this,r),this.elemRef=t,this.renderer=n,this.viewRef=i,this.CDR=a,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:O_.Auto,boundariesElement:"",trigger:mo.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new ie,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}return h(r,[{key:"onMouseOver",value:function(){this.isMouseOver=!0}},{key:"showOnLeave",value:function(){this.isMouseOver=!1,(this.popperOptions.trigger===mo.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}},{key:"onDocumentResize",value:function(){this.update()}},{key:"ngOnDestroy",value:function(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}},{key:"clean",value:function(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}},{key:"show",value:function(){if(this.referenceObject){var n=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);n&&this.elemRef.nativeElement.parentNode!==n&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),n.appendChild(this.elemRef.nativeElement));var i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);var a=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&a&&(i.modifiers.preventOverflow={boundariesElement:a}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new gj(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}}},{key:"determineArrowColor",value:function(){var n=this;["background-color","backgroundColor"].some(function(i){return!(!n.popperOptions.styles||!n.popperOptions.styles.hasOwnProperty(i)||(n.arrowColor=n.popperOptions.styles[i],0))})}},{key:"update",value:function(){this.popperInstance&&this.popperInstance.update()}},{key:"scheduleUpdate",value:function(){this.popperInstance&&this.popperInstance.scheduleUpdate()}},{key:"hide",value:function(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}},{key:"toggleVisibility",value:function(n){n?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}},{key:"extractAppliedClassListExpr",value:function(n){if(!n||"string"!=typeof n)return null;try{return n.replace(/ /,"").split(",").reduce(function(i,a){return i[a]=!0,i},{})}catch(i){return null}}},{key:"clearGlobalResize",value:function(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Me),y(bn),y(cr),y(xn))},e.\u0275cmp=ct({type:e,selectors:[["popper-content"]],viewQuery:function(t,n){var i;1&t&&Hr(mj,5),2&t&&Cr(i=br())&&(n.popperViewRef=i.first)},hostBindings:function(t,n){1&t&&ae("mouseover",function(){return n.onMouseOver()})("mouseleave",function(){return n.showOnLeave()})},ngContentSelectors:P_,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,n){1&t&&(os(P_),k(0,"div",0,1),P(2,yj,2,1,"div",2),P(3,_j,2,0,"div",3),Ce(4,"div",4),M()),2&t&&(Vi("display",n.displayType)("opacity",n.opacity),We("ngxp__container",!n.popperOptions.disableDefaultStyling)("ngxp__animation",!n.popperOptions.disableAnimation),E("ngStyle",n.popperOptions.styles)("ngClass",n.extractAppliedClassListExpr(n.popperOptions.applyClass)),zn("aria-hidden",n.ariaHidden)("aria-describedby",n.popperOptions.ariaDescribe||null)("role",n.popperOptions.ariaRole),w(2),E("ngIf",n.text),w(1),E("ngIf",!n.text),w(1),Vi("border-color",n.arrowColor),We("__force-arrow",n.arrowColor),E("ngClass",n.extractAppliedClassListExpr(n.popperOptions.applyArrowClass)))},directives:[$a,ca,Qt],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),e}(),gc=function(){function e(r,t,n,i,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};v(this,e),this.viewContainerRef=r,this.changeDetectorRef=t,this.resolver=n,this.elementRef=i,this.renderer=a,this.popperDefaults=o,this.popperContentClass=Cj,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new ie,this.popperOnHidden=new ie,this.popperOnUpdate=new ie,e.baseOptions=Object.assign({},e.baseOptions,this.popperDefaults)}return h(e,[{key:"hideOnClickOutsideHandler",value:function(t){this.disabled||!this.hideOnClickOutside||t.srcElement&&t.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(t.srcElement)||this.scheduledHide(t,this.hideTimeout)}},{key:"hideOnScrollHandler",value:function(t){this.disabled||!this.hideOnScroll||this.scheduledHide(t,this.hideTimeout)}},{key:"applyTriggerListeners",value:function(){switch(this.showTrigger){case mo.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case mo.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case mo.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==mo.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}},{key:"ngOnInit",value:function(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){var t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;var n=this.popperContent;n.referenceObject=this.getRefElement(),this.setContentProperties(n),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}},{key:"ngOnChanges",value:function(t){t.popperDisabled&&t.popperDisabled.currentValue&&this.hide(),t.content&&!t.content.firstChange&&"string"==typeof t.content.currentValue&&(this.popperContent.text=t.content.currentValue),t.applyClass&&!t.applyClass.firstChange&&"string"==typeof t.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=t.applyClass.currentValue),t.applyArrowClass&&!t.applyArrowClass.firstChange&&"string"==typeof t.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=t.applyArrowClass.currentValue)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(t){return t.unsubscribe&&t.unsubscribe()}),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}},{key:"toggle",value:function(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}},{key:"show",value:function(){if(this.shown)this.overrideHideTimeout();else{this.shown=!0;var t=this.popperContent,n=this.getRefElement();t.referenceObject!==n&&(t.referenceObject=n),this.setContentProperties(t),t.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}}},{key:"hide",value:function(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}},{key:"scheduledShow",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(function(){t.show(),t.applyChanges()},n))}},{key:"scheduledHide",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hideTimeout;this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(function(){var a=n?n.toElement:null,o=!!t.popperContent.popperViewRef&&t.popperContent.popperViewRef.nativeElement;!o||o===a||o.contains(a)||t.content.isMouseOver||(t.hide(),t.applyChanges())},i))}},{key:"getRefElement",value:function(){return this.targetElement||this.viewContainerRef.element.nativeElement}},{key:"applyChanges",value:function(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}},{key:"setDefaults",value:function(){this.showDelay=void 0===this.showDelay?e.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?e.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?e.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?e.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?e.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?e.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?e.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},e.baseOptions.styles):this.styles}},{key:"clearEventListeners",value:function(){this.eventListeners.forEach(function(t){t&&"function"==typeof t&&t()}),this.eventListeners.length=0}},{key:"clearGlobalEventListeners",value:function(){this.globalEventListeners.forEach(function(t){t&&"function"==typeof t&&t()}),this.globalEventListeners.length=0}},{key:"overrideShowTimeout",value:function(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}},{key:"overrideHideTimeout",value:function(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}},{key:"constructContent",value:function(){var t=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(t),this.popperContentRef.instance}},{key:"setContentProperties",value:function(t){t.popperOptions=e.assignDefined(t.popperOptions,e.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),t.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(t.onHidden.subscribe(this.hide.bind(this)))}},{key:"getScrollParent",value:function(t){var i=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t?"visible"!==i&&"hidden"!==i&&t.scrollHeight>=t.clientHeight?t:this.getScrollParent(t.parentNode)||document:null}},{key:"onPopperUpdate",value:function(t){this.popperOnUpdate.emit(t)}}],[{key:"assignDefined",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(var o=0,s=i;o<s.length;o++)for(var l=s[o],c=0,u=Object.keys(l);c<u.length;c++){var d=u[c],f=l[d];void 0!==f&&(t[d]=f)}return t}}]),e}();gc.\u0275fac=function(r){return new(r||gc)(y(cr),y(xn),y(Ci),y(Me),y(bn),y("popperDefaults"))},gc.\u0275dir=U({type:gc,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Mt]}),gc.baseOptions={showDelay:0,placement:O_.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:mo.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};var bj=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"ngDoBootstrap",value:function(){}}],[{key:"forRoot",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[{provide:"popperDefaults",useValue:n}]}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[wr]]}),e}(),wj=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[],imports:[[wr,h0,m1,bj.forRoot()]]}),e}(),G0=function(){var e=function(){function r(t){v(this,r),this.store=t}return h(r,[{key:"instant",value:function(n){return this.store.selectSnapshot(function(o){return o.common.resources})[n]||n}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(pt))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),kj=h(function e(){v(this,e)}),si=function(){function e(r){v(this,e),this.hubService=r}return h(e,[{key:"loadPolygonTypes",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,t.patchState({isLoading:!0}),s.next=4,this.hubService.getPolygonTypes(n.payload.applicationId);case 4:t.patchState({polygonTypes:s.sent});case 6:return s.prev=6,t.patchState({isLoading:!1}),s.finish(6);case 9:case"end":return s.stop()}},i,this,[[0,,6,9]])}))}}],[{key:"getTypes",value:function(t){return t.polygonTypes}}]),e}();si.\u0275fac=function(r){return new(r||si)(T(pn))},si.\u0275prov=H({token:si,factory:si.\u0275fac}),I([xt(uc),b("design:type",Function),b("design:paramtypes",[Object,uc]),b("design:returntype",Promise)],si.prototype,"loadPolygonTypes",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[kj]),b("design:returntype",void 0)],si,"getTypes",null),si=I([Vs({name:"polygonType",defaults:{polygonTypes:[],isLoading:!1}}),b("design:paramtypes",[pn])],si);var $i=function(){return function(e){e[e.RelatedMaterials=0]="RelatedMaterials",e[e.ProductSelector=1]="ProductSelector",e[e.Dimensions=2]="Dimensions",e[e.CategoryLinks=3]="CategoryLinks",e[e.Properties=4]="Properties",e[e.Favorites=5]="Favorites"}($i||($i={})),$i}(),nn=function(){function e(r,t,n,i){v(this,e),this.store=r,this.actions=t,this.dimensionsService=n,this.cd=i,this.apiKey=null,this.languageCode=null,this.addToCart=new ie,this.addToWishlist=new ie,this.selectedPolygonChange=new ie,this.isCalculatingChange=new ie,this.calculateFinished=new ie,this.openMeasureDocs=new ie,this.activity=new ie,this.setDimensions=function(a){var o=this.store.selectSnapshot(pe.getSelectedPolygon);this.dimensionsService.setDimensions(a,o,this.cd)}.bind(this)}return h(e,[{key:"ngOnInit",value:function(){var t=this;this.store.dispatch(new n0(this.apiKey)),this.store.dispatch(new $1(this.languageCode||"NL")),this.actions.pipe(lo(ai)).subscribe(function(n){t.selectedPolygonChange.emit(n.payload.polygon)}),this.actions.pipe(lo(Ca)).subscribe(function(n){t.activity.emit(n.payload)}),this.actions.pipe(lo(vy)).subscribe(function(n){t.calculateFinished.emit(n.payload)}),this.isCalculating$.subscribe(function(n){return t.isCalculatingChange.emit(n)})}},{key:"ngOnChanges",value:function(t){!t.config||!this.config||(null==this.config.webshopHandlesSamples&&(this.config.webshopHandlesSamples=!1),this.config.productType||(this.config.productType=Bs.ConfigurableProduct),this.initializeConfigurator(this.config))}},{key:"onAddToCart",value:function(){return be(this,void 0,void 0,R().mark(function t(){var n,a;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.store.dispatch(new c0).toPromise();case 2:n=this.store.selectSnapshot(pe.getSelectedPolygon),this.store.dispatch(new Ca({polygon:n,kind:Di.AddToCart})),a=this.store.selectSnapshot(function(l){return l.project.configuratorProject}),this.addToCart.emit(a);case 7:case"end":return s.stop()}},t,this)}))}},{key:"onAddToWishlist",value:function(){return be(this,void 0,void 0,R().mark(function t(){var n,a;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.store.dispatch(new c0).toPromise();case 2:n=this.store.selectSnapshot(pe.getSelectedPolygon),this.store.dispatch(new Ca({polygon:n,kind:Di.AddToCart})),a=this.store.selectSnapshot(function(l){return l.project.configuratorProject}),this.addToWishlist.emit(a);case 7:case"end":return s.stop()}},t,this)}))}},{key:"onSelectFavorite",value:function(t){this.store.dispatch(new d0({categoryFavorite:t}))}},{key:"onOpenMeasureDocs",value:function(){var t=this,i=this.store.selectSnapshot(pe.getSelectedPolygon);this.openMeasureDocs.emit({polygon:i,callback:function(o,s){var l=t.store.selectSnapshot(pe.getSelectedPolygon);t.dimensionsService.setDimensions({height:s,width:o},l,t.cd)}})}},{key:"initializeConfigurator",value:function(t){return be(this,void 0,void 0,R().mark(function n(){return R().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.store.dispatch(new $1(t.languageCode||this.languageCode||"NL")).toPromise();case 2:return a.next=4,this.store.dispatch(new r0(t)).toPromise();case 4:return a.next=6,this.store.dispatch(new fy).toPromise();case 6:case"end":return a.stop()}},n,this)}))}}]),e}();function F_(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Js(r),i=A6(r),a=i7(r),o=a.args,s=a.keys;if(0===o.length)return Ai([],n);var l=new de(Mj(o,n,s?function(c){return a7(s,c)}:za));return i?l.pipe(Pd(i)):l}function Mj(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:za;return function(n){I_(r,function(){for(var i=e.length,a=new Array(i),o=i,s=i,l=function(d){I_(r,function(){var f=Ai(e[d],r),p=!1;f.subscribe(new Nt(n,function(g){a[d]=g,p||(p=!0,s--),s||n.next(t(a.slice()))},function(){--o||n.complete()}))},n)},c=0;c<i;c++)l(c)},n)}}function I_(e,r,t){e?zi(t,e,r):r()}nn.\u0275fac=function(r){return new(r||nn)(y(pt),y(R1),y(i4),y(xn))},nn.\u0275dir=U({type:nn,inputs:{apiKey:["api-key","apiKey"],languageCode:["language-code","languageCode"],config:"config",setDimensions:"setDimensions"},outputs:{addToCart:"addToCart",addToWishlist:"addToWishlist",selectedPolygonChange:"selectedPolygonChange",isCalculatingChange:"isCalculatingChange",calculateFinished:"calculateFinished",openMeasureDocs:"openMeasureDocs",activity:"activity"},features:[Mt]}),I([et(Ee.getLanguageCode),b("design:type",de)],nn.prototype,"languageCode$",void 0),I([et(Ee.getOptions),b("design:type",de)],nn.prototype,"options$",void 0),I([et(Ee.getSelectedApplication),b("design:type",de)],nn.prototype,"selectedApplication$",void 0),I([et(Ee.getSelectedMaterial),b("design:type",de)],nn.prototype,"selectedMaterial$",void 0),I([et(pe.polygonPrice),b("design:type",de)],nn.prototype,"totalPrice$",void 0),I([et(pe.polygonPriceBeforePromotion),b("design:type",de)],nn.prototype,"priceBeforePromotions$",void 0),I([et(pe.getProperties),b("design:type",de)],nn.prototype,"properties$",void 0),I([et(pe.getMessages),b("design:type",de)],nn.prototype,"messages$",void 0),I([et(pe.getSelectedPolygon),b("design:type",de)],nn.prototype,"selectedPolygon$",void 0),I([et(pe.getVisuals),b("design:type",de)],nn.prototype,"visuals$",void 0),I([et(Ee.getAttachments),b("design:type",de)],nn.prototype,"attachments$",void 0),I([et(Ee.getIsLoading),b("design:type",de)],nn.prototype,"isLoading$",void 0),I([et(Ee.getSettings),b("design:type",de)],nn.prototype,"settings$",void 0),I([et(si.getTypes),b("design:type",de)],nn.prototype,"polygonTypes$",void 0),I([et(pe.isCalculating),b("design:type",de)],nn.prototype,"isCalculating$",void 0),I([et(tn.getModels),b("design:type",de)],nn.prototype,"models$",void 0),I([et(pe.measureDocumentation),b("design:type",de)],nn.prototype,"measureDocumentation$",void 0);var L_=wo(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Sj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dj;return un(function(r,t){var n=!1;r.subscribe(new Nt(t,function(i){n=!0,t.next(i)},function(){return n?t.complete():t.error(e())}))})}function Dj(){return new L_}var W0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Accordion] Set Width",e}(),q0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Accordion] Set Height",e}(),$0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[Accordion] Set ProductCategoryId",e}(),K0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[RelatedMaterials] Load Materials",e}(),Z0=function(){var e=h(function r(t){v(this,r),this.payload=t});return e.type="[RelatedMaterials] Load Show More Materials",e}(),Mn=function(){function e(){v(this,e)}return h(e,[{key:"setWidth",value:function(t,n){n.payload.width&&t.patchState({width:n.payload.width})}},{key:"setHeight",value:function(t,n){n.payload.height&&t.patchState({height:n.payload.height})}},{key:"setProductCategoryId",value:function(t,n){t.patchState({productCategoryId:n.payload.productCategoryId})}}],[{key:"getWidth",value:function(t){return t.width}},{key:"getHeight",value:function(t){return t.height}},{key:"getProductCategoryId",value:function(t){return t.productCategoryId}}]),e}();Mn.\u0275fac=function(r){return new(r||Mn)},Mn.\u0275prov=H({token:Mn,factory:Mn.\u0275fac}),I([xt(W0),b("design:type",Function),b("design:paramtypes",[Object,W0]),b("design:returntype",void 0)],Mn.prototype,"setWidth",null),I([xt(q0),b("design:type",Function),b("design:paramtypes",[Object,q0]),b("design:returntype",void 0)],Mn.prototype,"setHeight",null),I([xt($0),b("design:type",Function),b("design:paramtypes",[Object,$0]),b("design:returntype",void 0)],Mn.prototype,"setProductCategoryId",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],Mn,"getWidth",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],Mn,"getHeight",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],Mn,"getProductCategoryId",null),Mn=I([Vs({name:"accordion",defaults:{width:null,height:null,productCategoryId:null}})],Mn);var l4=h(function e(){v(this,e)}),En=function(){function e(r,t){v(this,e),this.hubService=r,this.store=t}return h(e,[{key:"loadMaterials",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,o,s,l;return R().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=n.payload.material,o=n.payload.applicationId,t.patchState({isLoading:!0}),s={filter:{categoryId:2001,pageSize:12,pageIndex:0,description:a.description,includeAttachments:!0}},u.prev=4,u.next=7,this.hubService.browseMaterials(s,o);case 7:t.patchState({materials:(l=u.sent).items}),t.patchState({itemCount:l.totalItemCount});case 10:return u.prev=10,t.patchState({isLoading:!1}),u.finish(10);case 13:case"end":return u.stop()}},i,this,[[4,,10,13]])}))}},{key:"loadShowMoreMaterials",value:function(t,n){return be(this,void 0,void 0,R().mark(function i(){var a,s,l;return R().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=this.store.selectSnapshot(function(f){return f.common.selectedMaterial}),!t.getState().showMoreMaterials.find(function(f){return f.description===a.description})){d.next=4;break}return d.abrupt("return");case 4:return t.patchState({showMoreIsLoading:!0}),s=this.store.selectSnapshot(function(f){return f.common.selectedApplicationId}),l={filter:{categoryId:2001,pageSize:n.payload.pageSize,pageIndex:0,description:a.description,includeAttachments:n.payload.includeAttachments}},d.prev=7,d.next=10,this.hubService.browseMaterials(l,s);case 10:t.patchState({showMoreMaterials:d.sent.items});case 12:return d.prev=12,t.patchState({showMoreIsLoading:!1}),d.finish(12);case 15:case"end":return d.stop()}},i,this,[[7,,12,15]])}))}}],[{key:"showMoreMaterials",value:function(t){return t.showMoreMaterials}},{key:"itemCount",value:function(t){return t.itemCount}},{key:"multipleRelatedMaterials",value:function(t){return t&&t.itemCount>1}},{key:"showMoreIsLoading",value:function(t){return t.showMoreIsLoading}}]),e}();En.\u0275fac=function(r){return new(r||En)(T(pn),T(pt))},En.\u0275prov=H({token:En,factory:En.\u0275fac}),I([xt(K0),b("design:type",Function),b("design:paramtypes",[Object,K0]),b("design:returntype",Promise)],En.prototype,"loadMaterials",null),I([xt(Z0),b("design:type",Function),b("design:paramtypes",[Object,Z0]),b("design:returntype",Promise)],En.prototype,"loadShowMoreMaterials",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[l4]),b("design:returntype",void 0)],En,"showMoreMaterials",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[l4]),b("design:returntype",Number)],En,"itemCount",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[l4]),b("design:returntype",Boolean)],En,"multipleRelatedMaterials",null),I([Ve(),b("design:type",Function),b("design:paramtypes",[l4]),b("design:returntype",Boolean)],En,"showMoreIsLoading",null),En=I([Vs({name:"relatedMaterials",defaults:{itemCount:0,materials:[],showMoreMaterials:[],isLoading:!1,showMoreIsLoading:!1}}),b("design:paramtypes",[pn,pt])],En);var Q0=function(){function e(){v(this,e)}return h(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),X0=function(e){_(t,e);var r=z(t);function t(n,i,a,o){var s;return v(this,t),(s=r.call(this)).component=n,s.viewContainerRef=i,s.injector=a,s.componentFactoryResolver=o,s}return h(t)}(Q0),H_=function(e){_(t,e);var r=z(t);function t(n,i,a){var o;return v(this,t),(o=r.call(this)).templateRef=n,o.viewContainerRef=i,o.context=a,o}return h(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=a,L(O(t.prototype),"attach",this).call(this,i)}},{key:"detach",value:function(){return this.context=void 0,L(O(t.prototype),"detach",this).call(this)}}]),t}(Q0),Ej=function(e){_(t,e);var r=z(t);function t(n){var i;return v(this,t),(i=r.call(this)).element=n instanceof Me?n.nativeElement:n,i}return h(t)}(Q0),J0=function(){function e(){v(this,e),this._isDisposed=!1,this.attachDomPortal=null}return h(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof X0?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof H_?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Ej?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),Tj=function(e){_(t,e);var r=z(t);function t(n,i,a,o,s){var l,c;return v(this,t),(c=r.call(this)).outletElement=n,c._componentFactoryResolver=i,c._appRef=a,c._defaultInjector=o,c.attachDomPortal=function(u){var d=u.element,f=c._document.createComment("dom-portal");d.parentNode.insertBefore(f,d),c.outletElement.appendChild(d),c._attachedPortal=u,L((l=Ae(c),O(t.prototype)),"setDisposeFn",l).call(l,function(){f.parentNode&&f.parentNode.replaceChild(d,f)})},c._document=s,c}return h(t,[{key:"attachComponentPortal",value:function(i){var l,a=this,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);return i.viewContainerRef?(l=i.viewContainerRef.createComponent(s,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector),this.setDisposeFn(function(){return l.destroy()})):(l=s.create(i.injector||this._defaultInjector),this._appRef.attachView(l.hostView),this.setDisposeFn(function(){a._appRef.detachView(l.hostView),l.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(l)),this._attachedPortal=i,l}},{key:"attachTemplatePortal",value:function(i){var a=this,o=i.viewContainerRef,s=o.createEmbeddedView(i.templateRef,i.context);return s.rootNodes.forEach(function(l){return a.outletElement.appendChild(l)}),s.detectChanges(),this.setDisposeFn(function(){var l=o.indexOf(s);-1!==l&&o.remove(l)}),this._attachedPortal=i,s}},{key:"dispose",value:function(){L(O(t.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(i){return i.hostView.rootNodes[0]}}]),t}(J0),c4=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o){var s,l;return v(this,n),(l=t.call(this))._componentFactoryResolver=i,l._viewContainerRef=a,l._isInitialized=!1,l.attached=new ie,l.attachDomPortal=function(c){var u=c.element,d=l._document.createComment("dom-portal");c.setAttachedHost(Ae(l)),u.parentNode.insertBefore(d,u),l._getRootNode().appendChild(u),l._attachedPortal=c,L((s=Ae(l),O(n.prototype)),"setDisposeFn",s).call(s,function(){d.parentNode&&d.parentNode.replaceChild(u,d)})},l._document=o,l}return h(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(a){this.hasAttached()&&!a&&!this._isInitialized||(this.hasAttached()&&L(O(n.prototype),"detach",this).call(this),a&&L(O(n.prototype),"attach",this).call(this,a),this._attachedPortal=a||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){L(O(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(a){a.setAttachedHost(this);var o=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,l=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),c=o.createComponent(l,o.length,a.injector||o.injector);return o!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),L(O(n.prototype),"setDisposeFn",this).call(this,function(){return c.destroy()}),this._attachedPortal=a,this._attachedRef=c,this.attached.emit(c),c}},{key:"attachTemplatePortal",value:function(a){var o=this;a.setAttachedHost(this);var s=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context);return L(O(n.prototype),"setDisposeFn",this).call(this,function(){return o._viewContainerRef.clear()}),this._attachedPortal=a,this._attachedRef=s,this.attached.emit(s),s}},{key:"_getRootNode",value:function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode}}]),n}(J0);return e.\u0275fac=function(t){return new(t||e)(y(Ci),y(cr),y(Ze))},e.\u0275dir=U({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ee]}),e}(),V_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}(),R_=LA(),zj=function(){function e(r,t){v(this,e),this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return h(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=vn(-this._previousScrollPosition.left),t.style.top=vn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,i=t.style,a=this._document.body.style,o=i.scrollBehavior||"",s=a.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),R_&&(i.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),R_&&(i.scrollBehavior=o,a.scrollBehavior=s)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var n=this._document.body,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}}]),e}(),Aj=function(){function e(r,t,n,i){var a=this;v(this,e),this._scrollDispatcher=r,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return h(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var i=t._viewportRuler.getViewportScrollPosition().top;Math.abs(i-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),N_=function(){function e(){v(this,e)}return h(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function e6(e,r){return r.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function B_(e,r){return r.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var Pj=function(){function e(r,t,n,i){v(this,e),this._scrollDispatcher=r,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}return h(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var i=t._overlayRef.overlayElement.getBoundingClientRect(),a=t._viewportRuler.getViewportSize(),o=a.width,s=a.height;e6(i,[{width:o,height:s,bottom:s,right:o,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Oj=function(){var e=h(function r(t,n,i,a){var o=this;v(this,r),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new N_},this.close=function(s){return new Aj(o._scrollDispatcher,o._ngZone,o._viewportRuler,s)},this.block=function(){return new zj(o._viewportRuler,o._document)},this.reposition=function(s){return new Pj(o._scrollDispatcher,o._viewportRuler,o._ngZone,s)},this._document=a});return e.\u0275fac=function(t){return new(t||e)(T(PP),T(Fd),T(Xe),T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Y_=h(function e(r){if(v(this,e),this.scrollStrategy=new N_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r)for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];void 0!==r[a]&&(this[a]=r[a])}}),Fj=h(function e(r,t){v(this,e),this.connectionPair=r,this.scrollableViewProperties=t}),u4=function(){function e(r,t,n,i,a,o,s,l,c){var u=this;v(this,e),this._portalOutlet=r,this._host=t,this._pane=n,this._config=i,this._ngZone=a,this._keyboardDispatcher=o,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new _e,this._attachments=new _e,this._detachments=new _e,this._locationChanges=$.EMPTY,this._backdropClickHandler=function(d){return u._backdropClick.next(d)},this._backdropTransitionendHandler=function(d){u._disposeBackdrop(d.target)},this._keydownEvents=new _e,this._outsidePointerEvents=new _e,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}return h(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(t){var n=this,i=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Tr(1)).subscribe(function(){n.hasAttached()&&n.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return n.dispose()})),this._outsideClickDispatcher.add(this),i}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}}},{key:"dispose",value:function(){var t,n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=vn(this._config.width),t.height=vn(this._config.height),t.minWidth=vn(this._config.minWidth),t.minHeight=vn(this._config.minHeight),t.maxWidth=vn(this._config.maxWidth),t.maxHeight=vn(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"":"none"}},{key:"_attachBackdrop",value:function(){var t=this,n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t=this,n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",t._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){console.log("fallback"),t._disposeBackdrop(n)},500)}))}},{key:"_toggleClasses",value:function(t,n,i){var o,s,a=W5(n||[]).filter(function(l){return!!l});a.length&&(i?(o=t.classList).add.apply(o,se(a)):(s=t.classList).remove.apply(s,se(a)))}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular(function(){var n=t._ngZone.onStable.pipe(ht(ko(t._attachments,t._detachments))).subscribe(function(){(!t._pane||!t._host||0===t._pane.children.length)&&(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._host.remove()),n.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}},{key:"_disposeBackdrop",value:function(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),e}(),j_=function(){var e=function(){function r(t,n){v(this,r),this._platform=n,this._document=t}return h(r,[{key:"ngOnDestroy",value:function(){var n;null===(n=this._containerElement)||void 0===n||n.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||U5())for(var i=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),a=0;a<i.length;a++)i[a].remove();var o=this._document.createElement("div");o.classList.add(n),U5()?o.setAttribute("platform","test"):this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._containerElement=o}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ze),T(Za))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),U_="cdk-overlay-connected-position-bounding-box",Ij=/([A-Za-z%]+)$/,Lj=function(){function e(r,t,n,i,a){v(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new _e,this._resizeSubscription=$.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}return h(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){var n=this;this._validatePositions(),t.hostElement.classList.add(U_),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){n._isInitialRender=!0,n.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var s,c,t=this._originRect,n=this._overlayRect,i=this._viewportRect,a=this._containerRect,o=[],l=lt(this._preferredPositions);try{for(l.s();!(c=l.n()).done;){var u=c.value,d=this._getOriginPoint(t,a,u),f=this._getOverlayPoint(d,n,u),p=this._getOverlayFit(f,n,i,u);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(u,d);this._canFitWithFlexibleDimensions(p,f,i)?o.push({position:u,origin:d,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(d,u)}):(!s||s.overlayFit.visibleArea<p.visibleArea)&&(s={overlayFit:p,overlayPoint:f,originPoint:d,position:u,overlayRect:n})}}catch(V){l.e(V)}finally{l.f()}if(o.length){var D,g=null,m=-1,C=lt(o);try{for(C.s();!(D=C.n()).done;){var x=D.value,F=x.boundingBoxRect.width*x.boundingBoxRect.height*(x.position.weight||1);F>m&&(m=F,g=x)}}catch(V){C.e(V)}finally{C.f()}return this._isPushed=!1,void this._applyPosition(g.position,g.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&yo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n,i){var a,l;if("center"==i.originX)a=t.left+t.width/2;else{var o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;a="start"==i.originX?o:s}return n.left<0&&(a-=n.left),l="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,n.top<0&&(l-=n.top),{x:a,y:l}}},{key:"_getOverlayPoint",value:function(t,n,i){var a;return a="center"==i.overlayX?-n.width/2:"start"===i.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+a,y:t.y+("center"==i.overlayY?-n.height/2:"top"==i.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,i,a){var o=W_(n),s=t.x,l=t.y,c=this._getOffset(a,"x"),u=this._getOffset(a,"y");c&&(s+=c),u&&(l+=u);var p=0-l,g=l+o.height-i.height,m=this._subtractOverflows(o.width,0-s,s+o.width-i.width),C=this._subtractOverflows(o.height,p,g),D=m*C;return{visibleArea:D,isCompletelyWithinViewport:o.width*o.height===D,fitsInViewportVertically:C===o.height,fitsInViewportHorizontally:m==o.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,i){if(this._hasFlexibleDimensions){var a=i.bottom-n.y,o=i.right-n.x,s=G_(this._overlayRef.getConfig().minHeight),l=G_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=a)&&(t.fitsInViewportHorizontally||null!=l&&l<=o)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var d,f,a=W_(n),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),l=Math.max(t.y+a.height-o.height,0),c=Math.max(o.top-i.top-t.y,0),u=Math.max(o.left-i.left-t.x,0);return this._previousPushAmount={x:d=a.width<=o.width?u||-s:t.x<this._viewportMargin?o.left-i.left-t.x:0,y:f=a.height<=o.height?c||-l:t.y<this._viewportMargin?o.top-i.top-t.y:0},{x:t.x+d,y:t.y+f}}},{key:"_applyPosition",value:function(t,n){if(this._setTransformOrigin(t),this._setOverlayElementStyles(n,t),this._setBoundingBoxStyles(n,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var i=this._getScrollVisibility(),a=new Fj(t,i);this._positionChanges.next(a)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var i,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),a=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<n.length;o++)n[o].style.transformOrigin="".concat(i," ").concat(a)}}},{key:"_calculateBoundingBoxRect",value:function(t,n){var o,s,l,p,g,m,i=this._viewportRect,a=this._isRtl();if("top"===n.overlayY)o=i.height-(s=t.y)+this._viewportMargin;else if("bottom"===n.overlayY)o=i.height-(l=i.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(i.bottom-t.y+i.top,t.y),u=this._lastBoundingBoxSize.height;s=t.y-c,(o=2*c)>u&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-u/2)}if("end"===n.overlayX&&!a||"start"===n.overlayX&&a)m=i.width-t.x+this._viewportMargin,p=t.x-this._viewportMargin;else if("start"===n.overlayX&&!a||"end"===n.overlayX&&a)g=t.x,p=i.right-t.x;else{var C=Math.min(i.right-t.x+i.left,t.x),D=this._lastBoundingBoxSize.width;g=t.x-C,(p=2*C)>D&&!this._isInitialRender&&!this._growAfterOpen&&(g=t.x-D/2)}return{top:s,left:g,bottom:l,right:m,width:p,height:o}}},{key:"_setBoundingBoxStyles",value:function(t,n){var i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;a.height=vn(i.height),a.top=vn(i.top),a.bottom=vn(i.bottom),a.width=vn(i.width),a.left=vn(i.left),a.right=vn(i.right),a.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",a.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(a.maxHeight=vn(o)),s&&(a.maxWidth=vn(s))}this._lastBoundingBoxSize=i,yo(this._boundingBox.style,a)}},{key:"_resetBoundingBoxStyles",value:function(){yo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){yo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var i={},a=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(a){var l=this._viewportRuler.getViewportScrollPosition();yo(i,this._getExactOverlayY(n,t,l)),yo(i,this._getExactOverlayX(n,t,l))}else i.position="static";var c="",u=this._getOffset(n,"x"),d=this._getOffset(n,"y");u&&(c+="translateX(".concat(u,"px) ")),d&&(c+="translateY(".concat(d,"px)")),i.transform=c.trim(),s.maxHeight&&(a?i.maxHeight=vn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(a?i.maxWidth=vn(s.maxWidth):o&&(i.maxWidth="")),yo(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,n,i){var a={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?a.bottom="".concat(this._document.documentElement.clientHeight-(o.y+this._overlayRect.height),"px"):a.top=vn(o.y),a}},{key:"_getExactOverlayX",value:function(t,n,i){var a={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?a.right="".concat(this._document.documentElement.clientWidth-(o.x+this._overlayRect.width),"px"):a.left=vn(o.x),a}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(a){return a.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:B_(t,i),isOriginOutsideView:e6(t,i),isOverlayClipped:B_(n,i),isOverlayOutsideView:e6(n,i)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce(function(o,s){return o-Math.max(s,0)},t)}},{key:"_getNarrowedViewportRect",value:function(){var t=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+n-this._viewportMargin,width:t-2*this._viewportMargin,height:n-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,n){return"x"===n?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(t){var n=this;this._pane&&W5(t).forEach(function(i){""!==i&&-1===n._appliedPanelClasses.indexOf(i)&&(n._appliedPanelClasses.push(i),n._pane.classList.add(i))})}},{key:"_clearPanelClasses",value:function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach(function(n){t._pane.classList.remove(n)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof Me)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();var n=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+n,height:i,width:n}}}]),e}();function yo(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e}function G_(e){if("number"!=typeof e&&null!=e){var t=Be(e.split(Ij),2),i=t[1];return i&&"px"!==i?null:parseFloat(t[0])}return e||null}function W_(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var q_="cdk-global-overlay-wrapper",Hj=function(){function e(){v(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return h(e,[{key:"attach",value:function(t){var n=t.getConfig();this._overlayRef=t,this._width&&!n.width&&t.updateSize({width:this._width}),this._height&&!n.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(q_),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),a=i.width,o=i.height,s=i.maxWidth,l=i.maxHeight,c=!("100%"!==a&&"100vw"!==a||s&&"100%"!==s&&"100vw"!==s),u=!("100%"!==o&&"100vh"!==o||l&&"100%"!==l&&"100vh"!==l);t.position=this._cssPosition,t.marginLeft=c?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,c?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(q_),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Vj=function(){var e=function(){function r(t,n,i,a){v(this,r),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a}return h(r,[{key:"global",value:function(){return new Hj}},{key:"flexibleConnectedTo",value:function(n){return new Lj(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Fd),T(Ze),T(Za),T(j_))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),$_=function(){var e=function(){function r(t){v(this,r),this._attachedOverlays=[],this._document=t}return h(r,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Ze))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rj=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a){var o;return v(this,n),(o=t.call(this,i))._ngZone=a,o._keydownListener=function(s){for(var l=o._attachedOverlays,c=l.length-1;c>-1&&!(l[c]._keydownEvents.observers.length>0&&"break"===function(){var d=l[c]._keydownEvents;return o._ngZone?o._ngZone.run(function(){return d.next(s)}):d.next(s),"break"}());c--);},o}return h(n,[{key:"add",value:function(a){var o=this;L(O(n.prototype),"add",this).call(this,a),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return o._document.body.addEventListener("keydown",o._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}($_);return e.\u0275fac=function(t){return new(t||e)(T(Ze),T(Xe,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Nj=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o){var s;return v(this,n),(s=t.call(this,i))._platform=a,s._ngZone=o,s._cursorStyleIsSet=!1,s._pointerDownListener=function(l){s._pointerDownEventTarget=ks(l)},s._clickListener=function(l){var c=ks(l),u="click"===l.type&&s._pointerDownEventTarget?s._pointerDownEventTarget:c;s._pointerDownEventTarget=null;for(var d=s._attachedOverlays.slice(),f=function(C){var D=d[C];if(D._outsidePointerEvents.observers.length<1||!D.hasAttached())return"continue";if(D.overlayElement.contains(c)||D.overlayElement.contains(u))return"break";var x=D._outsidePointerEvents;s._ngZone?s._ngZone.run(function(){return x.next(l)}):x.next(l)},p=d.length-1;p>-1;p--){var g=f(p);if("continue"!==g&&"break"===g)break}},s}return h(n,[{key:"add",value:function(a){var o=this;if(L(O(n.prototype),"add",this).call(this,a),!this._isAttached){var s=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return o._addEventListeners(s)}):this._addEventListeners(s),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=s.style.cursor,s.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0),a.removeEventListener("click",this._clickListener,!0),a.removeEventListener("auxclick",this._clickListener,!0),a.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0),a.addEventListener("click",this._clickListener,!0),a.addEventListener("auxclick",this._clickListener,!0),a.addEventListener("contextmenu",this._clickListener,!0)}}]),n}($_);return e.\u0275fac=function(t){return new(t||e)(T(Ze),T(Za),T(Xe,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Bj=0,t6=function(){var e=function(){function r(t,n,i,a,o,s,l,c,u,d,f){v(this,r),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=o,this._injector=s,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=f}return h(r,[{key:"create",value:function(n){var i=this._createHostElement(),a=this._createPaneElement(i),o=this._createPortalOutlet(a),s=new Y_(n);return s.direction=s.direction||this._directionality.value,new u4(o,i,a,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var i=this._document.createElement("div");return i.id="cdk-overlay-".concat(Bj++),i.classList.add("cdk-overlay-pane"),n.appendChild(i),i}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(ys)),new Tj(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Oj),T(j_),T(Ci),T(Vj),T(Rj),T($t),T(Xe),T(Ze),T(Ja),T(u5),T(Nj))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),Uj={provide:new re("cdk-connected-overlay-scroll-strategy"),deps:[t6],useFactory:function jj(e){return function(){return e.scrollStrategies.reposition()}}},Gj=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[t6,Uj],imports:[[ua,V_,am],am]}),e}(),qj={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},$j={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}},K_=new re("nz-i18n"),Kj=new re("nz-date-locale"),n6=function(){var e=function(){function r(t,n){v(this,r),this._change=new eo(this._locale),this.setLocale(t||$j),this.setDateLocale(n||null)}return h(r,[{key:"localeChange",get:function(){return this._change.asObservable()}},{key:"translate",value:function(n,i){var a=this._getObjectPath(this._locale,n);return"string"==typeof a?(i&&Object.keys(i).forEach(function(o){return a=a.replace(new RegExp("%".concat(o,"%"),"g"),i[o])}),a):n}},{key:"setLocale",value:function(n){this._locale&&this._locale.locale===n.locale||(this._locale=n,this._change.next(n))}},{key:"getLocale",value:function(){return this._locale}},{key:"getLocaleId",value:function(){return this._locale?this._locale.locale:""}},{key:"setDateLocale",value:function(n){this.dateLocale=n}},{key:"getDateLocale",value:function(){return this.dateLocale}},{key:"getLocaleData",value:function(n,i){var a=n?this._getObjectPath(this._locale,n):this._locale;return!a&&!i&&K1('Missing translations for "'.concat(n,'" in language "').concat(this._locale.locale,'".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md')),a||i||this._getObjectPath(qj,n)||{}}},{key:"_getObjectPath",value:function(n,i){for(var a=n,o=i.split("."),s=o.length,l=0;a&&l<s;)a=a[o[l++]];return l===s?a:null}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(K_,8),T(Kj,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Zj=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({}),e}();new re("date-config");var eU={locale:"nl",Pagination:{items_per_page:"/ pagina",jump_to:"Ga naar",jump_to_confirm:"bevestigen",page:"",prev_page:"Vorige pagina",next_page:"Volgende pagina",prev_5:"Vorige 5 pagina's",next_5:"Volgende 5 pagina's",prev_3:"Vorige 3 pagina's",next_3:"Volgende 3 pagina's"},DatePicker:{lang:{placeholder:"Selecteer datum",rangePlaceholder:["Begin datum","Eind datum"],locale:"nl_NL",today:"Vandaag",now:"Nu",backToToday:"Terug naar vandaag",ok:"Ok",clear:"Reset",month:"Maand",year:"Jaar",timeSelect:"Selecteer tijd",dateSelect:"Selecteer datum",monthSelect:"Kies een maand",yearSelect:"Kies een jaar",decadeSelect:"Kies een decennium",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorige maand (PageUp)",nextMonth:"Volgende maand (PageDown)",previousYear:"Vorig jaar (Control + left)",nextYear:"Volgend jaar (Control + right)",previousDecade:"Vorig decennium",nextDecade:"Volgend decennium",previousCentury:"Vorige eeuw",nextCentury:"Volgende eeuw"},timePickerLocale:{placeholder:"Selecteer tijd"}},TimePicker:{placeholder:"Selecteer tijd"},Calendar:{lang:{placeholder:"Selecteer datum",rangePlaceholder:["Begin datum","Eind datum"],locale:"nl_NL",today:"Vandaag",now:"Nu",backToToday:"Terug naar vandaag",ok:"Ok",clear:"Reset",month:"Maand",year:"Jaar",timeSelect:"Selecteer tijd",dateSelect:"Selecteer datum",monthSelect:"Kies een maand",yearSelect:"Kies een jaar",decadeSelect:"Kies een decennium",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Vorige maand (PageUp)",nextMonth:"Volgende maand (PageDown)",previousYear:"Vorig jaar (Control + left)",nextYear:"Volgend jaar (Control + right)",previousDecade:"Vorig decennium",nextDecade:"Volgend decennium",previousCentury:"Vorige eeuw",nextCentury:"Volgende eeuw"},timePickerLocale:{placeholder:"Selecteer tijd"}},global:{placeholder:"Maak een selectie"},Table:{filterTitle:"Filteren",filterConfirm:"OK",filterReset:"Reset",selectAll:"Selecteer huidige pagina",selectInvert:"Deselecteer huidige pagina",sortTitle:"Sorteren",expand:"Rij uitklappen",collapse:"Rij inklappen"},Modal:{okText:"OK",cancelText:"Annuleren",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuleren"},Transfer:{titles:["",""],searchPlaceholder:"Zoeken",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploaden...",removeFile:"Verwijder bestand",uploadError:"Fout tijdens uploaden",previewFile:"Bekijk bestand",downloadFile:"Downloaden bestand"},Empty:{description:"Geen gegevens"},Icon:{icon:"icoon"},Text:{edit:"Bewerken",copy:"Kopieren",copied:"Gekopieerd",expand:"Uitklappen"},PageHeader:{back:"Terug"}},mc=function(){var e=function(){function r(t,n){v(this,r),this.viewContainer=t,this.templateRef=n,this.embeddedViewRef=null,this.context=new tU,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}return h(r,[{key:"recreateView",value:function(){this.viewContainer.clear();var n=this.nzStringTemplateOutlet instanceof Qn;this.embeddedViewRef=this.viewContainer.createEmbeddedView(n?this.nzStringTemplateOutlet:this.templateRef,n?this.nzStringTemplateOutletContext:this.context)}},{key:"updateContext",value:function(){var i=this.nzStringTemplateOutlet instanceof Qn?this.nzStringTemplateOutletContext:this.context,a=this.embeddedViewRef.context;if(i)for(var o=0,s=Object.keys(i);o<s.length;o++){var l=s[o];a[l]=i[l]}}},{key:"ngOnChanges",value:function(n){var c,i=n.nzStringTemplateOutletContext,a=n.nzStringTemplateOutlet;a&&(this.context.$implicit=a.currentValue),c=!1,a&&(c=!!a.firstChange||a.previousValue instanceof Qn||a.currentValue instanceof Qn),i&&function(m){var C=Object.keys(m.previousValue||{}),D=Object.keys(m.currentValue||{});if(C.length===D.length){var F,x=lt(D);try{for(x.s();!(F=x.n()).done;)if(-1===C.indexOf(F.value))return!0}catch(ne){x.e(ne)}finally{x.f()}return!1}return!0}(i)||c?this.recreateView():this.updateContext()}}],[{key:"ngTemplateContextGuard",value:function(n,i){return!0}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(cr),y(Qn))},e.\u0275dir=U({type:e,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[Mt]}),e}(),tU=h(function e(){v(this,e)}),Z_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[wr]]}),e}(),$s=function(){function e(){v(this,e)}return h(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"B",a=arguments.length>3?arguments[3]:void 0;if(!(My(t)&&My(n)&&n%1==0&&n>=0))return t;for(var o=t,s=i;"B"!==s;)o*=1024,s=e.formats[s].prev;if(a){var l=e.formats[a],c=Sy(e.calculateResult(l,o),n);return e.formatResult(c,a)}for(var u in e.formats)if(e.formats.hasOwnProperty(u)){var d=e.formats[u];if(o<d.max){var f=Sy(e.calculateResult(d,o),n);return e.formatResult(f,u)}}}}],[{key:"formatResult",value:function(t,n){return"".concat(t," ").concat(n)}},{key:"calculateResult",value:function(t,n){var i=t.prev?e.formats[t.prev]:void 0;return i?n/i.max:n}}]),e}();$s.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}},$s.\u0275fac=function(r){return new(r||$s)},$s.\u0275pipe=Ot({name:"nzBytes",type:$s,pure:!0});var r6=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"transform",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",a=["cm","mm","Q","in","pc","pt","px"],o=["em","ex","ch","rem","1h","vw","vh","vmin","vmax"],s=["%"],l=[].concat(a,o,s),c="px";return l.some(function(u){return u===i})&&(c=i),"number"==typeof n?"".concat(n).concat(c):"".concat(n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ot({name:"nzToCssUnit",type:e,pure:!0}),e}(),Q_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[wr]]}),e}(),X_="nz-animate-disabled",sU=function(){var e=function(){function r(t,n,i){v(this,r),this.element=t,this.renderer=n,this.animationType=i,this.nzNoAnimation=!1}return h(r,[{key:"ngOnChanges",value:function(){this.updateClass()}},{key:"ngAfterViewInit",value:function(){this.updateClass()}},{key:"updateClass",value:function(){var n=dr(this.element);!n||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(n,X_):this.renderer.removeClass(n,X_))}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Me),y(bn),y(Os,8))},e.\u0275dir=U({type:e,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[Mt]}),I([jn()],e.prototype,"nzNoAnimation",void 0),e}(),J_=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[wr]]}),e}(),lU=["nz-modal-close",""];function cU(e,r){if(1&e&&(ut(0),Ce(1,"i",2),dt()),2&e){var t=r.$implicit;w(1),E("nzType",t)}}var eC=["modalElement"];function uU(e,r){if(1&e){var t=Ie();k(0,"button",16),ae("click",function(){return Q(t),S().onCloseClick()}),M()}}function dU(e,r){if(1&e&&(ut(0),Ce(1,"span",17),dt()),2&e){var t=S();w(1),E("innerHTML",t.config.nzTitle,vi)}}function fU(e,r){}function hU(e,r){1&e&&Ce(0,"div",17),2&e&&E("innerHTML",S().config.nzContent,vi)}function vU(e,r){if(1&e){var t=Ie();k(0,"button",18),ae("click",function(){return Q(t),S().onCancel()}),K(1),M()}if(2&e){var n=S();E("nzLoading",!!n.config.nzCancelLoading)("disabled",n.config.nzCancelDisabled),zn("cdkFocusInitial","cancel"===n.config.nzAutofocus||null),w(1),Ke(" ",n.config.nzCancelText||n.locale.cancelText," ")}}function pU(e,r){if(1&e){var t=Ie();k(0,"button",19),ae("click",function(){return Q(t),S().onOk()}),K(1),M()}if(2&e){var n=S();E("nzType",n.config.nzOkType)("nzLoading",!!n.config.nzOkLoading)("disabled",n.config.nzOkDisabled)("nzDanger",n.config.nzOkDanger),zn("cdkFocusInitial","ok"===n.config.nzAutofocus||null),w(1),Ke(" ",n.config.nzOkText||n.locale.okText," ")}}var gU=["nz-modal-title",""];function mU(e,r){if(1&e&&(ut(0),Ce(1,"div",2),dt()),2&e){var t=S();w(1),E("innerHTML",t.config.nzTitle,vi)}}var yU=["nz-modal-footer",""];function _U(e,r){1&e&&Ce(0,"div",5),2&e&&E("innerHTML",S(3).config.nzFooter,vi)}function CU(e,r){if(1&e){var t=Ie();k(0,"button",7),ae("click",function(){var s=Q(t).$implicit;return S(4).onButtonClick(s)}),K(1),M()}if(2&e){var n=r.$implicit,i=S(4);E("hidden",!i.getButtonCallableProp(n,"show"))("nzLoading",i.getButtonCallableProp(n,"loading"))("disabled",i.getButtonCallableProp(n,"disabled"))("nzType",n.type)("nzDanger",n.danger)("nzShape",n.shape)("nzSize",n.size)("nzGhost",n.ghost),w(1),Ke(" ",n.label," ")}}function bU(e,r){if(1&e&&(ut(0),P(1,CU,2,9,"button",6),dt()),2&e){var t=S(3);w(1),E("ngForOf",t.buttons)}}function wU(e,r){if(1&e&&(ut(0),P(1,_U,1,1,"div",3),P(2,bU,2,1,"ng-container",4),dt()),2&e){var t=S(2);w(1),E("ngIf",!t.buttonsFooter),w(1),E("ngIf",t.buttonsFooter)}}var kU=function(r,t){return{$implicit:r,modalRef:t}};function MU(e,r){if(1&e&&(ut(0),P(1,wU,3,2,"ng-container",2),dt()),2&e){var t=S();w(1),E("nzStringTemplateOutlet",t.config.nzFooter)("nzStringTemplateOutletContext",Su(2,kU,t.config.nzComponentParams,t.modalRef))}}function SU(e,r){if(1&e){var t=Ie();k(0,"button",10),ae("click",function(){return Q(t),S(2).onCancel()}),K(1),M()}if(2&e){var n=S(2);E("nzLoading",!!n.config.nzCancelLoading)("disabled",n.config.nzCancelDisabled),zn("cdkFocusInitial","cancel"===n.config.nzAutofocus||null),w(1),Ke(" ",n.config.nzCancelText||n.locale.cancelText," ")}}function DU(e,r){if(1&e){var t=Ie();k(0,"button",11),ae("click",function(){return Q(t),S(2).onOk()}),K(1),M()}if(2&e){var n=S(2);E("nzType",n.config.nzOkType)("nzDanger",n.config.nzOkDanger)("nzLoading",!!n.config.nzOkLoading)("disabled",n.config.nzOkDisabled),zn("cdkFocusInitial","ok"===n.config.nzAutofocus||null),w(1),Ke(" ",n.config.nzOkText||n.locale.okText," ")}}function xU(e,r){if(1&e&&(P(0,SU,2,4,"button",8),P(1,DU,2,6,"button",9)),2&e){var t=S();E("ngIf",null!==t.config.nzCancelText),w(1),E("ngIf",null!==t.config.nzOkText)}}function EU(e,r){if(1&e){var t=Ie();k(0,"button",9),ae("click",function(){return Q(t),S().onCloseClick()}),M()}}function TU(e,r){1&e&&Ce(0,"div",10)}function zU(e,r){}function AU(e,r){1&e&&Ce(0,"div",11),2&e&&E("innerHTML",S().config.nzContent,vi)}function PU(e,r){if(1&e){var t=Ie();k(0,"div",12),ae("cancelTriggered",function(){return Q(t),S().onCloseClick()})("okTriggered",function(){return Q(t),S().onOkClick()}),M()}2&e&&E("modalRef",S().modalRef)}var tC=function(){},_o=h(function e(){v(this,e),this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=tC,this.nzOnOk=tC,this.nzIconType="question-circle"}),d4="ant-modal-mask",f4="modal",nC={modalContainer:ii("modalContainer",[Mi("void, exit",He({})),Mi("enter",He({})),jt("* => enter",Lt(".24s",He({}))),jt("* => void, * => exit",Lt(".2s",He({})))])};function yc(e,r,t){return void 0===e?void 0===r?t:r:e}function rC(){throw Error("Attempting to attach modal content after content is already attached")}var iC=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c,u,d,f,p){var g;return v(this,n),(g=t.call(this)).ngZone=i,g.host=a,g.focusTrapFactory=o,g.cdr=s,g.render=l,g.overlayRef=c,g.nzConfigService=u,g.config=d,g.animationType=p,g.animationStateChanged=new ie,g.containerClick=new ie,g.cancelTriggered=new ie,g.okTriggered=new ie,g.state="enter",g.isStringContent=!1,g.dir="ltr",g.elementFocusedBeforeModalWasOpened=null,g.mouseDown=!1,g.oldMaskStyle=null,g.destroy$=new _e,g.document=f,g.dir=c.getDirection(),g.isStringContent="string"==typeof d.nzContent,g.nzConfigService.getConfigChangeEventForComponent(f4).pipe(ht(g.destroy$)).subscribe(function(){g.updateMaskClassname()}),g}return h(n,[{key:"showMask",get:function(){var a=this.nzConfigService.getConfigForComponent(f4)||{};return!!yc(this.config.nzMask,a.nzMask,!0)}},{key:"maskClosable",get:function(){var a=this.nzConfigService.getConfigForComponent(f4)||{};return!!yc(this.config.nzMaskClosable,a.nzMaskClosable,!0)}},{key:"onContainerClick",value:function(a){a.target===a.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}},{key:"onCloseClick",value:function(){this.cancelTriggered.emit()}},{key:"onOkClick",value:function(){this.okTriggered.emit()}},{key:"attachComponentPortal",value:function(a){return this.portalOutlet.hasAttached()&&rC(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this.portalOutlet.hasAttached()&&rC(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(a)}},{key:"attachStringContent",value:function(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}},{key:"getNativeElement",value:function(){return this.host.nativeElement}},{key:"animationDisabled",value:function(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}},{key:"setModalTransformOrigin",value:function(){var a=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){var o=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),s=function JR(e){if(!e.getClientRects().length)return{top:0,left:0};var r=e.getBoundingClientRect(),t=e.ownerDocument.defaultView;return{top:r.top+t.pageYOffset,left:r.left+t.pageXOffset}}(this.elementFocusedBeforeModalWasOpened),c=s.top+o.height/2,u="".concat(s.left+o.width/2-a.offsetLeft,"px ").concat(c-a.offsetTop,"px 0px");this.render.setStyle(a,"transform-origin",u)}}},{key:"savePreviouslyFocusedElement",value:function(){var a=this;this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return a.host.nativeElement.focus()})}))}},{key:"trapFocus",value:function(){var a=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{var o=this.document.activeElement;o!==a&&!a.contains(o)&&a.focus()}}},{key:"restoreFocus",value:function(){var a=this.elementFocusedBeforeModalWasOpened;if(a&&"function"==typeof a.focus){var o=this.document.activeElement,s=this.host.nativeElement;(!o||o===this.document.body||o===s||s.contains(o))&&a.focus()}this.focusTrap&&this.focusTrap.destroy()}},{key:"setEnterAnimationClass",value:function(){if(!this.animationDisabled()){this.setModalTransformOrigin();var a=this.modalElementRef.nativeElement,o=this.overlayRef.backdropElement;a.classList.add("ant-zoom-enter"),a.classList.add("ant-zoom-enter-active"),o&&(o.classList.add("ant-fade-enter"),o.classList.add("ant-fade-enter-active"))}}},{key:"setExitAnimationClass",value:function(){var a=this.modalElementRef.nativeElement;a.classList.add("ant-zoom-leave"),a.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}},{key:"setMaskExitAnimationClass",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.overlayRef.backdropElement;if(o){if(this.animationDisabled()||a)return void o.classList.remove(d4);o.classList.add("ant-fade-leave"),o.classList.add("ant-fade-leave-active")}}},{key:"cleanAnimationClass",value:function(){if(!this.animationDisabled()){var a=this.overlayRef.backdropElement,o=this.modalElementRef.nativeElement;a&&(a.classList.remove("ant-fade-enter"),a.classList.remove("ant-fade-enter-active")),o.classList.remove("ant-zoom-enter"),o.classList.remove("ant-zoom-enter-active"),o.classList.remove("ant-zoom-leave"),o.classList.remove("ant-zoom-leave-active")}}},{key:"setZIndexForBackdrop",value:function(){var a=this.overlayRef.backdropElement;a&&wy(this.config.nzZIndex)&&this.render.setStyle(a,"z-index",this.config.nzZIndex)}},{key:"bindBackdropStyle",value:function(){var a=this,o=this.overlayRef.backdropElement;if(o&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(function(c){a.render.removeStyle(o,c)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){var l=Object.assign({},this.config.nzMaskStyle);Object.keys(l).forEach(function(c){a.render.setStyle(o,c,l[c])}),this.oldMaskStyle=l}}},{key:"updateMaskClassname",value:function(){var a=this.overlayRef.backdropElement;a&&(this.showMask?a.classList.add(d4):a.classList.remove(d4))}},{key:"onAnimationDone",value:function(a){"enter"===a.toState?this.trapFocus():"exit"===a.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(a)}},{key:"onAnimationStart",value:function(a){"enter"===a.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===a.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(a)}},{key:"startExitAnimation",value:function(){this.state="exit",this.cdr.markForCheck()}},{key:"ngOnDestroy",value:function(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}},{key:"setupMouseListeners",value:function(a){var o=this;this.ngZone.runOutsideAngular(function(){Xa(o.host.nativeElement,"mouseup").pipe(ht(o.destroy$)).subscribe(function(){o.mouseDown&&setTimeout(function(){o.mouseDown=!1})}),Xa(a.nativeElement,"mousedown").pipe(ht(o.destroy$)).subscribe(function(){o.mouseDown=!0})})}}]),n}(J0);return e.\u0275fac=function(t){!function Rv(){throw new Error("invalid")}()},e.\u0275dir=U({type:e,features:[ee]}),e}(),aC=function(){var e=h(function r(t){v(this,r),this.config=t});return e.\u0275fac=function(t){return new(t||e)(y(_o))},e.\u0275cmp=ct({type:e,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:lU,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(t,n){1&t&&(k(0,"span",0),P(1,cU,2,1,"ng-container",1),M()),2&t&&(w(1),E("nzStringTemplateOutlet",n.config.nzCloseIcon))},directives:[mc,Ei,fc],encapsulation:2,changeDetection:0}),e}(),IU=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c,u,d,f,p,g){var m;return v(this,n),(m=t.call(this,i,o,s,l,c,u,d,f,p,g)).i18n=a,m.config=f,m.cancelTriggered=new ie,m.okTriggered=new ie,m.i18n.localeChange.pipe(ht(m.destroy$)).subscribe(function(){m.locale=m.i18n.getLocaleData("Modal")}),m}return h(n,[{key:"ngOnInit",value:function(){this.setupMouseListeners(this.modalElementRef)}},{key:"onCancel",value:function(){this.cancelTriggered.emit()}},{key:"onOk",value:function(){this.okTriggered.emit()}}]),n}(iC);return e.\u0275fac=function(t){return new(t||e)(y(Xe),y(n6),y(Me),y(Q5),y(xn),y(bn),y(u4),y(wa),y(_o),y(Ze,8),y(Os,8))},e.\u0275cmp=ct({type:e,selectors:[["nz-modal-confirm-container"]],viewQuery:function(t,n){var i;1&t&&(Hr(c4,7),Hr(eC,7)),2&t&&(Cr(i=br())&&(n.portalOutlet=i.first),Cr(i=br())&&(n.modalElementRef=i.first))},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,n){1&t&&(vu("@modalContainer.start",function(a){return n.onAnimationStart(a)})("@modalContainer.done",function(a){return n.onAnimationDone(a)}),ae("click",function(a){return n.onContainerClick(a)})),2&t&&(mu("@.disabled",n.config.nzNoAnimation)("@modalContainer",n.state),pu(n.config.nzWrapClassName?"ant-modal-wrap "+n.config.nzWrapClassName:"ant-modal-wrap"),Vi("z-index",n.config.nzZIndex),We("ant-modal-wrap-rtl","rtl"===n.dir)("ant-modal-centered",n.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[ee],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(t,n){1&t&&(k(0,"div",0,1),N(2,"nzToCssUnit"),k(3,"div",2),P(4,uU,1,0,"button",3),k(5,"div",4),k(6,"div",5),k(7,"div",6),Ce(8,"i",7),k(9,"span",8),P(10,dU,2,1,"ng-container",9),M(),k(11,"div",10),P(12,fU,0,0,"ng-template",11),P(13,hU,1,1,"div",12),M(),M(),k(14,"div",13),P(15,vU,2,4,"button",14),P(16,pU,2,6,"button",15),M(),M(),M(),M(),M()),2&t&&(Vi("width",G(2,11,null==n.config?null:n.config.nzWidth)),E("ngClass",n.config.nzClassName)("ngStyle",n.config.nzStyle),w(4),E("ngIf",n.config.nzClosable),w(1),E("ngStyle",n.config.nzBodyStyle),w(3),E("nzType",n.config.nzIconType),w(2),E("nzStringTemplateOutlet",n.config.nzTitle),w(3),E("ngIf",n.isStringContent),w(2),E("ngIf",null!==n.config.nzCancelText),w(1),E("ngIf",null!==n.config.nzOkText))},directives:[aC,po,ca,$a,Qt,Ei,fc,mc,c4,vo],pipes:[r6],encapsulation:2,data:{animation:[nC.modalContainer]}}),e}(),LU=function(){var e=h(function r(t){v(this,r),this.config=t});return e.\u0275fac=function(t){return new(t||e)(y(_o))},e.\u0275cmp=ct({type:e,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:gU,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(t,n){1&t&&(k(0,"div",0),P(1,mU,2,1,"ng-container",1),M()),2&t&&(w(1),E("nzStringTemplateOutlet",n.config.nzTitle))},directives:[mc],encapsulation:2,changeDetection:0}),e}(),HU=function(){var e=function(){function r(t,n){var i=this;v(this,r),this.i18n=t,this.config=n,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new ie,this.okTriggered=new ie,this.destroy$=new _e,Array.isArray(n.nzFooter)&&(this.buttonsFooter=!0,this.buttons=n.nzFooter.map(VU)),this.i18n.localeChange.pipe(ht(this.destroy$)).subscribe(function(){i.locale=i.i18n.getLocaleData("Modal")})}return h(r,[{key:"onCancel",value:function(){this.cancelTriggered.emit()}},{key:"onOk",value:function(){this.okTriggered.emit()}},{key:"getButtonCallableProp",value:function(n,i){var a=n[i],o=this.modalRef.getContentComponent();return"function"==typeof a?a.apply(n,o&&[o]):a}},{key:"onButtonClick",value:function(n){if(!this.getButtonCallableProp(n,"loading")){var a=this.getButtonCallableProp(n,"onClick");n.autoLoading&&m0(a)&&(n.loading=!0,a.then(function(){return n.loading=!1}).catch(function(o){throw n.loading=!1,o}))}}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(n6),y(_o))},e.\u0275cmp=ct({type:e,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:yU,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(t,n){if(1&t&&(P(0,MU,2,5,"ng-container",0),P(1,xU,2,2,"ng-template",null,1,Xn)),2&t){var i=Kt(2);E("ngIf",n.config.nzFooter)("ngIfElse",i)}},directives:[po,Qt,mc,Nn,vo,Ei],encapsulation:2}),e}();function VU(e){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},e)}var RU=function(){var e=function(r){_(n,r);var t=z(n);function n(i,a,o,s,l,c,u,d,f,p){var g;return v(this,n),(g=t.call(this,i,a,o,s,l,c,u,d,f,p)).config=d,g}return h(n,[{key:"ngOnInit",value:function(){this.setupMouseListeners(this.modalElementRef)}}]),n}(iC);return e.\u0275fac=function(t){return new(t||e)(y(Xe),y(Me),y(Q5),y(xn),y(bn),y(u4),y(wa),y(_o),y(Ze,8),y(Os,8))},e.\u0275cmp=ct({type:e,selectors:[["nz-modal-container"]],viewQuery:function(t,n){var i;1&t&&(Hr(c4,7),Hr(eC,7)),2&t&&(Cr(i=br())&&(n.portalOutlet=i.first),Cr(i=br())&&(n.modalElementRef=i.first))},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(t,n){1&t&&(vu("@modalContainer.start",function(a){return n.onAnimationStart(a)})("@modalContainer.done",function(a){return n.onAnimationDone(a)}),ae("click",function(a){return n.onContainerClick(a)})),2&t&&(mu("@.disabled",n.config.nzNoAnimation)("@modalContainer",n.state),pu(n.config.nzWrapClassName?"ant-modal-wrap "+n.config.nzWrapClassName:"ant-modal-wrap"),Vi("z-index",n.config.nzZIndex),We("ant-modal-wrap-rtl","rtl"===n.dir)("ant-modal-centered",n.config.nzCentered))},exportAs:["nzModalContainer"],features:[ee],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(t,n){1&t&&(k(0,"div",0,1),N(2,"nzToCssUnit"),k(3,"div",2),P(4,EU,1,0,"button",3),P(5,TU,1,0,"div",4),k(6,"div",5),P(7,zU,0,0,"ng-template",6),P(8,AU,1,1,"div",7),M(),P(9,PU,1,1,"div",8),M(),M()),2&t&&(Vi("width",G(2,9,null==n.config?null:n.config.nzWidth)),E("ngClass",n.config.nzClassName)("ngStyle",n.config.nzStyle),w(4),E("ngIf",n.config.nzClosable),w(1),E("ngIf",n.config.nzTitle),w(1),E("ngStyle",n.config.nzBodyStyle),w(2),E("ngIf",n.isStringContent),w(1),E("ngIf",null!==n.config.nzFooter))},directives:[aC,LU,HU,ca,$a,Qt,c4],pipes:[r6],encapsulation:2,data:{animation:[nC.modalContainer]}}),e}(),_c=function(){function e(r,t,n){var i=this;v(this,e),this.overlayRef=r,this.config=t,this.containerInstance=n,this.componentInstance=null,this.state=0,this.afterClose=new _e,this.afterOpen=new _e,this.destroy$=new _e,n.animationStateChanged.pipe(Xt(function(a){return"done"===a.phaseName&&"enter"===a.toState}),Tr(1)).subscribe(function(){i.afterOpen.next(),i.afterOpen.complete(),t.nzAfterOpen instanceof ie&&t.nzAfterOpen.emit()}),n.animationStateChanged.pipe(Xt(function(a){return"done"===a.phaseName&&"exit"===a.toState}),Tr(1)).subscribe(function(){clearTimeout(i.closeTimeout),i._finishDialogClose()}),n.containerClick.pipe(Tr(1),ht(this.destroy$)).subscribe(function(){!i.config.nzCancelLoading&&!i.config.nzOkLoading&&i.trigger("cancel")}),r.keydownEvents().pipe(Xt(function(a){return i.config.nzKeyboard&&!i.config.nzCancelLoading&&!i.config.nzOkLoading&&27===a.keyCode&&!function UA(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.length?t.some(function(i){return e[i]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}(a)})).subscribe(function(a){a.preventDefault(),i.trigger("cancel")}),n.cancelTriggered.pipe(ht(this.destroy$)).subscribe(function(){return i.trigger("cancel")}),n.okTriggered.pipe(ht(this.destroy$)).subscribe(function(){return i.trigger("ok")}),r.detachments().subscribe(function(){i.afterClose.next(i.result),i.afterClose.complete(),t.nzAfterClose instanceof ie&&t.nzAfterClose.emit(i.result),i.componentInstance=null,i.overlayRef.dispose()})}return h(e,[{key:"getContentComponent",value:function(){return this.componentInstance}},{key:"getElement",value:function(){return this.containerInstance.getNativeElement()}},{key:"destroy",value:function(t){this.close(t)}},{key:"triggerOk",value:function(){return this.trigger("ok")}},{key:"triggerCancel",value:function(){return this.trigger("cancel")}},{key:"close",value:function(t){var n=this;0===this.state&&(this.result=t,this.containerInstance.animationStateChanged.pipe(Xt(function(i){return"start"===i.phaseName}),Tr(1)).subscribe(function(i){n.overlayRef.detachBackdrop(),n.closeTimeout=setTimeout(function(){n._finishDialogClose()},i.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}},{key:"updateConfig",value:function(t){Object.assign(this.config,t),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}},{key:"getState",value:function(){return this.state}},{key:"getConfig",value:function(){return this.config}},{key:"getBackdropElement",value:function(){return this.overlayRef.backdropElement}},{key:"trigger",value:function(t){return be(this,void 0,void 0,k4.mark(function n(){var i,a,s,l;return k4.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[t],!this.config[a={ok:"nzOkLoading",cancel:"nzCancelLoading"}[t]]){u.next=5;break}return u.abrupt("return");case 5:if(!(i instanceof ie)){u.next=9;break}i.emit(this.getContentComponent()),u.next=25;break;case 9:if("function"!=typeof i){u.next=25;break}if(!m0(s=i(this.getContentComponent()))){u.next=24;break}return this.config[a]=!0,l=!1,u.prev=14,u.next=17,s;case 17:l=u.sent;case 18:return u.prev=18,this.config[a]=!1,this.closeWhitResult(l),u.finish(18);case 22:u.next=25;break;case 24:this.closeWhitResult(s);case 25:case"end":return u.stop()}},n,this,[[14,,18,22]])}))}},{key:"closeWhitResult",value:function(t){!1!==t&&this.close(t)}},{key:"_finishDialogClose",value:function(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}]),e}(),Co=function(){var e=function(){function r(t,n,i,a,o){var s=this;v(this,r),this.overlay=t,this.injector=n,this.nzConfigService=i,this.parentModal=a,this.directionality=o,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new _e,this.afterAllClose=function Wj(e){return new de(function(r){Fn(e()).subscribe(r)})}(function(){return s.openModals.length?s._afterAllClosed:s._afterAllClosed.pipe(v0(void 0))})}return h(r,[{key:"openModals",get:function(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}},{key:"_afterAllClosed",get:function(){var n=this.parentModal;return n?n._afterAllClosed:this.afterAllClosedAtThisLevel}},{key:"create",value:function(n){return this.open(n.nzContent,n)}},{key:"closeAll",value:function(){this.closeModals(this.openModals)}},{key:"confirm",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"confirm";return"nzFooter"in n&&K1('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in n||(n.nzWidth=416),"nzMaskClosable"in n||(n.nzMaskClosable=!1),n.nzModalType="confirm",n.nzClassName="ant-modal-confirm ant-modal-confirm-".concat(i," ").concat(n.nzClassName||""),this.create(n)}},{key:"info",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.confirmFactory(n,"info")}},{key:"success",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.confirmFactory(n,"success")}},{key:"error",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.confirmFactory(n,"error")}},{key:"warning",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.confirmFactory(n,"warning")}},{key:"open",value:function(n,i){var a=this,o=function OU(e,r){return Object.assign(Object.assign({},r),e)}(i||{},new _o),s=this.createOverlay(o),l=this.attachModalContainer(s,o),c=this.attachModalContent(n,l,s,o);return l.modalRef=c,this.openModals.push(c),c.afterClose.subscribe(function(){return a.removeOpenModal(c)}),c}},{key:"removeOpenModal",value:function(n){var i=this.openModals.indexOf(n);i>-1&&(this.openModals.splice(i,1),this.openModals.length||this._afterAllClosed.next())}},{key:"closeModals",value:function(n){for(var i=n.length;i--;)n[i].close(),this.openModals.length||this._afterAllClosed.next()}},{key:"createOverlay",value:function(n){var i=this.nzConfigService.getConfigForComponent(f4)||{},a=new Y_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:yc(n.nzCloseOnNavigation,i.nzCloseOnNavigation,!0),direction:yc(n.nzDirection,i.nzDirection,this.directionality.value)});return yc(n.nzMask,i.nzMask,!0)&&(a.backdropClass=d4),this.overlay.create(a)}},{key:"attachModalContainer",value:function(n,i){var o=$t.create({parent:i&&i.nzViewContainerRef&&i.nzViewContainerRef.injector||this.injector,providers:[{provide:u4,useValue:n},{provide:_o,useValue:i}]}),l=new X0("confirm"===i.nzModalType?IU:RU,i.nzViewContainerRef,o);return n.attach(l).instance}},{key:"attachModalContent",value:function(n,i,a,o){var s=new _c(a,o,i);if(n instanceof Qn)i.attachTemplatePortal(new H_(n,null,{$implicit:o.nzComponentParams,modalRef:s}));else if(wy(n)&&"string"!=typeof n){var l=this.createInjector(s,o),c=i.attachComponentPortal(new X0(n,o.nzViewContainerRef,l));(function FU(e,r){Object.assign(e,r)})(c.instance,o.nzComponentParams),s.componentInstance=c.instance}else i.attachStringContent();return s}},{key:"createInjector",value:function(n,i){return $t.create({parent:i&&i.nzViewContainerRef&&i.nzViewContainerRef.injector||this.injector,providers:[{provide:_c,useValue:n}]})}},{key:"confirmFactory",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,a={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"};return"nzIconType"in n||(n.nzIconType=a[i]),"nzCancelText"in n||(n.nzCancelText=null),this.confirm(n,i)}},{key:"ngOnDestroy",value:function(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(t6),T($t),T(wa),T(e,12),T(Ja,8))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),NU=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[Co],imports:[[wr,ua,Gj,Z_,V_,Zj,O0,P0,Q_,J_,Q_]]}),e}(),oC=function(){var e=function(){function r(){v(this,r),this.isChanged=!1}return h(r,[{key:"ngOnChanges",value:function(n){var i=this;n.price&&(this.isChanged=!0,setTimeout(function(){return i.isChanged=!1},500))}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=U({type:e,selectors:[["","sdsConfiguratorPriceChanged",""]],hostVars:2,hostBindings:function(t,n){2&t&&We("price-changed",n.isChanged)},inputs:{price:"price"},exportAs:["sdsConfiguratorPriceChanged"],features:[Mt]}),e}(),BU=function(r){return{zoom:r}},h4=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"ngOnInit",value:function(){}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["sds-image-popup"]],inputs:{imageUrl:"imageUrl",zoom:"zoom"},decls:2,vars:4,consts:[["fxLayout","row","fxLayoutAlign","center center",1,"image-popup-container"],[1,"image-popup",3,"src","ngClass"]],template:function(t,n){1&t&&(k(0,"div",0),Ce(1,"img",1),M()),2&t&&(w(1),E("src",n.imageUrl,qt)("ngClass",Mu(2,BU,n.zoom)))},directives:[ha,Ts,ca,Kd],styles:[".image-popup[_ngcontent-%COMP%]{max-height:90vh;max-width:90vw}"]}),e}(),sC=function(){function e(){v(this,e),this.aw=0,this.ah=0,this.w=0,this.h=0}return h(e,[{key:"ar",get:function(){return this.w/this.h}},{key:"diag",get:function(){return Math.sqrt(this.w*this.w+this.h*this.h)}},{key:"valid",get:function(){return this.w>0&&this.h>0&&this.aw>0&&this.ah>0}},{key:"widthBound",get:function(){return this.ar>this.aw/this.ah}}]),e}(),lC=function(){var e=function(){function r(t){var n=this;v(this,r),this.platform_id=t,this._disableSwiping=!1,this._enableZoom=!1,this._enablePan=!1,this._startEVCache=null,this._evCache=new Array,this._previousDiagonal=-1,this._originalState=new sC,this._slideEvent=new ie(!0),this._clickEvent=new ie(!0),this.pointerUp=function(i){n._pointerUp(i)},this.pointerDown=function(i){n._pointerDown(i)},this.pointerMove=function(i){n._pointerMove(i)}}return h(r,[{key:"disableSwiping",set:function(n){this._disableSwiping=n}},{key:"enableZoom",set:function(n){this._enableZoom=n}},{key:"enablePan",set:function(n){this._enablePan=n}},{key:"bind",value:function(n){Ni(this.platform_id)&&(n.nativeElement.addEventListener("pointerdown",this.pointerDown),n.nativeElement.addEventListener("pointerup",this.pointerUp),n.nativeElement.addEventListener("pointercancel",this.pointerUp),n.nativeElement.addEventListener("pointerout",this.pointerUp),n.nativeElement.addEventListener("pointerleave",this.pointerUp),n.nativeElement.addEventListener("pointermove",this.pointerMove))}},{key:"unbind",value:function(n){Ni(this.platform_id)&&(n.nativeElement.removeEventListener("pointerdown",this.pointerDown),n.nativeElement.removeEventListener("pointerup",this.pointerUp),n.nativeElement.removeEventListener("pointercancel",this.pointerUp),n.nativeElement.removeEventListener("pointerout",this.pointerUp),n.nativeElement.removeEventListener("pointerleave",this.pointerUp),n.nativeElement.removeEventListener("pointermove",this.pointerMove))}},{key:"slideEvent",get:function(){return this._slideEvent}},{key:"clickEvent",get:function(){return this._clickEvent}},{key:"_pointerDown",value:function(n){this._evCache.push(n),1===this._evCache.length&&(this._startEVCache=n,(this._enablePan||this._enableZoom)&&(this._loadOriginalState(n),this._convertBGSizeToPixels(n),this._convertBGPosToPixels(n)))}},{key:"_loadOriginalState",value:function(n){if(!this._originalState.valid&&n.target&&n.target.style&&n.target.style.backgroundImage){var i=n.target.style.backgroundImage.match(/^url\(["']?(.+?)["']?\)$/),a=new Image;a.src=i[1],this._originalState.aw=n.target.offsetWidth,this._originalState.ah=n.target.offsetHeight,this._originalState.w=a.width,this._originalState.h=a.height}}},{key:"_convertBGSizeToPixels",value:function(n){var i=n.target,a=i.style.backgroundSize;if(a.indexOf(" ")>-1){var o=a.split(" ");a=this._originalState.widthBound?o[0]:o[1]}if("cover"===a)a=this._originalState.widthBound?this._originalState.ah*this._originalState.ar:this._originalState.aw;else if(a.indexOf("px")>-1)a=a.substring(0,a.length-2);else if(a.indexOf("%")>-1){var s=Number(a.substring(0,a.length-1))/100;a=this._originalState.widthBound?this._originalState.aw*s:this._originalState.ah*s*this._originalState.ar}else a="auto"===a?this._originalState.w:this._originalState.widthBound?this._originalState.aw:this._originalState.ah*this._originalState.ar;i.style.backgroundSize=a+"px auto"}},{key:"_convertBGPosToPixels",value:function(n){if(this._originalState.valid){var i=n.target,a=this._currentBGSize(n),o=i.style.backgroundPositionX;if(-1===o.indexOf("px")){if((o=this._convertLiteralPosToPercentage(o)).indexOf("%")>-1){var s=Number(o.substring(0,o.length-1))/100;o=s*(this._originalState.aw-a)}i.style.backgroundPositionX=o+"px"}var l=i.style.backgroundPositionY;if(-1===l.indexOf("px")){if((l=this._convertLiteralPosToPercentage(l)).indexOf("%")>-1){var c=Number(l.substring(0,l.length-1))/100;l=c*(this._originalState.ah-a/this._originalState.ar)}i.style.backgroundPositionY=l+"px"}}}},{key:"_pointerUp",value:function(n){for(var i=0;i<this._evCache.length;i++)if(this._evCache[i].pointerId===n.pointerId){this._evCache.splice(i,1);break}2!==this._evCache.length&&(this._previousDiagonal=-1),0===this._evCache.length&&null!==this._startEVCache&&(this._checkClickOrSwipe(n),this._startEVCache=null,this._originalState=new sC)}},{key:"_checkClickOrSwipe",value:function(n){if(this._targetIsASlide(n)){var i=n.timeStamp-this._startEVCache.timeStamp,a=n.pageX-this._startEVCache.pageX,o=n.pageY-this._startEVCache.pageY;!this._enablePan&&Math.abs(a)<15&&Math.abs(o)<15?this._clickEvent.emit():i<1e3&&Math.abs(o)<=100&&Math.abs(a)>=30&&!this._disableSwiping&&this._cannotPanMoreTest(n,a)&&this._slideEvent.emit(a<0?1:-1)}}},{key:"_targetIsASlide",value:function(n){return n.target.classList.contains("slides")}},{key:"_cannotPanMoreTest",value:function(n,i){if(!this._enablePan)return!0;var a=this._currentBGPosX(n),o=this._currentBGSize(n);return!(i<0&&o>this._originalState.aw&&Math.round(this._originalState.aw-o-a)<0||i>0&&o>this._originalState.aw&&a<0)}},{key:"_pointerMove",value:function(n){n.preventDefault(),1===this._evCache.length&&this._enablePan&&this._1pointMoveAction(n);for(var i=0;i<this._evCache.length;i++)if(n.pointerId===this._evCache[i].pointerId){this._evCache[i]=n;break}2===this._evCache.length&&this._enableZoom&&this._2pointMoveAction(n)}},{key:"_1pointMoveAction",value:function(n){if(this._evCache[0].pointerId===n.pointerId){var i=this._evCache[0].pageX-n.pageX,a=this._evCache[0].pageY-n.pageY;this._originalState.valid&&(0!==i||0!==a)&&this._transformBGPosition(n,i,a)}}},{key:"_2pointMoveAction",value:function(n){var i=Math.abs(this._evCache[0].pageX-this._evCache[1].pageX),a=Math.abs(this._evCache[0].pageY-this._evCache[1].pageY),o=Math.sqrt(i*i+a*a);this._previousDiagonal>0&&this._originalState.valid&&this._transformBGSize(n,o-this._previousDiagonal),this._previousDiagonal=o}},{key:"_transformBGPosition",value:function(n,i,a){var o=n.target,s=this._currentBGPosX(n),l=this._currentBGPosY(n),c=this._newBGPosXConstraint(s-i,n),u=this._newBGPosYConstraint(l-a,n);(c!==s||u!==l)&&this._setBGPos(o,c,u)}},{key:"_setBGPos",value:function(n,i,a){n.style.backgroundPositionX=i+"px",n.style.backgroundPositionY=a+"px"}},{key:"_currentBGPosX",value:function(n){var i=n.target.style.backgroundPositionX;return i.indexOf("px")>-1&&(i=i.substring(0,i.length-2)),Number(i)}},{key:"_currentBGPosY",value:function(n){var i=n.target.style.backgroundPositionY;return i.indexOf("px")>-1&&(i=i.substring(0,i.length-2)),Number(i)}},{key:"_convertLiteralPosToPercentage",value:function(n){return"center"===n?"50%":"top"===n||"left"===n?"0%":"bottom"===n||"right"===n?"100%":void 0}},{key:"_transformBGSize",value:function(n,i){var a=n.target,o=this._currentBGSize(n),s=this._newBGSizeConstraint(o+i);s!==o&&this._setBGSize(a,s)}},{key:"_setBGSize",value:function(n,i){n.style.backgroundSize=i+"px auto",n.style.touchAction="none"}},{key:"_currentBGSize",value:function(n){var i=n.target.style.backgroundSize;if(i.indexOf(" ")>-1){var a=i.split(" "),o=this._originalState.widthBound?a[0].substring(0,a[0].length-2):a[1].substring(0,a[1].length-2);return Number(o)}if(i.indexOf("px")>-1){var s=i.substring(0,i.length-2);return Number(s)}}},{key:"_newBGSizeConstraint",value:function(n){return this._originalState.widthBound?n<this._originalState.aw?this._originalState.aw:n:n/this._originalState.ar<this._originalState.ah?this._originalState.ah*this._originalState.ar:n}},{key:"_newBGPosXConstraint",value:function(n,i){var a=this._currentBGSize(i);if(a>=this._originalState.aw){if(n>0)return 0;if(n<this._originalState.aw-a)return this._originalState.aw-a}else{if(n<0)return 0;if(n>this._originalState.aw-a)return this._originalState.aw-a}return n}},{key:"_newBGPosYConstraint",value:function(n,i){var a=this._currentBGSize(i);if(a/this._originalState.ar>=this._originalState.ah){if(n>0)return 0;if(n<this._originalState.ah-a/this._originalState.ar)return this._originalState.ah-a/this._originalState.ar}else{if(n<0)return 0;if(n>this._originalState.ah-a/this._originalState.ar)return this._originalState.ah-a/this._originalState.ar}return n}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T(Rn))},e.\u0275prov=H({token:e,factory:e.\u0275fac}),e}(),YU=["container"],jU=["prevArrow"],UU=["nextArrow"];function GU(e,r){1&e&&Ce(0,"div",15)}var WU=function(r,t){return{color:r,"background-color":t}};function qU(e,r){if(1&e&&Ce(0,"div",16),2&e){var t=S().$implicit,n=S();E("ngStyle",Su(2,WU,n.captionColor,n.captionBackground))("innerHTML",null==t||null==t.image?null:t.image.caption,vi)}}function $U(e,r){if(1&e){var t=Ie();k(0,"a",12),ae("click",function(s){return Q(t),S().handleClick(s)}),P(1,GU,1,0,"div",13),P(2,qU,1,5,"div",14),M()}if(2&e){var n=r.$implicit,i=r.index,a=S();We("selected",null==n?null:n.selected)("hide-slide",!(null!=n&&n.selected||null!=n&&n.leftSide||null!=n&&n.rightSide))("left-side",null==n?null:n.leftSide)("right-side",null==n?null:n.rightSide)("slide-in-left","slideInLeft"===(null==n?null:n.action))("slide-in-right","slideInRight"===(null==n?null:n.action))("slide-out-left","slideOutLeft"===(null==n?null:n.action))("slide-out-right","slideOutRight"===(null==n?null:n.action))("link",(null==n||null==n.image?null:n.image.clickAction)||(null==n||null==n.image?null:n.image.href)),C3("title",null==n||null==n.image?null:n.image.title),E("ngStyle",a.getSlideStyle(i)),w(1),E("ngIf",!(null!=n&&n.loaded)),w(1),E("ngIf",a.showCaptions&&(null==n||null==n.image?null:n.image.caption))}}function KU(e,r){if(1&e){var t=Ie();k(0,"li",19),ae("click",function(){var l=Q(t).index;return S(2).goToSlide(l)}),k(1,"button",20),K(2),M(),M()}if(2&e){var n=r.$implicit,i=r.index,a=S(2);We("slick-active",n.selected),w(1),zn("style",a.safeStyleDotColor,$f),w(1),Ke(" ",i," ")}}function ZU(e,r){if(1&e&&(k(0,"ul",17),P(1,KU,3,4,"li",18),M()),2&e){var t=S();w(1),E("ngForOf",t.slides)("ngForTrackBy",t.trackByFn)}}var i6="firstSlide",QU=function(){var e=function(){function r(t,n,i,a,o,s,l,c){v(this,r),this._pointerService=t,this._renderer=n,this._transferState=i,this._ngZone=a,this._cdRef=o,this.sanitizer=s,this.platform_id=l,this.document=c,this.slideIndex=-1,this.slides=[],this.hideLeftArrow=!1,this.hideRightArrow=!1,this._initial=!0,this._isHidden=!1,this.imageUrls=[],this.height="100%",this.showArrows=!0,this.disableSwiping=!1,this.autoPlay=!1,this.autoPlayInterval=3333,this.stopAutoPlayOnSlide=!0,this.autoPlayWaitForLazyLoad=!0,this.backgroundSize="cover",this.backgroundPosition="center center",this.backgroundRepeat="no-repeat",this.showDots=!1,this.dotColor="#FFF",this.showCaptions=!0,this.captionColor="#FFF",this.captionBackground="rgba(0, 0, 0, .35)",this.lazyLoad=!1,this.hideOnNoSlides=!1,this.fullscreen=!1,this.enableZoom=!1,this.enablePan=!1,this.noLoop=!1,this.slideLeft=new ie,this.slideRight=new ie,this.swipeLeft=new ie,this.swipeRight=new ie,this.fullscreenExit=new ie,this.fndexChanged=new ie,this.imageLazyLoad=new ie,this.click=new ie}return h(r,[{key:"safeStyleDotColor",get:function(){return this.sanitizer.bypassSecurityTrustStyle("--dot-color: ".concat(this.dotColor))}},{key:"ngOnInit",value:function(){var n=this;void 0!==this.debug&&console.warn("[Deprecation Warning]: The debug input will be removed from ng-simple-slideshow in 1.3.0"),this._slideSub=this._pointerService.slideEvent.subscribe(function(i){n.onSlide(i,!0)}),this._clickSub=this._pointerService.clickEvent.subscribe(function(){n._onClick()}),this.noLoop&&(this.hideLeftArrow=!0)}},{key:"ngOnDestroy",value:function(){var n=this;try{this._slideSub&&!this._slideSub.closed&&this._slideSub.unsubscribe()}catch(i){console.warn("Slide Subscription error caught in ng-simple-slideshow OnDestroy:",i)}try{this._clickSub&&!this._clickSub.closed&&this._clickSub.unsubscribe()}catch(i){console.warn("Click Subscription error caught in ng-simple-slideshow OnDestroy:",i)}try{this._pointerService.unbind(this.container)}catch(i){console.warn("Pointer Service unbind error caught in ng-simple-slideshow OnDestroy:",i)}try{this._autoplayIntervalId&&(this._ngZone.runOutsideAngular(function(){return clearInterval(n._autoplayIntervalId)}),this._autoplayIntervalId=null)}catch(i){console.warn("Autoplay cancel error caught in ng-simple-slideshow OnDestroy:",i)}}},{key:"ngOnChanges",value:function(n){n.noLoop&&(n.noLoop.currentValue?(this.hideLeftArrow=this.slideIndex<=0,this.hideRightArrow=this.slideIndex===this.slides.length-1):(this.hideLeftArrow=!1,this.hideRightArrow=!1),this._cdRef.detectChanges())}},{key:"ngDoCheck",value:function(){this.imageUrls&&this.imageUrls.length>0?(!0===this._initial&&(this._urlCache=Array.from(this.imageUrls)),!0===this._isHidden&&(this._renderer.removeStyle(this.container.nativeElement,"display"),this._isHidden=!1),this.setSlides()):!0===this.hideOnNoSlides&&(this._renderer.setStyle(this.container.nativeElement,"display","none"),this._isHidden=!0),this.setStyles(),this.handleAutoPlay(),this._pointerService.disableSwiping=this.disableSwiping,this._pointerService.enableZoom=this.enableZoom,this._pointerService.enablePan=this.enablePan}},{key:"ngAfterViewInit",value:function(){this._pointerService.bind(this.container)}},{key:"onSlide",value:function(n,i){this.handleAutoPlay(this.stopAutoPlayOnSlide),this.slide(n,i)}},{key:"_onClick",value:function(){var n=this.slides.length>0&&this.slides[this.slideIndex];this.click.emit({slide:n,index:this.slideIndex}),n&&n.image.clickAction?n.image.clickAction():n&&n.image.href&&(this.document.location.href=n.image.href)}},{key:"goToSlide",value:function(n){var i=this.slideIndex;this.slideIndex=n-1,this.setSlideIndex(1),this.slides[this.slideIndex]&&!this.slides[this.slideIndex].loaded&&this.loadRemainingSlides(),this.handleAutoPlay(this.stopAutoPlayOnSlide),this.onSlideRight(i),this.slides[i].selected=!1,this.slides[this.slideIndex].selected=!0,this._cdRef.detectChanges()}},{key:"getSlideStyle",value:function(n){var i=this.slides[n];return i&&i.loaded?{"background-image":"url("+i.image.url+")","background-size":i.image.backgroundSize||this.backgroundSize,"background-position":i.image.backgroundPosition||this.backgroundPosition,"background-repeat":i.image.backgroundRepeat||this.backgroundRepeat}:{"background-image":void 0,"background-size":void 0,"background-position":void 0,"background-repeat":void 0}}},{key:"exitFullScreen",value:function(n){n.preventDefault(),this.fullscreen=!1,this.fullscreenExit.emit(!0)}},{key:"slide",value:function(n,i){var a=this.slideIndex;this.setSlideIndex(n)&&(this.slides[this.slideIndex]&&!this.slides[this.slideIndex].loaded&&this.loadRemainingSlides(),1===n?this.onSlideRight(a,i):this.onSlideLeft(a,i),this.slides[a].selected=!1,this.slides[this.slideIndex].selected=!0),this._cdRef.detectChanges()}},{key:"setSlideIndex",value:function(n){var i=!0;return this.slideIndex+=n,this.noLoop&&(this.hideRightArrow=this.slideIndex===this.slides.length-1,this.hideLeftArrow=!1),this.slideIndex<0?this.noLoop?(this.slideIndex-=n,i=!1,this.hideLeftArrow=!0):this.slideIndex=this.slides.length-1:this.slideIndex>=this.slides.length&&(this.noLoop?(this.slideIndex-=n,i=!1,this.hideRightArrow=!0):this.slideIndex=0),i&&this.fndexChanged.emit(this.slideIndex),i}},{key:"onSlideLeft",value:function(n,i){!0===i?this.swipeLeft.emit(this.slideIndex):this.slideLeft.emit(this.slideIndex),this.slides[this.getLeftSideIndex(n)].leftSide=!1,this.slides[n].leftSide=!0,this.slides[n].action="slideOutLeft",this.slides[this.slideIndex].rightSide=!1,this.slides[this.getRightSideIndex()].rightSide=!0,this.slides[this.slideIndex].action="slideInRight"}},{key:"onSlideRight",value:function(n,i){!0===i?this.swipeRight.emit(this.slideIndex):this.slideRight.emit(this.slideIndex),this.slides[this.getRightSideIndex(n)].rightSide=!1,this.slides[n].rightSide=!0,this.slides[n].action="slideOutRight",this.slides[this.slideIndex].leftSide=!1,this.slides[this.getLeftSideIndex()].leftSide=!0,this.slides[this.slideIndex].action="slideInLeft"}},{key:"setSlides",value:function(){this.imageUrls&&(this.checkCache()||!0===this._initial)&&(this._initial=!1,this._urlCache=Array.from(this.imageUrls),this.slides=[],!0===this.lazyLoad?this.buildLazyLoadSlideArray():this.buildSlideArray(),this._cdRef.detectChanges())}},{key:"buildLazyLoadSlideArray",value:function(){var i,n=lt(this.imageUrls);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.slides.push({image:"string"==typeof a?{url:null}:{url:null,href:a.href||""},action:"",leftSide:!1,rightSide:!1,selected:!1,loaded:!1})}}catch(o){n.e(o)}finally{n.f()}-1===this.slideIndex&&(this.slideIndex=0),this.slides[this.slideIndex].selected=!0,this.loadFirstSlide(),this.fndexChanged.emit(this.slideIndex)}},{key:"buildSlideArray",value:function(){var i,n=lt(this.imageUrls);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.slides.push({image:"string"==typeof a?{url:a}:a,action:"",leftSide:!1,rightSide:!1,selected:!1,loaded:!0})}}catch(o){n.e(o)}finally{n.f()}-1===this.slideIndex&&(this.slideIndex=0),this.slides[this.slideIndex].selected=!0,this.fndexChanged.emit(this.slideIndex)}},{key:"loadFirstSlide",value:function(){var n=this,i=this.slideIndex,a=this.imageUrls[i];if(Bi(this.platform_id))this.slides[i].image="string"==typeof a?{url:a}:a,this.slides[i].loaded=!0,this._transferState.set(i6,this.slides[i]);else{var o=this._transferState.get(i6,null);if(null===o){var s=new Image;s.src="string"==typeof a?a:a.url,s.addEventListener("load",function(){n.slides[i].image="string"==typeof a?{url:a}:a,n.slides[i].loaded=!0,n.imageLazyLoad.emit(n.slides[i]),n._cdRef.detectChanges()})}else this.slides[i]=o,this._transferState.remove(i6)}}},{key:"loadRemainingSlides",value:function(){for(var n=this,i=function(s){n.slides[s].loaded||new Promise(function(l){var c=n.imageUrls[s],u=new Image;u.addEventListener("load",function(){n.slides[s].image="string"==typeof c?{url:c}:c,n.slides[s].loaded=!0,n._cdRef.detectChanges(),n.imageLazyLoad.emit(n.slides[s]),l()}),u.src="string"==typeof c?c:c.url})},a=0;a<this.slides.length;a++)i(a)}},{key:"handleAutoPlay",value:function(n){var i=this;Bi(this.platform_id)||(!0===n||!1===this.autoPlay?this._autoplayIntervalId&&(this._ngZone.runOutsideAngular(function(){return clearInterval(i._autoplayIntervalId)}),this._autoplayIntervalId=null):this._autoplayIntervalId||this._ngZone.runOutsideAngular(function(){i._autoplayIntervalId=setInterval(function(){(!i.autoPlayWaitForLazyLoad||i.autoPlayWaitForLazyLoad&&i.slides[i.slideIndex]&&i.slides[i.slideIndex].loaded)&&i._ngZone.run(function(){return i.slide(1)})},i.autoPlayInterval)}))}},{key:"setStyles",value:function(){this.fullscreen?(this._renderer.setStyle(this.container.nativeElement,"height","100%"),this._renderer.setStyle(this.container.nativeElement,"background-color","white")):(this._renderer.removeStyle(this.container.nativeElement,"background-color"),this.height&&this._renderer.setStyle(this.container.nativeElement,"height",this.height),this.minHeight&&this._renderer.setStyle(this.container.nativeElement,"min-height",this.minHeight)),this.arrowSize&&(this._renderer.setStyle(this.prevArrow.nativeElement,"height",this.arrowSize),this._renderer.setStyle(this.prevArrow.nativeElement,"width",this.arrowSize),this._renderer.setStyle(this.nextArrow.nativeElement,"height",this.arrowSize),this._renderer.setStyle(this.nextArrow.nativeElement,"width",this.arrowSize))}},{key:"checkCache",value:function(){var n=this;return!(this._urlCache.length===this.imageUrls.length&&this._urlCache.every(function(i,a){return i===n.imageUrls[a]}))}},{key:"getLeftSideIndex",value:function(n){return void 0===n&&(n=this.slideIndex),--n<0&&(n=this.slides.length-1),n}},{key:"getRightSideIndex",value:function(n){return void 0===n&&(n=this.slideIndex),++n>=this.slides.length&&(n=0),n}},{key:"trackByFn",value:function(n,i){return i.image}},{key:"handleClick",value:function(n){n.preventDefault()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(lC),y(bn),y(wd),y(Xe),y(xn),y(Ka),y(Rn),y(Ze))},e.\u0275cmp=ct({type:e,selectors:[["slideshow"]],viewQuery:function(t,n){var i;1&t&&(Hr(YU,5),Hr(jU,5),Hr(UU,5)),2&t&&(Cr(i=br())&&(n.container=i.first),Cr(i=br())&&(n.prevArrow=i.first),Cr(i=br())&&(n.nextArrow=i.first))},inputs:{imageUrls:"imageUrls",height:"height",minHeight:"minHeight",arrowSize:"arrowSize",showArrows:"showArrows",disableSwiping:"disableSwiping",autoPlay:"autoPlay",autoPlayInterval:"autoPlayInterval",stopAutoPlayOnSlide:"stopAutoPlayOnSlide",autoPlayWaitForLazyLoad:"autoPlayWaitForLazyLoad",debug:"debug",backgroundSize:"backgroundSize",backgroundPosition:"backgroundPosition",backgroundRepeat:"backgroundRepeat",showDots:"showDots",dotColor:"dotColor",showCaptions:"showCaptions",captionColor:"captionColor",captionBackground:"captionBackground",lazyLoad:"lazyLoad",hideOnNoSlides:"hideOnNoSlides",fullscreen:"fullscreen",enableZoom:"enableZoom",enablePan:"enablePan",noLoop:"noLoop"},outputs:{slideLeft:"slideLeft",slideRight:"slideRight",swipeLeft:"swipeLeft",swipeRight:"swipeRight",fullscreenExit:"fullscreenExit",fndexChanged:"fndexChanged",imageLazyLoad:"imageLazyLoad",click:"click"},features:[zt([lC]),Mt],decls:12,vars:11,consts:[[1,"fs-container",3,"click"],["title","Back",1,"arrow-exitfs","prev"],[1,"slideshow-container"],["container",""],["class","slides","href","#!","tabindex","-1",3,"title","ngStyle","selected","hide-slide","left-side","right-side","slide-in-left","slide-in-right","slide-out-left","slide-out-right","link","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"arrow-container","prev",3,"click"],["title","Previous",1,"arrow","prev"],["prevArrow",""],[1,"arrow-container","next",3,"click"],["title","Next",1,"arrow","next"],["nextArrow",""],["class","slick-dots",4,"ngIf"],["href","#!","tabindex","-1",1,"slides",3,"title","ngStyle","click"],["class","loader",4,"ngIf"],["class","caption",3,"ngStyle","innerHTML",4,"ngIf"],[1,"loader"],[1,"caption",3,"ngStyle","innerHTML"],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf","ngForTrackBy"],[3,"click"],["type","button"]],template:function(t,n){1&t&&(k(0,"div",0),ae("click",function(a){return n.exitFullScreen(a)}),Ce(1,"i",1),M(),k(2,"div",2,3),P(4,$U,3,22,"a",4),k(5,"div",5),ae("click",function(){return n.onSlide(-1)}),Ce(6,"i",6,7),M(),k(8,"div",8),ae("click",function(){return n.onSlide(1)}),Ce(9,"i",9,10),M(),P(11,ZU,2,2,"ul",11),M()),2&t&&(We("display-none",!n.fullscreen),w(2),We("slideshow-container-fs",n.fullscreen),w(2),E("ngForOf",n.slides)("ngForTrackBy",n.trackByFn),w(1),We("display-none",!n.showArrows||n.hideLeftArrow),w(3),We("display-none",!n.showArrows||n.hideRightArrow),w(3),E("ngIf",n.showDots))},directives:[Nn,$a,Qt],styles:['.display-none[_ngcontent-%COMP%]{display:none!important}.fs-container[_ngcontent-%COMP%]{display:block;cursor:pointer;position:fixed;z-index:1;top:16px;left:16px;width:46px;height:46px;text-align:center;padding:0;background-color:#0003;transition:all .2s ease-in-out}.fs-container[_ngcontent-%COMP%]:hover{background-color:#00000054}.fs-container[_ngcontent-%COMP%]   .arrow-exitfs[_ngcontent-%COMP%]{display:block;width:30px;height:30px;background:transparent;border-top:2px solid #f2f2f2;transition:all .2s ease-in-out}.fs-container[_ngcontent-%COMP%]   .arrow-exitfs.prev[_ngcontent-%COMP%]{transform:rotate(-45deg);position:relative;left:18px;top:18px}.fs-container[_ngcontent-%COMP%]   .arrow-exitfs[_ngcontent-%COMP%]:after{content:"";width:30px;height:30px;background:transparent;border-top:2px solid #f2f2f2;transform:rotate(90deg);position:absolute;left:-15px;top:-17px}.slideshow-container.slideshow-container-fs[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100%;height:100%}.slideshow-container[_ngcontent-%COMP%]{position:relative;display:block;margin:auto;height:100%;width:100%;overflow:hidden}.slideshow-container[_ngcontent-%COMP%]   .hide-slide[_ngcontent-%COMP%]{visibility:hidden;position:absolute;top:-100vw;left:-100vw;opacity:0}.slideshow-container[_ngcontent-%COMP%]   .slides[_ngcontent-%COMP%]{touch-action:pan-y;position:absolute;top:0;height:100%;width:100%;visibility:visible;opacity:1;display:block}.slideshow-container[_ngcontent-%COMP%]   .slides.selected[_ngcontent-%COMP%]{left:0}.slideshow-container[_ngcontent-%COMP%]   .slides.left-slide[_ngcontent-%COMP%]{left:-100%}.slideshow-container[_ngcontent-%COMP%]   .slides.right-slide[_ngcontent-%COMP%]{left:100%}.slideshow-container[_ngcontent-%COMP%]   .slides.slide-in-left[_ngcontent-%COMP%]{left:0;-webkit-animation:slideInLeft .5s cubic-bezier(.42,0,.58,1);animation:slideInLeft .5s cubic-bezier(.42,0,.58,1)}.slideshow-container[_ngcontent-%COMP%]   .slides.slide-in-right[_ngcontent-%COMP%]{left:0;-webkit-animation:slideInRight .5s cubic-bezier(.42,0,.58,1);animation:slideInRight .5s cubic-bezier(.42,0,.58,1)}.slideshow-container[_ngcontent-%COMP%]   .slides.slide-out-left[_ngcontent-%COMP%]{left:-100%;-webkit-animation:slideOutLeft .5s cubic-bezier(.42,0,.58,1);animation:slideOutLeft .5s cubic-bezier(.42,0,.58,1)}.slideshow-container[_ngcontent-%COMP%]   .slides.slide-out-right[_ngcontent-%COMP%]{left:100%;-webkit-animation:slideOutRight .5s cubic-bezier(.42,0,.58,1);animation:slideOutRight .5s cubic-bezier(.42,0,.58,1)}.slideshow-container[_ngcontent-%COMP%]   .slides.link[_ngcontent-%COMP%]{cursor:pointer}.slideshow-container[_ngcontent-%COMP%]   .slides[_ngcontent-%COMP%]:not(.link){cursor:default}.slideshow-container[_ngcontent-%COMP%]   .caption[_ngcontent-%COMP%]{position:absolute;bottom:0;padding:10px;width:100%}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;top:0;height:100%;width:auto;cursor:pointer;background-size:100%;background-image:linear-gradient(transparent,transparent);z-index:100;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]:before{display:block;height:100%;position:absolute;top:0;left:0;opacity:0;width:100%;z-index:-100;transition:opacity .45s}.slideshow-container[_ngcontent-%COMP%]   .arrow-container.prev[_ngcontent-%COMP%]{left:0}.slideshow-container[_ngcontent-%COMP%]   .arrow-container.prev[_ngcontent-%COMP%]:before{background-image:linear-gradient(to left,transparent,rgba(0,0,0,.75));content:""}.slideshow-container[_ngcontent-%COMP%]   .arrow-container.next[_ngcontent-%COMP%]{right:0}.slideshow-container[_ngcontent-%COMP%]   .arrow-container.next[_ngcontent-%COMP%]:before{background-image:linear-gradient(to right,transparent,rgba(0,0,0,.75));content:""}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:block;margin:auto;width:30px;height:30px;background:transparent;border-top:2px solid #f2f2f2;border-left:2px solid #f2f2f2;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:before{display:block;height:200%;width:200%;margin-left:-50%;margin-top:-50%;content:"";transform:rotate(45deg)}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow.prev[_ngcontent-%COMP%]{transform:rotate(-45deg);position:relative;left:20px;margin-right:10px}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow.next[_ngcontent-%COMP%]{transform:rotate(135deg);position:relative;right:20px;margin-left:10px}.slideshow-container[_ngcontent-%COMP%]   .slick-dots[_ngcontent-%COMP%]{display:block;bottom:15px;z-index:1;text-align:center;position:absolute;padding:0;left:0;right:0;margin:0 auto}.slideshow-container[_ngcontent-%COMP%]   .slick-dots[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline;margin:0;padding:0}.slideshow-container[_ngcontent-%COMP%]   .slick-dots[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background:none;text-indent:-9999px;font-size:0;width:20px;height:20px;outline:none;position:relative;z-index:1;cursor:pointer}.slideshow-container[_ngcontent-%COMP%]   .slick-dots[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:before{content:"";width:4px;height:4px;background:#FFF;background:var(--dot-color, #FFF);border-radius:4px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:.7;transition:all .5s ease-out}.slideshow-container[_ngcontent-%COMP%]   .slick-dots[_ngcontent-%COMP%]   li.slick-active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:before{transform:translate(-50%,-50%) scale(1.4);opacity:1}@media screen and (min-width: 768px){.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]:hover:before{opacity:1}.slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]:hover   .arrow[_ngcontent-%COMP%], .slideshow-container[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:hover{border-width:4px}}@-webkit-keyframes slideInRight{0%{left:-100%}to{left:0}}@keyframes slideInRight{0%{left:-100%}to{left:0}}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}@-webkit-keyframes slideOutRight{0%{left:0}to{left:-100%}}@keyframes slideOutRight{0%{left:0}to{left:-100%}}@-webkit-keyframes slideOutLeft{0%{left:0}to{left:100%}}@keyframes slideOutLeft{0%{left:0}to{left:100%}}.loader[_ngcontent-%COMP%]{position:absolute;left:50%;margin-left:-20px;top:50%;margin-top:-20px;border:5px solid #f3f3f3;border-top:5px solid #555;border-radius:50%;width:50px;height:50px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0}),e}(),XU=["slideshow"];function JU(e,r){if(1&e&&(k(0,"div",2),Ce(1,"slideshow",3,4),M()),2&e){var t=S();w(1),E("imageUrls",t.imageUrls)("showDots",!0)("showArrows",!1)("showCaptions",!1)}}function eG(e,r){if(1&e){var t=Ie();ut(0),k(1,"img",7),ae("click",function(){var s=Q(t).index;return S(2).navImageClicked(s)}),M(),dt()}if(2&e){var n=r.$implicit,i=S(2);w(1),We("configurator-thumbnail",null==i.options.scenes?null:i.options.scenes.useAttachments),E("width",null==i.options.scenes?null:i.options.scenes.thumbNailWidth)("height",null==i.options.scenes?null:i.options.scenes.thumbNailHeight)("src",n.url,qt)}}function tG(e,r){if(1&e&&(k(0,"div",5),P(1,eG,2,5,"ng-container",6),M()),2&e){var t=S();w(1),E("ngForOf",t.thumbnails)}}var cC=function(){var e=function(){function r(t){v(this,r),this.modal=t,this.imageUrls=[],this.thumbnails=[]}return h(r,[{key:"ngOnInit",value:function(){}},{key:"navImageClicked",value:function(n){var i=Math.abs(this.slideshow.slideIndex-n);if(this.slideshow.slideIndex!==n){if(n>this.slideshow.slideIndex)for(var a=0;a<i;a++)this.slideshow.onSlide(1);if(n<this.slideshow.slideIndex)for(var o=0;o<i;o++)this.slideshow.onSlide(-1)}}},{key:"sceneImageClicked",value:function(){var n=this;this.isModalShown=!0,this.modal.create({nzWidth:"auto",nzTitle:this.slideshow.imageUrls[this.slideshow.slideIndex].remarks,nzContent:h4,nzComponentParams:{imageUrl:this.slideshow.imageUrls[this.slideshow.slideIndex].url},nzStyle:{minWidth:"auto"},nzFooter:null}).afterClose.subscribe(function(){return n.isModalShown=!1})}},{key:"ngOnChanges",value:function(n){var a,o,i=this;!(null===(a=this.options.scenes)||void 0===a?void 0:a.useAttachments)&&n.visuals&&(this.imageUrls=this.visuals?this.visuals.map(function(s){return{url:s.url,caption:s.remarks,clickAction:function(){return i.sceneImageClicked()}}}):[],this.thumbnails=this.imageUrls),(null===(o=this.options.scenes)||void 0===o?void 0:o.useAttachments)&&n.attachments&&this.attachments&&(this.imageUrls=this.filterAttachments(fo.Image),this.thumbnails=this.filterAttachments(fo.Thumbnail))}},{key:"filterAttachments",value:function(n){var i=this;return this.attachments.filter(function(a){return a.kind===n}).map(function(a){return{url:encodeURI(a.path),clickAction:function(){return i.sceneImageClicked()}}})}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Co))},e.\u0275cmp=ct({type:e,selectors:[["sds-visuals"]],viewQuery:function(t,n){var i;1&t&&Hr(XU,7),2&t&&Cr(i=br())&&(n.slideshow=i.first)},inputs:{attachments:"attachments",visuals:"visuals",options:"options"},features:[Mt],decls:2,vars:2,consts:[["tabIndex","0","class","configurator-selected-visual",4,"ngIf"],["fxShow","","fxLayout","row","fxHide.xs","true","class","configurator-thumbnails",4,"ngIf"],["tabIndex","0",1,"configurator-selected-visual"],["backgroundSize","contain",3,"imageUrls","showDots","showArrows","showCaptions"],["slideshow",""],["fxShow","","fxLayout","row","fxHide.xs","true",1,"configurator-thumbnails"],[4,"ngFor","ngForOf"],[3,"width","height","src","click"]],template:function(t,n){1&t&&(P(0,JU,3,4,"div",0),P(1,tG,2,1,"div",1)),2&t&&(E("ngIf",n.imageUrls&&n.imageUrls.length>0),w(1),E("ngIf",n.thumbnails&&n.thumbnails.length>0))},directives:[Qt,QU,Rm,ha,Nn],styles:["sds-visuals .configurator-selected-visual{width:570px;height:570px;margin-bottom:10px}sds-visuals .configurator-thumbnails{width:570px}sds-visuals .configurator-thumbnails img:not(:last-child){margin-right:17px}sds-visuals img{cursor:pointer}sds-visuals .configurator-thumbnail{-o-object-fit:scale-down;object-fit:scale-down}\n"],encapsulation:2}),e}();function nG(e,r){if(1&e&&(k(0,"span",1),K(1),M()),2&e){var t=S();w(1),Ke(" ",t.materialWashingSymbols," ")}}var uC=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"ngOnInit",value:function(){}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ct({type:e,selectors:[["sds-material-summary"]],inputs:{productType:"productType",remarks:"remarks",materialWashingSymbols:"materialWashingSymbols"},decls:7,vars:7,consts:[["class","washing-symbol",4,"ngIf"],[1,"washing-symbol"]],template:function(t,n){1&t&&(k(0,"div"),k(1,"h4"),K(2),N(3,"translate"),M(),k(4,"p"),K(5),M(),P(6,nG,2,1,"span",0),M()),2&t&&(We("material-description",0===n.productType),w(2),Pe(G(3,5,"label.description")),w(3),Pe(n.remarks),w(1),E("ngIf",n.materialWashingSymbols))},directives:[Qt],pipes:[kn],styles:[".washing-symbol[_ngcontent-%COMP%]{font-family:WashingSymbols}div.material-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:10px;padding:10px;background:white;width:570px}"]}),e}(),Er=function(){var e=h(function r(){v(this,r)});return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e}(),ir=function(){var e=h(function r(){v(this,r)});return e.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",e.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",e.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",e.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",e.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",e.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",e.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",e.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",e.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",e.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",e.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",e.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",e.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",e.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",e}(),rG=ii("collapseMotion",[Mi("expanded",He({height:"*"})),Mi("collapsed",He({height:0,overflow:"hidden"})),Mi("hidden",He({height:0,overflow:"hidden",borderTopWidth:"0"})),jt("expanded => collapsed",Lt("150ms ".concat(ir.EASE_IN_OUT))),jt("expanded => hidden",Lt("150ms ".concat(ir.EASE_IN_OUT))),jt("collapsed => expanded",Lt("150ms ".concat(ir.EASE_IN_OUT))),jt("hidden => expanded",Lt("150ms ".concat(ir.EASE_IN_OUT)))]),iG=(ii("treeCollapseMotion",[jt("* => *",[r9("nz-tree-node:leave,nz-tree-builtin-node:leave",[He({overflow:"hidden"}),i9(0,[Lt("150ms ".concat(ir.EASE_IN_OUT),He({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),r9("nz-tree-node:enter,nz-tree-builtin-node:enter",[He({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),i9(0,[Lt("150ms ".concat(ir.EASE_IN_OUT),He({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),ii("fadeMotion",[jt(":enter",[He({opacity:0}),Lt("".concat(Er.BASE),He({opacity:1}))]),jt(":leave",[He({opacity:1}),Lt("".concat(Er.BASE),He({opacity:0}))])]),ii("helpMotion",[jt(":enter",[He({opacity:0,transform:"translateY(-5px)"}),Lt("".concat(Er.SLOW," ").concat(ir.EASE_IN_OUT),He({opacity:1,transform:"translateY(0)"}))]),jt(":leave",[He({opacity:1,transform:"translateY(0)"}),Lt("".concat(Er.SLOW," ").concat(ir.EASE_IN_OUT),He({opacity:0,transform:"translateY(-5px)"}))])]),ii("moveUpMotion",[jt("* => enter",[He({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),Lt("".concat(Er.BASE),He({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),jt("* => leave",[He({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),Lt("".concat(Er.BASE),He({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),ii("notificationMotion",[Mi("enterRight",He({opacity:1,transform:"translateX(0)"})),jt("* => enterRight",[He({opacity:0,transform:"translateX(5%)"}),Lt("100ms linear")]),Mi("enterLeft",He({opacity:1,transform:"translateX(0)"})),jt("* => enterLeft",[He({opacity:0,transform:"translateX(-5%)"}),Lt("100ms linear")]),Mi("leave",He({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),jt("* => leave",[He({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Lt("100ms linear")])]),"".concat(Er.BASE," ").concat(ir.EASE_OUT_QUINT)),aG="".concat(Er.BASE," ").concat(ir.EASE_IN_QUINT),dC=(ii("slideMotion",[Mi("void",He({opacity:0,transform:"scaleY(0.8)"})),Mi("enter",He({opacity:1,transform:"scaleY(1)"})),jt("void => *",[Lt(iG)]),jt("* => void",[Lt(aG)])]),ii("slideAlertMotion",[jt(":leave",[He({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Lt("".concat(Er.SLOW," ").concat(ir.EASE_IN_OUT_CIRC),He({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),ii("zoomBigMotion",[jt("void => active",[He({opacity:0,transform:"scale(0.8)"}),Lt("".concat(Er.BASE," ").concat(ir.EASE_OUT_CIRC),He({opacity:1,transform:"scale(1)"}))]),jt("active => void",[He({opacity:1,transform:"scale(1)"}),Lt("".concat(Er.BASE," ").concat(ir.EASE_IN_OUT_CIRC),He({opacity:0,transform:"scale(0.8)"}))])]),ii("zoomBadgeMotion",[jt(":enter",[He({opacity:0,transform:"scale(0) translate(50%, -50%)"}),Lt("".concat(Er.SLOW," ").concat(ir.EASE_OUT_BACK),He({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),jt(":leave",[He({opacity:1,transform:"scale(1) translate(50%, -50%)"}),Lt("".concat(Er.SLOW," ").concat(ir.EASE_IN_BACK),He({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),["*"]);function oG(e,r){if(1&e&&(ut(0),Ce(1,"i",6),dt()),2&e){var t=r.$implicit,n=S(2);w(1),E("nzType",t||"right")("nzRotate",n.nzActive?90:0)}}function sG(e,r){if(1&e&&(k(0,"div"),P(1,oG,2,2,"ng-container",2),M()),2&e){var t=S();w(1),E("nzStringTemplateOutlet",t.nzExpandedIcon)}}function lG(e,r){if(1&e&&(ut(0),K(1),dt()),2&e){var t=S();w(1),Pe(t.nzHeader)}}function cG(e,r){if(1&e&&(ut(0),K(1),dt()),2&e){var t=S(2);w(1),Pe(t.nzExtra)}}function uG(e,r){if(1&e&&(k(0,"div",7),P(1,cG,2,1,"ng-container",2),M()),2&e){var t=S();w(1),E("nzStringTemplateOutlet",t.nzExtra)}}var fC="collapse",hC=function(){var e=function(){function r(t,n,i){var a=this;v(this,r),this.nzConfigService=t,this.cdr=n,this.directionality=i,this._nzModuleName=fC,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new _e,this.nzConfigService.getConfigChangeEventForComponent(fC).pipe(ht(this.destroy$)).subscribe(function(){a.cdr.markForCheck()})}return h(r,[{key:"ngOnInit",value:function(){var i,n=this;null===(i=this.directionality.change)||void 0===i||i.pipe(ht(this.destroy$)).subscribe(function(a){n.dir=a,n.cdr.detectChanges()}),this.dir=this.directionality.value}},{key:"addPanel",value:function(n){this.listOfNzCollapsePanelComponent.push(n)}},{key:"removePanel",value:function(n){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(n),1)}},{key:"click",value:function(n){this.nzAccordion&&!n.nzActive&&this.listOfNzCollapsePanelComponent.filter(function(i){return i!==n}).forEach(function(i){i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),n.nzActive=!n.nzActive,n.nzActiveChange.emit(n.nzActive)}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(wa),y(xn),y(Ja,8))},e.\u0275cmp=ct({type:e,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(t,n){2&t&&We("ant-collapse-icon-position-left","left"===n.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===n.nzExpandIconPosition)("ant-collapse-ghost",n.nzGhost)("ant-collapse-borderless",!n.nzBordered)("ant-collapse-rtl","rtl"===n.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:dC,decls:1,vars:0,template:function(t,n){1&t&&(os(),Ya(0))},encapsulation:2,changeDetection:0}),I([Ys(),jn()],e.prototype,"nzAccordion",void 0),I([Ys(),jn()],e.prototype,"nzBordered",void 0),I([Ys(),jn()],e.prototype,"nzGhost",void 0),e}(),vC="collapsePanel",dG=function(){var e=function(){function r(t,n,i,a){var o=this;v(this,r),this.nzConfigService=t,this.cdr=n,this.nzCollapseComponent=i,this.noAnimation=a,this._nzModuleName=vC,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new ie,this.destroy$=new _e,this.nzConfigService.getConfigChangeEventForComponent(vC).pipe(ht(this.destroy$)).subscribe(function(){o.cdr.markForCheck()})}return h(r,[{key:"clickHeader",value:function(){this.nzDisabled||this.nzCollapseComponent.click(this)}},{key:"markForCheck",value:function(){this.cdr.markForCheck()}},{key:"ngOnInit",value:function(){this.nzCollapseComponent.addPanel(this)}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(wa),y(xn),y(hC,1),y(sU,8))},e.\u0275cmp=ct({type:e,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(t,n){2&t&&We("ant-collapse-no-arrow",!n.nzShowArrow)("ant-collapse-item-active",n.nzActive)("ant-collapse-item-disabled",n.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:dC,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(t,n){1&t&&(os(),k(0,"div",0),ae("click",function(){return n.clickHeader()}),P(1,sG,2,1,"div",1),P(2,lG,2,1,"ng-container",2),P(3,uG,2,1,"div",3),M(),k(4,"div",4),k(5,"div",5),Ya(6),M(),M()),2&t&&(zn("aria-expanded",n.nzActive),w(1),E("ngIf",n.nzShowArrow),w(1),E("nzStringTemplateOutlet",n.nzHeader),w(1),E("ngIf",n.nzExtra),w(1),We("ant-collapse-content-active",n.nzActive),E("@.disabled",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("@collapseMotion",n.nzActive?"expanded":"hidden"))},directives:[Qt,mc,fc],encapsulation:2,data:{animation:[rG]},changeDetection:0}),I([jn()],e.prototype,"nzActive",void 0),I([jn()],e.prototype,"nzDisabled",void 0),I([Ys(),jn()],e.prototype,"nzShowArrow",void 0),e}(),fG=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[ua,wr,P0,Z_,J_]]}),e}();function hG(e,r){1&e&&(k(0,"div",6),Ce(1,"nz-spin"),M())}function vG(e,r){if(1&e){var t=Ie();k(0,"div"),k(1,"div"),k(2,"img",7),ae("click",function(){var s=Q(t).$implicit;return S().onChangeMaterial(s)}),M(),M(),M()}if(2&e){var n=r.$implicit,i=S();We("configurator-related-material",!(null!=i.options.scenes&&i.options.scenes.useAttachments))("is-selected",i.selectedMaterial===n),w(1),We("configurator-related-material-content",!(null!=i.options.scenes&&i.options.scenes.useAttachments)),w(1),E("width",null==i.options.scenes?null:i.options.scenes.thumbNailWidth)("height",null==i.options.scenes?null:i.options.scenes.thumbNailHeight)("src",i.getFabric(n),qt)}}function pG(e,r){1&e&&(k(0,"div",8),Ce(1,"nz-spin"),M())}var Ki=function(){function e(r,t){v(this,e),this.modal=r,this.store=t}return h(e,[{key:"ngOnInit",value:function(){var t,n,i;this.store.dispatch(new Z0({pageSize:this.pageSize,includeAttachments:null!==(i=null===(n=null===(t=this.options)||void 0===t?void 0:t.scenes)||void 0===n?void 0:n.useAttachments)&&void 0!==i&&i}))}},{key:"onCancel",value:function(){this.modal.close()}},{key:"onSubmit",value:function(t){this.modal.close(t||this.selectedMaterial)}},{key:"onChangeMaterial",value:function(t){this.selectedMaterial=t}},{key:"getFabric",value:function(t){var n;if(!(null===(n=this.options.scenes)||void 0===n?void 0:n.useAttachments)||this.options.productType===Bs.Article)return null==t?void 0:t.imageUrl;var i=t.attachments.filter(function(a){return a.kind===fo.Thumbnail}).sort(function(a,o){return a.path<o.path?-1:1});return i.hasOwnProperty(this.options.scenes.fabricIndex)?i[this.options.scenes.fabricIndex].path:t.imageUrl}}]),e}();Ki.\u0275fac=function(r){return new(r||Ki)(y(_c),y(pt))},Ki.\u0275cmp=ct({type:Ki,selectors:[["sds-related-materials-browse"]],decls:15,vars:15,consts:[["class","configurator-related-materials-browse-spinner",4,"ngIf"],[3,"configurator-related-material","is-selected",4,"ngFor","ngForOf"],["spinner",""],[1,"configurator-browse-footer"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","default",3,"disabled","click"],[1,"configurator-related-materials-browse-spinner"],[3,"width","height","src","click"],[1,"configurator-browse-spinner"]],template:function(r,t){1&r&&(P(0,hG,2,0,"div",0),N(1,"async"),k(2,"div"),k(3,"div"),P(4,vG,3,9,"div",1),N(5,"async"),M(),P(6,pG,2,0,"ng-template",null,2,Xn),M(),k(8,"div",3),k(9,"button",4),ae("click",function(){return t.onCancel()}),K(10),N(11,"translate"),M(),k(12,"button",5),ae("click",function(){return t.onSubmit()}),K(13),N(14,"translate"),M(),M()),2&r&&(E("ngIf",G(1,7,t.showMoreIsLoading$)),w(3),We("attachment-materials",null==t.options.scenes?null:t.options.scenes.useAttachments),w(1),E("ngForOf",G(5,9,t.showMoreMaterials$)),w(6),Ke(" ",G(11,11,"button.cancel")," "),w(2),E("disabled",!t.selectedMaterial),w(1),Ke(" ",G(14,13,"button.select")," "))},directives:[Qt,r4,Nn,po,vo,Ei],pipes:[bs,kn],styles:[".configurator-browse-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:24px}.configurator-browse-footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:16px}.attachment-materials[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.configurator-related-materials-browse-spinner[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.is-selected[_ngcontent-%COMP%]{border:2px solid #d9d9d9}.configurator-related-materials-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.configurator-related-material-content[_ngcontent-%COMP%]{padding:8px}.attachment-materials[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{cursor:pointer;padding:4px}[_nghost-%COMP%]{overflow:auto;flex-flow:column;display:flex}"]}),I([et(En.showMoreMaterials),b("design:type",de)],Ki.prototype,"showMoreMaterials$",void 0),I([et(En.showMoreIsLoading),b("design:type",de)],Ki.prototype,"showMoreIsLoading$",void 0),I([et(En.itemCount),b("design:type",de)],Ki.prototype,"itemCount$",void 0);var gG=["image"],pC=function(){var e=function(){function r(t,n,i,a){v(this,r),this.modalRef=t,this.dragDropService=n,this.hubService=i,this.store=a,this.defaultdimension=300,this.zoomInIcon="Configurator/Icons/zoom-in.svg",this.zoomOutIcon="Configurator/Icons/zoom-out.svg",this.resetIcon="Configurator/Icons/reset.svg",this.logo="Configurator/logo.png"}return h(r,[{key:"scroll",value:function(n){n.preventDefault(),n.deltaY>0?this.onImageZoomOut():this.onImageZoomIn()}},{key:"ngOnInit",value:function(){this.dimension=this.defaultdimension;var n=this.store.selectSnapshot(Ee.getSelectedApplication);this.applicationLogo=n.logo}},{key:"ngAfterViewInit",value:function(){var n=this;this.draggableImage=this.dragDropService.createDrag(this.image),this.draggableImage.disabled=!0,this.draggableImage.started.subscribe(function(){return n.modalRef.updateConfig(Object.assign(Object.assign({},n.modalRef.getConfig()),{nzMaskClosable:!1}))}),this.draggableImage.released.subscribe(function(){requestAnimationFrame(function(){return n.modalRef.updateConfig(Object.assign(Object.assign({},n.modalRef.getConfig()),{nzMaskClosable:!0}))})})}},{key:"onImageZoomIn",value:function(){this.dimension=this.dimension+100,this.draggableImage.disabled=!(this.dimension>600)}},{key:"onImageZoomOut",value:function(){this.dimension>this.defaultdimension&&(this.dimension=this.dimension-100),this.dimension<=600&&(this.draggableImage.disabled=!0,this.draggableImage.reset())}},{key:"onImageZoomReset",value:function(){this.dimension=this.defaultdimension,this.draggableImage.disabled=!0,this.draggableImage.reset()}},{key:"getImageUrl",value:function(n){if(n){var i=this.store.selectSnapshot(function(a){return a.common.selectedApplicationId});return this.hubService.getImageUrl(i,n)}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(_c),y(km),y(pn),y(pt))},e.\u0275cmp=ct({type:e,selectors:[["sds-zoom-actions-image-popup"]],viewQuery:function(t,n){var i;1&t&&Hr(gG,5),2&t&&Cr(i=br())&&(n.image=i.first)},hostBindings:function(t,n){1&t&&ae("mousewheel",function(a){return n.scroll(a)})},inputs:{imageUrl:"imageUrl",zoom:"zoom"},decls:22,vars:18,consts:[["fxLayout","row","fxLayoutAlign","center",1,"image-container"],["fxLayout","row","fxLayoutAlign","center center",1,"image-wrapper"],[3,"src"],["image",""],[1,"action-container"],[1,"action-button",3,"click"],[1,"logo-wrapper"]],template:function(t,n){1&t&&(k(0,"div",0),k(1,"div",1),Ce(2,"img",2,3),M(),k(4,"div",4),k(5,"button",5),ae("click",function(){return n.onImageZoomIn()}),Ce(6,"img",2),k(7,"span"),K(8),N(9,"translate"),M(),M(),k(10,"button",5),ae("click",function(){return n.onImageZoomOut()}),Ce(11,"img",2),k(12,"span"),K(13),N(14,"translate"),M(),M(),k(15,"button",5),ae("click",function(){return n.onImageZoomReset()}),Ce(16,"img",2),k(17,"span"),K(18),N(19,"translate"),M(),M(),k(20,"div",6),Ce(21,"img",2),M(),M(),M()),2&t&&(w(2),Vi("max-height",n.dimension,"px")("max-width",n.dimension,"px"),E("src",n.imageUrl,qt),w(4),E("src",n.getImageUrl(n.zoomInIcon),qt),w(2),Pe(G(9,12,"button.zoom_in")),w(3),E("src",n.getImageUrl(n.zoomOutIcon),qt),w(2),Pe(G(14,14,"button.zoom_out")),w(3),E("src",n.getImageUrl(n.resetIcon),qt),w(2),Pe(G(19,16,"button.reset")),w(3),E("src",n.getImageUrl(n.logo),qt))},directives:[ha,Ts],pipes:[kn],styles:[".image-container[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]{height:600px;width:600px;overflow:hidden}.image-container[_ngcontent-%COMP%]   .image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{z-index:0}.image-container[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:50px;padding-top:50px;padding-left:50px;border-left:1px solid lightgrey;background-color:#fff;z-index:1}.image-container[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:120px;margin-bottom:20px;background-color:#fff;border:0}.image-container[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]   .action-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding-right:6px}.image-container[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-end;height:100%}.image-container[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:flex;padding-bottom:12px;max-width:150px}"]}),e}();function mG(e,r){1&e&&(k(0,"div",2),Ce(1,"nz-spin"),M())}function yG(e,r){if(1&e){var t=Ie();k(0,"img",10),ae("click",function(){Q(t);var a=S(4);return a.imageClickedWithZoomActions(null==a.options.image?null:a.options.image.width,null==a.options.image?null:a.options.image.height)}),M()}if(2&e){var n=S(4);E("width",null==n.options.scenes?null:n.options.scenes.thumbNailWidth)("height",null==n.options.scenes?null:n.options.scenes.thumbNailHeight)("src",n.fabric,qt)}}function _G(e,r){if(1&e){var t=Ie();k(0,"div"),k(1,"button",11),ae("click",function(){return Q(t),S(4).onShowMore()})("keydown.tab",function(){return Q(t),S(4).onTab(!0)}),K(2),N(3,"translate"),M(),M()}2&e&&(w(2),Ke(" ",G(3,1,"button.choose_a_color")," "))}function CG(e,r){if(1&e&&(k(0,"div",6),k(1,"div",7),K(2),N(3,"translate"),P(4,yG,1,3,"img",8),M(),P(5,_G,4,3,"div",9),M()),2&e){var t=r.$implicit,n=S(3);w(2),Ke(" ",G(3,3,"label.chosen_color")," "),w(2),E("ngIf",n.selectedMaterial),w(1),E("ngIf",t>1)}}function bG(e,r){1&e&&(P(0,CG,6,5,"div",5),N(1,"async")),2&e&&E("ngIf",G(1,1,S(2).itemCount$))}function wG(e,r){if(1&e){var t=Ie();k(0,"div",15),k(1,"div",16),k(2,"img",17),ae("keyup.enter",function(){var o=Q(t).$implicit;return S(4).onChangeMaterial(o)})("click",function(){var o=Q(t).$implicit;return S(4).onChangeMaterial(o)})("keydown.tab",function(){var o=Q(t).last,s=S().$implicit;return S(3).onTab(o&&s<13)}),M(),M(),M()}if(2&e){var n=r.$implicit;w(2),E("src",n.imageUrl,qt)}}function kG(e,r){if(1&e){var t=Ie();k(0,"div"),k(1,"button",18),ae("click",function(){return Q(t),S(4).onShowMore()})("keydown.tab",function(){return Q(t),S(4).onTab(!0)}),K(2),N(3,"translate"),M(),M()}2&e&&(w(2),Ke(" ",G(3,1,"button.choose_a_color")," "))}function MG(e,r){if(1&e&&(k(0,"div",13),k(1,"div"),P(2,wG,3,1,"div",14),N(3,"async"),M(),P(4,kG,4,3,"div",9),M()),2&e){var t=r.$implicit,n=S(3);w(2),E("ngForOf",G(3,2,n.relatedMaterials$)),w(2),E("ngIf",t>12)}}function SG(e,r){1&e&&(P(0,MG,5,4,"div",12),N(1,"async")),2&e&&E("ngIf",G(1,1,S(2).itemCount$))}function DG(e,r){if(1&e&&(P(0,bG,2,3,"ng-template",3),P(1,SG,2,3,"ng-template",null,4,Xn)),2&e){var t=Kt(2);E("ngIf",S().onlyShowSelectedMaterial)("ngIfElse",t)}}var Zi=function(){function e(r,t,n){v(this,e),this.modal=r,this.store=t,this.translate=n,this.onlyShowSelectedMaterial=!1,this.selectedMaterial=null,this.itemSelected=new ie,this.tabOut=new ie}return h(e,[{key:"ngOnInit",value:function(){}},{key:"onShowMore",value:function(){var t=this;this.modal.create({nzTitle:this.translate.instant("label.choose_a_color"),nzContent:Ki,nzComponentParams:{pageSize:144,options:this.options},nzStyle:{minWidth:"50vw",display:"flex",flexDirection:"column",overflow:"auto"},nzFooter:null}).afterClose.subscribe(function(i){i&&i.id>0&&t.onChangeMaterial(i)})}},{key:"onTab",value:function(t,n){t&&this.tabOut.emit()}},{key:"onChangeMaterial",value:function(t){var n=this.store.selectSnapshot(function(o){return{selectedPolygon:o.project.selectedPolygon,applicationId:o.common.selectedApplicationId}}),a=n.selectedPolygon.categoryLinks.find(function(o){return o.isMainCategory});this.store.dispatch(new a0({material:t})),this.store.dispatch(new cc({categoryLinkId:a.id,materialId:t.id,applicationId:n.applicationId})),this.itemSelected.emit()}},{key:"imageClicked",value:function(t,n,i){var a=this,o=new URLSearchParams(this.selectedMaterial.imageUrl);null!=t&&o.set("width",t.toString()),null!=n&&o.set("height",t.toString()),this.isModalShown=!0,this.modal.create({nzWidth:"auto",nzContent:h4,nzComponentParams:{zoom:!0,imageUrl:decodeURIComponent(o.toString())},nzStyle:{minWidth:"auto"},nzFooter:null}).afterClose.subscribe(function(){return a.isModalShown=!1})}},{key:"imageClickedWithZoomActions",value:function(t,n){var a,o,s,i=this,l=this.selectedMaterial.imageUrl;if(null===(a=this.options.scenes)||void 0===a?void 0:a.useAttachments)l=this.fabric.indexOf(null===(o=this.options.scenes)||void 0===o?void 0:o.thumbnailPattern)>-1?this.fabric.replace(null===(s=this.options.scenes)||void 0===s?void 0:s.thumbnailPattern,""):this.fabric;else{var c=new URLSearchParams(l);null!=t&&c.set("width",t.toString()),null!=n&&c.set("height",t.toString()),l=c.toString()}this.isModalShown=!0,this.modal.create({nzWidth:"auto",nzContent:pC,nzComponentParams:{zoom:!0,imageUrl:decodeURIComponent(l)},nzFooter:null}).afterClose.subscribe(function(){return i.isModalShown=!1})}}]),e}();function xG(e,r){if(1&e){var t=Ie();k(0,"div",1),ae("keydown.tab",function(){var s=Q(t).last;return S().onTab(s)})("keyup.enter",function(){var s=Q(t).$implicit;return S().onCategoryChange(s.productCategoryId)})("click",function(){var s=Q(t).$implicit;return S().onCategoryChange(s.productCategoryId)}),Ce(1,"img",2),k(2,"span"),K(3),M(),M()}if(2&e){var n=r.$implicit,i=S();We("is-selected",n.productCategoryId===i.selectedCategoryId),w(1),E("src",i.getImageUrl(n),qt),w(2),Pe(n.productCategoryDescription)}}Zi.\u0275fac=function(r){return new(r||Zi)(y(Co),y(pt),y(G0))},Zi.\u0275cmp=ct({type:Zi,selectors:[["sds-related-materials"]],inputs:{onlyShowSelectedMaterial:"onlyShowSelectedMaterial",selectedMaterial:"selectedMaterial",options:"options",fabric:"fabric"},outputs:{itemSelected:"itemSelected",tabOut:"tabOut"},decls:4,vars:4,consts:[["class","configurator-related-materials-spinner",4,"ngIf","ngIfElse"],["conditionalTemplate",""],[1,"configurator-related-materials-spinner"],[3,"ngIf","ngIfElse"],["allRelatedMaterials",""],["fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column",1,"selected-material"],[3,"width","height","src","click",4,"ngIf"],[4,"ngIf"],[3,"width","height","src","click"],[1,"related-materials-button",3,"click","keydown.tab"],["fxLayout","column",4,"ngIf"],["fxLayout","column"],["class","configurator-related-material",4,"ngFor","ngForOf"],[1,"configurator-related-material"],[1,"configurator-related-material-content"],["tabIndex","0",3,"src","keyup.enter","click","keydown.tab"],[3,"click","keydown.tab"]],template:function(r,t){if(1&r&&(P(0,mG,2,0,"div",0),N(1,"async"),P(2,DG,3,2,"ng-template",null,1,Xn)),2&r){var n=Kt(3);E("ngIf",G(1,2,t.isLoading$))("ngIfElse",n)}},directives:[Qt,r4,ha,Ts,Nn],pipes:[bs,kn],styles:["sds-related-materials{display:block}sds-related-materials .configurator-related-materials-spinner{display:flex;justify-content:center;align-items:center}sds-related-materials .related-materials-button{margin-right:32px}.configurator-related-material-content{padding:8px}\n"],encapsulation:2}),I([et(function(e){return e.relatedMaterials.materials}),b("design:type",de)],Zi.prototype,"relatedMaterials$",void 0),I([et(function(e){return e.relatedMaterials.isLoading}),b("design:type",de)],Zi.prototype,"isLoading$",void 0),I([et(function(e){return e.relatedMaterials.itemCount}),b("design:type",de)],Zi.prototype,"itemCount$",void 0);var gC=function(){var e=function(){function r(t,n){v(this,r),this.hubService=t,this.store=n,this.selectedProductCategoryId=new ie,this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){this.selectedCategoryId=this.selectedPolygon.productCategoryId}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onCategoryChange",value:function(n){this.isDisabled||(this.selectedCategoryId=n,this.selectedProductCategoryId.emit(n),this.store.dispatch(new $0({productCategoryId:n})))}},{key:"getImageUrl",value:function(n){if(n.imageUrl&&n.imageUrl.startsWith("https://"))return n.imageUrl;if(this.imagePath){var i=this.imagePath;return i.endsWith("/")||(i+="/"),i+n.imageUrl}return this.hubService.getImageUrl(n.applicationId,n.mainCategoryLinkImage?n.mainCategoryLinkImage:n.imageUrl)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pn),y(pt))},e.\u0275cmp=ct({type:e,selectors:[["sds-category-menu"]],inputs:{categoryMenu:"categoryMenu",selectedPolygon:"selectedPolygon",imagePath:"imagePath",isDisabled:"isDisabled"},outputs:{selectedProductCategoryId:"selectedProductCategoryId",tabOut:"tabOut"},decls:1,vars:1,consts:[["tabIndex","0","class","configurator-model",3,"is-selected","keydown.tab","keyup.enter","click",4,"ngFor","ngForOf"],["tabIndex","0",1,"configurator-model",3,"keydown.tab","keyup.enter","click"],[3,"src"]],template:function(t,n){1&t&&P(0,xG,4,4,"div",0),2&t&&E("ngForOf",n.categoryMenu)},directives:[Nn],styles:["sds-category-menu{display:flex;flex-direction:row;flex-wrap:wrap}sds-category-menu .product-remarks{width:100%}\n"],encapsulation:2}),e}();function EG(e,r){if(1&e){var t=Ie();k(0,"div",2),ae("keydown.tab",function(){var s=Q(t).last;return S().onTab(s)})("keyup.enter",function(){var s=Q(t).$implicit;return S().onModelChange(s.id)})("click",function(){var s=Q(t).$implicit;return S().onModelChange(s.id)}),Ce(1,"img",3),k(2,"span"),K(3),M(),M()}if(2&e){var n=r.$implicit,i=S();We("is-selected",n.id===(null==i.selectedPolygon?null:i.selectedPolygon.modelId)),w(1),E("src",i.getImageUrl(n),qt),w(2),Pe(n.description)}}var mC=function(){var e=function(){function r(t,n,i){v(this,r),this.hubService=t,this.store=n,this.dimensionsService=i,this.itemSelected=new ie,this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onModelChange",value:function(n){return be(this,void 0,void 0,R().mark(function i(){var o,s,l,c,u,d,a=this;return R().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!this.isDisabled){p.next=2;break}return p.abrupt("return");case 2:if(o=this.store.selectSnapshot(tn.getModels),!(s=o.find(function(g){return g.id===n}))){p.next=15;break}return l=this.categoryModelMenu.find(function(g){return g.id===a.selectedPolygon.modelId}),p.next=8,this.store.dispatch(new lc({new:s,previous:l})).toPromise();case 8:c=this.store.selectSnapshot(Mn.getWidth),u=this.store.selectSnapshot(Mn.getHeight),d={},s.isWidthEnabled&&c&&!this.selectedPolygon.width&&(d.width=c),s.isHeightEnabled&&u&&!this.selectedPolygon.height&&(d.height=u),(d.width||d.height)&&this.dimensionsService.setDimensions(d,this.selectedPolygon),this.itemSelected.emit();case 15:case"end":return p.stop()}},i,this)}))}},{key:"getImageUrl",value:function(n){if(n.imageUrl&&n.imageUrl.startsWith("https://"))return n.imageUrl;if(this.imagePath){var i=this.imagePath;return i.endsWith("/")||(i+="/"),i+n.imageUrl}return this.hubService.getImageUrl(n.applicationId,n.imageUrl)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pn),y(pt),y(i4))},e.\u0275cmp=ct({type:e,selectors:[["sds-category-model-menu"]],inputs:{categoryModelMenu:"categoryModelMenu",selectedPolygon:"selectedPolygon",imagePath:"imagePath",isDisabled:"isDisabled"},outputs:{itemSelected:"itemSelected",tabOut:"tabOut"},decls:5,vars:4,consts:[[1,"product-remarks"],["tabIndex","0","class","configurator-model",3,"is-selected","keydown.tab","keyup.enter","click",4,"ngFor","ngForOf"],["tabIndex","0",1,"configurator-model",3,"keydown.tab","keyup.enter","click"],[3,"src"]],template:function(t,n){1&t&&(k(0,"div",0),k(1,"p"),K(2),N(3,"translate"),M(),M(),P(4,EG,4,4,"div",1)),2&t&&(w(2),Ke("",G(3,2,"info.product_selector_remarks")," "),w(2),E("ngForOf",n.categoryModelMenu))},directives:[Nn],pipes:[kn],styles:["sds-category-model-menu{display:flex;flex-direction:row;flex-wrap:wrap}sds-category-model-menu .product-remarks{width:100%}\n"],encapsulation:2}),e}();function TG(e,r){if(1&e){var t=Ie();k(0,"div"),k(1,"p"),k(2,"span"),K(3),N(4,"translate"),M(),M(),k(5,"p"),k(6,"span"),K(7),N(8,"translate"),M(),M(),k(9,"button",6),ae("keydown.tab",function(){return Q(t),S().onTab(!0)})("click",function(){return Q(t),S().onMeasureByShopkeeper()}),K(10),N(11,"translate"),M(),M()}2&e&&(w(3),Pe(G(4,3,"label.measure_are_you_stuck")),w(4),Pe(G(8,5,"label.ask_shopkeeper")),w(3),Ke(" ",G(11,7,"button.measure_by_shopkeeper")," "))}function zG(e,r){1&e&&(k(0,"span"),K(1),N(2,"translate"),M()),2&e&&(w(1),Pe(G(2,1,"label.instructions_link")))}function AG(e,r){1&e&&Ce(0,"iframe",12),2&e&&E("src",S(2).sanitizedMovieUrl,k2)}function PG(e,r){if(1&e){var t=Ie();k(0,"a",13),ae("keydown.tab",function(){return Q(t),S(2).onTab(!0)}),K(1),N(2,"translate"),M()}2&e&&(E("href",S(2).instructionUrl,qt),w(1),Pe(G(2,2,"action.click_here_more_info")))}function OG(e,r){if(1&e&&(k(0,"div",7),k(1,"div",8),P(2,AG,1,1,"iframe",9),M(),k(3,"div",10),P(4,PG,3,4,"a",11),M(),M()),2&e){var t=S();w(2),E("ngIf",t.sanitizedMovieUrl),w(2),E("ngIf",t.instructionUrl)}}function FG(e,r){if(1&e){var t=Ie();k(0,"button",14),ae("click",function(){return Q(t),S().onCloseModal()}),K(1),N(2,"translate"),M()}2&e&&(w(1),Ke(" ",G(2,1,"button.close")," "))}var yC=function(){var e=function(){function r(t,n){v(this,r),this.sanitizer=t,this.modalService=n,this.measureDataByShopKeeper=new ie,this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(n){n.instructionMovieUrl&&n.instructionMovieUrl.previousValue!==n.instructionMovieUrl.currentValue&&(this.sanitizedMovieUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.instructionMovieUrl))}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onMeasureByShopkeeper",value:function(){this.selectedPolygon&&this.measureDataByShopKeeper.emit(this.selectedPolygon)}},{key:"onOpenMeasureDataPopUp",value:function(n,i,a){this.modal=this.modalService.create({nzTitle:n,nzContent:i,nzFooter:a,nzMaskClosable:!0,nzClosable:!0})}},{key:"onCloseModal",value:function(){this.modal.destroy()}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Ka),y(Co))},e.\u0275cmp=ct({type:e,selectors:[["sds-measure-data"]],inputs:{selectedPolygon:"selectedPolygon",showAskShopKeeper:"showAskShopKeeper",instructionMovieUrl:"instructionMovieUrl",instructionUrl:"instructionUrl"},outputs:{measureDataByShopKeeper:"measureDataByShopKeeper",tabOut:"tabOut"},features:[Mt],decls:11,vars:4,consts:[[1,"measure-data"],[4,"ngIf"],[1,"show-measure-data-pop-up",3,"click"],["modalTitle",""],["modalContent",""],["modalFooter",""],[3,"keydown.tab","click"],[1,"modal-content"],[1,"instruction-movie"],["frameborder","0","allow","autoplay; encrypted-media","allowfullscreen","",3,"src",4,"ngIf"],[1,"instruction-url"],[3,"href","keydown.tab",4,"ngIf"],["frameborder","0","allow","autoplay; encrypted-media","allowfullscreen","",3,"src"],[3,"href","keydown.tab"],["nz-button","","nzType","primary",1,"close-modal-btn",3,"click"]],template:function(t,n){if(1&t){var i=Ie();k(0,"div",0),P(1,TG,12,9,"div",1),k(2,"button",2),ae("click",function(){Q(i);var o=Kt(6),s=Kt(8),l=Kt(10);return n.onOpenMeasureDataPopUp(o,s,l)}),K(3),N(4,"translate"),M(),P(5,zG,3,3,"ng-template",null,3,Xn),P(7,OG,5,2,"ng-template",null,4,Xn),P(9,FG,3,3,"ng-template",null,5,Xn),M()}2&t&&(w(1),E("ngIf",n.showAskShopKeeper),w(2),Ke(" ",G(4,2,"button.open_measure_instructions")," "))},directives:[Qt,po,vo,Ei],pipes:[kn],styles:[".measure-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.modal-content[_ngcontent-%COMP%]{padding:10px}.modal-content[_ngcontent-%COMP%]   .instruction-movie[_ngcontent-%COMP%]{flex:1;display:flex;height:500px;flex-direction:column;justify-content:center;align-items:center}.modal-content[_ngcontent-%COMP%]   .instruction-movie[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{width:90%;height:90%}.close-modal-btn[_ngcontent-%COMP%]{float:right}"]}),e}(),IG=function(){var e=function(){function r(){v(this,r)}return h(r,[{key:"getProperty",value:function(n,i){if(!n||n.displayProperties){var a=n.displayProperties.find(function(o){return o.description.toLowerCase()===i});return a?a.value:null}}}]),r}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),LG=function(r,t){return[r,"string",t,"1.2-2","nl"]};function HG(e,r){if(1&e&&(k(0,"span",15),K(1),N(2,"currency"),M()),2&e){var t=S().$implicit;w(1),Pe(Ga(2,1,Su(7,LG,t.salePrice,"\u20ac ")))}}function VG(e,r){if(1&e){var t=Ie();k(0,"div",8),ae("keyup.enter",function(){var l=Q(t).$implicit;return S(2).selectedMaterial=l})("click",function(){var l=Q(t).$implicit;return S(2).selectedMaterial=l})("dblclick",function(){var l=Q(t).$implicit;return S(2).onSubmit(l)}),k(1,"div",9),k(2,"div",10),Ce(3,"img",11),M(),M(),k(4,"div",12),k(5,"span",13),K(6),M(),P(7,HG,3,10,"span",14),M(),M()}if(2&e){var a,n=r.$implicit,i=S(2);We("is-selected",i.selectedMaterial===n),w(3),E("src",null!==(a=n.backgroundTileTexture)&&void 0!==a?a:n.imageUrl,qt),w(3),k3("",n.description," ",i.getProperty(n,"color"),""),w(1),E("ngIf",n.id>0)}}function RG(e,r){if(1&e&&(k(0,"div",6),P(1,VG,8,6,"div",7),M()),2&e){var t=S();w(1),E("ngForOf",t.pagedResult.items)}}function NG(e,r){1&e&&(k(0,"div",16),Ce(1,"nz-spin"),M())}var BG=function(){var e=function(){function r(t,n,i,a,o){v(this,r),this.store=t,this.hubService=n,this.modal=i,this.translate=a,this.propertyService=o}return h(r,[{key:"ngOnInit",value:function(){var n=this.store.selectSnapshot(function(i){return i.common.selectedApplicationId});this.loadMaterials(n)}},{key:"onCancel",value:function(){this.modal.close()}},{key:"onSubmit",value:function(n){this.modal.close(n||this.selectedMaterial)}},{key:"setMaterialGroupFilter",value:function(n){return be(this,void 0,void 0,R().mark(function i(){var o,s,a=this;return R().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(null==n){c.next=4;break}return o=this.options.materialGroupSettings.filter(function(u){return u.categoryId===a.categoryLink.parentCategoryId}).map(function(u){return u.groupIds}),s=o.map(Number),c.abrupt("return",s);case 4:return c.abrupt("return",null);case 5:case"end":return c.stop()}},i,this)}))}},{key:"loadMaterials",value:function(n){return be(this,void 0,void 0,R().mark(function i(){return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=this.hubService,o.t1=this.categoryLink.categoryMaterialOptionFilter,o.next=4,this.setMaterialGroupFilter(this.categoryLink);case 4:return o.t2=o.sent,o.t3={pageIndex:1,categoryOptionFilter:o.t1,materialGroupIds:o.t2,pageSize:0,includeAttachments:!0},o.t4={filter:o.t3},o.t5=n,o.next=10,o.t0.browseMaterials.call(o.t0,o.t4,o.t5);case 10:this.pagedResult=o.sent,this.pagedResult.items.unshift({id:-1,code:"",eanCode:"-1",supplierCode:"-1",description:this.translate.instant("label.none")+" "+(this.categoryLink.description?this.categoryLink.description.toLowerCase():""),remarks:"",promotionPrice:-1,salePrice:-1,saleQuantity:-1,saleUnit:"",leadTime:-1,imageUrl:this.getImageUrl("cancel.svg"),supplierId:-1,extraFieldValues:null,materialOptionValues:null,displayProperties:null,promotions:null,attachments:null,categoryDescription:"",categoryId:-1});case 12:case"end":return o.stop()}},i,this)}))}},{key:"getImageUrl",value:function(n){if(n){var i=this.store.selectSnapshot(function(a){return a.common.selectedApplicationId});return this.hubService.getImageUrl(i,n)}}},{key:"getProperty",value:function(n,i){return this.propertyService.getProperty(n,i)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pt),y(pn),y(_c),y(G0),y(IG))},e.\u0275cmp=ct({type:e,selectors:[["sds-material-browse"]],decls:11,vars:9,consts:[[1,"configurator-browse-content"],["class","configurator-browse-materials",4,"ngIf","ngIfElse"],["spinner",""],[1,"configurator-browse-footer"],["nz-button","","tabIndex","0","nzType","default",3,"click"],["nz-button","","tabIndex","0","nzType","default",3,"disabled","click"],[1,"configurator-browse-materials"],["tabIndex","0","class","configurator-browse-material",3,"is-selected","keyup.enter","click","dblclick",4,"ngFor","ngForOf"],["tabIndex","0",1,"configurator-browse-material",3,"keyup.enter","click","dblclick"],[1,"configurator-browse-material-preview"],[1,"configurator-browse-material-content"],[1,"material-image",3,"src"],[1,"configurator-browse-material-info"],[1,"description"],["class","price",4,"ngIf"],[1,"price"],[1,"configurator-browse-spinner"]],template:function(t,n){if(1&t&&(k(0,"div",0),P(1,RG,2,1,"div",1),P(2,NG,2,0,"ng-template",null,2,Xn),M(),k(4,"div",3),k(5,"button",4),ae("click",function(){return n.onCancel()}),K(6),N(7,"translate"),M(),k(8,"button",5),ae("click",function(){return n.onSubmit()}),K(9),N(10,"translate"),M(),M()),2&t){var i=Kt(3);w(1),E("ngIf",n.pagedResult)("ngIfElse",i),w(5),Ke(" ",G(7,5,"button.cancel")," "),w(2),E("disabled",!n.selectedMaterial),w(1),Ke(" ",G(10,7,"button.select")," ")}},directives:[Qt,Nn,r4,po,vo,Ei],pipes:[pd,kn],styles:["sds-material-browse{display:flex;flex-direction:column;height:100%}.configurator-browse-content{flex:1 1 100%;overflow:auto}.configurator-browse-footer{display:flex;justify-content:flex-end;margin-top:24px}.configurator-browse-footer button{margin-left:16px}.configurator-browse-spinner{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.configurator-browse-material{display:flex;flex-direction:column;width:25%;float:left;padding:16px;border:2px solid transparent}.configurator-browse-material.is-selected{border-color:gray}.configurator-browse-material-info span{display:block}.material-image{width:100%}\n"],encapsulation:2}),e}();function YG(e,r){if(1&e&&(k(0,"p"),K(1),M()),2&e){var t=S();w(1),Pe(t.categoryLink.remarks)}}function jG(e,r){if(1&e&&Ce(0,"img",10),2&e){var t=S(2);We("none-selected-image",t.hasNoneSelectedImage),E("src",t.image,qt)}}function UG(e,r){if(1&e&&(k(0,"div",8),P(1,jG,1,3,"img",9),M()),2&e){var t=S();w(1),E("ngIf",t.image)}}function GG(e,r){if(1&e&&(k(0,"div",11),k(1,"h3"),K(2),M(),M()),2&e){var t=S();w(2),Pe(t.categoryLink.categoryLinkMaterial.materialDescription)}}function WG(e,r){if(1&e&&(k(0,"div",11),k(1,"h3"),K(2),N(3,"translate"),M(),M()),2&e){var t=S(2);w(2),Pe(G(3,1,"label.none")+" "+t.categoryLink.description)}}function qG(e,r){1&e&&P(0,WG,4,3,"div",12),2&e&&E("ngIf",S().useNoneSelectedImage)}var _C=function(){var e=function(){function r(t,n,i){v(this,r),this.modal=t,this.store=n,this.hubService=i,this.useNoneSelectedImage=!1,this.image=null,this.hasNoneSelectedImage=!1,this.itemSelected=new ie,this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){this.setNoneSelectedImage()}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onSelectCategoryLinkMaterial",value:function(){var n=this;this.modal.create({nzTitle:this.categoryLink.description,nzContent:BG,nzComponentParams:{categoryLink:this.categoryLink,options:this.options},nzStyle:{minWidth:"50vw",display:"flex",flexDirection:"column",overflow:"auto"},nzFooter:null}).afterClose.subscribe(function(a){if(a&&a.id>0){var o=n.store.selectSnapshot(function(s){return s.common.selectedApplicationId});n.store.dispatch(new cc({categoryLinkId:n.categoryLink.id,materialId:a.id,applicationId:o})),n.image=a.imageUrl,n.hasNoneSelectedImage=!1,n.itemSelected.emit()}else n.onRemoveCategoryLinkMaterial(),n.useNoneSelectedImage&&(n.image=n.getImageUrl("cancel.svg"),n.hasNoneSelectedImage=!0)})}},{key:"onRemoveCategoryLinkMaterial",value:function(){var n=this.store.selectSnapshot(function(i){return i.project.selectedPolygon});this.image=null,this.store.dispatch(new l0({categoryLink:this.categoryLink,polygon:n}))}},{key:"getImageUrl",value:function(n){if(n){if(n.startsWith("https://"))return n;var i=this.store.selectSnapshot(function(a){return a.common.selectedApplicationId});return this.hubService.getImageUrl(i,n)}}},{key:"setNoneSelectedImage",value:function(){this.useNoneSelectedImage&&this.categoryLink&&!this.categoryLink.categoryLinkMaterial.materialId&&(this.image=this.getImageUrl("cancel.svg"),this.hasNoneSelectedImage=!0)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(Co),y(pt),y(pn))},e.\u0275cmp=ct({type:e,selectors:[["sds-category-link"]],inputs:{categoryLink:"categoryLink",useNoneSelectedImage:"useNoneSelectedImage",options:"options"},outputs:{itemSelected:"itemSelected",tabOut:"tabOut"},decls:11,vars:7,consts:[[4,"ngIf"],[1,"configurator-category-link-buttons"],[3,"click","keydown.tab","keyup.enter"],[1,"configurator-category-link-material"],[1,"categorylink-container"],["class","categorylink-value",4,"ngIf"],["class","categorylink-title",4,"ngIf","ngIfElse"],["noneSelected",""],[1,"categorylink-value"],["class","category-image",3,"none-selected-image","src",4,"ngIf"],[1,"category-image",3,"src"],[1,"categorylink-title"],["class","categorylink-title",4,"ngIf"]],template:function(t,n){if(1&t&&(P(0,YG,2,1,"p",0),k(1,"div",1),k(2,"button",2),ae("click",function(){return n.onSelectCategoryLinkMaterial()})("keydown.tab",function(){return n.onTab(!0)})("keyup.enter",function(){return n.onSelectCategoryLinkMaterial()}),K(3),N(4,"translate"),M(),M(),k(5,"div",3),k(6,"div",4),P(7,UG,2,1,"div",5),P(8,GG,3,1,"div",6),P(9,qG,1,1,"ng-template",null,7,Xn),M(),M()),2&t){var i=Kt(10);E("ngIf",n.categoryLink.remarks),w(3),Ke(" ",G(4,5,"button.choose_a")+" "+n.categoryLink.description," "),w(4),E("ngIf",n.image),w(1),E("ngIf",n.categoryLink.categoryLinkMaterial.materialDescription)("ngIfElse",i)}},directives:[Qt],pipes:[kn],styles:[".configurator-category-link-buttons{display:flex}.configurator-category-link-buttons button{margin-right:16px}.category-image{max-width:100px;max-height:100px;margin:10px}.none-selected-image{width:100px;height:100px}div.configurator-category-link-material div.categorylink-container{flex-direction:row;display:flex}div.configurator-category-link-material div.categorylink-title{display:flex;justify-content:center;align-items:center;flex:50%}div.configurator-category-link-material div.categorylink-value{flex:50%}\n"],encapsulation:2}),e}();function $G(e,r){if(1&e&&(k(0,"h3"),K(1),M()),2&e){var t=S().$implicit;w(1),Ke(" ",t.key,"")}}function KG(e,r){if(1&e&&(k(0,"span"),K(1),M()),2&e){var t=S().$implicit;w(1),Pe(t.propertyRef.displayLabel)}}function ZG(e,r){if(1&e){var t=Ie();k(0,"label",10),ae("blur",function(){Q(t);var a=S().$implicit;return S(2).onBlur(a.propertyRef)})("keydown.tab",function(){return Q(t),S(3).onTab(!1)})("ngModelChange",function(a){return Q(t),S().$implicit.propertyRef.value=a}),K(1),M()}if(2&e){var n=S().$implicit;E("ngModel",n.propertyRef.value),w(1),Pe(n.propertyRef.displayLabel)}}function QG(e,r){if(1&e&&Ce(0,"nz-option",15),2&e){var t=r.$implicit;E("nzValue",t.value)("nzLabel",t.description)}}function XG(e,r){if(1&e){var t=Ie();k(0,"nz-select",13),ae("ngModelChange",function(a){return Q(t),S(2).$implicit.propertyRef.value=a})("ngModelChange",function(){Q(t);var a=S(2).$implicit;return S(2).onBlur(a.propertyRef)})("blur",function(){Q(t);var a=S(2).$implicit;return S(2).onBlur(a.propertyRef)}),P(1,QG,1,2,"nz-option",14),M()}if(2&e){var n=S(2).$implicit;E("ngModel",n.propertyRef.value),w(1),E("ngForOf",n.propertyRef.listValues)}}function JG(e,r){if(1&e){var t=Ie();k(0,"input",16),ae("blur",function(){Q(t);var a=S(2).$implicit;return S(2).onBlur(a.propertyRef)})("keydown.tab",function(){return Q(t),S(4).onTab(!1)})("ngModelChange",function(a){return Q(t),S(2).$implicit.propertyRef.value=a}),M()}2&e&&E("ngModel",S(2).$implicit.propertyRef.value)}function eW(e,r){1&e&&(ut(0,7),P(1,XG,2,2,"nz-select",11),P(2,JG,1,1,"input",12),dt()),2&e&&(E("ngSwitch",S().$implicit.propertyRef.controlType),w(1),E("ngSwitchCase",2))}function tW(e,r){if(1&e&&(k(0,"div",6),k(1,"div",2),P(2,KG,2,1,"span",3),ut(3,7),P(4,ZG,2,2,"label",8),P(5,eW,3,2,"ng-container",9),dt(),M(),M()),2&e){var t=r.$implicit;We("left",!0===t.left)("right",!1===t.left)("single-column",!0===t.single)("multi-column",!1===t.single),w(1),We("full-width",!1===t.single)("full-column",!0===t.single),w(1),E("ngIf",10!==t.propertyRef.dataType),w(1),E("ngSwitch",t.propertyRef.dataType),w(1),E("ngSwitchCase",10)}}function nW(e,r){if(1&e&&(k(0,"div",2),P(1,$G,2,1,"h3",3),k(2,"div",4),P(3,tW,6,15,"div",5),M(),M()),2&e){var t=r.$implicit;w(1),E("ngIf",t.values.lenght>1),w(2),E("ngForOf",t.values)}}var CC=function(){var e=function(){function r(t){v(this,r),this.store=t,this.catLinkProperties=[],this.tabOut=new ie}return h(r,[{key:"ngOnInit",value:function(){}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"onBlur",value:function(n){n.isModified=!0,this.store.dispatch(new Rs)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pt))},e.\u0275cmp=ct({type:e,selectors:[["sds-favorite-properties"]],inputs:{catLinkProperties:"catLinkProperties",selectedPolygon:"selectedPolygon"},outputs:{tabOut:"tabOut"},decls:2,vars:1,consts:[["fxLayout","row wrap",1,"favorite-properties"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between"],["class","favorite-row",3,"left","right","single-column","multi-column",4,"ngFor","ngForOf"],[1,"favorite-row"],[3,"ngSwitch"],["nz-checkbox","",3,"ngModel","blur","keydown.tab","ngModelChange",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],["nz-checkbox","",3,"ngModel","blur","keydown.tab","ngModelChange"],["nzPlaceHolder","Choose",3,"ngModel","ngModelChange","blur",4,"ngSwitchCase"],["type","text","nz-input","",3,"ngModel","blur","keydown.tab","ngModelChange",4,"ngSwitchDefault"],["nzPlaceHolder","Choose",3,"ngModel","ngModelChange","blur"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"],["type","text","nz-input","",3,"ngModel","blur","keydown.tab","ngModelChange"]],template:function(t,n){1&t&&(k(0,"nz-input-group",0),P(1,nW,4,2,"div",1),M()),2&t&&(w(1),E("ngForOf",n.catLinkProperties))},directives:[Ei,ha,Nn,Qt,Ts,Cs,Yu,b7,p8,vd,l1],styles:[".multi-column{display:flex;flex-basis:40%}.single-column{display:flex;flex-basis:80%}.right{justify-content:flex-end;margin-left:auto}.left{justify-content:flex-start}.full-column{flex-basis:50%}.favorite-row{margin-top:3px;margin-bottom:3px}.full-width{flex:1}\n"],encapsulation:2}),e}();function rW(e,r){if(1&e&&Ce(0,"img",6),2&e){var t=S().$implicit;E("src",S().getImageUrl(t.image),qt)}}function iW(e,r){if(1&e){var t=Ie();k(0,"div",4),ae("click",function(){var s=Q(t).$implicit;return S().onFavoriteChange(s)})("keyup.enter",function(){var s=Q(t).$implicit;return S().onFavoriteChange(s)})("keydown.tab",function(){var s=Q(t).last;return S().onTab(s)}),P(1,rW,1,1,"img",5),k(2,"span"),K(3),N(4,"translate"),M(),M()}if(2&e){var n=r.$implicit,i=S();We("is-selected",(null==n?null:n.id)===(null==i.selectedFavorite?null:i.selectedFavorite.id)),w(1),E("ngIf",n.image),w(2),Pe(G(4,4,n.name))}}var bC=function(){var e=function(){function r(t,n,i){v(this,r),this.hubService=t,this.store=n,this.actions=i,this.ngUnsubscribe=new _e,this.itemSelected=new ie,this.tabOut=new ie,this.catLinkProperties$=new _e,this.categoryFavoritesOptions=[]}return h(r,[{key:"ngOnInit",value:function(){var n=this;if(this.actions.pipe(lo(ai),ht(this.ngUnsubscribe)).subscribe(function(a){n.determineChainedChildrenProperties(a.payload.polygon)}),!this.selectedFavorite){if(this.selectedPolygon.chainedChildren){var i=this.selectedPolygon.chainedChildren.find(function(a){return a.productCategoryId===n.chainedCategory.categoryId});return void(i&&(this.selectedFavorite=this.categoryFavorites.find(function(a){return a.id===i.categoryFavoriteId})))}this.selectedFavorite=this.categoryFavorites[0]}}},{key:"determineChainedChildrenProperties",value:function(n){var i=this,a=n.chainedChildren.find(function(s){return s.categoryFavoriteId===i.selectedFavorite.id});if(a&&a.categoryLinks){var o=[];a.categoryLinks.forEach(function(s){o.push({key:s.description,values:s.categoryLinkMaterial.properties.map(function(l){return{propertyRef:l,left:l.displayOrder%2==1,single:l.displayOrder%2==1&&!s.categoryLinkMaterial.properties.find(function(c){return l.displayOrder+1===c.displayOrder})||l.displayOrder%2==0&&!s.categoryLinkMaterial.properties.find(function(c){return l.displayOrder-1===c.displayOrder})}})})}),this.catLinkProperties$.next(o)}else this.catLinkProperties$.next([])}},{key:"ngAfterViewInit",value:function(){this.determineChainedChildrenProperties(this.selectedPolygon)}},{key:"onTab",value:function(n){n&&this.tabOut.emit()}},{key:"ngOnChanges",value:function(n){var i,a;(null===(a=null===(i=n.categoryFavorites)||void 0===i?void 0:i.currentValue)||void 0===a?void 0:a.length)&&(this.categoryFavoritesOptions=[{id:null,categoryId:null,children:[],image:"cancel.svg",code:null,name:"label.none"}].concat(se(this.categoryFavorites)))}},{key:"onFavoriteChange",value:function(n){if(this.selectedFavorite&&!this.selectedFavorite.id&&(this.selectedPolygon.chainedChildren=null),!this.selectedFavorite||n.id!==this.selectedFavorite.id){this.selectedFavorite=n;var i=this.store.selectSnapshot(function(a){return a.common.selectedApplicationId});this.store.dispatch(new s0({applicationId:i,modelId:this.selectedPolygon.modelId,categoryFavoriteId:this.selectedFavorite.id,parentPolygonId:this.selectedPolygon.id})).toPromise(),this.itemSelected.emit()}}},{key:"getImageUrl",value:function(n){if(n){var i=this.store.selectSnapshot(function(a){return a.common.selectedApplicationId});return this.hubService.getImageUrl(i,n)}}}]),r}();return e.\u0275fac=function(t){return new(t||e)(y(pn),y(pt),y(R1))},e.\u0275cmp=ct({type:e,selectors:[["sds-favorite-control"]],inputs:{categoryFavorites:"categoryFavorites",chainedCategory:"chainedCategory",selectedFavorite:"selectedFavorite",selectedPolygon:"selectedPolygon"},outputs:{itemSelected:"itemSelected",tabOut:"tabOut"},features:[Mt],decls:5,vars:5,consts:[["fxLayout","column",1,"favorite-container"],["fxLayout","row wrap"],["tabIndex","0","class","configurator-model",3,"is-selected","click","keyup.enter","keydown.tab",4,"ngFor","ngForOf"],[3,"selectedPolygon","catLinkProperties"],["tabIndex","0",1,"configurator-model",3,"click","keyup.enter","keydown.tab"],["class","favorite-image",3,"src",4,"ngIf"],[1,"favorite-image",3,"src"]],template:function(t,n){1&t&&(k(0,"div",0),k(1,"div",1),P(2,iW,5,6,"div",2),M(),Ce(3,"sds-favorite-properties",3),N(4,"async"),M()),2&t&&(w(2),E("ngForOf",n.categoryFavoritesOptions),w(1),E("selectedPolygon",n.selectedPolygon)("catLinkProperties",G(4,3,n.catLinkProperties$)))},directives:[ha,Nn,Qt,CC],pipes:[kn,bs],styles:["sds-favorite-control{display:flex;flex-direction:row;flex-wrap:wrap}.favorite-properties{margin-top:5px}.favorite-image,.favorite-container{width:100%}\n"],encapsulation:2}),e}(),aW=["materialInfo"];function oW(e,r){1&e&&(k(0,"div",2),Ce(1,"nz-spin"),M())}function sW(e,r){1&e&&Ce(0,"img",26),2&e&&E("src",r.ngIf,qt)}function lW(e,r){if(1&e&&(Ce(0,"sds-material-summary",27),N(1,"async"),N(2,"async")),2&e){var i,t=S().$implicit,n=S(2);E("productType",null==t?null:t.productType)("remarks",null==(i=G(1,3,n.selectedMaterial$))?null:i.remarks)("materialWashingSymbols",G(2,5,n.washingSymbols$))}}var Cc=function(r,t,n){return[r,"string",t,"1.2-2",n]};function cW(e,r){if(1&e&&(k(0,"h4"),K(1),N(2,"translate"),N(3,"currency"),N(4,"async"),N(5,"translate"),M()),2&e){var n,t=S(3);w(1),M3("",G(2,3,"label.from")," ",Ga(3,5,vs(15,Cc,null==(n=G(4,11,t.selectedMaterial$))?null:n.salePrice,"\u20ac ",t.languageCode))," ",G(5,13,"label.per_meter"),"")}}function uW(e,r){if(1&e&&(k(0,"h3"),K(1),N(2,"currency"),N(3,"async"),M()),2&e){var n,t=S(3);w(1),Pe(Ga(2,1,vs(9,Cc,null==(n=G(3,7,t.selectedMaterial$))?null:n.salePrice,"\u20ac ",t.languageCode)))}}function dW(e,r){if(1&e&&(k(0,"li",30),K(1),M()),2&e){var t=r.$implicit;w(1),Ke(" ",t.description,"")}}function fW(e,r){if(1&e&&(k(0,"ul",28),P(1,dW,2,1,"li",29),N(2,"async"),M()),2&e){var t=S(3);w(1),E("ngForOf",G(2,1,t.selectedMaterial$).promotions)}}function hW(e,r){if(1&e&&(k(0,"div",31),k(1,"span"),K(2),N(3,"translate"),M(),K(4," \xa0 "),k(5,"span"),K(6),N(7,"async"),M(),Ce(8,"br"),k(9,"span"),K(10),N(11,"translate"),M(),K(12," \xa0 "),k(13,"span"),K(14),N(15,"async"),M(),M()),2&e){var t=S(3);w(2),Ke("",G(3,4,"label.width"),": "),w(4),Ke(" ",G(7,6,t.materialWidth$)," cm "),w(4),Ke("",G(11,8,"label.height"),":"),w(4),Ke(" ",G(15,10,t.materialHeight$)," cm ")}}function vW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",35,36),N(2,"translate"),k(3,"sds-related-materials",37),ae("itemSelected",function(){Q(t);var s=S(2).$implicit;return S(4).itemSelectedHandler(s)})("tabOut",function(){Q(t);var s=S(2).$implicit;return S(4).tabOutOfPanelHandler(s)}),N(4,"async"),N(5,"async"),M(),M()}if(2&e){var n=S(2).$implicit,i=S(2).$implicit,a=S(2);E("nzHeader",G(2,7,"label.color"))("nzActive",n.isOpen)("nzShowArrow",a.isMobile),w(3),E("onlyShowSelectedMaterial",a.onlyShowSelectedMaterial)("selectedMaterial",G(4,9,a.selectedMaterial$))("options",i)("fabric",G(5,11,a.fabricPath$))}}function pW(e,r){1&e&&(ut(0),P(1,vW,6,13,"nz-collapse-panel",34),dt()),2&e&&(w(1),E("ngSwitchCase",0))}function gW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",39,40),N(2,"translate"),k(3,"sds-category-menu",41),ae("selectedProductCategoryId",function(){Q(t);var l=S(2).$implicit;return S(4).categorySelectedHandler(l)})("tabOut",function(){Q(t);var l=S(2).$implicit;return S(4).tabOutOfPanelHandler(l)}),M(),M()}if(2&e){var n=S(2).$implicit,i=S().$implicit,a=S().$implicit,o=S(2);E("nzHeader",G(2,6,"label.choose_product"))("nzShowArrow",o.isMobile)("nzActive",n.isOpen),w(3),E("categoryMenu",o.categoryMenu)("selectedPolygon",i)("imagePath",null==a||null==a.settings?null:a.settings.imagePath)}}function mW(e,r){1&e&&(ut(0),P(1,gW,4,8,"nz-collapse-panel",38),dt()),2&e&&(w(1),E("ngSwitchCase",1))}function yW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",39,40),N(2,"translate"),k(3,"sds-category-model-menu",43),ae("itemSelected",function(){Q(t);var c=S(3).$implicit;return S(4).itemSelectedHandler(c)})("tabOut",function(){Q(t);var c=S(3).$implicit;return S(4).tabOutOfPanelHandler(c)}),M(),M()}if(2&e){var n=S().ngIf,i=S(2).$implicit,a=S().$implicit,o=S().$implicit,s=S(2);We("hidden",n.categoryModelMenu&&n.categoryModelMenu.length<2),E("nzHeader",G(2,8,"label.choose_product_type"))("nzShowArrow",s.isMobile)("nzActive",i.isOpen),w(3),E("categoryModelMenu",n.categoryModelMenu)("selectedPolygon",a)("imagePath",null==o||null==o.settings?null:o.settings.imagePath)}}function _W(e,r){1&e&&(ut(0),P(1,yW,4,10,"nz-collapse-panel",42),dt()),2&e&&(w(1),E("ngSwitchCase",1))}var CW=function(r){return{categoryModelMenu:r}};function bW(e,r){if(1&e&&(ut(0),P(1,_W,2,1,"ng-container",3),N(2,"async"),dt()),2&e){var t=S(5);w(1),E("ngIf",Mu(3,CW,G(2,1,t.categoryModelMenu$)))}}function wW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",35,44),N(2,"translate"),k(3,"sds-dimensions",45),ae("itemSelected",function(){Q(t);var l=S(2).$implicit;return S(4).itemSelectedHandler(l)}),M(),Ce(4,"br"),k(5,"sds-measure-data",46),ae("measureDataByShopKeeper",function(l){return Q(t),S(6).onMeasureDataByShopKeeper(l)})("tabOut",function(){Q(t);var l=S(2).$implicit;return S(4).tabOutOfPanelHandler(l)}),M(),M()}if(2&e){var n=S(2).$implicit,i=S().$implicit,a=S().$implicit,o=S(2);E("nzHeader",G(2,8,"label.sizes"))("nzActive",n.isOpen)("nzShowArrow",o.isMobile),w(3),E("selectedPolygon",i),w(2),E("instructionMovieUrl",null==a||null==a.settings?null:a.settings.calculateInstructionMovieUrl)("instructionUrl",null==a||null==a.settings?null:a.settings.calculateInstructionLinkUrl)("showAskShopKeeper",null==a||null==a.settings?null:a.settings.showAskShopKeeper)("selectedPolygon",i)}}function kW(e,r){1&e&&(ut(0),P(1,wW,6,10,"nz-collapse-panel",34),dt()),2&e&&(w(1),E("ngSwitchCase",2))}function MW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",35,49),k(2,"sds-category-link",50),ae("itemSelected",function(){Q(t);var l=S(3).$implicit;return S(4).itemSelectedHandler(l)})("tabOut",function(){Q(t);var l=S(3).$implicit;return S(4).tabOutOfPanelHandler(l)}),M(),M()}if(2&e){var n=r.$implicit,i=S(3).$implicit,a=S(2).$implicit,o=S(2);E("nzHeader",n.description)("nzActive",i.isOpen)("nzShowArrow",o.isMobile),w(2),E("categoryLink",n)("useNoneSelectedImage",o.useNoneSelectedImage)("options",a)}}function SW(e,r){if(1&e&&(ut(0),P(1,MW,3,6,"nz-collapse-panel",48),N(2,"categoryLinkMaterialFilter"),dt()),2&e){var t=S(3).$implicit,n=S(3);w(1),E("ngForOf",G(2,2,t.categoryLinks))("ngForTrackBy",n.trackByUniqueId)}}function DW(e,r){1&e&&(ut(0),P(1,SW,3,4,"ng-container",47),dt()),2&e&&(w(1),E("ngSwitchCase",3))}function xW(e,r){if(1&e){var t=Ie();k(0,"nz-collapse-panel",35,51),ut(2),k(3,"sds-property-control",52),ae("itemSelected",function(){Q(t);var l=S(3).$implicit;return S(4).itemSelectedHandler(l)})("tabOut",function(){Q(t);var l=S(3).$implicit;return S(4).tabOutOfPanelHandler(l)}),M(),dt(),M()}if(2&e){var n=r.$implicit,i=S(3).$implicit,a=S(2).$implicit,o=S(2);E("nzHeader",n.displayLabel)("nzActive",i.isOpen||1===(null==a?null:a.productType))("nzShowArrow",o.isMobile),w(3),E("property",n)("imagePath",null==a||null==a.settings?null:a.settings.imagePath)}}function EW(e,r){if(1&e&&(ut(0),P(1,xW,4,5,"nz-collapse-panel",48),N(2,"async"),dt()),2&e){var t=S(6);w(1),E("ngForOf",G(2,2,t.properties$))("ngForTrackBy",t.trackByUniqueId)}}function TW(e,r){1&e&&(ut(0),P(1,EW,3,4,"ng-container",47),dt()),2&e&&(w(1),E("ngSwitchCase",4))}function zW(e,r){if(1&e){var t=Ie();k(0,"sds-favorite-control",57),ae("itemSelected",function(){Q(t);var s=S(5).$implicit;return S(4).itemSelectedHandler(s)})("tabOut",function(){Q(t);var s=S(5).$implicit;return S(4).tabOutOfPanelHandler(s)}),N(1,"async"),M()}if(2&e){var n=S(2).$implicit,i=S(4).$implicit,a=S(3);E("chainedCategory",n)("selectedPolygon",i)("categoryFavorites",G(1,3,a.categoryFavorites$))}}function AW(e,r){if(1&e&&(k(0,"nz-collapse-panel",35,55),P(2,zW,2,5,"sds-favorite-control",56),M()),2&e){var t=S().$implicit,n=S(3).$implicit,i=S(4);E("nzHeader",t.name)("nzActive",n.isOpen)("nzShowArrow",i.isMobile),w(2),E("ngIf",t.favorites)}}function PW(e,r){if(1&e&&(ut(0),P(1,AW,3,4,"nz-collapse-panel",54),dt()),2&e){var t=r.$implicit;w(1),E("ngIf",null==t.favorites?null:t.favorites.length)}}function OW(e,r){if(1&e&&(ut(0),P(1,PW,2,1,"ng-container",53),dt()),2&e){var t=S().$implicit,n=S(5);w(1),E("ngForOf",t)("ngForTrackBy",n.trackByUniqueId)}}function FW(e,r){1&e&&(ut(0),P(1,OW,2,2,"ng-container",47),dt()),2&e&&(w(1),E("ngSwitchCase",5))}function IW(e,r){if(1&e&&(ut(0,33),P(1,pW,2,1,"ng-container",3),N(2,"async"),P(3,mW,2,1,"ng-container",3),N(4,"async"),P(5,bW,3,5,"ng-container",3),N(6,"async"),P(7,kW,2,1,"ng-container",3),N(8,"async"),P(9,DW,2,1,"ng-container",3),P(10,TW,2,1,"ng-container",3),P(11,FW,2,1,"ng-container",3),N(12,"async"),dt()),2&e){var t=r.$implicit,n=S().$implicit,i=S(3);E("ngSwitch",t.kind),w(1),E("ngIf",G(2,8,i.showRelatedMaterials)),w(2),E("ngIf",G(4,10,i.showProductSelector)),w(2),E("ngIf",G(6,12,i.showProductSelector)),w(2),E("ngIf",G(8,14,i.showDimensions$)),w(2),E("ngIf",n),w(1),E("ngIf",n&&null!==n.width&&null!==n.height),w(1),E("ngIf",G(12,16,i.chainedCategories$))}}function LW(e,r){if(1&e&&(k(0,"nz-collapse"),P(1,IW,13,18,"ng-container",32),M()),2&e){var t=S(3);w(1),E("ngForOf",t.panels)}}function HW(e,r){if(1&e&&(Ce(0,"sds-material-summary",27),N(1,"async"),N(2,"async")),2&e){var i,t=S().$implicit,n=S(2);E("productType",null==t?null:t.productType)("remarks",null==(i=G(1,3,n.selectedMaterial$))?null:i.remarks)("materialWashingSymbols",G(2,5,n.washingSymbols$))}}function VW(e,r){if(1&e){var t=Ie();k(0,"div",11),k(1,"h2",12),N(2,"async"),K(3),N(4,"currency"),N(5,"async"),M(),k(6,"button",13),ae("click",function(){return Q(t),S(3).onAddToCart()}),N(7,"async"),K(8),N(9,"translate"),M(),M()}if(2&e){var i,n=S(3);w(1),E("price",G(2,4,n.totalPrice$)),w(2),Ke(" ",Ga(4,6,vs(18,Cc,G(5,12,n.totalPrice$),"\u20ac ",n.languageCode))," "),w(3),E("disabled",(null==(i=G(7,14,n.errorMessages$))?null:i.length)>0),w(2),Ke(" ",G(9,16,"button.add_to_cart")," ")}}var RW=function(r){return{mobile:r}};function NW(e,r){if(1&e){var t=Ie();ut(0),k(1,"div",4),N(2,"async"),k(3,"div",5),P(4,sW,1,1,"img",6),N(5,"async"),k(6,"div",7),k(7,"h2",8),K(8),N(9,"async"),M(),k(10,"span",9),K(11,"\xa0"),M(),k(12,"h2",10),K(13),N(14,"async"),M(),Ce(15,"br"),k(16,"span"),K(17),N(18,"async"),N(19,"async"),N(20,"translate"),N(21,"async"),N(22,"translate"),M(),M(),k(23,"div",11),k(24,"h2",12),N(25,"async"),K(26),N(27,"currency"),N(28,"async"),M(),k(29,"button",13),ae("click",function(){return Q(t),S(2).onAddToCart()}),N(30,"async"),K(31),N(32,"translate"),M(),M(),M(),M(),k(33,"div",14),k(34,"div",15),N(35,"async"),Ce(36,"sds-visuals",16),N(37,"async"),N(38,"async"),P(39,lW,3,7,"sds-material-summary",17),M(),k(40,"div",18),k(41,"div",19,20),k(43,"div",21),k(44,"h2",8),K(45),N(46,"async"),M(),k(47,"span",9),K(48,"\xa0"),M(),k(49,"h2",10),K(50),N(51,"async"),M(),P(52,cW,6,19,"h4",3),P(53,uW,4,13,"h3",3),M(),k(54,"div",22),k(55,"h2",12),N(56,"async"),K(57),N(58,"currency"),N(59,"async"),M(),M(),M(),P(60,fW,3,3,"ul",23),N(61,"async"),P(62,hW,16,12,"div",24),P(63,LW,2,1,"nz-collapse",3),N(64,"async"),P(65,HW,3,7,"sds-material-summary",17),Ce(66,"br"),P(67,VW,10,22,"div",25),M(),M(),dt()}if(2&e){var a,o,s,l,c,n=r.$implicit,i=S(2);w(1),We("is-visible",G(2,30,i.isStickyHeaderVisible$)),w(3),E("ngIf",G(5,32,i.fabricPath$)),w(4),Pe(null==(a=G(9,34,i.selectedMaterial$))?null:a.description),w(5),Pe(G(14,36,i.materialColor$)),w(4),S3("",null==(o=G(18,38,i.selectedPolygon$))?null:o.modelDescription,", ",null==(o=G(19,40,i.selectedPolygon$))?null:o.width," ",G(20,42,"label.width_in_cm"),", ",null==(o=G(21,44,i.selectedPolygon$))?null:o.height," ",G(22,46,"label.height_in_cm"),""),w(7),E("price",G(25,48,i.totalPrice$)),w(2),Ke(" ",Ga(27,50,vs(86,Cc,G(28,56,i.totalPrice$),"\u20ac ",i.languageCode))," "),w(3),E("disabled",(null==(s=G(30,58,i.errorMessages$))?null:s.length)>0),w(2),Ke(" ",G(32,60,"button.add_to_cart")," "),w(3),E("ngClass",Mu(90,RW,G(35,62,i.isMobile))),w(2),E("attachments",G(37,64,i.attachments$))("visuals",G(38,66,i.visuals$))("options",n),w(3),E("ngIf",0===(null==n?null:n.productType)),w(6),Pe(null==(l=G(46,68,i.selectedMaterial$))?null:l.description),w(5),Pe(G(51,70,i.materialColor$)),w(2),E("ngIf",0===(null==n?null:n.productType)),w(1),E("ngIf",1===(null==n?null:n.productType)),w(2),E("price",G(56,72,i.totalPrice$)),w(2),Ke(" ",Ga(58,74,vs(92,Cc,G(59,80,i.totalPrice$),"\u20ac ",i.languageCode))," "),w(3),E("ngIf",null==(c=G(61,82,i.selectedMaterial$))?null:c.promotions),w(2),E("ngIf",1===(null==n?null:n.productType)),w(1),E("ngIf",G(64,84,i.selectedPolygon$)),w(2),E("ngIf",1===(null==n?null:n.productType)),w(2),E("ngIf",1===(null==n?null:n.productType)||0===(null==n?null:n.productType))}}function BW(e,r){1&e&&(P(0,NW,68,96,"ng-container",3),N(1,"async")),2&e&&E("ngIf",G(1,1,S().options$))}var Sn=function(e){_(t,e);var r=z(t);function t(n,i,a,o,s,l){var c;return v(this,t),(c=r.call(this,n,a,o,s)).store=n,c.modal=i,c.actions=a,c.dimensionsService=o,c.cd=s,c.ngUnsubscribe=new _e,c.isModalShown=!1,c.measureByShopKeeper=new ie,c.isMobile=new eo(!1),c.isStickyHeaderVisible$=new eo(!1),c.useNoneSelectedImage=!0,c.onlyShowSelectedMaterial=!0,l.asObservable().subscribe(function(u){var d=u[0];!d||("xs"===d.mqAlias?c.isMobile.next(!0):"xs"!==d.mqAlias&&c.isMobile.next(!1))}),c.showDimensions$=c.selectedPolygon$.pipe(mn(function(u){return u&&u.isWidthEnabled&&u.isHeightEnabled})),c}return h(t,[{key:"getErrorMessages",get:function(){var i=this.store.selectSnapshot(pe.getMessages);return i?i.filter(function(a){return a.kind===uo.Error}):[]}},{key:"ngOnInit",value:function(){var i=this;this.actions.pipe(lo(hy),ht(this.ngUnsubscribe)).subscribe(function(a){i.store.dispatch(new K0(a.payload))}),L(O(t.prototype),"ngOnInit",this).call(this),this.registerMessagePopup(),this.store.select(pe.getSelectedPolygon).pipe(Xt(function(a){return!!a}),function xj(e,r){var t=arguments.length>=2;return function(n){return n.pipe(e?Xt(function(i,a){return e(i,a,n)}):za,Tr(1),t?W8(r):Sj(function(){return new L_}))}}()).subscribe(function(){i.buildPanels()}),this.isLoading$.subscribe(function(a){a?i.scrollListener&&(i.scrollListener.unsubscribe(),i.scrollListener=null):i.scrollListener||i.setScrollListener()}),F_(this.productCategoryId$).subscribe(function(a){var s=i.store.selectSnapshot(tn.getModels).filter(function(l){return l.productCategoryId===a[0]});i.setDefaultModelForCategory(s)}),this.setNewDimensions(),this.categoryModelMenu$=F_([this.models$,this.productCategoryId$,this.selectedPolygon$]).pipe(mn(function(a){var o=a[0],l=a[2],c=a[1]||l.productCategoryId;return l&&(i.selectedPolygon=l,i.initializeCategoryMenus(o)),o.filter(function(u){return u.productCategoryId===c})}))}},{key:"ngOnDestroy",value:function(){this.ngUnsubscribe.next(void 0),this.ngUnsubscribe.complete()}},{key:"initializeCategoryMenus",value:function(i){if(i){this.categoryMenu=[];var a=Array.from(new Set(i.map(function(o){return o.mainCategoryLinkId}))).map(function(o){return{id:o,categoryLink:i.find(function(s){return s.mainCategoryLinkId===o})}});this.categoryMenu=a.map(function(o){return o.categoryLink})}}},{key:"registerMessagePopup",value:function(){var i=this;this.actions.pipe(lo(ai),ht(this.ngUnsubscribe)).subscribe(function(){i.showMessagePopup()})}},{key:"showMessagePopup",value:function(){var i=this;if(this.getErrorMessages.length>0){if(this.isModalShown)return;this.isModalShown=!0,this.modal.create({nzTitle:"Error",nzContent:u_,nzComponentParams:{messagesToShow:this.getErrorMessages},nzStyle:{minWidth:"50vw",display:"flex",flexDirection:"column"},nzFooter:null}).afterClose.subscribe(function(){return i.isModalShown=!1})}}},{key:"setDefaultModelForCategory",value:function(i){return be(this,void 0,void 0,R().mark(function a(){var s,l,c,u,d,o=this;return R().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(i&&i[0]){p.next=2;break}return p.abrupt("return");case 2:if(!(s=i[0])){p.next=13;break}return l=i.find(function(g){return g.id===o.selectedPolygon.modelId}),p.next=7,this.store.dispatch(new lc({new:s,previous:l})).toPromise();case 7:c=this.store.selectSnapshot(Mn.getWidth),u=this.store.selectSnapshot(Mn.getHeight),d={},s.isWidthEnabled&&c&&!this.selectedPolygon.width&&(d.width=c),s.isHeightEnabled&&u&&!this.selectedPolygon.height&&(d.height=u),(d.width||d.height)&&this.dimensionsService.setDimensions(d,this.selectedPolygon);case 13:case"end":return p.stop()}},a,this)}))}},{key:"onAddToCart",value:function(){var i=this,a=Object.create(null,{onAddToCart:{get:function(){return L(O(t.prototype),"onAddToCart",i)}}});return be(this,void 0,void 0,R().mark(function o(){return R().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.isFormValid()){l.next=3;break}return l.next=3,a.onAddToCart.call(this);case 3:case"end":return l.stop()}},o,this)}))}},{key:"onMeasureDataByShopKeeper",value:function(i){this.measureByShopKeeper.emit(i)}},{key:"categorySelectedHandler",value:function(i){this.setNewDimensions(),this.openNextPanelIfPossible(i)}},{key:"itemSelectedHandler",value:function(i){this.openNextPanelIfPossible(i)}},{key:"tabOutOfPanelHandler",value:function(i){this.openNextPanelIfPossible(i)}},{key:"openNextPanelIfPossible",value:function(i){var a=this.panels.indexOf(i),o=this.panels[a+1];o&&(o.isOpen=!0)}},{key:"isFormValid",value:function(){var i=this.store.selectSnapshot(pe.getSelectedPolygon);return!(i.isWidthEnabled&&i.isHeightEnabled&&(!i.width||!i.height))}},{key:"trackByUniqueId",value:function(i){return i}},{key:"setScrollListener",value:function(){var i=this;this.scrollListener=Xa(window,"scroll",{capture:!0}).subscribe(function(){var o=i.materialInfo.nativeElement.getBoundingClientRect(),s=document.documentElement,l=o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||s.clientHeight)&&o.right<=(window.innerWidth||s.clientWidth);i.isStickyHeaderVisible$.next(!l)})}},{key:"buildPanels",value:function(){var i=[];i.push({isOpen:!0,kind:$i.RelatedMaterials}),i.push({isOpen:!0,kind:$i.ProductSelector}),i.push({isOpen:!0,kind:$i.Dimensions}),this.store.selectSnapshot(pe.getPriceMessages)&&i.push({isOpen:!1,kind:$i.Properties});var o=this.store.selectSnapshot(pe.getSelectedPolygon);o&&o.categoryLinks&&i.push({isOpen:!1,kind:$i.CategoryLinks}),this.store.selectSnapshot(tn.getChainedCategories)&&i.push({isOpen:!1,kind:$i.Favorites}),this.panels=i}},{key:"setNewDimensions",value:function(){this.selectedPolygon&&this.selectedPolygon.width&&this.store.dispatch(new W0({width:this.selectedPolygon.width})),this.selectedPolygon&&this.selectedPolygon.height&&this.store.dispatch(new q0({height:this.selectedPolygon.height}))}}]),t}(nn);Sn.\u0275fac=function(r){return new(r||Sn)(y(pt),y(Co),y(R1),y(i4),y(xn),y(AO))},Sn.\u0275cmp=ct({type:Sn,selectors:[["sds-accordion-layout"]],viewQuery:function(r,t){var n;1&r&&Hr(aW,5),2&r&&Cr(n=br())&&(t.materialInfo=n.first)},outputs:{measureByShopKeeper:"measureByShopKeeper",isMobile:"isMobile"},features:[ee],decls:4,vars:4,consts:[["class","configurator-loading",4,"ngIf","ngIfElse"],["configurator",""],[1,"configurator-loading"],[4,"ngIf"],[1,"configurator-sticky-header"],[1,"configurator-sticky-header-container"],["class","material-image",3,"src",4,"ngIf"],[1,"material-title"],[1,"title"],[1,"spacer"],[1,"title","material-color-code"],[1,"configurator-add-to-cart"],["sdsConfiguratorPriceChanged","",3,"price"],["nz-button","",3,"disabled","click"],["fxLayout","row","fxLayout.xs","column",1,"configurator-content"],["fxFlex","50",1,"configurator-left",3,"ngClass"],["fxLayout","column",3,"attachments","visuals","options"],[3,"productType","remarks","materialWashingSymbols",4,"ngIf"],["fxFlex","50",1,"configurator-right"],["fxLayout","row","fxLayoutAlign","space-between",1,"configurator-summary"],["materialInfo",""],[1,"configurator-material-info"],[1,"configurator-price-info"],["class","configurator-promotions",4,"ngIf"],["class","product-dimensions",4,"ngIf"],["class","configurator-add-to-cart",4,"ngIf"],[1,"material-image",3,"src"],[3,"productType","remarks","materialWashingSymbols"],[1,"configurator-promotions"],["class","configurator-promotion",4,"ngFor","ngForOf"],[1,"configurator-promotion"],[1,"product-dimensions"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[3,"nzHeader","nzActive","nzShowArrow",4,"ngSwitchCase"],[3,"nzHeader","nzActive","nzShowArrow"],["relatedMaterialsPanel",""],[3,"onlyShowSelectedMaterial","selectedMaterial","options","fabric","itemSelected","tabOut"],[3,"nzHeader","nzShowArrow","nzActive",4,"ngSwitchCase"],[3,"nzHeader","nzShowArrow","nzActive"],["productSelector",""],[3,"categoryMenu","selectedPolygon","imagePath","selectedProductCategoryId","tabOut"],[3,"nzHeader","nzShowArrow","nzActive","hidden",4,"ngSwitchCase"],[3,"categoryModelMenu","selectedPolygon","imagePath","itemSelected","tabOut"],["dimensionsPanel",""],[3,"selectedPolygon","itemSelected"],[3,"instructionMovieUrl","instructionUrl","showAskShopKeeper","selectedPolygon","measureDataByShopKeeper","tabOut"],[4,"ngSwitchCase"],[3,"nzHeader","nzActive","nzShowArrow",4,"ngFor","ngForOf","ngForTrackBy"],["categoryPanel",""],[3,"categoryLink","useNoneSelectedImage","options","itemSelected","tabOut"],["propertyPanel",""],[3,"property","imagePath","itemSelected","tabOut"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzHeader","nzActive","nzShowArrow",4,"ngIf"],["chainedCategoryPanel",""],[3,"chainedCategory","selectedPolygon","categoryFavorites","itemSelected","tabOut",4,"ngIf"],[3,"chainedCategory","selectedPolygon","categoryFavorites","itemSelected","tabOut"]],template:function(r,t){if(1&r&&(P(0,oW,2,0,"div",0),N(1,"async"),P(2,BW,2,3,"ng-template",null,1,Xn)),2&r){var n=Kt(3);E("ngIf",G(1,2,t.isLoading$))("ngIfElse",n)}},directives:[Qt,r4,oC,po,vo,Ei,ha,$m,ca,Kd,cC,uC,Ts,Nn,hC,Cs,Yu,dG,Zi,gC,mC,c_,yC,_C,d_,bC],pipes:[bs,kn,pd,gy],styles:['sds-configurator *,sds-configurator *:before,sds-configurator *:after{box-sizing:inherit}.configurator-add-to-cart h2{display:inline-block;margin-right:16px}.configurator-model,.configurator-category-favorite,.configurator-image-list-item{box-sizing:border-box;flex:0 0 145px;display:flex;flex-direction:column;justify-content:center;align-items:center;height:145px;padding:8px;margin-right:8px;margin-bottom:8px;cursor:pointer}.configurator-model.is-selected,.configurator-category-favorite.is-selected,.configurator-image-list-item.is-selected{border:2px solid #d9d9d9}.configurator-model img,.configurator-category-favorite img,.configurator-image-list-item img{max-width:150px;max-height:100px}.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.cdk-overlay-backdrop{top:0;bottom:0;left:0;right:0;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0;position:absolute;pointer-events:auto;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;z-index:1000}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.configurator-sticky-header{display:flex;justify-content:center;position:fixed;top:64px;left:0;z-index:1;height:75px;width:100%;background:white;transform:translateY(-25rem);transition:transform .7s;will-change:transform;box-shadow:0 0 8px #0003}.configurator-sticky-header.is-visible{transform:translateY(0)}.configurator-sticky-header h2{margin:0}div.configurator-sticky-header-container img{height:100%;width:auto;-o-object-fit:contain;object-fit:contain}.configurator-sticky-header-container{width:1140px;display:flex;align-items:center;justify-content:space-between;padding:16px}.configurator-left{margin-right:16px}.configurator-right{counter-reset:section}.configurator-loading{display:flex;justify-content:center;align-items:center;width:100%;padding:32px}.ant-modal-content{height:100%;display:flex;flex-direction:column}.ant-modal-header{flex:none}.ant-modal-body{flex:1 1 100%;display:flex;flex-direction:column;overflow:hidden;max-height:none}.ant-modal-wrap{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;overflow:hidden}.ant-modal{top:0;min-width:50vw;display:flex;flex-direction:column}.configurator-browse-material-preview{width:100%}.configurator-related-material{width:25%}.configurator-related-material,.configurator-browse-material-preview{position:relative;float:left}.configurator-related-material:before,.configurator-browse-material-preview:before{content:"";display:block;padding-top:100%}.configurator-related-material .configurator-related-material-content,.configurator-related-material .configurator-browse-material-content,.configurator-browse-material-preview .configurator-related-material-content,.configurator-browse-material-preview .configurator-browse-material-content{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.configurator-related-material .configurator-related-material-content img,.configurator-related-material .configurator-browse-material-content img,.configurator-browse-material-preview .configurator-related-material-content img,.configurator-browse-material-preview .configurator-browse-material-content img{max-height:100%;max-width:100%;cursor:pointer}.hidden{display:none}.selected-material{padding:0 32px 32px}.selected-material img{max-width:200px;max-height:200px}.mobile.sds-configurator{margin-top:0}.mobile.container{margin-top:0;padding-right:0;padding-left:0;max-width:100%}.mobile.configurator-left{margin-right:0}sds-accordion-layout{width:100%}sds-measure-data{display:flex}h2.title{display:inline}.spacer{display:none}.configurator-promotions{list-style-type:none;padding:0}.price-changed{-webkit-animation:grow 1s;animation:grow 1s}@-webkit-keyframes grow{0%{color:#fff;font-size:1em}50%{font-size:2em}to{color:#000000d9}}@keyframes grow{0%{color:#fff;font-size:1em}50%{font-size:2em}to{color:#000000d9}}\n'],encapsulation:2,changeDetection:0}),I([et(tn.multipleModels),b("design:type",de)],Sn.prototype,"showProductSelector",void 0),I([et(En.multipleRelatedMaterials),b("design:type",de)],Sn.prototype,"showRelatedMaterials",void 0),I([et(tn.getChainedCategoryFavorites),b("design:type",de)],Sn.prototype,"categoryFavorites$",void 0),I([et(tn.getChainedCategories),b("design:type",de)],Sn.prototype,"chainedCategories$",void 0),I([et(Ee.getSelectedMaterial),b("design:type",de)],Sn.prototype,"selectedMaterial$",void 0),I([et(Ee.getSelectedMaterialColor),b("design:type",de)],Sn.prototype,"materialColor$",void 0),I([et(Ee.getSelectedMaterialWidth),b("design:type",de)],Sn.prototype,"materialWidth$",void 0),I([et(Ee.getSelectedMaterialHeight),b("design:type",de)],Sn.prototype,"materialHeight$",void 0),I([et(Ee.getSelectedMaterialWashingSymbols),b("design:type",de)],Sn.prototype,"washingSymbols$",void 0),I([et(Ee.getSelectedMaterialDescription),b("design:type",de)],Sn.prototype,"materialDescription$",void 0),I([et(Mn.getProductCategoryId),b("design:type",de)],Sn.prototype,"productCategoryId$",void 0),I([et(pe.getErrorMessages),b("design:type",de)],Sn.prototype,"errorMessages$",void 0),I([et(Ee.getFabricPath),b("design:type",de)],Sn.prototype,"fabricPath$",void 0);var UW=function(){var e=h(function r(){v(this,r)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({imports:[[wr,OA]]}),e}();C5(qP),C5(GP);var GW=function(){var e=function(){function r(t){v(this,r),this.injector=t}return h(r,[{key:"ngDoBootstrap",value:function(){var n=function sO(e,r){var t=function eO(e,r){return r.get(Ci).resolveComponentFactory(e).inputs}(e,r.injector),n=r.strategyFactory||new iO(e,r.injector),i=function JP(e){var r={};return e.forEach(function(t){var n=t.propName;r[function $P(e){return e.replace(/[A-Z]/g,function(r){return"-".concat(r.toLowerCase())})}(t.templateName)]=n}),r}(t),a=function(o){_(l,o);var s=z(l);function l(c){var u;return v(this,l),(u=s.call(this)).injector=c,u}return h(l,[{key:"ngElementStrategy",get:function(){var u=this;if(!this._ngElementStrategy){var d=this._ngElementStrategy=n.create(this.injector||r.injector);t.forEach(function(f){var p=f.propName;if(u.hasOwnProperty(p)){var g=u[p];delete u[p],d.setInputValue(p,g)}})}return this._ngElementStrategy}},{key:"attributeChangedCallback",value:function(u,d,f,p){this.ngElementStrategy.setInputValue(i[u],f)}},{key:"connectedCallback",value:function(){var u=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),u=!0),this.ngElementStrategy.connect(this),u||this.subscribeToEvents()}},{key:"disconnectedCallback",value:function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}},{key:"subscribeToEvents",value:function(){var u=this;this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(function(d){var f=new CustomEvent(d.name,{detail:d.value});u.dispatchEvent(f)})}}]),l}(oO);return a.observedAttributes=Object.keys(i),t.forEach(function(o){var s=o.propName;Object.defineProperty(a.prototype,s,{get:function(){return this.ngElementStrategy.getInputValue(s)},set:function(c){this.ngElementStrategy.setInputValue(s,c)},configurable:!0,enumerable:!0})}),a}(Sn,{injector:this.injector});customElements.define("sds-configurator",n)}}]),r}();return e.\u0275fac=function(t){return new(t||e)(T($t))},e.\u0275mod=Ne({type:e}),e.\u0275inj=Le({providers:[pn,G0,{provide:K_,useValue:eU}],imports:[[NU,aY,wj,V5,co.forRoot([Ee,pe,tn,En,si,Mn]),KV,jP,m1,h0,yL,UW,fG,l_,O0,wr,m1]]}),e}();(function uT(){if(Kg)throw new Error("Cannot enable prod mode after platform setup.");$g=!1})(),MA().bootstrapModule(GW)},3014:function(he,tt,B){he.exports=B(7114)},7729:function(he,tt,B){"use strict";var O=B(4701),fe=B(858),L=B(1625),j=B(5215),h=B(2099),v=B(6100),W=B(5593);he.exports=function(J){return new Promise(function(Ae,ye){var z=J.data,Pt=J.headers;O.isFormData(z)&&delete Pt["Content-Type"];var ge=new XMLHttpRequest;J.auth&&(Pt.Authorization="Basic "+btoa((J.auth.username||"")+":"+(J.auth.password||"")));var or=j(J.baseURL,J.url);if(ge.open(J.method.toUpperCase(),L(or,J.params,J.paramsSerializer),!0),ge.timeout=J.timeout,ge.onreadystatechange=function(){if(ge&&4===ge.readyState&&(0!==ge.status||ge.responseURL&&0===ge.responseURL.indexOf("file:"))){var Ut="getAllResponseHeaders"in ge?h(ge.getAllResponseHeaders()):null;fe(Ae,ye,{data:J.responseType&&"text"!==J.responseType?ge.response:ge.responseText,status:ge.status,statusText:ge.statusText,headers:Ut,config:J,request:ge}),ge=null}},ge.onabort=function(){!ge||(ye(W("Request aborted",J,"ECONNABORTED",ge)),ge=null)},ge.onerror=function(){ye(W("Network Error",J,null,ge)),ge=null},ge.ontimeout=function(){var Ut="timeout of "+J.timeout+"ms exceeded";J.timeoutErrorMessage&&(Ut=J.timeoutErrorMessage),ye(W(Ut,J,"ECONNABORTED",ge)),ge=null},O.isStandardBrowserEnv()){var li=B(5738),Be=(J.withCredentials||v(or))&&J.xsrfCookieName?li.read(J.xsrfCookieName):void 0;Be&&(Pt[J.xsrfHeaderName]=Be)}if("setRequestHeader"in ge&&O.forEach(Pt,function(Ut,sr){void 0===z&&"content-type"===sr.toLowerCase()?delete Pt[sr]:ge.setRequestHeader(sr,Ut)}),O.isUndefined(J.withCredentials)||(ge.withCredentials=!!J.withCredentials),J.responseType)try{ge.responseType=J.responseType}catch(nt){if("json"!==J.responseType)throw nt}"function"==typeof J.onDownloadProgress&&ge.addEventListener("progress",J.onDownloadProgress),"function"==typeof J.onUploadProgress&&ge.upload&&ge.upload.addEventListener("progress",J.onUploadProgress),J.cancelToken&&J.cancelToken.promise.then(function(Ut){!ge||(ge.abort(),ye(Ut),ge=null)}),void 0===z&&(z=null),ge.send(z)})}},7114:function(he,tt,B){"use strict";var O=B(4701),fe=B(2414),L=B(6490),j=B(2971);function v(_){var J=new L(_),we=fe(L.prototype.request,J);return O.extend(we,L.prototype,J),O.extend(we,J),we}var W=v(B(3324));W.Axios=L,W.create=function(J){return v(j(W.defaults,J))},W.Cancel=B(1413),W.CancelToken=B(3056),W.isCancel=B(8827),W.all=function(J){return Promise.all(J)},W.spread=B(9211),he.exports=W,he.exports.default=W},1413:function(he){"use strict";function tt(B){this.message=B}tt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},tt.prototype.__CANCEL__=!0,he.exports=tt},3056:function(he,tt,B){"use strict";var O=B(1413);function fe(L){if("function"!=typeof L)throw new TypeError("executor must be a function.");var j;this.promise=new Promise(function(W){j=W});var h=this;L(function(W){h.reason||(h.reason=new O(W),j(h.reason))})}fe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},fe.source=function(){var j;return{token:new fe(function(W){j=W}),cancel:j}},he.exports=fe},8827:function(he){"use strict";he.exports=function(B){return!(!B||!B.__CANCEL__)}},6490:function(he,tt,B){"use strict";var O=B(4701),fe=B(1625),L=B(607),j=B(957),h=B(2971);function v(W){this.defaults=W,this.interceptors={request:new L,response:new L}}v.prototype.request=function(_){"string"==typeof _?(_=arguments[1]||{}).url=arguments[0]:_=_||{},(_=h(this.defaults,_)).method=_.method?_.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var J=[j,void 0],we=Promise.resolve(_);for(this.interceptors.request.forEach(function(ye){J.unshift(ye.fulfilled,ye.rejected)}),this.interceptors.response.forEach(function(ye){J.push(ye.fulfilled,ye.rejected)});J.length;)we=we.then(J.shift(),J.shift());return we},v.prototype.getUri=function(_){return _=h(this.defaults,_),fe(_.url,_.params,_.paramsSerializer).replace(/^\?/,"")},O.forEach(["delete","get","head","options"],function(_){v.prototype[_]=function(J,we){return this.request(O.merge(we||{},{method:_,url:J}))}}),O.forEach(["post","put","patch"],function(_){v.prototype[_]=function(J,we,Ae){return this.request(O.merge(Ae||{},{method:_,url:J,data:we}))}}),he.exports=v},607:function(he,tt,B){"use strict";var O=B(4701);function fe(){this.handlers=[]}fe.prototype.use=function(j,h){return this.handlers.push({fulfilled:j,rejected:h}),this.handlers.length-1},fe.prototype.eject=function(j){this.handlers[j]&&(this.handlers[j]=null)},fe.prototype.forEach=function(j){O.forEach(this.handlers,function(v){null!==v&&j(v)})},he.exports=fe},5215:function(he,tt,B){"use strict";var O=B(8692),fe=B(4554);he.exports=function(j,h){return j&&!O(h)?fe(j,h):h}},5593:function(he,tt,B){"use strict";var O=B(5124);he.exports=function(L,j,h,v,W){var _=new Error(L);return O(_,j,h,v,W)}},957:function(he,tt,B){"use strict";var O=B(4701),fe=B(5134),L=B(8827),j=B(3324);function h(v){v.cancelToken&&v.cancelToken.throwIfRequested()}he.exports=function(W){return h(W),W.headers=W.headers||{},W.data=fe(W.data,W.headers,W.transformRequest),W.headers=O.merge(W.headers.common||{},W.headers[W.method]||{},W.headers),O.forEach(["delete","get","head","post","put","patch","common"],function(we){delete W.headers[we]}),(W.adapter||j.adapter)(W).then(function(we){return h(W),we.data=fe(we.data,we.headers,W.transformResponse),we},function(we){return L(we)||(h(W),we&&we.response&&(we.response.data=fe(we.response.data,we.response.headers,W.transformResponse))),Promise.reject(we)})}},5124:function(he){"use strict";he.exports=function(B,O,fe,L,j){return B.config=O,fe&&(B.code=fe),B.request=L,B.response=j,B.isAxiosError=!0,B.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},B}},2971:function(he,tt,B){"use strict";var O=B(4701);he.exports=function(L,j){j=j||{};var h={},v=["url","method","params","data"],W=["headers","auth","proxy"],_=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];O.forEach(v,function(ye){void 0!==j[ye]&&(h[ye]=j[ye])}),O.forEach(W,function(ye){O.isObject(j[ye])?h[ye]=O.deepMerge(L[ye],j[ye]):void 0!==j[ye]?h[ye]=j[ye]:O.isObject(L[ye])?h[ye]=O.deepMerge(L[ye]):void 0!==L[ye]&&(h[ye]=L[ye])}),O.forEach(_,function(ye){void 0!==j[ye]?h[ye]=j[ye]:void 0!==L[ye]&&(h[ye]=L[ye])});var J=v.concat(W).concat(_),we=Object.keys(j).filter(function(ye){return-1===J.indexOf(ye)});return O.forEach(we,function(ye){void 0!==j[ye]?h[ye]=j[ye]:void 0!==L[ye]&&(h[ye]=L[ye])}),h}},858:function(he,tt,B){"use strict";var O=B(5593);he.exports=function(L,j,h){var v=h.config.validateStatus;!v||v(h.status)?L(h):j(O("Request failed with status code "+h.status,h.config,null,h.request,h))}},5134:function(he,tt,B){"use strict";var O=B(4701);he.exports=function(L,j,h){return O.forEach(h,function(W){L=W(L,j)}),L}},3324:function(he,tt,B){"use strict";var O=B(4701),fe=B(5620),L={"Content-Type":"application/x-www-form-urlencoded"};function j(W,_){!O.isUndefined(W)&&O.isUndefined(W["Content-Type"])&&(W["Content-Type"]=_)}var v={adapter:function h(){var W;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(W=B(7729)),W}(),transformRequest:[function(_,J){return fe(J,"Accept"),fe(J,"Content-Type"),O.isFormData(_)||O.isArrayBuffer(_)||O.isBuffer(_)||O.isStream(_)||O.isFile(_)||O.isBlob(_)?_:O.isArrayBufferView(_)?_.buffer:O.isURLSearchParams(_)?(j(J,"application/x-www-form-urlencoded;charset=utf-8"),_.toString()):O.isObject(_)?(j(J,"application/json;charset=utf-8"),JSON.stringify(_)):_}],transformResponse:[function(_){if("string"==typeof _)try{_=JSON.parse(_)}catch(J){}return _}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(_){return _>=200&&_<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};O.forEach(["delete","get","head"],function(_){v.headers[_]={}}),O.forEach(["post","put","patch"],function(_){v.headers[_]=O.merge(L)}),he.exports=v},2414:function(he){"use strict";he.exports=function(B,O){return function(){for(var L=new Array(arguments.length),j=0;j<L.length;j++)L[j]=arguments[j];return B.apply(O,L)}}},1625:function(he,tt,B){"use strict";var O=B(4701);function fe(L){return encodeURIComponent(L).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}he.exports=function(j,h,v){if(!h)return j;var W;if(v)W=v(h);else if(O.isURLSearchParams(h))W=h.toString();else{var _=[];O.forEach(h,function(Ae,ye){null==Ae||(O.isArray(Ae)?ye+="[]":Ae=[Ae],O.forEach(Ae,function(Pt){O.isDate(Pt)?Pt=Pt.toISOString():O.isObject(Pt)&&(Pt=JSON.stringify(Pt)),_.push(fe(ye)+"="+fe(Pt))}))}),W=_.join("&")}if(W){var J=j.indexOf("#");-1!==J&&(j=j.slice(0,J)),j+=(-1===j.indexOf("?")?"?":"&")+W}return j}},4554:function(he){"use strict";he.exports=function(B,O){return O?B.replace(/\/+$/,"")+"/"+O.replace(/^\/+/,""):B}},5738:function(he,tt,B){"use strict";var O=B(4701);he.exports=O.isStandardBrowserEnv()?{write:function(j,h,v,W,_,J){var we=[];we.push(j+"="+encodeURIComponent(h)),O.isNumber(v)&&we.push("expires="+new Date(v).toGMTString()),O.isString(W)&&we.push("path="+W),O.isString(_)&&we.push("domain="+_),!0===J&&we.push("secure"),document.cookie=we.join("; ")},read:function(j){var h=document.cookie.match(new RegExp("(^|;\\s*)("+j+")=([^;]*)"));return h?decodeURIComponent(h[3]):null},remove:function(j){this.write(j,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},8692:function(he){"use strict";he.exports=function(B){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(B)}},6100:function(he,tt,B){"use strict";var O=B(4701);he.exports=O.isStandardBrowserEnv()?function(){var h,L=/(msie|trident)/i.test(navigator.userAgent),j=document.createElement("a");function v(W){var _=W;return L&&(j.setAttribute("href",_),_=j.href),j.setAttribute("href",_),{href:j.href,protocol:j.protocol?j.protocol.replace(/:$/,""):"",host:j.host,search:j.search?j.search.replace(/^\?/,""):"",hash:j.hash?j.hash.replace(/^#/,""):"",hostname:j.hostname,port:j.port,pathname:"/"===j.pathname.charAt(0)?j.pathname:"/"+j.pathname}}return h=v(window.location.href),function(_){var J=O.isString(_)?v(_):_;return J.protocol===h.protocol&&J.host===h.host}}():function(){return!0}},5620:function(he,tt,B){"use strict";var O=B(4701);he.exports=function(L,j){O.forEach(L,function(v,W){W!==j&&W.toUpperCase()===j.toUpperCase()&&(L[j]=v,delete L[W])})}},2099:function(he,tt,B){"use strict";var O=B(4701),fe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];he.exports=function(j){var v,W,_,h={};return j&&O.forEach(j.split("\n"),function(we){if(_=we.indexOf(":"),v=O.trim(we.substr(0,_)).toLowerCase(),W=O.trim(we.substr(_+1)),v){if(h[v]&&fe.indexOf(v)>=0)return;h[v]="set-cookie"===v?(h[v]?h[v]:[]).concat([W]):h[v]?h[v]+", "+W:W}}),h}},9211:function(he){"use strict";he.exports=function(B){return function(fe){return B.apply(null,fe)}}},4701:function(he,tt,B){"use strict";var O=B(2414),fe=Object.prototype.toString;function L(X){return"[object Array]"===fe.call(X)}function j(X){return void 0===X}function Ae(X){return null!==X&&"object"==typeof X}function ge(X){return"[object Function]"===fe.call(X)}function Be(X,Pn){if(null!=X)if("object"!=typeof X&&(X=[X]),L(X))for(var se=0,ln=X.length;se<ln;se++)Pn.call(null,X[se],se,X);else for(var Rt in X)Object.prototype.hasOwnProperty.call(X,Rt)&&Pn.call(null,X[Rt],Rt,X)}he.exports={isArray:L,isArrayBuffer:function v(X){return"[object ArrayBuffer]"===fe.call(X)},isBuffer:function h(X){return null!==X&&!j(X)&&null!==X.constructor&&!j(X.constructor)&&"function"==typeof X.constructor.isBuffer&&X.constructor.isBuffer(X)},isFormData:function W(X){return"undefined"!=typeof FormData&&X instanceof FormData},isArrayBufferView:function _(X){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(X):X&&X.buffer&&X.buffer instanceof ArrayBuffer},isString:function J(X){return"string"==typeof X},isNumber:function we(X){return"number"==typeof X},isObject:Ae,isUndefined:j,isDate:function ye(X){return"[object Date]"===fe.call(X)},isFile:function z(X){return"[object File]"===fe.call(X)},isBlob:function Pt(X){return"[object Blob]"===fe.call(X)},isFunction:ge,isStream:function lt(X){return Ae(X)&&ge(X.pipe)},isURLSearchParams:function Ur(X){return"undefined"!=typeof URLSearchParams&&X instanceof URLSearchParams},isStandardBrowserEnv:function li(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:Be,merge:function nt(){var X={};function Pn(Rt,it){X[it]="object"==typeof X[it]&&"object"==typeof Rt?nt(X[it],Rt):Rt}for(var se=0,ln=arguments.length;se<ln;se++)Be(arguments[se],Pn);return X},deepMerge:function Ut(){var X={};function Pn(Rt,it){X[it]="object"==typeof X[it]&&"object"==typeof Rt?Ut(X[it],Rt):"object"==typeof Rt?Ut({},Rt):Rt}for(var se=0,ln=arguments.length;se<ln;se++)Be(arguments[se],Pn);return X},extend:function sr(X,Pn,se){return Be(Pn,function(Rt,it){X[it]=se&&"function"==typeof Rt?O(Rt,se):Rt}),X},trim:function or(X){return X.replace(/^\s*/,"").replace(/\s*$/,"")}}},7854:function(he){var tt=function(B){"use strict";var L,O=Object.prototype,fe=O.hasOwnProperty,j="function"==typeof Symbol?Symbol:{},h=j.iterator||"@@iterator",v=j.asyncIterator||"@@asyncIterator",W=j.toStringTag||"@@toStringTag";function _(le,q,$){return Object.defineProperty(le,q,{value:$,enumerable:!0,configurable:!0,writable:!0}),le[q]}try{_({},"")}catch(le){_=function($,me,$e){return $[me]=$e}}function J(le,q,$,me){var Ye=Object.create((q&&q.prototype instanceof lt?q:lt).prototype),bt=new it(me||[]);return Ye._invoke=function Pn(le,q,$){var me=Ae;return function(Ye,bt){if(me===z)throw new Error("Generator is already running");if(me===Pt){if("throw"===Ye)throw bt;return wo()}for($.method=Ye,$.arg=bt;;){var gn=$.delegate;if(gn){var On=se(gn,$);if(On){if(On===ge)continue;return On}}if("next"===$.method)$.sent=$._sent=$.arg;else if("throw"===$.method){if(me===Ae)throw me=Pt,$.arg;$.dispatchException($.arg)}else"return"===$.method&&$.abrupt("return",$.arg);me=z;var cn=we(le,q,$);if("normal"===cn.type){if(me=$.done?Pt:ye,cn.arg===ge)continue;return{value:cn.arg,done:$.done}}"throw"===cn.type&&(me=Pt,$.method="throw",$.arg=cn.arg)}}}(le,$,bt),Ye}function we(le,q,$){try{return{type:"normal",arg:le.call(q,$)}}catch(me){return{type:"throw",arg:me}}}B.wrap=J;var Ae="suspendedStart",ye="suspendedYield",z="executing",Pt="completed",ge={};function lt(){}function Ur(){}function or(){}var li={};_(li,h,function(){return this});var Be=Object.getPrototypeOf,nt=Be&&Be(Be(at([])));nt&&nt!==O&&fe.call(nt,h)&&(li=nt);var Ut=or.prototype=lt.prototype=Object.create(li);function sr(le){["next","throw","return"].forEach(function(q){_(le,q,function($){return this._invoke(q,$)})})}function X(le,q){function $(Ye,bt,gn,On){var cn=we(le[Ye],le,bt);if("throw"!==cn.type){var Xi=cn.arg,Ea=Xi.value;return Ea&&"object"==typeof Ea&&fe.call(Ea,"__await")?q.resolve(Ea.__await).then(function(Ti){$("next",Ti,gn,On)},function(Ti){$("throw",Ti,gn,On)}):q.resolve(Ea).then(function(Ti){Xi.value=Ti,gn(Xi)},function(Ti){return $("throw",Ti,gn,On)})}On(cn.arg)}var me;this._invoke=function $e(Ye,bt){function gn(){return new q(function(On,cn){$(Ye,bt,On,cn)})}return me=me?me.then(gn,gn):gn()}}function se(le,q){var $=le.iterator[q.method];if($===L){if(q.delegate=null,"throw"===q.method){if(le.iterator.return&&(q.method="return",q.arg=L,se(le,q),"throw"===q.method))return ge;q.method="throw",q.arg=new TypeError("The iterator does not provide a 'throw' method")}return ge}var me=we($,le.iterator,q.arg);if("throw"===me.type)return q.method="throw",q.arg=me.arg,q.delegate=null,ge;var $e=me.arg;return $e?$e.done?(q[le.resultName]=$e.value,q.next=le.nextLoc,"return"!==q.method&&(q.method="next",q.arg=L),q.delegate=null,ge):$e:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,ge)}function ln(le){var q={tryLoc:le[0]};1 in le&&(q.catchLoc=le[1]),2 in le&&(q.finallyLoc=le[2],q.afterLoc=le[3]),this.tryEntries.push(q)}function Rt(le){var q=le.completion||{};q.type="normal",delete q.arg,le.completion=q}function it(le){this.tryEntries=[{tryLoc:"root"}],le.forEach(ln,this),this.reset(!0)}function at(le){if(le){var q=le[h];if(q)return q.call(le);if("function"==typeof le.next)return le;if(!isNaN(le.length)){var $=-1,me=function $e(){for(;++$<le.length;)if(fe.call(le,$))return $e.value=le[$],$e.done=!1,$e;return $e.value=L,$e.done=!0,$e};return me.next=me}}return{next:wo}}function wo(){return{value:L,done:!0}}return Ur.prototype=or,_(Ut,"constructor",or),_(or,"constructor",Ur),Ur.displayName=_(or,W,"GeneratorFunction"),B.isGeneratorFunction=function(le){var q="function"==typeof le&&le.constructor;return!!q&&(q===Ur||"GeneratorFunction"===(q.displayName||q.name))},B.mark=function(le){return Object.setPrototypeOf?Object.setPrototypeOf(le,or):(le.__proto__=or,_(le,W,"GeneratorFunction")),le.prototype=Object.create(Ut),le},B.awrap=function(le){return{__await:le}},sr(X.prototype),_(X.prototype,v,function(){return this}),B.AsyncIterator=X,B.async=function(le,q,$,me,$e){void 0===$e&&($e=Promise);var Ye=new X(J(le,q,$,me),$e);return B.isGeneratorFunction(q)?Ye:Ye.next().then(function(bt){return bt.done?bt.value:Ye.next()})},sr(Ut),_(Ut,W,"Generator"),_(Ut,h,function(){return this}),_(Ut,"toString",function(){return"[object Generator]"}),B.keys=function(le){var q=[];for(var $ in le)q.push($);return q.reverse(),function me(){for(;q.length;){var $e=q.pop();if($e in le)return me.value=$e,me.done=!1,me}return me.done=!0,me}},B.values=at,it.prototype={constructor:it,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=L,this.done=!1,this.delegate=null,this.method="next",this.arg=L,this.tryEntries.forEach(Rt),!q)for(var $ in this)"t"===$.charAt(0)&&fe.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=L)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if("throw"===$.type)throw $.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var $=this;function me(cn,Xi){return bt.type="throw",bt.arg=q,$.next=cn,Xi&&($.method="next",$.arg=L),!!Xi}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var Ye=this.tryEntries[$e],bt=Ye.completion;if("root"===Ye.tryLoc)return me("end");if(Ye.tryLoc<=this.prev){var gn=fe.call(Ye,"catchLoc"),On=fe.call(Ye,"finallyLoc");if(gn&&On){if(this.prev<Ye.catchLoc)return me(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return me(Ye.finallyLoc)}else if(gn){if(this.prev<Ye.catchLoc)return me(Ye.catchLoc,!0)}else{if(!On)throw new Error("try statement without catch or finally");if(this.prev<Ye.finallyLoc)return me(Ye.finallyLoc)}}}},abrupt:function(q,$){for(var me=this.tryEntries.length-1;me>=0;--me){var $e=this.tryEntries[me];if($e.tryLoc<=this.prev&&fe.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var Ye=$e;break}}Ye&&("break"===q||"continue"===q)&&Ye.tryLoc<=$&&$<=Ye.finallyLoc&&(Ye=null);var bt=Ye?Ye.completion:{};return bt.type=q,bt.arg=$,Ye?(this.method="next",this.next=Ye.finallyLoc,ge):this.complete(bt)},complete:function(q,$){if("throw"===q.type)throw q.arg;return"break"===q.type||"continue"===q.type?this.next=q.arg:"return"===q.type?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):"normal"===q.type&&$&&(this.next=$),ge},finish:function(q){for(var $=this.tryEntries.length-1;$>=0;--$){var me=this.tryEntries[$];if(me.finallyLoc===q)return this.complete(me.completion,me.afterLoc),Rt(me),ge}},catch:function(q){for(var $=this.tryEntries.length-1;$>=0;--$){var me=this.tryEntries[$];if(me.tryLoc===q){var $e=me.completion;if("throw"===$e.type){var Ye=$e.arg;Rt(me)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(q,$,me){return this.delegate={iterator:at(q),resultName:$,nextLoc:me},"next"===this.method&&(this.arg=L),ge}},B}(he.exports);try{regeneratorRuntime=tt}catch(B){"object"==typeof globalThis?globalThis.regeneratorRuntime=tt:Function("r","regeneratorRuntime = r")(tt)}},7757:function(he,tt,B){he.exports=B(7854)}},function(he){he(he.s=6790)}]);