From d6b677bef03106d5f2b259e0704aaac1f0b612d3 Mon Sep 17 00:00:00 2001 From: pIvan Date: Tue, 22 Oct 2019 12:16:17 +0200 Subject: [PATCH] Fixed problem with subscriptions when a component is destroyed --- docs/index.html | 2 +- ...js => main-es2015.64d81fb91380c0336797.js} | 2 +- ...5d.js => main-es5.64d81fb91380c0336797.js} | 2 +- projects/iplab/ngx-color-picker/package.json | 2 +- .../chrome-picker/chrome-picker.component.ts | 18 +++-- .../compact-picker.component.ts | 16 +++-- .../github-picker/github-picker.component.ts | 16 +++-- .../ip-picker/ip-picker.component.ts | 14 ++-- .../sketch-picker/sketch-picker.component.ts | 16 +++-- .../swatches-picker.component.ts | 32 +++++---- .../src/lib/helpers/control.class.ts | 8 --- src/app/app.component.html | 70 +++++++++++++++++++ src/app/app.component.ts | 2 + src/app/app.module.ts | 8 ++- .../chrome-wrapper.component.css | 26 +++++++ .../chrome-wrapper.component.html | 2 + .../chrome-picker/chrome-wrapper.component.ts | 47 +++++++++++++ src/app/wrap-examples/wrap-example.module.ts | 20 ++++++ 18 files changed, 252 insertions(+), 51 deletions(-) rename docs/{main-es2015.89c8eade1d837bc89f5d.js => main-es2015.64d81fb91380c0336797.js} (81%) rename docs/{main-es5.89c8eade1d837bc89f5d.js => main-es5.64d81fb91380c0336797.js} (84%) create mode 100644 src/app/wrap-examples/chrome-picker/chrome-wrapper.component.css create mode 100644 src/app/wrap-examples/chrome-picker/chrome-wrapper.component.html create mode 100644 src/app/wrap-examples/chrome-picker/chrome-wrapper.component.ts create mode 100644 src/app/wrap-examples/wrap-example.module.ts diff --git a/docs/index.html b/docs/index.html index 84325cd..2b58239 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,5 +8,5 @@ - + diff --git a/docs/main-es2015.89c8eade1d837bc89f5d.js b/docs/main-es2015.64d81fb91380c0336797.js similarity index 81% rename from docs/main-es2015.89c8eade1d837bc89f5d.js rename to docs/main-es2015.64d81fb91380c0336797.js index c7ce2a6..e18581e 100644 --- a/docs/main-es2015.89c8eade1d837bc89f5d.js +++ b/docs/main-es2015.64d81fb91380c0336797.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"Eh/9":function(e,t,n){var r,s;s=null,window.PR_SHOULD_USE_CONTINUATION=!0,function(){function n(e,t,n,r){t&&(n(e={a:t,e}),r.push.apply(r,e.g))}function o(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r&&C.test(n.nodeValue)?e:t}return t===e?void 0:t}function i(e,t){var r,o={};!function(){for(var n=e.concat(t),i=[],a={},l=0,c=n.length;l=0;)o[h.charAt(d)]=u;a.hasOwnProperty(h=""+(u=u[1]))||(i.push(u),a[h]=s)}i.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),s=(e=[],["["]);(o="^"===r[0])&&s.push("^");for(var o=o?1:0,i=r.length;o122||(a<65||l>90||e.push([32|Math.max(65,l),32|Math.min(a,90)]),a<97||l>122||e.push([-33&Math.max(97,l),-33&Math.min(a,122)]))}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],i=[],o=0;ol[0]&&(l[1]+1>l[0]&&s.push("-"),s.push(n(l[1])));return s.push("]"),s.join("")}function s(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),s=t.length,a=[],l=0,c=0;l=2&&"["===e?t[l]=r(u):"\\"!==e&&(t[l]=u.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var o=0,i=!1,a=!1,l=0,c=e.length;l=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}if(v=c,c+=m.length,g){var w=m.indexOf(g=b[1]),_=w+g.length;b[2]&&(w=(_=m.length-b[2].length)-g.length),y=y.substring(5),n(a+v,m.substring(0,w),e,l),n(a+v+w,g,u(y,g),l),n(a+v+_,m.substring(_),e,l)}else l.push(a+v,y)}s.g=l}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,s,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,s,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,s,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,s]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,s,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,s,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,s])):t.push(["com",/^#[^\n\r]*/,s,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,s]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,s])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),s]),t.push(["pln",/^\s+/,s," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,s],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,s],["pln",/^[$_a-z][\w$@]*/i,s],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,s,"0123456789"],["pln",/^\\[\S\s]?/,s],["pun",RegExp(r),s]),i(t,n)}function l(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,c=l.match(i);c&&(t=l.substring(0,c.index),e.nodeValue=t,(l=l.substring(c.index+c[0].length))&&e.parentNode.insertBefore(a.createTextNode(l),e.nextSibling),s(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)s(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function s(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(s=t.parentNode){var s=e(s,1),o=t.nextSibling;s.appendChild(r);for(var i=o;i;i=o)o=i.nextSibling,s.appendChild(i)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;c.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],u=0;u=0;){var r=t[n];S.hasOwnProperty(r)?f.console&&console.warn("cannot override language handler %s",r):S[r]=e}}function u(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=x&&(g+=2)}}finally{w&&(w.style.display=v)}}catch(T){f.console&&console.log(T&&T.stack||T)}}var d,p,f=window,g=[d=[[p=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[d,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[m,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],b=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],w=[p,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],_=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,x=a({keywords:[g,y,d=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b,v,p=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};c(x,["default-code"]),c(i([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(i([["pln",/^\s+/,s," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,s,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'\/>]|\/(?=\s)))/],["pun",/^[\/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),c(i([],[["atv",/^[\S\s]+/]]),["uq.val"]),c(a({keywords:g,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),c(a({keywords:"null,true,false"}),["json"]),c(a({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),c(a({keywords:m,cStyleComments:!0}),["java"]),c(a({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(a({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(a({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(a({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),c(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(a({keywords:w,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),c(i([],[["str",/^[\S\s]+/]]),["regex"]);var k=f.PR={createSimpleLexer:i,registerLangHandler:c,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:f.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="
"+e+"
",r=r.firstChild,n&&l(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:f.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],i=[],a=0;a{throw e})}const a={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);const h=u;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:o,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++ae.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let i=this;r(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==a&&(r((i=Object.create(t)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:function(){})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function w(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}w.prototype=Object.create(Error.prototype);const _=w;class C extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends g{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new x(this)}lift(e){const t=new k(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew k(e,t),e})();class k extends S{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function E(e){return e&&"function"==typeof e.schedule}class A extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=P(),I=e=>t=>{const n=e[M]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},N=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function V(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return N(e);if(D(e))return T(e);if(V(e))return O(e);if(e&&"function"==typeof e[M])return I(e);{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new A(e,n,r)){if(!s.closed)return R(t)(s)}class j extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function H(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B(e,t))}}class B{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new L(e,this.project,this.thisArg))}}class L extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new b(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:T(e))}class z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new K(e,this.project,this.concurrent))}}class K extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Z(e){return e}function U(){return function(e){return e.lift(new G(e))}}class G{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Q(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Q extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const W=class extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new X(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return U()(this)}}.prototype,Y={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:W._subscribe},_isComplete:{value:W._isComplete,writable:!0},getSubject:{value:W.getSubject},connect:{value:W.connect},refCount:{value:W.refCount}};class X extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new S}const $="__parameters__";function ee(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty($)?e[$]:Object.defineProperty(e,$,{value:[]})[$];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const te=ee("Inject",e=>({token:e})),ne=ee("Optional"),re=ee("Self"),se=ee("SkipSelf");var oe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function ae(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ue(e){const t=e[de];return t&&t.token===e?t:null}function he(e){return e&&e.hasOwnProperty(pe)?e[pe]:null}const de=ie({ngInjectableDef:ie}),pe=ie({ngInjectorDef:ie});function fe(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(fe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ge=ie({__forward_ref__:ie});function me(e){return e.__forward_ref__=me,e.toString=function(){return fe(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ge)&&t.__forward_ref__===me?t():e}const be="undefined"!=typeof globalThis&&globalThis,ve="undefined"!=typeof window&&window,we="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,_e="undefined"!=typeof global&&global,Ce=be||_e||ve||we;class xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=le({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Se=new xe("INJECTOR",-1),ke=new Object,Ee="ngTempTokenPath",Ae="ngTokenPath",Te=/\n/gm,Oe="\u0275",Pe="__source",Me=ie({provide:String,useValue:ie});let Ie,Ne=void 0;function De(e){const t=Ne;return Ne=e,t}function Ve(e){const t=Ie;return Ie=e,t}function Re(e,t=oe.Default){return(Ie||function(e,t=oe.Default){if(void 0===Ne)throw new Error("inject() must be called from an injection context");return null===Ne?Fe(e,void 0,t):Ne.get(e,t&oe.Optional?null:void 0,t)})(e,t)}function Fe(e,t,n){const r=ue(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&oe.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${fe(e)}]`)}function je(e){const t=[];for(let n=0;nArray.isArray(e)?qe(e,t):t(e))}function ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ke(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ze=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Ue=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ge={},Qe=[],We=ie({ngComponentDef:ie}),Ye=ie({ngDirectiveDef:ie}),Xe=ie({ngPipeDef:ie}),Je=ie({ngModuleDef:ie}),$e=ie({ngLocaleIdDef:ie}),et=ie({__NG_ELEMENT_ID__:ie});let tt=0;function nt(e){const t=e.type,n=t.prototype,r={},s={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ue.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null};return s._=""+{toString:()=>{const n=e.directives,o=e.features,i=e.pipes;s.id+=tt++,s.inputs=it(e.inputs,r),s.outputs=it(e.outputs),o&&o.forEach(e=>e(s)),s.directiveDefs=n?()=>("function"==typeof n?n():n).map(rt):null,s.pipeDefs=i?()=>("function"==typeof i?i():i).map(st):null,t.hasOwnProperty(de)||(t[de]=le({token:t,factory:e.factory}))}},s}function rt(e){return ct(e)||function(e){return e[Ye]||null}(e)}function st(e){return function(e){return e[Xe]||null}(e)}function ot(e){return{type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}}function it(e,t){if(null==e)return Ge;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,t&&(t[s]=o)}return n}const at=nt;function lt(e){return{name:e.name,factory:e.factory,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ct(e){return e[We]||null}function ut(e,t){const n=e[Je]||null;if(!n&&!0===t)throw new Error(`Type ${fe(e)} does not have 'ngModuleDef' property.`);return n}const ht=0,dt=1,pt=2,ft=3,gt=4,mt=5,yt=6,bt=7,vt=8,wt=9,_t=10,Ct=11,xt=12,St=13,kt=14,Et=15,At=16,Tt=17,Ot=18,Pt=19,Mt=1,It=2,Nt=5,Dt=7,Vt=8,Rt=9;function Ft(e){return Array.isArray(e)&&"object"==typeof e[Mt]}function jt(e){return Array.isArray(e)&&!0===e[Mt]}function Ht(e){return 0!=(4&e.flags)}function Bt(e){return 1==(1&e.flags)}function Lt(e){return null!==e.template}function qt(e){return 0!=(512&e[pt])}const zt=8,Kt=8,Zt=9,Ut=-1;class Gt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Qt(e,t,n,r,s,o){const{onChanges:i,onInit:a,doCheck:l}=t;s>=0&&(!n.preOrderHooks||s===n.preOrderHooks.length)&&(i||a||l)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),o>=0&&(!n.preOrderCheckHooks||o===n.preOrderCheckHooks.length)&&(i||l)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,a),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}function Wt(e,t){if(e.firstTemplatePass)for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[i]<0&&(e[Ot]+=65536),(o>10>16&&(3&e[pt])===t&&(e[pt]+=1024,o.call(i)):o.call(i)}let $t=null;const en=new Map;let tn=null;const nn=1,rn=0;function sn(e,t){return tn&&e===tn||(tn=e,t&&($t=en.get(e)||null),$t=$t||{classesBitMask:rn,classesIndex:nn,stylesBitMask:rn,stylesIndex:nn}),$t}function on(){$t=null,tn=null}const an="__ngContext__";function ln(e){for(;Array.isArray(e);)e=e[ht];return e}function cn(e,t){return ln(t[e+Pt])}function un(e,t){return ln(t[e.index])}function hn(e,t){const n=e.index;return-1==n?null:ln(t[n])}function dn(e,t){return t[dt].data[e+Pt]}function pn(e,t){return e[t+Pt]}function fn(e,t){const n=t[e];return Ft(n)?n:n[ht]}function gn(e){const t=function(e){return e[an]}(e);return t?Array.isArray(t)?t:t.lView:null}function mn(e){e[Ot]=0}let yn,bn,vn=null;function wn(e){vn=e}function _n(){return bn}function Cn(){return En}const xn=1;let Sn,kn,En,An=xn,Tn=0,On=0;function Pn(e=null){Jn!==e&&(er(null==e?-1:e),An=null==e?0:xn,Tn=0,On=0)}function Mn(){An+=1+On,Tn=0,On=0}function In(e){Tn+=e,On=Math.max(On,Tn)}function Nn(e){Bn=e}function Dn(){return Sn}function Vn(e,t){Sn=e,kn=t}function Rn(e,t){Sn=e,En=t}function Fn(){return kn}function jn(){kn=!1}function Hn(e=En){return 4==(4&e[pt])}let Bn=null,Ln=!1;function qn(){return Ln}function zn(e){Ln=e}let Kn=-1;function Zn(){return Kn}function Un(e){Kn=e}let Gn=0;function Qn(){return Gn}function Wn(e){Gn=e}function Yn(e,t){const n=En;return e&&(Kn=e[dt].bindingStartIndex),Sn=t,kn=!0,En=Bn=e,n}function Xn(e,t){const n=En[dt];if(Hn(En))En[pt]&=-5;else try{mn(En),t&&Xt(En,n.viewHooks,n.viewCheckHooks,Ln,2,void 0)}finally{En[pt]&=-73,En[bt]=n.bindingStartIndex}Yn(e,null)}let Jn=-1;function $n(){return Jn}function er(e){Jn=e,on()}let tr,nr=null;function rr(){nr="http://www.w3.org/2000/svg"}function sr(){nr=null}function or(e){tr=e}function ir(){return tr}function ar(e,t){return!(e!=e&&t!=t)&&e!==t}function lr(e){return"string"==typeof e?e:null==e?"":""+e}function cr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():lr(e)}const ur=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ce))(),hr="\ufffd";function dr(e){return e instanceof Function?e():e}const pr="--MAP--",fr=0;function gr(e,t){t===fr?e[2]>fr&&function(e){yr(e,2|mr(e))}(e):e[2]=t}function mr(e){return e[1]}function yr(e,t){e[1]=t}function br(e,t){return e[t+2]}function vr(e,t){return 1&e[t+0]}function wr(e,t){return(1&vr(e,t))>0}function _r(e,t){return e[t+0]>>1}function Cr(e,t,n){const r=vr(e,t);e[t+0]=r|n<<1}function xr(e,t){return e[t+1]}function Sr(e,t,n){return e[t+3+n]}function kr(e,t){return!(!e||t!==e[2])}function Er(e){return(1&mr(e))>0}function Ar(e){return(2&mr(e))>0}function Tr(e){return 6+e[4]}function Or(e,t){let n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),ar(n,r)}function Pr(e){return null!=e&&""!==e}function Mr(e,t,n=" "){return e+(t.length&&e.length?n:"")+t}function Ir(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Nr(e){return Dr(e)?e[0]:e}function Dr(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function Vr(e){const t=Nr(e);return t&&t[0]||""}function Rr(e){return 0!=(8&e.flags)}function Fr(e){return 0!=(16&e.flags)}function jr(e,t){return e[t+0]}function Hr(e,t,n){e[t+1]=n}function Br(e,t){return e[t+1]}const Lr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function qr(e){return!!e.listen}const zr={createRenderer:(e,t)=>document},Kr="@";function Zr(e){return e[0]===Kr}function Ur(e){return e!==Ut}function Gr(e){return 32767&e}function Qr(e){return e>>16}function Wr(e,t){let n=Qr(e),r=t;for(;n>0;)r=r[At],n--;return r}function Yr(e){const t=e[ft];return jt(t)?t[ft]:t}function Xr(e){let t=e[yt];for(;null!==t&&2===t.type;)t=(e=e[At])[yt];return e}let Jr=!0;function $r(e){const t=Jr;return Jr=e,t}const es=255;let ts=0;function ns(e,t){const n=ss(e,t);if(-1!==n)return n;const r=t[dt];r.firstTemplatePass&&(e.injectorIndex=t.length,rs(r.data,e),rs(t,null),rs(r.blueprint,null));const s=os(e,t),o=Gr(s),i=Wr(s,t),a=e.injectorIndex;if(Ur(s)){const e=i[dt].data;for(let n=0;n<8;n++)t[a+n]=i[o+n]|e[o+n]}return t[a+Kt]=s,a}function rs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ss(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Kt]?-1:e.injectorIndex}function os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[yt],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[At])?t[yt]:null,r++;return n?n.injectorIndex|r<<16:-1}function is(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[et]:n.charCodeAt(0)||0;null==r&&(r=n[et]=ts++);const s=r&es,o=1<0?t&es:t}(n);if("function"==typeof s){const o=Dn(),i=Cn();Rn(e,t);try{const e=s();if(null!=e||r&oe.Optional)return e;throw new Error(`No provider for ${cr(n)}!`)}finally{Rn(o,i)}}else if("number"==typeof s){if(-1===s)return new fs(e,t);let o=null,i=ss(e,t),a=Ut,l=r&oe.Host?Xr(t)[yt]:null;for((-1===i||r&oe.SkipSelf)&&(a=-1===i?os(e,t):t[i+Kt],ps(r,!1)?(o=t[dt],i=Gr(a),t=Wr(a,t)):i=-1);-1!==i;){a=t[i+Kt];const e=t[dt];if(ds(s,i,e.data)){const e=cs(i,t,n,o,r,l);if(e!==ls)return e}ps(r,t[dt].data[i+zt]===l)&&ds(s,i,t)?(o=e,i=Gr(a),t=Wr(a,t)):i=-1}}}if(r&oe.Optional&&void 0===s&&(s=null),0==(r&(oe.Self|oe.Host))){const e=t[_t],o=Ve(void 0);try{return e?e.get(n,s,r&oe.Optional):Fe(n,s,r&oe.Optional)}finally{Ve(o)}}if(r&oe.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${cr(n)}]`)}const ls={};function cs(e,t,n,r,s,o){const i=t[dt],a=i.data[e+zt],l=us(a,i,n,null==r?Bt(a)&&Jr:r!=i&&3===a.type,s&oe.Host&&o===a);return null!==l?hs(i.data,t,l,a):ls}function us(e,t,n,r,s){const o=e.providerIndexes,i=t.data,a=65535&o,l=e.directiveStart,c=o>>16,u=s?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&e.type===n)return h}if(s){const e=i[l];if(e&&Lt(e)&&e.type===n)return l}return null}function hs(e,t,n,r){let s=t[n];if(null!==(o=s)&&"object"==typeof o&&Object.getPrototypeOf(o)==Gt.prototype){const o=s;if(o.resolving)throw new Error(`Circular dep for ${cr(e[n])}`);const i=$r(o.canSeeViewProviders);let a;o.resolving=!0,o.injectImpl&&(a=Ve(o.injectImpl));const l=Dn(),c=Cn();Rn(r,t);try{s=t[n]=o.factory(void 0,e,t,r)}finally{o.injectImpl&&Ve(a),$r(i),o.resolving=!1,Rn(l,c)}}var o;return s}function ds(e,t,n){const r=64&e,s=32&e;let o;return!!((o=128&e?r?s?n[t+7]:n[t+6]:s?n[t+5]:n[t+4]:r?s?n[t+3]:n[t+2]:s?n[t+1]:n[t])&1<',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0Ts(e.trim())).join(", ")),this.buf.push(" ",t,'="',zs(i),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Vs.hasOwnProperty(t)&&!Ms.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(zs(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qs=/([^\#-~ |!])/g;function zs(e){return e.replace(/&/g,"&").replace(Ls,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(qs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Ks;function Zs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Us=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Gs{}const Qs=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ws=/^url\(([^)]+)\)$/;function Ys(e,t){e[an]=t}function Xs(e){throw new Error(`Multiple components match node with tagname ${e.tagName}`)}function Js(){throw new Error("Cannot mix multi providers and regular providers")}const $s="ng-template";function eo(e,t){const n=e.length,r=e.indexOf(t),s=r+t.length;return!(-1===r||r>0&&" "!==e[r-1]||so?"":s[u+1];const t=8&r?e:null;if(t&&!eo(t,c)||2&r&&c!==e){if(ro(r))return!1;i=!0}}}}else{if(!i&&!ro(r)&&!ro(l))return!1;if(i&&ro(l))continue;i=!1,r=l|1&r}}return ro(r)||i}function ro(e){return 0==(1&e)}function so(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;nrn}(r,o))?(function(e,t,n,r,s,o,i){const a=!0===(l=s)?-1:!1===l?0:l;var l;const c=wo,u=(a&_r(e,3))>0?1:0;let h=Tr(e);for(;h{const s=t.style;r?(r=r.toString(),e&&qr(e)?e.setStyle(t,n,r,Lr.DashCase):s&&s.setProperty(n,r)):e&&qr(e)?e.removeStyle(t,n,Lr.DashCase):s&&s.removeProperty(n)},Co=(e,t,n,r)=>{if(""!==n){const s=t.classList;r?e&&qr(e)?e.addClass(t,n):s&&s.add(n):e&&qr(e)?e.removeClass(t,n):s&&s.remove(n)}};function xo(e,t,n,r){const s=Nr(n);if(s)for(let o=1;o{let c=!1;if(xr(e,3)){let u=!0;const h=!a;h&&-2&i&&(u=!1,c=!0),u&&(c=function e(t,n,r,s,o,i,a,l,c,u){let h=!1;if(c=To.length&&To.push(1),To[e]}(c);for(;fl,y=!m&&g===l,b=Br(p,f),v=Pr(b);let w=e(t,n,r,s,o,i,m?a:Eo(a,v,y),m?l:g,c+1,u);if(m){h||(h=w);break}if(!w&&Ao(a,y)){const e=y&&!v,t=e?u:b,s=e?d:null;o(n,r,g,i?i(g,t,3):t,s),w=!0}h=w&&y,f+=2}if(To[c]=f,1===p.length||!l)return e(t,n,r,s,o,i,a,l,c+1,u)}return h}(e,t,n,r,s,o,i,a||null,0,l||null)),h&&function(){for(let e=0;e0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}const To=[];function Oo(e,t,n,r){for(let s=1;ss){const e=0===t,i=n.data;for(let t=s;t=o.length)&&(o=function(e,t,n){const r=n.initialInputs||(n.initialInputs=[]);for(let i=r.length;i<=e;i++)r.push(null);const s=n.attrs;let o=0;for(;oPromise.resolve(null))();function mi(e){return void 0===e.inputs&&(e.inputs=Go(e,0)),e.inputs}function yi(e){return e[vt]||(e[vt]=[])}function bi(e){return e[dt].cleanup||(e[dt].cleanup=[])}function vi(e,t){const n=e[_t],r=n?n.get(_s,null):null;r&&r.handleError(t)}function wi(e,t,n){const r=e[dt];for(let s=0;s0&&(e[n-1][gt]=r[gt]);const o=Ke(e,Rt+t);Si(r,!1);const i=o[mt];null!==i&&i.detachView(o[dt]),r[ft]=null,r[gt]=null,r[pt]&=-129}return r}function Ai(e){if(!(256&e[pt])){const t=e[xt];qr(t)&&t.destroyNode&&Vi(t,2,e,null,null),function(e){let t=e[kt];if(!t)return Oi(e);for(;t;){let n=null;if(Ft(t))n=t[kt];else{const e=t[Rt];e&&(n=e)}if(!n){for(;t&&!t[gt]&&t!==e;)Oi(t),t=Ti(t,e);Oi(t||e),n=t&&t[gt]}t=n}}(e)}}function Ti(e,t){let n;return Ft(e)&&(n=e[yt])&&2===n.type?_i(n,e):e[ft]===t?null:e[ft]}function Oi(e){if(Ft(e)&&!(256&e[pt])){e[pt]&=-129,e[pt]|=256,function(e){const t=e[dt];let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[vt]=null}}(e);const t=e[yt];t&&3===t.type&&qr(e[xt])&&e[xt].destroy();const n=e[Tt];if(null!==n&&jt(e[ft])){n!==e[ft]&&ki(n,e);const t=e[mt];null!==t&&t.detachView(e[dt])}}}function Pi(e,t,n,r){qr(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Mi(e,t,n,r){null!==r?Pi(e,t,n,r):function(e,t,n){qr(e)?e.appendChild(t,n):t.appendChild(n)}(e,t,n)}function Ii(e,t){return qr(e)?e.parentNode(t):t.parentNode}function Ni(e,t,n){const r=function(e,t){if(qt(t))return Ii(t[xt],un(e,t));const n=function(e){for(;null!=e.parent&&(4===e.parent.type||5===e.parent.type);)e=e.parent;return e}(e),r=n.parent;if(null==r){const e=t[yt];return 2===e.type?Ci(e,t):function(e){const t=e[yt];return t&&3===t.type?un(t,Yr(e)):null}(t)}{const e=n&&5===n.type;if(e&&2&n.flags)return un(n,t).parentNode;if(1&r.flags&&!e){const e=t[dt].data,n=e[e[r.index].directiveStart].encapsulation;if(n!==Ue.ShadowDom&&n!==Ue.Native)return null}return un(r,t)}}(t,n);if(null!=r){const s=n[xt],o=function(e,t){if(2===e.type){const n=_i(e,t);return Di(n.indexOf(t,Rt)-Rt,n)}return 4===e.type||5===e.type?un(e,t):null}(t.parent||n[yt],n);if(Array.isArray(e))for(let t of e)Mi(s,r,t,o);else Mi(s,r,e,o)}}function Di(e,t){const n=Rt+e+1;if(n-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ai(this._lView)}onDestroy(e){var t,n;n=e,yi(t=this._lView).push(n),t[dt].firstTemplatePass&&bi(t).push(t[vt].length-1,null)}markForCheck(){li(this._lView)}detach(){this._lView[pt]&=-129}reattach(){this._lView[pt]|=128}detectChanges(){ui(this._lView,this.context)}checkNoChanges(){!function(e,t){zn(!0);try{ui(e,t)}finally{zn(!1)}}(this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){this._appRef=null,function(e){Vi(e[xt],1,e,null,null)}(this._lView)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}_lookUpContext(){return this._context=Yr(this._lView)[this._componentIndex]}}class ji extends Fi{constructor(e){super(e,null,-1),this._view=e}detectChanges(){hi(this._view)}checkNoChanges(){!function(e){zn(!0);try{hi(e)}finally{zn(!1)}}(this._view)}get context(){return null}}let Hi,Bi,Li;function qi(e,t,n){return Hi||(Hi=class extends e{}),new Hi(un(t,n))}function zi(e,t,n,r){return Bi||(Bi=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=function(e,t,n,r){const s=Fn(),o=Dn();Vn(null,!0);const i=Ro(n,e,t,16,null,null);return i[At]=n,jo(e,null,-1,i),e.firstTemplatePass&&(e.node.injectorIndex=r),Vn(o,s),i}(t,e,this._declarationView,this._declarationTContainer.injectorIndex);n[Tt]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[mt];null!==r&&(n[mt]=r.createEmbeddedView(t)),Ho(n,t,e);const s=new Fi(n,e,-1);return s._tViewNode=n[yt],s}}),0===n.type?new Bi(r,n,qi(t,n,r)):null}function Ki(e,t,n,r){let s;Li||(Li=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return qi(t,this._hostTNode,this._hostView)}get injector(){return new fs(this._hostTNode,this._hostView)}get parentInjector(){const e=os(this._hostTNode,this._hostView),t=Wr(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.injectorIndex;)t=t.parent;return t}let r=Qr(e),s=t,o=t[yt];for(;r>1;)o=(s=s[At])[yt],r--;return o}(e,this._hostView,this._hostTNode);return Ur(e)&&null!=n?new fs(n,t):new fs(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[Vt]&&this._lContainer[Vt][e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const o=n||this.parentInjector;!s&&null==e.ngModule&&o&&(s=o.get(Be,null));const i=e.create(o,r,void 0,s);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");this.allocateContainerIfNeeded();const n=e._lView,r=this._adjustIndex(t);return jt(n[ft])?this.move(e,r):(function(e,t,n){const r=Rt+n,s=t.length;n>0&&(t[r-1][gt]=e),n{class e{}return e.__NG_ELEMENT_ID__=()=>Ui(),e})();const Ui=function(e=!1){return function(e,t,n){if(Bt(e)&&!n){const n=e.directiveStart,r=fn(e.index,t);return new Fi(r,null,n)}if(3===e.type||0===e.type||4===e.type){const e=Xr(t);return new Fi(e,e[wt],-1)}return null}(Dn(),Cn(),e)},Gi=new xe("The presence of this token marks an injector as being the root injector."),Qi={},Wi={},Yi=[];let Xi=void 0;function Ji(){return void 0===Xi&&(Xi=new He),Xi}function $i(e,t=null,n=null,r){return t=t||Ji(),new ea(e,n,t,r)}class ea{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];qe([e],e=>this.processInjectorType(e,[],s)),t&&qe(t,n=>this.processProvider(n,e,t)),this.records.set(Se,ra(void 0,this)),this.isRootInjector=this.records.has(Gi),this.injectorDefTypes.forEach(e=>this.get(e)),this.source=r||("object"==typeof e?null:fe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ke,n=oe.Default){this.assertNotDestroyed();const r=De(this);try{if(!(n&oe.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof xe)&&ue(e);n&&this.injectableDefInScope(n)&&(t=ra(ta(e),Qi),this.records.set(e,t))}if(void 0!==t)return this.hydrate(e,t)}return(n&oe.Self?Ji():this.parent).get(e,n&oe.Optional?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ee]=o[Ee]||[]).unshift(fe(e)),r)throw o;return function(e,t,n,r){const s=e[Ee];throw t[Pe]&&s.unshift(t[Pe]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Oe?e.substr(2):e;let s=fe(t);if(t instanceof Array)s=t.map(fe).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):fe(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Te,"\n ")}`}("\n"+e.message,s,n,r),e[Ae]=s,e[Ee]=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{De(r)}var s}toString(){const e=[];return this.records.forEach((t,n)=>e.push(fe(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ye(e)))return!1;let r=he(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=he(s)),null==r)return!1;if(this.injectorDefTypes.add(o),this.records.set(o,ra(r.factory,Qi)),null!=r.imports&&!i){let e;n.push(o);try{qe(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Yi))}}const a=r.providers;if(null!=a&&!i){const t=e;qe(a,e=>this.processProvider(e,t,a))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=oa(e=ye(e))?e:ye(e&&e.provide);const s=function(e,t,n){let r=na(e,t,n);return sa(e)?ra(void 0,e.useValue):ra(r,Qi)}(e,t,n);if(oa(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&Js()}else{let t=this.records.get(r);t?void 0===t.multi&&Js():((t=ra(void 0,Qi,!0)).factory=()=>je(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){var n;return t.value===Wi?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(fe(e)):t.value===Qi&&(t.value=Wi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))}}function ta(e){const t=ue(e);if(null!==t)return t.factory;const n=he(e);if(null!==n)return n.factory;if(e instanceof xe)throw new Error(`Token ${fe(e)} is missing an ngInjectableDef definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=new Array(t).fill("?");throw new Error(`Can't resolve all parameters for ${fe(e)}: (${n.join(", ")}).`)}const n=(r=e)&&r[de]?(console.warn(`DEPRECATED: DI is instantiating a token "${r.name}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${r.name}" class.`),r[de]):null;var r;return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function na(e,t,n){let r=void 0;if(oa(e))return ta(ye(e));if(sa(e))r=()=>ye(e.useValue);else if((s=e)&&s.useExisting)r=()=>Re(ye(e.useExisting));else if(e&&e.useFactory)r=()=>e.useFactory(...je(e.deps||[]));else{const s=ye(e&&(e.useClass||e.provide));if(s||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${fe(e)}'`+r)}(t,n,e),!e.deps)return ta(s);r=()=>new s(...je(e.deps))}var s;return r}function ra(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sa(e){return null!==e&&"object"==typeof e&&Me in e}function oa(e){return"function"==typeof e}const ia=function(e,t,n){return $i({name:n},t,e,n)};let aa=(()=>{class e{static create(e,t){return Array.isArray(e)?ia(e,t,""):ia(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new He,e.ngInjectableDef=le({token:e,providedIn:"any",factory:()=>Re(Se)}),e.__NG_ELEMENT_ID__=-1,e})(),la=new Map;const ca=new Set;function ua(e){return"string"==typeof e?e:e.text()}function ha(e){const t=Cn(),n=t[dt];n.firstTemplatePass&&(function(e,t,n){const r=e.expandoInstructions,s=r.length;s>=2&&r[s-2]===t.hostBindings?r[s-1]=r[s-1]+n:r.push(t.hostBindings,n)}(n,vn,e),function(e,t,n){for(let r=0;r0&&(r=n?Mr(e,((s=t)&&"string"!=typeof s&&(s=Object.keys(s).join(" ")),s||"")):Mr(e,function(e){let t="";if(e){const n=Object.keys(e);for(let r=0;r0}function La(e,t,n,r){const s=Cn(),o=s[dt],i=s[e+Pt]=Vo(t),a=s[xt],l=Fo(o,s[yt],e,3,t,n||null);if(null!=n){const e=function(e,t){const n=Cn()[xt],r=qr(n);let s=0;for(;s1&&(e.classes||(e.classes=o),Va(e.classes,Po(o,!0))),s&&s.length>1&&(e.styles||(e.styles=s),Va(e.styles,Po(s,!1)))}(l,n,e)}if(function(e,t,n){xo(e,t,n.classes,!0),xo(e,t,n.styles,!1)}(a,i,l),Ni(i,l,s),0===yn&&Ys(i,s),yn++,o.firstTemplatePass){Wo(o,s,l,r||null);const e=mi(l);e&&e.hasOwnProperty("class")&&(l.flags|=8),e&&e.hasOwnProperty("style")&&(l.flags|=16),null!==o.queries&&o.queries.elementStart(o,l)}zo(o,s,l),function(e,t,n){if(Ht(t)){const r=t.directiveEnd;for(let s=t.directiveStart;sr(ln(e[i.index])).target:i.index;if(qr(h)){let n=null;if(!r&&function(e){return e.directiveEnd>e.directiveStart}(i)&&(n=function(e,t,n){const r=e[dt].cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof o&&(s+=2)}return null}(o,e,i.index)),null!==n)t.__ngNextListenerFn__=n.__ngNextListenerFn__,n.__ngNextListenerFn__=t,c=!1;else{t=Wa(i,o,t,!1);const n=h.listen(a.name||u,e,t);d.push(t,n),l&&l.push(e,f,p,p+1)}}else t=Wa(i,o,t,!0),u.addEventListener(e,t,n),d.push(t),l&&l.push(e,f,p,n)}void 0===i.outputs&&(i.outputs=Go(i,1));const u=i.outputs;let h;if(c&&u&&(h=u[e])){const n=h.length;if(n){const r=yi(o);for(let s=0;s0;)t=t[At],e--;return t}(e,Bn))[wt]}(e)}function Xa(e,t){const n=Cn(),r=n[e+Pt]=function(e,t){return qr(t)?t.createText(lr(e)):t.createTextNode(lr(e))}(t,n[xt]),s=Fo(n[dt],n[yt],e,3,null,null);jn(),Ni(r,s,n)}function Ja(e,t,n){const r=$n(),s=Cn(),o=function(e,t,n,r){const s=wa(e,e[bt]++,n);return fi(e,t,r),s?t+lr(n)+r:So}(s,e,t,n);return o!==So&&function(e,t,n){const r=cn(t,e),s=e[xt];qr(s)?s.setValue(r,n):r.textContent=n}(s,r,o),Ja}function $a(e,t){const n=gn(e)[dt],r=n.data.length-1;Qt(r,t,n,-1,-1,-1),Wt(n,{directiveStart:r,directiveEnd:r+1})}class el{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function tl(){return nl.ngInherit=!0,nl}function nl(e){e.type.prototype.ngOnChanges&&(e.setInput=rl,e.onChanges=function(){const e=ol(this),t=e&&e.current;if(t){const n=e.previous;if(n===Ge)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function rl(e,t,n,r){const s=ol(e)||function(e,t){return e[sl]={previous:Ge,current:null}}(e),o=s.current||(s.current={}),i=s.previous,a=this.declaredInputs[n],l=i[a];o[a]=new el(l&&l.currentValue,t,i===Ge),e[r]=t}const sl="__ngSimpleChanges__";function ol(e){return e[sl]||null}function il(e){let t=Object.getPrototypeOf(e.type.prototype).constructor;for(;t;){let n=void 0;if(Lt(e))n=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");n=t.ngDirectiveDef}const r=t.ngBaseDef;if(r||n){const t=e;t.inputs=al(e.inputs),t.declaredInputs=al(e.declaredInputs),t.outputs=al(e.outputs)}if(r){const t=r.viewQuery,n=r.contentQueries,s=r.hostBindings;s&&ul(e,s),t&&ll(e,t),n&&cl(e,n),ae(e.inputs,r.inputs),ae(e.declaredInputs,r.declaredInputs),ae(e.outputs,r.outputs)}if(n){const t=n.hostBindings;t&&ul(e,t);const r=n.viewQuery,s=n.contentQueries;r&&ll(e,r),s&&cl(e,s),ae(e.inputs,n.inputs),ae(e.declaredInputs,n.declaredInputs),ae(e.outputs,n.outputs),e.afterContentChecked=e.afterContentChecked||n.afterContentChecked,e.afterContentInit=e.afterContentInit||n.afterContentInit,e.afterViewChecked=e.afterViewChecked||n.afterViewChecked,e.afterViewInit=e.afterViewInit||n.afterViewInit,e.doCheck=e.doCheck||n.doCheck,e.onDestroy=e.onDestroy||n.onDestroy,e.onInit=e.onInit||n.onInit;const o=n.features;if(o)for(const n of o)n&&n.ngInherit&&n(e)}else{const n=t.prototype;n&&(e.afterContentChecked=e.afterContentChecked||n.ngAfterContentChecked,e.afterContentInit=e.afterContentInit||n.ngAfterContentInit,e.afterViewChecked=e.afterViewChecked||n.ngAfterViewChecked,e.afterViewInit=e.afterViewInit||n.ngAfterViewInit,e.doCheck=e.doCheck||n.ngDoCheck,e.onDestroy=e.onDestroy||n.ngOnDestroy,e.onInit=e.onInit||n.ngOnInit,n.ngOnChanges&&tl()(e))}t=Object.getPrototypeOf(t)}}function al(e){return e===Ge?{}:e===Qe?[]:e}function ll(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function cl(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,s)=>{t(e,r,s),n(e,r,s)}:t}function ul(e,t){const n=e.hostBindings;t!==n&&(e.hostBindings=n?(e,r,s)=>{In(1);try{t(e,r,s)}finally{In(-1)}n(e,r,s)}:t)}function hl(e,t,n,r,s){if(e=ye(e),Array.isArray(e))for(let o=0;o>16;if(e.useClass||oa(e)){const n=(e.useClass||e).prototype.ngOnDestroy;n&&(i.destroyHooks||(i.destroyHooks=[])).push(t.length,n)}if(oa(e)||!e.multi){const e=new Gt(l,s,Aa),r=pl(a,t,s?u:u+d,h);-1==r?(is(ns(c,o),i,a),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(e),o.push(e)):(n[r]=e,o[r]=e)}else{const e=pl(a,t,u+d,h),p=pl(a,t,u,u+d),f=e>=0&&n[e],g=p>=0&&n[p];if(s&&!g||!s&&!f){is(ns(c,o),i,a);const e=function(e,t,n,r,s){const o=new Gt(e,n,Aa);return o.multi=[],o.index=t,o.componentProviders=0,dl(o,s,r&&!n),o}(s?gl:fl,n.length,s,r,l);!s&&g&&(n[p].providerFactory=e),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(e),o.push(e)}else dl(n[s?p:e],l,!s&&r);!s&&r&&g&&n[p].componentProviders++}}}function dl(e,t,n){e.multi.push(t),n&&e.componentProviders++}function pl(e,t,n,r){for(let s=n;s{n.providersResolver=(n,r)=>(function(e,t,n){const r=Cn()[dt];if(r.firstTemplatePass){const s=Lt(e);hl(n,r.data,r.blueprint,s,!0),hl(t,r.data,r.blueprint,s,!1)}})(n,r?r(e):e,t)}}class bl{}class vl{}const wl="ngComponent";class _l{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${fe(e)}. Did you add it to @NgModule.entryComponents?`);return t[wl]=e,t}(e)}}let Cl=(()=>{class e{}return e.NULL=new _l,e})(),xl=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Sl(e),e})();const Sl=function(e){return qi(e,Dn(),Cn())};class kl{}const El=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Al=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Tl(),e})();const Tl=function(){const e=Cn(),t=fn(Dn().index,e);return function(n){const r=(Ft(t)?t:e)[xt];if(qr(r))return r;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}()};class Ol{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Pl=new Ol("8.2.5");class Ml{constructor(){}supports(e){return ma(e)}create(e){return new Nl(e)}}const Il=(e,t)=>t;class Nl{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Il}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&fa(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,e,r,t)),fa(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(fa(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(fa(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Dl(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Rl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Dl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Vl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&fa(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Rl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Vl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fl(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Bl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){fa(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Bl{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ll=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=le({token:e,providedIn:"root",factory:()=>new e([new Ml])}),e})(),ql=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=le({token:e,providedIn:"root",factory:()=>new e([new jl])}),e})();const zl=[new jl],Kl=new Ll([new Ml]),Zl=new ql(zl);let Ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Gl(e,xl),e})();const Gl=function(e,t){return zi(e,t,Dn(),Cn())};let Ql=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Wl(e,xl),e})();const Wl=function(e,t){return Ki(e,t,Dn(),Cn())},Yl={};function Xl(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Jl=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ur});class $l extends vl{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors[0][0]||"div",this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Xl(this.componentDef.inputs)}get outputs(){return Xl(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const o=e.get(n,Yl,s);return o!==Yl||r===Yl?o:t.get(n,r,s)}}}(e,r.injector):e,o=s.get(kl,zr),i=s.get(Gs,null);sr();const a=n?function(e,t){const n=o.createRenderer(null,null);return"string"==typeof t?qr(n)?n.selectRootElement(t):n.querySelector(t):t}(0,n):Vo(this.selector,o.createRenderer(null,this.componentDef)),l=this.componentDef.onPush?576:528,c="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),u={components:[],scheduler:ur,clean:gi,playerHandler:null,flags:0},h=o.createRenderer(a,this.componentDef);n&&a&&(qr(h)?h.setAttribute(a,"ng-version",Pl.full):a.setAttribute("ng-version",Pl.full));const d=Ro(null,Zo(-1,null,1,0,null,null,null,null),u,l,null,null,o,h,i,s),p=Yn(d,null);let f,g,m=!1;try{const e=function(e,t,n,r,s,o){kn=!1,Sn=null,yn=0,bn=!0,or(null),on(),en.clear();const i=n[dt];n[0+Pt]=e;const a=Fo(i,null,0,3,null,null),l=Ro(n,Ko(t),null,t.onPush?64:16,n[Pt],a,r,s,o);return i.firstTemplatePass&&(is(ns(a,n),i,t.type),a.flags=1,ni(a,n.length,1),ei(a)),n[Pt]=l}(a,this.componentDef,d,o,h);g=dn(0,d),t&&(g.projection=t.map(e=>Array.from(e))),f=function(e,t,n,r,s){const o=n[dt],i=function(e,t,n){const r=Dn();e.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),Xo(e,r,1),ri(e,t,n,n.factory));const s=hs(e.data,t,t.length-1,r);return $o(t,r,s),s}(o,n,t);r.components.push(i),e[wt]=i,s&&s.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const a=Dn();return o.firstTemplatePass&&t.hostBindings&&(Pn(a.index-Pt),Yo(t,o.expandoInstructions,i,a,o.firstTemplatePass),Pn(null)),i}(e,this.componentDef,d,u,[$a]),ai(d,e),No(d),m=!0}finally{Xn(p,m)}const y=new ec(this.componentType,f,qi(xl,g,d),d,g);return n&&!c||(y.hostView._tViewNode.child=g),y}}class ec extends bl{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new ji(r),this.hostView._tViewNode=jo(r[dt],null,-1,r),this.componentType=e}get injector(){return new fs(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const tc={},nc=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),rc=void 0;var sc=["en",[["a","p"],["AM","PM"],rc],[["AM","PM"],rc,rc],[["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"]],rc,[["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"]],rc,[["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}",rc,"{1} 'at' {0}",rc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const oc="en-US";let ic=oc;function ac(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(ic=e.toLowerCase().replace(/_/g,"-"))}const lc=new Map,cc={provide:Cl,useClass:class extends Cl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ct(e);return new $l(t,this.ngModule)}},deps:[Be]};class uc extends Be{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[];const n=ut(e),r=e[$e]||null;r&&ac(r),this._bootstrapComponents=dr(n.bootstrap),this._r3Injector=$i(e,t,[{provide:Be,useValue:this},cc],fe(e)),this.instance=this.get(e)}get(e,t=aa.THROW_IF_NOT_FOUND,n=oe.Default){return e===aa||e===Be||e===Se?this:this._r3Injector.get(e,t,n)}get componentFactoryResolver(){return this.get(Cl)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class hc extends Le{constructor(e){super(),this.moduleType=e,null!==ut(e)&&function e(t){if(null!==t.ngModuleDef.id){const e=t.ngModuleDef.id;(function(e,n,r){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${fe(n)} vs ${fe(n.name)}`)})(e,lc.get(e)),lc.set(e,t)}let n=t.ngModuleDef.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new uc(this.moduleType,e)}}function dc(e,t,n,r){const s=Cn(),o=Zn()+e;return wa(s,o,n)?ba(s,o+1,r?t.call(r,n):t(n)):va(s,o+1)}function pc(e,t,n,r,s){const o=Zn()+e,i=Cn();return function(e,t,n,r){const s=wa(e,t,n);return wa(e,t+1,r)||s}(i,o,n,r)?ba(i,o+2,s?t.call(s,n,r):t(n,r)):va(i,o+2)}function fc(e,t){const n=Cn()[dt];let r;const s=e+Pt;n.firstTemplatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const o=r.factory();return function(e,t){const n=Cn(),r=n[dt],s=e+Pt;s>=r.data.length&&(r.data[s]=null,r.blueprint[s]=null),n[s]=t}(e,o),o}function gc(e,t,n){const r=Ea(e);return bc(yc(e)?dc(t,r.transform,n,r):r.transform(n))}function mc(e,t,n,r){const s=Ea(e);return bc(yc(e)?pc(t,s.transform,n,r,s):s.transform(n,r))}function yc(e){return Cn()[dt].data[e+Pt].pure}function bc(e){if(ga.isWrapped(e)){e=ga.unwrap(e);const t=Cn();t[t[bt]]=So}return e}class vc extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return e instanceof d&&e.add(i),i}}function wc(){return this._results[pa()]()}class _c{constructor(){this.dirty=!0,this._results=[],this.changes=new vc,this.length=0;const e=pa(),t=_c.prototype;t[e]||(t[e]=wc)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r0)r.push(i[n/2]);else{const i=o[n+1],a=t[-s];for(let t=Rt;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Vc,8))},providedIn:null}),e})();const Fc=new xe("AppId"),jc={provide:Fc,useFactory:function(){return`${Hc()}${Hc()}${Hc()}`},deps:[]};function Hc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bc=new xe("Platform Initializer"),Lc=new xe("Platform ID"),qc=new xe("appBootstrapListener");let zc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();const Kc=new xe("LocaleId"),Zc=!0;class Uc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Gc=function(e){return new hc(e)},Qc=Gc,Wc=function(e){return Promise.resolve(Gc(e))},Yc=function(e){const t=Gc(e),n=dr(ut(e).declarations).reduce((e,t)=>{const n=ct(t);return n&&e.push(new $l(n)),e},[]);return new Uc(t,n)},Xc=Yc,Jc=function(e){return Promise.resolve(Yc(e))};let $c=(()=>{class e{constructor(){this.compileModuleSync=Qc,this.compileModuleAsync=Wc,this.compileModuleAndAllComponentsSync=Xc,this.compileModuleAndAllComponentsAsync=Jc}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();const eu=new xe("compilerOptions");let tu,nu;function ru(){const e=Ce.wtf;return!(!e||!(tu=e.trace)||(nu=tu.events,0))}const su=ru(),ou=su?function(e,t=null){return nu.createScope(e,t)}:(e,t)=>(function(e,t){return null}),iu=su?function(e,t){return tu.leaveScope(e,t),t}:(e,t)=>t,au=(()=>Promise.resolve(0))();function lu(e){"undefined"==typeof Zone?au.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class cu{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc(!1),this.onMicrotaskEmpty=new vc(!1),this.onStable=new vc(!1),this.onError=new vc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,o,i)=>{try{return pu(t),e.invokeTask(r,s,o,i)}finally{fu(t)}},onInvoke:(e,n,r,s,o,i,a)=>{try{return pu(t),e.invoke(r,s,o,i,a)}finally{fu(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,du(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(cu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,hu,uu,uu);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function uu(){}const hu={};function du(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fu(e){e._nesting--,du(e)}class gu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc,this.onMicrotaskEmpty=new vc,this.onStable=new vc,this.onError=new vc}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}let mu=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cu.assertNotInAngularZone(),lu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())lu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(cu))},providedIn:null}),e})(),yu=(()=>{class e{constructor(){this._applications=new Map,wu.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return wu.findTestabilityInTree(this,e,t)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();class bu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let vu,wu=new bu,_u=function(e,t,n){const r=new hc(n);if(0===la.size)return Promise.resolve(r);const s=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(eu,[]).concat(t).map(e=>e.providers));if(0===s.length)return Promise.resolve(r);const o=function(){const e=Ce.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),i=aa.create({providers:s}).get(o.ResourceLoader);return function(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const s=e(t);n.set(t,r=s.then(ua))}return r}return la.forEach((e,n)=>{const s=[];e.templateUrl&&s.push(r(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,i=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((t,n)=>{i.push(""),s.push(r(t).then(r=>{i[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>(function(e){ca.delete(e)})(n));t.push(l)}),la=new Map,Promise.all(t).then(()=>void 0)}(e=>Promise.resolve(i.get(e))).then(()=>r)},Cu=function(e){return e.isBoundToModule};const xu=new xe("AllowMultipleToken");function Su(e,t,n=[]){const r=`Platform: ${t}`,s=new xe(r);return(t=[])=>{let o=ku();if(!o||o.injector.get(xu,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(vu&&!vu.destroyed&&!vu.injector.get(xu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");vu=e.get(Eu);const t=e.get(Bc,null);t&&t.forEach(e=>e())}(aa.create({providers:e,name:r}))}return function(e){const t=ku();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function ku(){return vu&&!vu.destroyed?vu:null}let Eu=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new gu:("zone.js"===s?void 0:s)||new cu({enableLongStackTrace:Ss()}),r=[{provide:cu,useValue:n}];var s;return n.run(()=>{const t=aa.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(_s,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Zc&&ac(s.injector.get(Kc,oc)||oc),s.onDestroy(()=>Ou(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return Ua(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=s.injector.get(Rc);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Au({},t);return _u(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${fe(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(aa))},providedIn:null}),e})();function Au(e,t){return Array.isArray(t)?t.reduce(Au,e):Object.assign({},e,t)}let Tu=(()=>{class e{constructor(e,t,n,r,s,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ss(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{cu.assertNotInAngularZone(),lu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{cu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return E(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?s=>s.pipe(e((e,r)=>(function(e,t){return e instanceof b?e:new b(R(e))})(t(e,r)).pipe(H((t,s)=>n(e,t,r,s))),r)):("number"==typeof n&&(r=n),e=>e.lift(new z(t,r)))}(Z,e)}(t)(q(e,n))}(i,a.pipe(e=>U()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Y);return r.source=t,r.subjectFactory=n,r}}(J)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof vl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Cu(n)?null:this._injector.get(Be),s=n.create(aa.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(mu,null);return o&&s.injector.get(yu).registerApplication(s.location.nativeElement,o),this._loadComponent(s),Ss()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,iu(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ou(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ou(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(cu),Re(zc),Re(aa),Re(_s),Re(Cl),Re(Rc))},providedIn:null}),e._tickScope=ou("ApplicationRef#tick()"),e})();function Ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pu=Su(null,"core",[{provide:Lc,useValue:"unknown"},{provide:Eu,deps:[aa]},{provide:yu,deps:[]},{provide:zc,deps:[]}]),Mu=[{provide:Tu,useClass:Tu,deps:[cu,zc,aa,_s,Cl,Rc]},{provide:Jl,deps:[cu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Rc,useClass:Rc,deps:[[new ne,Vc]]},{provide:$c,useClass:$c,deps:[]},jc,{provide:Ll,useFactory:function(){return Kl},deps:[]},{provide:ql,useFactory:function(){return Zl},deps:[]},{provide:Kc,useFactory:function(e){return e?(Zc&&ac(e),e):oc},deps:[[new te(Kc),new ne,new se]]}];let Iu=(()=>{class e{constructor(e){}}return e.ngModuleDef=ot({type:e}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)(Re(Tu))},providers:Mu}),e})();class Nu{}const Du=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Vu=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=tc[t];if(n)return n;const r=t.split("-")[0];if(n=tc[r])return n;if("en"===r)return sc;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[nc.PluralCase]},Ru=new xe("UseV4Plurals");class Fu{}let ju=(()=>{class e extends Fu{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Vu(t||this.locale)(e)){case Du.Zero:return"zero";case Du.One:return"one";case Du.Two:return"two";case Du.Few:return"few";case Du.Many:return"many";default:return"other"}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Kc),Re(Ru,8))},providedIn:null}),e})();class Hu{constructor(e,t){this._name=e,this._options=t,this.value=null,this._lastSetValue=null,this._lastSetValueType=0,this._lastSetValueIdentityChange=!1}setValue(e){if(Array.isArray(e))this._lastSetValueType=4;else if(e instanceof Set)this._lastSetValueType=8;else if(e&&"string"==typeof e){if(!(4&this._options))throw new Error(this._name+" string values are not allowed");this._lastSetValueType=1}else this._lastSetValueType=e?2:0;this._lastSetValueIdentityChange=!0,this._lastSetValue=e||null}hasValueChanged(){let e=this._lastSetValueIdentityChange;if(!(e||14&this._lastSetValueType))return!1;let t=null;const n=!!(1&this._options),r=!!(8&this._options),s=!!(2&this._options);switch(this._lastSetValueType){case 1:const o=this._lastSetValue.split(/\s+/g);16&this._options?(t={},o.forEach((e,n)=>t[e]=!0)):t=o.reduce((e,t,n)=>e+(n?" ":"")+t);break;case 2:const i=this._lastSetValue,a=Object.keys(i);e||(e=!this.value||function(e,t,n){const r=e;if(!Ku(Object.keys(t),r))return!0;for(let s=0;s0){const s=t.split(/\s+/g);for(let t=0;t0){const r=e.substr(n+1);e=e.substring(0,n),null!=t&&(t+=r)}return{key:e,value:t}}(t,n);n=e.value,t=e.key}e[t]=n}function Ku(e,t){if(e&&t){if(e.length!==t.length)return!1;for(let n=0;n{class e{constructor(){this._value=null,this._ngClassDiffer=new Hu("NgClass",23),this._classStringDiffer=null}getValue(){return this._value}setClass(e){(e||this._classStringDiffer)&&(this._classStringDiffer=this._classStringDiffer||new Hu("class",20),this._classStringDiffer.setValue(e))}setNgClass(e){this._ngClassDiffer.setValue(e)}applyChanges(){const e=!!this._classStringDiffer&&this._classStringDiffer.hasValueChanged(),t=this._ngClassDiffer.hasValueChanged();if(e||t){let e=this._ngClassDiffer.value;if(this._classStringDiffer){let t=this._classStringDiffer.value;t&&(e=e?Object.assign({},t,e):t)}this._value=e}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})()},Gu=at({type:function(){},selectors:null,factory:()=>{},hostBindings:function(e,t,n){1&e&&(ha(1),Ta()),2&e&&(Ma(t.getValue()),Da())}});let Qu=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=Gu,e})(),Wu=(()=>{class e extends Qu{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngClass",""]],factory:function(t){return new(t||e)(Aa(Zu))},inputs:{klass:["class","klass"],ngClass:"ngClass"},features:[yl([Uu]),il]}),e})();class Yu{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xu=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Ss()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Yu(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Ju(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Ju(e,s);t.push(o)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngFor","","ngForOf",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul),Aa(Ll))},inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Ju{constructor(e,t){this.record=e,this.view=t}}let $u=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new eh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){th("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){th("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngIf",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul))},inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class eh{constructor(){this.$implicit=null,this.ngIf=null}}function th(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${fe(t)}'.`)}class nh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let rh=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new nh(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngSwitchCase",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul),Aa(rh,1))},inputs:{ngSwitchCase:"ngSwitchCase"}}),e})();class oh{}const ih={provide:oh,useClass:(()=>{class e{constructor(){this._differ=new Hu("NgStyle",8),this._value=null}getValue(){return this._value}setNgStyle(e){this._differ.setValue(e)}applyChanges(){this._differ.hasValueChanged()&&(this._value=this._differ.value)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})()},ah=at({type:function(){},selectors:null,factory:()=>{},hostBindings:function(e,t,n){1&e&&Ta(),2&e&&(function(e){const t=$n(),n=Cn(),r=dn(t,n),s=Fa(r),o=Ra(),i=n[bt]++;!o&&Fr(r)&&e!==So&&(Na(s,n,r,i,e,!1),e=So),Ia(t,s,i,e,!1,Ba())}(t.getValue()),Da())}});let lh=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=ah,e})(),ch=(()=>{class e extends lh{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngStyle",""]],factory:function(t){return new(t||e)(Aa(oh))},inputs:{ngStyle:"ngStyle"},features:[yl([ih]),il]}),e})();class uh{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class hh{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const dh=new hh,ph=new uh;let fh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):fa(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,ga.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Ua(t))return dh;if(function(e){return!!e&&"function"==typeof e.subscribe}(t))return ph;throw Error(`InvalidPipeArgument: '${t}' for pipe '${fe(e)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Zi))},providedIn:null}),e.ngPipeDef=lt({name:"async",type:e,factory:function(t){return new(t||e)(Aa(Zi))},pure:!1}),e})(),gh=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();gh.ngInjectorDef=ce({factory:function(e){return new(e||gh)},providers:[{provide:Fu,useClass:ju}]});let mh=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();mh.ngInjectorDef=ce({factory:function(e){return new(e||mh)},providers:[{provide:Ru,useValue:function(e,t){"string"==typeof t&&(t=parseInt(t,10));const n=t,r=n.toString().replace(/^[^.]*\.?/,""),s=Math.floor(Math.abs(n)),o=r.length,i=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?Du.One:Du.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?Du.One:Du.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===s||1===n?Du.One:Du.Other;case"ar":return 0===n?Du.Zero:1===n?Du.One:2===n?Du.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?Du.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?Du.Many:Du.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===s&&0===o?Du.One:Du.Other;case"be":return n%10==1&&n%100!=11?Du.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?Du.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?Du.Many:Du.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?Du.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?Du.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?Du.Few:0!==n&&n%1e6==0?Du.Many:Du.Other;case"bs":case"hr":case"sr":return 0===o&&s%10==1&&s%100!=11||i%10==1&&i%100!=11?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Du.Few:Du.Other;case"cs":case"sk":return 1===s&&0===o?Du.One:s===Math.floor(s)&&s>=2&&s<=4&&0===o?Du.Few:0!==o?Du.Many:Du.Other;case"cy":return 0===n?Du.Zero:1===n?Du.One:2===n?Du.Two:3===n?Du.Few:6===n?Du.Many:Du.Other;case"da":return 1===n||0!==a&&(0===s||1===s)?Du.One:Du.Other;case"dsb":case"hsb":return 0===o&&s%100==1||i%100==1?Du.One:0===o&&s%100==2||i%100==2?Du.Two:0===o&&s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4||i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4?Du.Few:Du.Other;case"ff":case"fr":case"hy":case"kab":return 0===s||1===s?Du.One:Du.Other;case"fil":return 0===o&&(1===s||2===s||3===s)||0===o&&s%10!=4&&s%10!=6&&s%10!=9||0!==o&&i%10!=4&&i%10!=6&&i%10!=9?Du.One:Du.Other;case"ga":return 1===n?Du.One:2===n?Du.Two:n===Math.floor(n)&&n>=3&&n<=6?Du.Few:n===Math.floor(n)&&n>=7&&n<=10?Du.Many:Du.Other;case"gd":return 1===n||11===n?Du.One:2===n||12===n?Du.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?Du.Few:Du.Other;case"gv":return 0===o&&s%10==1?Du.One:0===o&&s%10==2?Du.Two:0!==o||s%100!=0&&s%100!=20&&s%100!=40&&s%100!=60&&s%100!=80?0!==o?Du.Many:Du.Other:Du.Few;case"he":return 1===s&&0===o?Du.One:2===s&&0===o?Du.Two:0!==o||n>=0&&n<=10||n%10!=0?Du.Other:Du.Many;case"is":return 0===a&&s%10==1&&s%100!=11||0!==a?Du.One:Du.Other;case"ksh":return 0===n?Du.Zero:1===n?Du.One:Du.Other;case"kw":case"naq":case"se":case"smn":return 1===n?Du.One:2===n?Du.Two:Du.Other;case"lag":return 0===n?Du.Zero:0!==s&&1!==s||0===n?Du.Other:Du.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?Du.Few:0!==i?Du.Many:Du.Other:Du.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=19?Du.Zero:n%10==1&&n%100!=11||2===o&&i%10==1&&i%100!=11||2!==o&&i%10==1?Du.One:Du.Other;case"mk":return 0===o&&s%10==1||i%10==1?Du.One:Du.Other;case"mt":return 1===n?Du.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?Du.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?Du.Many:Du.Other;case"pl":return 1===s&&0===o?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Du.Few:0===o&&1!==s&&s%10===Math.floor(s%10)&&s%10>=0&&s%10<=1||0===o&&s%10===Math.floor(s%10)&&s%10>=5&&s%10<=9||0===o&&s%100===Math.floor(s%100)&&s%100>=12&&s%100<=14?Du.Many:Du.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?Du.One:Du.Other;case"ro":return 1===s&&0===o?Du.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?Du.Few:Du.Other;case"ru":case"uk":return 0===o&&s%10==1&&s%100!=11?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Du.Few:0===o&&s%10==0||0===o&&s%10===Math.floor(s%10)&&s%10>=5&&s%10<=9||0===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=14?Du.Many:Du.Other;case"shi":return 0===s||1===n?Du.One:n===Math.floor(n)&&n>=2&&n<=10?Du.Few:Du.Other;case"si":return 0===n||1===n||0===s&&1===i?Du.One:Du.Other;case"sl":return 0===o&&s%100==1?Du.One:0===o&&s%100==2?Du.Two:0===o&&s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4||0!==o?Du.Few:Du.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?Du.One:Du.Other;default:return Du.Other}}}]});const yh=new xe("DocumentToken"),bh="server";let vh=null;function wh(){return vh}class _h{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Ch extends _h{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const xh={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Sh=3,kh={"\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"},Eh={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"},Ah=(()=>{if(Ce.Node)return Ce.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Th extends Ch{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Th,vh||(vh=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return xh}contains(e,t){return Ah.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{class e extends Nu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=wh().getLocation(),this._history=wh().getHistory()}getBaseHrefFromDOM(){return wh().getBaseHref(this._doc)}onPopState(e){wh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){wh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Mh()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Mh()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();const Nh=new xe("TRANSITION_ID"),Dh=[{provide:Vc,useFactory:function(e,t,n){return()=>{n.get(Rc).donePromise.then(()=>{const n=wh();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Nh,yh,aa],multi:!0}];class Vh{static init(){var e;e=new Vh,wu=e}addToWindow(e){Ce.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements(),Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(e=>{const t=Ce.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?wh().isShadowRoot(t)?this.findTestabilityInTree(e,wh().getHost(t),!0):this.findTestabilityInTree(e,wh().parentElement(t),!0):null}}const Rh=new xe("EventManagerPlugins");let Fh=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),Bh=(()=>{class e extends Hh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>wh().remove(e))}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();const Lh={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/"},qh=/%COMP%/g,zh="_nghost-%COMP%",Kh="_ngcontent-%COMP%";function Zh(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Gh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Qh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ue.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Xh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Ue.Native:case Ue.ShadowDom:return new Jh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Zh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Fh),Re(Bh),Re(Fc))},providedIn:null}),e})();class Qh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Lh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Lh[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Lh[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&El.DashCase?e.style.setProperty(t,n,r&El.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&El.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Yh(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Yh(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Uh(n)):this.eventManager.addEventListener(e,t,Uh(n))}}const Wh=(()=>"@".charCodeAt(0))();function Yh(e,t){if(e.charCodeAt(0)===Wh)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Xh extends Qh{constructor(e,t,n,r){super(e),this.component=n;const s=Zh(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=Kh.replace(qh,r+"-"+n.id),this.hostAttr=zh.replace(qh,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Jh extends Qh{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Zh(r.id,r.styles,[]);for(let o=0;o"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),ed=$h("addEventListener"),td=$h("removeEventListener"),nd={},rd="FALSE",sd="ANGULAR",od="addEventListener",id="removeEventListener",ad="__zone_symbol__propagationStopped",ld="__zone_symbol__stopImmediatePropagation",cd=(()=>{const e="undefined"!=typeof Zone&&Zone[$h("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),ud=function(e){return!!cd&&cd.hasOwnProperty(e)},hd=function(e){const t=nd[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n{class e extends jh{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return e===bh}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype[ld])return;const e=Event.prototype[ld]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ad]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[ed]||cu.isInAngularZone()&&!ud(t))e[od](t,r,!1);else{let n=nd[t];n||(n=nd[t]=$h(sd+t+rd));let s=e[n];const o=s&&s.length>0;s||(s=e[n]=[]);const i=ud(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:i,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[td];if(!r)return e[id].apply(e,[t,n,!1]);let s=nd[t],o=s&&e[s];if(!o)return e[id].apply(e,[t,n,!1]);let i=!1;for(let a=0;a{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),yd=(()=>{class e extends jh{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!pd.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),o=function(e){r.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh),Re(fd),Re(zc),Re(gd,8))},providedIn:null}),e})();const bd=["alt","control","meta","shift"],vd={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let wd=(()=>{class e extends jh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wh().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let o="";if(bd.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(e){let t="",n=wh().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),bd.forEach(r=>{r!=n&&(0,vd[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();class _d{}class Cd{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class xd extends Cd{getTypeName(){return"HTML"}}class Sd extends Cd{getTypeName(){return"Style"}}class kd extends Cd{getTypeName(){return"Script"}}class Ed extends Cd{getTypeName(){return"URL"}}class Ad extends Cd{getTypeName(){return"ResourceURL"}}const Td=[{provide:Gs,useExisting:_d},{provide:_d,useClass:(()=>{class e extends _d{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Us.NONE:return t;case Us.HTML:return t instanceof xd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Ks=Ks||new ks(e);let r=t?String(t):"";n=Ks.getInertBodyElement(r);let s=5,o=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=o,o=n.innerHTML,n=Ks.getInertBodyElement(r)}while(r!==o);const i=new Bs,a=i.sanitizeChildren(Zs(n)||n);return Ss()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Zs(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case Us.STYLE:return t instanceof Sd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Ws);return t&&Ts(t[1])===t[1]||e.match(Qs)&&function(e){let t=!0,n=!0;for(let r=0;r{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Fc,useValue:t.appId},{provide:Nh,useExisting:Fc},Dh]}}}return e.ngModuleDef=ot({type:e}),e})();Md.ngInjectorDef=ce({factory:function(e){return new(e||Md)(Re(Md,12))},providers:Pd,imports:[gh,Iu]}),"undefined"!=typeof window&&window;class Id{}class Nd{}const Dd="*";function Vd(e,t){return{type:7,name:e,definitions:t,options:{}}}function Rd(e,t=null){return{type:4,styles:t,timings:e}}function Fd(e,t=null){return{type:2,steps:e,options:t}}function jd(e){return{type:6,styles:e,offset:null}}function Hd(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function Bd(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function Ld(e,t){return{type:12,timings:e,animation:t}}function qd(e){Promise.resolve(null).then(e)}class zd{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qd(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Kd{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const s=this.players.length;0==s?qd(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const Zd="!";function Ud(){return"undefined"!=typeof process}function Gd(e){switch(e.length){case 0:return new zd;case 1:return e[0];default:return new Kd(e)}}function Qd(e,t,n,r,s={},o={}){const i=[],a=[];let l=-1,c=null;if(r.forEach(e=>{const n=e.offset,r=n==l,u=r&&c||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,i),a){case Zd:a=s[n];break;case Dd:a=o[n];break;default:a=t.normalizeStyleValue(n,r,a,i)}u[r]=a}),r||a.push(u),c=u,l=n}),i.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${i.join(e)}`)}return a}function Wd(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Yd(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Yd(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Yd(n,"destroy",e)))}}function Yd(e,t,n){const r=n.totalTime,s=Xd(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function Xd(e,t,n,r,s="",o=0,i){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:o,disabled:!!i}}function Jd(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function $d(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let ep=(e,t)=>!1,tp=(e,t)=>!1,np=(e,t,n)=>[];const rp=Ud();(rp||"undefined"!=typeof Element)&&(ep=(e,t)=>e.contains(t),tp=(()=>{if(rp||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):tp}})(),np=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let sp=null,op=!1;function ip(e){sp||(sp=("undefined"!=typeof document?document.body:null)||{},op=!!sp.style&&"WebkitAppearance"in sp.style);let t=!0;return sp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in sp.style)&&op&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in sp.style),t}const ap=tp,lp=ep,cp=np;function up(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}let hp=(()=>{class e{validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,o=[],i){return new zd(n,r)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),dp=(()=>{class e{}return e.NOOP=new hp,e})();const pp=1e3,fp="{{",gp="ng-enter",mp="ng-leave",yp="ng-trigger",bp=".ng-trigger",vp="ng-animating",wp=".ng-animating";function _p(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cp(parseFloat(t[1]),t[2])}function Cp(e,t){switch(t){case"s":return e*pp;default:return e}}function xp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=Cp(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(s=Cp(parseFloat(i),n[4]));const a=n[5];a&&(o=a)}else r=e;if(!n){let n=!1,o=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:o}}(e,t,n)}function Sp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function kp(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else Sp(e,n);return n}function Ep(e,t,n){return n?t+":"+n+";":""}function Ap(e){let t="";for(let n=0;n{const s=Rp(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),Ud()&&Ap(e))}function Op(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Rp(t);e.style[n]=""}),Ud()&&Ap(e))}function Pp(e){return Array.isArray(e)?1==e.length?e[0]:Fd(e):e}const Mp=new RegExp(`${fp}\\s*(.+?)\\s*}}`,"g");function Ip(e){let t=[];if("string"==typeof e){const n=e.toString();let r;for(;r=Mp.exec(n);)t.push(r[1]);Mp.lastIndex=0}return t}function Np(e,t,n){const r=e.toString(),s=r.replace(Mp,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function Dp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Vp=/-+([a-z0-9])/g;function Rp(e){return e.replace(Vp,(...e)=>e[1].toUpperCase())}function Fp(e,t){return 0===e||0===t}function jp(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let o=t[0],i=[];if(r.forEach(e=>{o.hasOwnProperty(e)||i.push(e),o[e]=n[e]}),i.length)for(var s=1;s(function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],o=r[2],i=r[3];t.push(Zp(s,i)),"<"!=o[0]||s==Lp&&i==Lp||t.push(Zp(i,s))})(e,n,t)):n.push(e),n}const zp=new Set(["true","1"]),Kp=new Set(["false","0"]);function Zp(e,t){const n=zp.has(e)||Kp.has(e),r=zp.has(t)||Kp.has(t);return(s,o)=>{let i=e==Lp||e==s,a=t==Lp||t==o;return!i&&n&&"boolean"==typeof s&&(i=s?zp.has(e):Kp.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?zp.has(t):Kp.has(t)),i&&a}}const Up=":self",Gp=new RegExp(`s*${Up}s*,?`,"g");function Qp(e,t,n){return new Yp(e).build(t,n)}const Wp="";class Yp{constructor(e){this._driver=e}build(e,t){const n=new Xp(t);return this._resetContextStyleTimingState(n),Hp(this,Pp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Wp,e.collectedStyles={},e.collectedStyles[Wp]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,o.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=r||{};if(n.styles.forEach(e=>{if(Jp(e)){const t=e;Object.keys(t).forEach(e=>{Ip(t[e]).forEach(e=>{o.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Dp(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Hp(this,Pp(e.animation),t);return{type:1,matchers:qp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:$p(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Hp(this,e,t)),options:$p(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Hp(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:$p(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ef(xp(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ef(0,0,"");return e.dynamic=!0,e.strValue=r,e}return ef((n=n||xp(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:jd({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=jd(e)}t.currentTime+=n.duration+n.delay;const i=this.visitStyle(s,t);i.isEmptyStep=o,r=i}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Dd?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(Jp(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf(fp)>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],i=o[n];let a=!0;i&&(s!=r&&s>=i.startTime&&r<=i.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=i.startTime),a&&(o[n]={startTime:s,endTime:r}),t.options&&function(r,s,o){const i=t.options.params||{},a=Ip(e[n]);a.length&&a.forEach(e=>{i.hasOwnProperty(e)||o.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(0,0,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let o=!1,i=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Jp(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Jp(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),i=i||c<0||c>1,o=o||c0&&r{const o=u>0?r==h?1:u*r:s[r],i=o*f;t.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Hp(this,Pp(e.animation),t),options:$p(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:$p(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:$p(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==Up);return t&&(e=e.replace(Gp,"")),[e=e.replace(/@\*/g,bp).replace(/@\w+/g,e=>bp+"-"+e.substr(1)).replace(/:animating/g,wp),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Jd(t.collectedStyles,t.currentQuerySelector,{});const i=Hp(this,Pp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:i,originalSelector:e.selector,options:$p(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:xp(e.timings,t.errors,!0);return{type:12,animation:Hp(this,Pp(e.animation),t),timings:n,options:null}}}class Xp{constructor(e){this.errors=e,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 Jp(e){return!Array.isArray(e)&&"object"==typeof e}function $p(e){var t;return e?(e=Sp(e)).params&&(e.params=(t=e.params)?Sp(t):null):e={},e}function ef(e,t,n){return{duration:e,delay:t,easing:n}}function tf(e,t,n,r,s,o,i=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:o,totalTime:s+o,easing:i,subTimeline:a}}class nf{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const rf=1,sf=new RegExp(":enter","g"),of=new RegExp(":leave","g");function af(e,t,n,r,s,o={},i={},a,l,c=[]){return(new lf).buildKeyframes(e,t,n,r,s,o,i,a,l,c)}class lf{buildKeyframes(e,t,n,r,s,o,i,a,l,c=[]){l=l||new nf;const u=new uf(e,t,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),Hp(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(i).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([i],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[tf(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const s=null!=n.duration?_p(n.duration):null,o=null!=n.delay?_p(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),Hp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cf);const e=_p(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Hp(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?_p(e.options.delay):0;e.steps.forEach(o=>{const i=t.createSubContext(e.options);s&&i.delayNextStep(s),Hp(this,o,i),r=Math.max(r,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return xp(t.params?Np(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*s),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?_p(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=cf);let o=n;const i=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=i.length;let a=null;i.forEach((n,r)=>{t.currentQueryIndex=r;const i=t.createSubContext(e.options,n);s&&i.delayNextStep(s),n===t.element&&(a=i.currentTimeline),Hp(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,i.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),i=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=i-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Hp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const cf={};class uf{constructor(e,t,n,r,s,o,i,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new hf(this._driver,t,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=_p(n.duration)),null!=n.delay&&(r.delay=_p(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Np(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,s=new uf(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=cf,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new df(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,o){let i=[];if(r&&i.push(this.element),e.length>0){e=(e=e.replace(sf,"."+this._enterClassName)).replace(of,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),i.push(...t)}return s||0!=i.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),i}}class hf{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new hf(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rf,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Dd,this._currentKeyframe[e]=Dd}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t)).forEach(e=>{n[e]=Dd}):kp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=Np(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Dd),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const i=kp(s,!0);Object.keys(i).forEach(n=>{const r=i[n];r==Zd?e.add(n):r==Dd&&t.add(n)}),n||(i.offset=o/this.duration),r.push(i)});const s=e.size?Dp(e.values()):[],o=t.size?Dp(t.values()):[];if(n){const e=r[0],t=Sp(e);e.offset=0,t.offset=1,r=[e,t]}return tf(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class df extends hf{constructor(e,t,n,r,s,o,i=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=i,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=n+t,i=t/o,a=kp(e[0],!1);a.offset=0,s.push(a);const l=kp(e[0],!1);l.offset=pf(i),s.push(l);const c=e.length-1;for(let r=1;r<=c;r++){let i=kp(e[r],!1);i.offset=pf((t+i.offset*n)/o),s.push(i)}n=o,t=0,r="",e=s}return tf(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function pf(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class ff{}class gf extends ff{normalizePropertyName(e,t){return Rp(e)}normalizeStyleValue(e,t,n,r){let s="";const o=n.toString().trim();if(mf[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+s}}const mf=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function yf(e,t,n,r,s,o,i,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:o,toState:r,toStyles:i,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const bf={};class vf{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):o}build(e,t,n,r,s,o,i,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||bf,d=this.buildStyles(n,i&&i.params||bf,u),p=a&&a.params||bf,f=this.buildStyles(r,p,u),g=new Set,m=new Map,y=new Map,b="void"===r,v={params:Object.assign({},h,p)},w=c?[]:af(e,t,this.ast.animation,s,o,d,f,v,l,u);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),u.length)return yf(t,this._triggerName,n,r,b,d,f,[],[],m,y,_,u);w.forEach(e=>{const n=e.element,r=Jd(m,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=Jd(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&g.add(n)});const C=Dp(g.values());return yf(t,this._triggerName,n,r,b,d,f,w,C,m,y,_)}}class wf{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=Sp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let o=s[e];o.length>1&&(o=Np(o,r,t)),n[e]=o})}}),n}}class _f{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new wf(e.style,e.options&&e.options.params||{})}),Cf(this.states,"true","1"),Cf(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new vf(e,t,this.states))}),this.fallbackTransition=new vf(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Cf(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const xf=new nf;class Sf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=Qp(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,s=Qd(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let o;const i=new Map;if(s?(o=af(this._driver,t,s,gp,mp,{},{},n,xf,r)).forEach(e=>{const t=Jd(i,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);i.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Dd)})});const a=Gd(o.map(e=>{const t=i.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const s=Xd(t,"","","");return Wd(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const kf="ng-animate-queued",Ef=".ng-animate-queued",Af="ng-animate-disabled",Tf=".ng-animate-disabled",Of="ng-star-inserted",Pf=".ng-star-inserted",Mf=[],If={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Df="__ng_removed";class Vf{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){const t=Sp(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Rf="void",Ff=new Vf(Rf);class jf{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Uf(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const o=Jd(this._elementListeners,e,[]),i={name:t,phase:n,callback:r};o.push(i);const a=Jd(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Uf(e,yp),Uf(e,yp+"-"+t),a[t]=Ff),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(i);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const s=this._getTrigger(t),o=new Bf(this.id,t,e);let i=this._engine.statesByElement.get(e);i||(Uf(e,yp),Uf(e,yp+"-"+t),this._engine.statesByElement.set(e,i={}));let a=i[t];const l=new Vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),i[t]=l,a||(a=Ff),l.value!==Rf&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s{Op(e,n),Tp(e,r)})}return}const c=Jd(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(Uf(e,kf),o.onStart(()=>{Gf(e,kf)})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,bp,!0).forEach(e=>{if(e[Df])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,r){const s=this._engine.statesByElement.get(e);if(s){const o=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Rf,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Gd(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(e)[r]||Ff,i=new Vf(Rf),a=new Bf(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:i,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}this.prepareLeaveAnimationListeners(e),r?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){Uf(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(t=>{if(t.name==n.triggerName){const r=Xd(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,Wd(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(t=>t.element===e)||t}}class Hf{constructor(e,t,n){this.bodyNode=e,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new jf(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Uf(e,Af)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Gf(e,Af))}removeNode(e,t,n,r){if(Lf(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[Df]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return Lf(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,bp,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,wp,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Gd(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Df];if(t&&t.setForRemoval){if(e[Df]=If,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Tf)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tf,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Gd(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new nf,r=[],s=new Map,o=[],i=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,Ef,!0);for(let n=0;n{const n=gp+f++;p.set(t,n),e.forEach(e=>Uf(e,n))});const g=[],m=new Set,y=new Set;for(let P=0;Pm.add(e)):y.add(e))}const b=new Map,v=Kf(h,Array.from(m));v.forEach((e,t)=>{const n=mp+f++;b.set(t,n),e.forEach(e=>Uf(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Gf(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>Gf(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s[Df];if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>Op(s,f.fromStyles)),t.onDestroy(()=>Tp(s,f.toStyles)),void r.push(t)):e.isFallbackTransition?(t.onStart(()=>Op(s,f.fromStyles)),t.onDestroy(()=>Tp(s,f.toStyles)),void r.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>Jd(i,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))}));_.push(f)});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,x=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Jd(C,t,[]).push(e),e.destroy()})});const S=g.filter(e=>Wf(e,a,l)),k=new Map;zf(k,this.driver,y,l,Dd).forEach(e=>{Wf(e,a,l)&&S.push(e)});const E=new Map;d.forEach((e,t)=>{zf(E,this.driver,new Set(e),a,Zd)}),S.forEach(e=>{const t=k.get(e),n=E.get(e);k.set(e,Object.assign({},t,n))});const A=[],T=[],O={};o.forEach(e=>{const{element:t,player:o,instruction:i}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>Tp(t,i.toStyles)),o.disabled=!0,o.overrideTotalTime(i.totalTime),void r.push(o);let e=O;if(x.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>x.set(t,e))}const n=this._buildAnimation(o.namespaceId,i,C,s,E,k);if(o.setRealPlayer(n),e===O)A.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=Gd(t)),r.push(o)}}else Op(t,i.fromStyles),o.onDestroy(()=>Tp(t,i.toStyles)),T.push(o),c.has(t)&&r.push(o)}),T.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Gd(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let P=0;P!e.destroyed);r.length?Qf(this,e,r):this.processLeaveNode(e)}return g.length=0,A.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),A}elementContainsData(e,t){let n=!1;const r=t[Df];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==Rf;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const i of t.timelines){const e=i.element,a=e!==r,l=Jd(n,e,[]);this._getPreviousPlayers(e,a,s,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Op(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){const i=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h[Df];if(d&&d.removedBeforeQueried)return new zd(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let r=0;re.getRealPlayer()),t),t}().filter(e=>!!e.element&&e.element===h),g=s.get(h),m=o.get(h),y=Qd(0,this._normalizer,0,t.keyframes,g,m),b=this._buildPlayer(t,y,f);if(t.subTimeline&&r&&u.add(h),p){const t=new Bf(e,i,h);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{Jd(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Uf(e,vp));const d=Gd(h);return d.onDestroy(()=>{c.forEach(e=>Gf(e,vp)),Tp(a,t.toStyles)}),u.forEach(e=>{Jd(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new zd(e.duration,e.delay)}}class Bf{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Wd(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Jd(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Lf(e){return e&&1===e.nodeType}function qf(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function zf(e,t,n,r,s){const o=[];n.forEach(e=>o.push(qf(e)));const i=[];r.forEach((n,r)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r[Df]=Nf,i.push(r))}),e.set(r,o)});let a=0;return n.forEach(e=>qf(e,o[a++])),i}function Kf(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let o=s.get(t);if(o)return o;const i=t.parentNode;return o=n.has(i)?i:r.has(i)?1:e(i),s.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}const Zf="$$classes";function Uf(e,t){if(e.classList)e.classList.add(t);else{let n=e[Zf];n||(n=e[Zf]={}),n[t]=!0}}function Gf(e,t){if(e.classList)e.classList.remove(t);else{let n=e[Zf];n&&delete n[t]}}function Qf(e,t,n){Gd(n).onDone(()=>e.processLeaveNode(t))}function Wf(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class Yf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Hf(e,t,n),this._timelineEngine=new Sf(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,s){const o=e+"-"+r;let i=this._triggerCache[o];if(!i){const e=[],t=Qp(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);i=function(e,t){return new _f(e,t)}(r,t),this._triggerCache[o]=i}this._transitionEngine.registerTrigger(t,r,i)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=$d(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=$d(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Xf(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=$f(t[0]),t.length>1&&(r=$f(t[t.length-1]))):t&&(n=$f(t)),n||r?new Jf(e,n,r):null}let Jf=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Tp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Tp(this._element,this._initialStyles),this._endStyles&&(Tp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Op(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Op(this._element,this._endStyles),this._endStyles=null),Tp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function $f(e){let t=null;const n=Object.keys(e);for(let r=0;rthis._handleCallback(e)}apply(){!function(e,t){const n=hg(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),cg(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=hg(e,"").split(","),r=lg(n,t);r>=0&&(n.splice(r,1),ug(e,"",n.join(",")))}(this._element,this._name))}}function ig(e,t,n){ug(e,"PlayState",n,ag(e,t))}function ag(e,t){const n=hg(e,"");return n.indexOf(",")>0?lg(n.split(","),t):lg([n],t)}function lg(e,t){for(let n=0;n=0)return n;return-1}function cg(e,t,n){n?e.removeEventListener(rg,t):e.addEventListener(rg,t)}function ug(e,t,n,r){const s=ng+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function hg(e,t){return e.style[ng+t]}const dg="forwards",pg="linear";class fg{constructor(e,t,n,r,s,o,i,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=i,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||pg,this.totalTime=r+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new og(this.element,this.animationName,this._duration,this._delay,this.easing,dg,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Bp(this.element,n))})}this.currentSnapshot=e}}class gg extends zd{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=up(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const mg="gen_css_kf_",yg=" ";class bg{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>up(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=yg;const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=yg,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.innerHTML=r,o}animate(e,t,n,r,s,o=[],i){i&&this._notifyFaultyScrubber();const a=o.filter(e=>e instanceof fg),l={};Fp(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=jp(e,t,l));if(0==n)return new gg(e,c);const u=`${mg}${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Xf(e,t),p=new fg(e,t,u,n,r,s,c,d);return p.onDestroy(()=>(function(e){h.parentNode.removeChild(h)})()),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class vg{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Bp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class wg{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_g().toString()),this._cssKeyframesDriver=new bg}validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,o=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=o.filter(e=>e instanceof vg);Fp(n,r)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Xf(e,t=jp(e,t=t.map(e=>kp(e,!1)),l));return new vg(e,t,a,u)}}function _g(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Cg=(()=>{class e extends Id{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Ue.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Fd(e):e;return kg(this._renderer,null,t,"register",[n]),new xg(t,this._renderer)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(kl),Re(yh))},providedIn:null}),e})();class xg extends Nd{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new Sg(this._id,e,t||{},this._renderer)}}class Sg{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return kg(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function kg(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}const Eg="@",Ag="@.disabled";let Tg=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Og("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(r,s,e,t.name,t)),new Pg(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(kl),Re(Yf),Re(cu))},providedIn:null}),e})();class Og{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Eg&&t==Ag?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Pg extends Og{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Eg?"."==t.charAt(1)&&t==Ag?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Eg){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),o="";return s.charAt(0)!=Eg&&([s,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Mg=(()=>{class e extends Yf{constructor(e,t,n){super(e.body,t,n)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh),Re(dp),Re(ff))},providedIn:null}),e})();const Ig=new xe("AnimationModuleType"),Ng=[{provide:Id,useClass:Cg},{provide:ff,useFactory:function(){return new gf}},{provide:Yf,useClass:Mg},{provide:kl,useFactory:function(e,t,n){return new Tg(e,t,n)},deps:[Gh,Yf,cu]}],Dg=[{provide:dp,useFactory:function(){return"function"==typeof _g()?new wg:new bg}},{provide:Ig,useValue:"BrowserAnimations"},...Ng],Vg=[{provide:dp,useClass:hp},{provide:Ig,useValue:"NoopAnimations"},...Ng];let Rg=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();Rg.ngInjectorDef=ce({factory:function(e){return new(e||Rg)},providers:Dg,imports:[Md]});let Fg=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();Fg.ngInjectorDef=ce({factory:function(e){return new(e||Fg)},providers:Vg,imports:[Md]});class jg{}class Hg extends jg{constructor(e,t,n,r){super(),this.cyan=e,this.magenta=t,this.yellow=n,this.black=r}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}}class Bg extends jg{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}toString(e=!0){return e?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(100*this.alpha)/100}}class Lg extends jg{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.value=n,this.alpha=r}toString(e=!0){return e?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(100*this.alpha)/100}}class qg extends jg{constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}toString(e=!0){return e?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(100*this.alpha)/100}}let zg=(()=>{class e{}return e.transparent=new qg(0,0,0,0),e.aliceblue=new qg(240,248,255,1),e.antiquewhite=new qg(250,235,215,1),e.aqua=new qg(0,255,255,1),e.aquamarine=new qg(127,255,212,1),e.azure=new qg(240,255,255,1),e.beige=new qg(245,245,220,1),e.bisque=new qg(255,228,196,1),e.black=new qg(0,0,0,1),e.blanchedalmond=new qg(255,235,205,1),e.blue=new qg(0,0,255,1),e.blueviolet=new qg(138,43,226,1),e.brown=new qg(165,42,42,1),e.burlywood=new qg(222,184,135,1),e.cadetblue=new qg(95,158,160,1),e.chartreuse=new qg(127,255,0,1),e.chocolate=new qg(210,105,30,1),e.coral=new qg(255,127,80,1),e.cornflowerblue=new qg(100,149,237,1),e.cornsilk=new qg(255,248,220,1),e.crimson=new qg(220,20,60,1),e.cyan=new qg(0,255,255,1),e.darkblue=new qg(0,0,139,1),e.darkcyan=new qg(0,139,139,1),e.darkgoldenrod=new qg(184,134,11,1),e.darkgray=new qg(169,169,169,1),e.darkgreen=new qg(0,100,0,1),e.darkgrey=e.darkgray,e.darkkhaki=new qg(189,183,107,1),e.darkmagenta=new qg(139,0,139,1),e.darkolivegreen=new qg(85,107,47,1),e.darkorange=new qg(255,140,0,1),e.darkorchid=new qg(153,50,204,1),e.darkred=new qg(139,0,0,1),e.darksalmon=new qg(233,150,122,1),e.darkseagreen=new qg(143,188,143,1),e.darkslateblue=new qg(72,61,139,1),e.darkslategray=new qg(47,79,79,1),e.darkslategrey=e.darkslategray,e.darkturquoise=new qg(0,206,209,1),e.darkviolet=new qg(148,0,211,1),e.deeppink=new qg(255,20,147,1),e.deepskyblue=new qg(0,191,255,1),e.dimgray=new qg(105,105,105,1),e.dimgrey=e.dimgray,e.dodgerblue=new qg(30,144,255,1),e.firebrick=new qg(178,34,34,1),e.floralwhite=new qg(255,250,240,1),e.forestgreen=new qg(34,139,34,1),e.fuchsia=new qg(255,0,255,1),e.gainsboro=new qg(220,220,220,1),e.ghostwhite=new qg(248,248,255,1),e.gold=new qg(255,215,0,1),e.goldenrod=new qg(218,165,32,1),e.gray=new qg(128,128,128,1),e.grey=e.gray,e.green=new qg(0,128,0,1),e.greenyellow=new qg(173,255,47,1),e.honeydew=new qg(240,255,240,1),e.hotpink=new qg(255,105,180,1),e.indianred=new qg(205,92,92,1),e.indigo=new qg(75,0,130,1),e.ivory=new qg(255,255,240,1),e.khaki=new qg(240,230,140,1),e.lavender=new qg(230,230,250,1),e.lavenderblush=new qg(255,240,245,1),e.lawngreen=new qg(124,252,0,1),e.lemonchiffon=new qg(255,250,205,1),e.lightblue=new qg(173,216,230,1),e.lightcoral=new qg(240,128,128,1),e.lightcyan=new qg(224,255,255,1),e.lightgoldenrodyellow=new qg(250,250,210,1),e.lightgray=new qg(211,211,211,1),e.lightgreen=new qg(144,238,144,1),e.lightgrey=e.lightgray,e.lightpink=new qg(255,182,193,1),e.lightsalmon=new qg(255,160,122,1),e.lightseagreen=new qg(32,178,170,1),e.lightskyblue=new qg(135,206,250,1),e.lightslategray=new qg(119,136,153,1),e.lightslategrey=e.lightslategray,e.lightsteelblue=new qg(176,196,222,1),e.lightyellow=new qg(255,255,224,1),e.lime=new qg(0,255,0,1),e.limegreen=new qg(50,205,50,1),e.linen=new qg(250,240,230,1),e.magenta=new qg(255,0,255,1),e.maroon=new qg(128,0,0,1),e.mediumaquamarine=new qg(102,205,170,1),e.mediumblue=new qg(0,0,205,1),e.mediumorchid=new qg(186,85,211,1),e.mediumpurple=new qg(147,112,219,1),e.mediumseagreen=new qg(60,179,113,1),e.mediumslateblue=new qg(123,104,238,1),e.mediumspringgreen=new qg(0,250,154,1),e.mediumturquoise=new qg(72,209,204,1),e.mediumvioletred=new qg(199,21,133,1),e.midnightblue=new qg(25,25,112,1),e.mintcream=new qg(245,255,250,1),e.mistyrose=new qg(255,228,225,1),e.moccasin=new qg(255,228,181,1),e.navajowhite=new qg(255,222,173,1),e.navy=new qg(0,0,128,1),e.oldlace=new qg(253,245,230,1),e.olive=new qg(128,128,0,1),e.olivedrab=new qg(107,142,35,1),e.orange=new qg(255,165,0,1),e.orangered=new qg(255,69,0,1),e.orchid=new qg(218,112,214,1),e.palegoldenrod=new qg(238,232,170,1),e.palegreen=new qg(152,251,152,1),e.paleturquoise=new qg(175,238,238,1),e.palevioletred=new qg(219,112,147,1),e.papayawhip=new qg(255,239,213,1),e.peachpuff=new qg(255,218,185,1),e.peru=new qg(205,133,63,1),e.pink=new qg(255,192,203,1),e.plum=new qg(221,160,221,1),e.powderblue=new qg(176,224,230,1),e.purple=new qg(128,0,128,1),e.red=new qg(255,0,0,1),e.rosybrown=new qg(188,143,143,1),e.royalblue=new qg(65,105,225,1),e.saddlebrown=new qg(139,69,19,1),e.salmon=new qg(250,128,114,1),e.sandybrown=new qg(244,164,96,1),e.seagreen=new qg(46,139,87,1),e.seashell=new qg(255,245,238,1),e.sienna=new qg(160,82,45,1),e.silver=new qg(192,192,192,1),e.skyblue=new qg(135,206,235,1),e.slateblue=new qg(106,90,205,1),e.slategray=new qg(112,128,144,1),e.slategrey=e.slategray,e.snow=new qg(255,250,250,1),e.springgreen=new qg(0,255,127,1),e.steelblue=new qg(70,130,180,1),e.tan=new qg(210,180,140,1),e.teal=new qg(0,128,128,1),e.thistle=new qg(216,191,216,1),e.tomato=new qg(255,99,71,1),e.turquoise=new qg(64,224,208,1),e.violet=new qg(238,130,238,1),e.wheat=new qg(245,222,179,1),e.white=new qg(255,255,255,1),e.whitesmoke=new qg(245,245,245,1),e.yellow=new qg(255,255,0,1),e.yellowgreen=new qg(154,205,50,1),e})();class Kg{constructor(e){this.hsva=new Lg(0,1,1,1),this.rgba=new qg(255,0,0,1),e&&this.stringToColor(e)}static from(e){return"string"==typeof e?new Kg(e):e instanceof Kg?e.clone():e instanceof qg?(new Kg).setRgba(e.red,e.green,e.blue,e.alpha):e instanceof Lg?(new Kg).setHsva(e.hue,e.saturation,e.value,e.alpha):e instanceof Bg?(new Kg).setHsla(e.hue,e.saturation,e.lightness,e.alpha):null}clone(){return Kg.from(this.getRgba())}setFromString(e){return this.stringToColor(e)}setHsva(e=null,t=100,n=100,r=1){return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=r&&(this.hsva.alpha=r=r>1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this}setRgba(e=null,t=null,n=null,r=1){return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this}setHsla(e,t,n,r=1){null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);const s=new Bg(e,t,n,r);return this.rgba=this.hslaToRgba(s),this.hsva=this.rgbaToHsva(this.rgba),this}toHexString(e=!1){let t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}toRgbaString(){return this.rgba.toString()}toRgbString(){return this.rgba.toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.hsva.toString()}toHsvString(){return this.hsva.toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Lg(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return new qg(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}getHsla(){return this.rgbaToHsla(this.rgba)}getCmyk(){return this.rgbaToCmyk(this.rgba)}hsvaToHsla(e){const t=e.saturation/100,n=(2-t)*e.value/2;return new Bg(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}hslaToHsva(e){const t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Lg(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}rgbaToHsva(e){const t=e.red/255,n=e.green/255,r=e.blue/255,s=e.alpha,o=Math.max(t,n,r),i=Math.min(t,n,r),a=o-i;let l=0,c=0===o?0:a/o,u=o;if(o!==i){switch(o){case t:l=(n-r)/a+(n.5?u/(2-o-i):u/(o+i),o){case t:a=(n-r)/u+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}cmykToRgba(e){const t=e.black/100,n=e.magenta/100,r=e.yellow/100;let s=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),i=Math.min(1,(1-r)*(1-t));return new qg(s*=255,o*=255,i*=255,1)}rgbaToCmyk(e){let t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,s=Math.min(t,n,r);return 1===s?new Hg(0,0,0,1):(t=(t-s)/(1-s),n=(n-s)/(1-s),r=(r-s)/(1-s),new Hg(t*=100,n*=100,r*=100,s*=100))}roundNumber(e){return Math.round(100*e)/100}stringToColor(e){const t=e.replace(/ /g,"").toLowerCase();let n=zg[t]||null;if("#"===t[0]){let e=t.substr(1);const r=e.length;let s,o=1;if(3===r)s=e.split("").map(e=>e+e);else if(6===r)s=e.match(/.{2}/g);else if(8===r){const t=e.substr(-2);e=e.substr(0,r-2),o=this.roundNumber(parseInt(t||"FF",16)/255),s=e.match(/.{2}/g)}3===s.length&&(n=new qg(parseInt(s[0],16),parseInt(s[1],16),parseInt(s[2],16),o))}const r=t.indexOf("("),s=t.indexOf(")");if(-1!==r&&s+1===t.length){const e=t.substr(0,r),o=t.substr(r+1,s-(r+1)).split(",");let i=1;switch(e){case"rgba":i=parseFloat(o.pop());case"rgb":n=new qg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);break;case"hsla":i=parseFloat(o.pop());case"hsl":const t=new Bg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);n=this.hslaToRgba(t);break;case"cmyk":const r=new Hg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10));n=this.cmykToRgba(r)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}class Zg{constructor(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}onEventChange(e){this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"touchend",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",e=>this.calculate(e))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",e=>this.calculate(e)))}calculateCoordinates(e){const{width:t,height:n,top:r,left:s}=this.elementRef.nativeElement.getBoundingClientRect(),o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,i=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(s+this.window.pageXOffset),t)),a=Math.max(0,Math.min(o-(r+this.window.pageYOffset),n));this.movePointer({x:i,y:a,height:n,width:t})}calculate(e){if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(()=>this.calculateCoordinates(e))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}removeListeners(){this.eventHooks.forEach(e=>e()),this.eventHooks.length=0}ngOnDestroy(){this.removeListeners()}}const Ug=["pointer"],Gg=[1,"pointer"],Qg=["pointer",""];let Wg=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.colorChange=new vc(!1)}get backgroundColor(){return this.hue?this.hue.toRgbaString():""}onClick(e){this.onEventChange(e)}ngOnInit(){this.hue||(this.hue=Kg.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.saturation,e.value)}}movePointer({x:e,y:t,height:n,width:r}){const s=100*e/r,o=-100*t/n+100;this.changePointerPosition(s,o);const i=this.hue.getHsva(),a=this.color.getHsva(),l=(new Kg).setHsva(i.hue,s,o,a.alpha);this.colorChange.emit(l)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}}return e.ngComponentDef=nt({type:e,selectors:[["saturation-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Mc(Ug,!0),2&e&&Pc(n=Ic())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ha(1),Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}),Ta()),2&e&&(Oa("background-color",t.backgroundColor),Da())},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[il,tl()],consts:2,vars:0,template:function(e,t){1&e&&za(0,"div",Gg,Qg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMA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v5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0}),e})();class Yg{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}}const Xg=["viewBox","0 0 48 48"],Jg=["d","M0 0h48v48h-48z","fill","none"],$g=["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"];let em=(()=>{class e{constructor(e,t,n,r){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=r,this.colorType="rgba"}get title(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}get backgroundColor(){return this.color.toRgbaString()}onClick(e){const t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}}return e.ngComponentDef=nt({type:e,selectors:[["indicator-component"]],factory:function(t){return new(t||e)(Aa(Yg),Aa(Al),Aa(xl),Aa(yh))},hostBindings:function(e,t,n){1&e&&(ha(1),Ga("click",function(e){return t.onClick(e)})),2&e&&xa("title",t.title)},inputs:{color:"color",colorType:"colorType"},consts:4,vars:1,template:function(e,t){1&e&&(La(0,"div"),Ta(),rr(),La(1,"svg",Xg),za(2,"path",Jg),za(3,"path",$g),qa(),qa()),2&e&&(Oa("background-color",t.backgroundColor),Da())},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),e})();const tm=["pointer"],nm=[1,"pointer"],rm=["pointer",""];let sm=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){const e=this.hue.getHsva();this.changePointerPosition(e.hue)}}movePointer({x:e,y:t,height:n,width:r}){const s=this.isVertical?t/n*360:e/r*360;this.changePointerPosition(s);const o=this.color.getHsva(),i=(new Kg).setHsva(s,o.saturation,o.value,o.alpha),a=(new Kg).setHsva(s,100,100,o.alpha);this.hueChange.emit(a),this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${e/360*100}%`)}}return e.ngComponentDef=nt({type:e,selectors:[["hue-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Mc(tm,!0),2&e&&Pc(n=Ic())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[il,tl()],consts:2,vars:0,template:function(e,t){1&e&&za(0,"div",nm,rm)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAE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H8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),e})();const om=["pointer"],im=[1,"pointer"],am=["pointer",""],lm=[1,"gradient-color",3,"ngStyle"],cm=function(e){return{background:e}};let um=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.colorChange=new vc(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.alpha)}}movePointer({x:e,y:t,height:n,width:r}){const s=this.isVertical?t/n:e/r;this.changePointerPosition(s);const o=this.color.getHsva(),i=(new Kg).setHsva(o.hue,o.saturation,o.value,s);this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${100*e}%`)}get gradient(){const e=this.color.getRgba();return`linear-gradient(to ${this.isVertical?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}}return e.ngComponentDef=nt({type:e,selectors:[["alpha-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Mc(om,!0),2&e&&Pc(n=Ic())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[il,tl()],consts:3,vars:3,template:function(e,t){1&e&&(za(0,"div",im,am),za(2,"div",lm)),2&e&&(Mo(2),_a("ngStyle",dc(1,cm,t.gradient)))},directives:[ch],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),e})(),hm=(()=>{class e{constructor(){this.inputChange=new vc}inputChanges(e){const t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}return e.ngDirectiveDef=at({type:e,selectors:[["","inputChange",""]],factory:function(t){return new(t||e)},hostBindings:function(e,t,n){1&e&&Ga("input",function(e){return t.inputChanges(e)})},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),e})();const dm=[1,"column"],pm=["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],fm=[4,"ngIf"],gm=["class","column",4,"ngIf"];function mm(e,t){1&e&&(La(0,"span"),Xa(1,"R"),qa())}function ym(e,t){1&e&&(La(0,"span"),Xa(1,"G"),qa())}function bm(e,t){1&e&&(La(0,"span"),Xa(1,"B"),qa())}const vm=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function wm(e,t){1&e&&(La(0,"span"),Xa(1,"A"),qa())}function _m(e,t){if(1&e){const e=Za();La(0,"div",dm),La(1,"input",vm),Ga("inputChange",function(t){return Nn(e),Ya().onInputChange(t,"A")}),qa(),Sa(2,wm,2,0,"span",fm),qa()}if(2&e){const e=Ya();Mo(1),_a("value",null==e.value?null:e.value.getAlpha().toString()),Mo(2),_a("ngIf",e.labelVisible)}}let Cm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getRgba():null}onInputChange(e,t){const n=this.value,r="R"===t?e:n.red,s="G"===t?e:n.green,o="B"===t?e:n.blue,i="A"===t?e:n.alpha,a=(new Kg).setRgba(r,s,o,i),l=(new Kg).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}}return e.ngComponentDef=nt({type:e,selectors:[["rgba-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(La(0,"div",dm),La(1,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"R")}),qa(),Sa(2,mm,2,0,"span",fm),qa(),La(3,"div",dm),La(4,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"G")}),qa(),Sa(5,ym,2,0,"span",fm),qa(),La(6,"div",dm),La(7,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"B")}),qa(),Sa(8,bm,2,0,"span",fm),qa(),Sa(9,_m,3,2,"div",gm)),2&e&&(Mo(1),_a("value",null==t.value?null:t.value.getRed().toString()),Mo(2),_a("ngIf",t.labelVisible),Mo(4),_a("value",null==t.value?null:t.value.getGreen().toString()),Mo(5),_a("ngIf",t.labelVisible),Mo(7),_a("value",null==t.value?null:t.value.getBlue().toString()),Mo(8),_a("ngIf",t.labelVisible),Mo(9),_a("ngIf",t.isAlphaVisible))},directives:[hm,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const xm=[1,"column"],Sm=["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],km=[4,"ngIf"],Em=["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],Am=["class","column",4,"ngIf"];function Tm(e,t){1&e&&(La(0,"span"),Xa(1,"H"),qa())}function Om(e,t){1&e&&(La(0,"span"),Xa(1,"S"),qa())}function Pm(e,t){1&e&&(La(0,"span"),Xa(1,"L"),qa())}const Mm=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function Im(e,t){1&e&&(La(0,"span"),Xa(1,"A"),qa())}function Nm(e,t){if(1&e){const e=Za();La(0,"div",xm),La(1,"input",Mm),Ga("inputChange",function(t){return Nn(e),Ya().onInputChange(t,"A")}),qa(),Sa(2,Im,2,0,"span",km),qa()}if(2&e){const e=Ya();Mo(1),_a("value",null==e.value?null:e.value.getAlpha().toString()),Mo(2),_a("ngIf",e.labelVisible)}}let Dm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getHsla():null}onInputChange(e,t){const n=this.value,r="H"===t?e:n.hue,s="S"===t?e:n.saturation,o="L"===t?e:n.lightness,i="A"===t?e:n.alpha,a=(new Kg).setHsla(r,s,o,i),l=(new Kg).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}}return e.ngComponentDef=nt({type:e,selectors:[["hsla-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(La(0,"div",xm),La(1,"input",Sm),Ga("inputChange",function(e){return t.onInputChange(e,"H")}),qa(),Sa(2,Tm,2,0,"span",km),qa(),La(3,"div",xm),La(4,"input",Em),Ga("inputChange",function(e){return t.onInputChange(e,"S")}),qa(),Sa(5,Om,2,0,"span",km),qa(),La(6,"div",xm),La(7,"input",Em),Ga("inputChange",function(e){return t.onInputChange(e,"L")}),qa(),Sa(8,Pm,2,0,"span",km),qa(),Sa(9,Nm,3,2,"div",Am)),2&e&&(Mo(1),_a("value",null==t.value?null:t.value.getHue().toString()),Mo(2),_a("ngIf",t.labelVisible),Mo(4),_a("value",(null==t.value?null:t.value.getSaturation())+"%"),Mo(5),_a("ngIf",t.labelVisible),Mo(7),_a("value",(null==t.value?null:t.value.getLightness())+"%"),Mo(8),_a("ngIf",t.labelVisible),Mo(9),_a("ngIf",t.isAlphaVisible))},directives:[hm,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const Vm=[1,"column"],Rm=["type","text",3,"value","keyup"],Fm=["elRef",""],jm=[4,"ngIf"];function Hm(e,t){1&e&&(La(0,"span"),Xa(1,"HEX"),qa())}let Bm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.prefixValue=""}set label(e){this.labelVisible=!0}set prefix(e){this.prefixValue=e}get value(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}onInputChange(e){const t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){const e=new Kg(`#${t}`),n=(new Kg).setHsva(e.getHsva().hue);this.hueChange.emit(n),this.colorChange.emit(e)}}}return e.ngComponentDef=nt({type:e,selectors:[["hex-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:4,vars:2,template:function(e,t){if(1&e){const e=Za();La(0,"div",Vm),La(1,"input",Rm,Fm),Ga("keyup",function(n){Nn(e);const r=ka(2);return t.onInputChange(r.value)}),qa(),Sa(3,Hm,2,0,"span",jm),qa()}2&e&&(Mo(1),_a("value",t.value),Mo(3),_a("ngIf",t.labelVisible))},directives:[$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const Lm=Vd("opacityAnimation",[(qm=jd({opacity:1}),{type:0,name:"true",styles:qm,options:void 0}),Hd("void => *",[jd({opacity:0}),Rd(".08s ease-in")])]);var qm;const zm=Vd("listAnimation",[Hd("* => up",[Bd(":enter",[jd({opacity:0,height:0}),Ld(-10,[Rd(".08s",jd({opacity:1,height:"*"}))])],{optional:!0})]),Hd("* => right",[Bd(":enter",[jd({opacity:0,height:0}),Ld(-10,[Rd(".08s",jd({opacity:1,height:"*"}))])],{optional:!0})]),Hd("* => down",[Bd(":enter",[jd({opacity:0,height:0}),Ld(10,[Rd(".08s",jd({opacity:1,height:"*"}))])],{optional:!0})]),Hd("* => left",[Bd(":enter",[jd({opacity:0,height:0}),Ld(10,[Rd(".08s",jd({opacity:1,height:"*"}))])],{optional:!0})])]),Km=new b(e=>e.complete());function Zm(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):Km}function Um(...e){let t=e[e.length-1];switch(E(t)?e.pop():t=void 0,e.length){case 0:return Zm(t);case 1:return t?q(e,t):function(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}(e[0]);default:return q(e,t)}}class Gm extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class Qm extends Gm{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Wm=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Ym extends Wm{constructor(e,t=Wm.now){super(e,()=>Ym.delegate&&Ym.delegate!==this?Ym.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Ym.delegate&&Ym.delegate!==this?Ym.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Xm=new Ym(Qm);let Jm=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Um(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return Zm()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class $m{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ey(e,this.delay,this.scheduler))}}class ey extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ey.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new ty(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Jm.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Jm.createComplete()),this.unsubscribe()}}class ty{constructor(e,t){this.time=e,this.notification=t}}class ny{constructor(e){this.notifier=e}call(e,t){const n=new ry(e),r=F(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class ry extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,r,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let sy=(()=>{class e{constructor(e){this.pickerConfig=e,this.selectionChange=new vc(!1),this.longPress=new vc(!1),this.mouseup=new S,this.showDepthText=!1}set depth(e){this.showDepthText=!!e}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete()}get bgColor(){return this.color.toRgbaString()}get title(){const e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}get className(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}onTouch(e){var t;Um(e).pipe(H(e=>e.timeStamp||(new Date).getTime()),function(e,t=Xm){const n=350 instanceof Date&&!isNaN(350)?350-t.now():Math.abs(350);return e=>e.lift(new $m(n,t))}(),(t=this.mouseup,e=>e.lift(new ny(t)))).subscribe(()=>this.longPress.next(!0)),this.selectionChange.emit(this.color)}onTouchEnd(e){this.mouseup.next(e)}}return e.ngComponentDef=nt({type:e,selectors:[["color-preset"]],factory:function(t){return new(t||e)(Aa(Yg))},hostBindings:function(e,t,n){1&e&&(ha(3),Ga("mousedown",function(e){return t.onTouch(e)}),Ga("touchstart",function(e){return t.onTouch(e)}),Ga("mouseup",function(e){return t.onTouchEnd(e)}),Ga("touchend",function(e){return t.onTouchEnd(e)}),Ta()),2&e&&(xa("title",t.title),Oa("background-color",t.bgColor),function(e,t){const n=Cn()[bt]++;Pa($n(),n,"selected",t,!0,Ba())}(0,t.className),Da())},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},consts:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),e})(),oy=(()=>{class e{transform(e,t=!0){return t?e.slice().reverse():e}}return e.ngPipeDef=lt({name:"reverse",type:e,factory:function(t){return new(t||e)},pure:!0}),e})();const iy=[3,"show-depth-title","color","activeColor","longPress","selectionChange"],ay=[1,"reflection"],ly=["class","sublist",4,"ngIf"],cy=[1,"sublist"],uy=[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],hy=[3,"color","activeColor","selectionChange"];function dy(e,t){if(1&e){const e=Za();La(0,"color-preset",hy),Ga("selectionChange",function(t){return Nn(e),Ya(2).onSelectionChange(t)}),qa()}if(2&e){const e=t.$implicit,n=Ya(2);_a("color",e)("activeColor",n.activeColor)}}function py(e,t){if(1&e&&(La(0,"div",cy),Sa(1,dy,1,2,"color-preset",uy),fc(2,"reverse"),qa()),2&e){const e=Ya();_a("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),Mo(1),_a("ngForOf",mc(2,3,e.list,"up"==e.direction||"right"==e.direction))}}let fy=(()=>{class e{constructor(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new vc(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}removeListeners(){this.hooks.forEach(e=>e()),this.hooks.length=0}onSelectionChange(e){this.selectionChange.next(e)}onLongPress(){this.showChildren=!0,this.listenDocumentClick()}listenDocumentClick(){this.hooks.push(this.renderer.listen(this.document,"mousedown",()=>this.closeList())),this.hooks.push(this.renderer.listen(this.document,"touchstart",()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}get className(){return`direction-${this.direction}`}}return e.ngComponentDef=nt({type:e,selectors:[["color-preset-sublist"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(Zi))},hostBindings:function(e,t,n){1&e&&(ha(1),Ta()),2&e&&(Ma(t.className),Da())},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},consts:4,vars:6,template:function(e,t){1&e&&(La(0,"color-preset",iy),Ga("longPress",function(e){return t.onLongPress()}),Ga("selectionChange",function(e){return t.onSelectionChange(e)}),qa(),La(1,"div",ay),Ta(),qa(),La(2,"div",ay),Ta(),qa(),Sa(3,py,3,6,"div",ly)),2&e&&(_a("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),Mo(1),Oa("background-color",t.list[0].toRgbaString()),Da(),Mo(2),Oa("background-color",t.list[0].toRgbaString()),Da(),Mo(3),_a("ngIf",t.showChildren))},directives:[sy,$u,Xu],pipes:[oy],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Lm,zm]},changeDetection:0}),e})(),gy=(()=>{class e{transform(e,t){return e.reduce((n,r,s)=>s%t?n:n.concat([e.slice(s,s+t)]),[])}}return e.ngPipeDef=lt({name:"chunks",type:e,factory:function(t){return new(t||e)},pure:!0}),e})();const my=["class","row",3,"ngClass",4,"ngFor","ngForOf"],yy=[1,"row",3,"ngClass"],by=["ngFor","",3,"ngForOf"],vy=[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],wy=["colorPreset",""],_y=[3,"list","direction","activeColor","ngClass","selectionChange"],Cy=function(e,t){return{first:e,last:t}};function xy(e,t){if(1&e){const e=Za();La(0,"color-preset-sublist",_y),Ga("selectionChange",function(t){return Nn(e),Ya(3).onSelectionChange(t)}),qa()}if(2&e){const e=Ya(),t=e.$implicit,n=e.first,r=e.last,s=Ya(2);_a("list",t)("direction",s.direction)("activeColor",s.color)("ngClass",pc(4,Cy,n,r))}}const Sy=[3,"ngClass","color","activeColor","selectionChange"];function ky(e,t){if(1&e){const e=Za();La(0,"color-preset",Sy),Ga("selectionChange",function(t){return Nn(e),Ya(3).onSelectionChange(t)}),qa()}if(2&e){const e=Ya(),t=e.first,n=e.last,r=e.$implicit,s=Ya(2);_a("ngClass",pc(3,Cy,t,n))("color",r)("activeColor",s.color)}}function Ey(e,t){if(1&e&&(Sa(0,xy,1,7,"color-preset-sublist",vy),Sa(1,ky,1,6,"ng-template",null,wy,Dc)),2&e){const e=t.$implicit,n=ka(2);_a("ngIf",Ya(2).isList(e))("ngIfElse",n)}}function Ay(e,t){if(1&e&&(La(0,"div",yy),Sa(1,Ey,3,2,"ng-template",by),qa()),2&e){const e=t.$implicit;_a("ngClass",pc(2,Cy,t.first,t.last)),Mo(1),_a("ngForOf",e)}}let Ty=(()=>{class e{constructor(){this.columns=8,this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.direction="up"}onSelectionChange(e){const t=e.getRgba(),n=e.getHsva(),r=(new Kg).setRgba(t.red,t.green,t.blue,t.alpha),s=(new Kg).setHsva(n.hue);this.hueChange.emit(s),this.colorChange.emit(r)}isList(e){return Array.isArray(e)}}return e.ngComponentDef=nt({type:e,selectors:[["color-presets-component"]],factory:function(t){return new(t||e)},inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:2,vars:4,template:function(e,t){1&e&&(Sa(0,Ay,2,5,"div",my),fc(1,"chunks")),2&e&&_a("ngForOf",mc(1,1,t.colorPresets,t.columns))},directives:[Xu,Wu,$u,fy,sy],pipes:[gy],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),e})();class Oy extends S{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(e){super.next(this._value=e)}}class Py{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new My(e,this.compare,this.keySelector))}}class My extends g{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}var Iy=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({});class Ny{constructor(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new S,this.presetsVisibilityChanges=new Oy(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Oy(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=(e,t)=>e.toRgbaString()==t.toRgbaString(),t=>t.lift(new Py(e,void 0)))),this.colorPresets=[];const t=Kg.from(new qg(255,0,0,1));this.setValue(t),this.setHueColor(t)}setValueFrom(e){const t=Kg.from(e);return this.initValue||(this.initValue=Kg.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}setHueColor(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Kg).setHsva(e.getHsva().hue))}get hue(){return this.hueValue}set hue(e){this.hueValue=e}setValue(e){return this.modelValue=e,this.valueChanged.next(e),this}get value(){return this.modelValue}set value(e){this.setValue(e)}reset(){let e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Kg.from(new qg(255,0,0,1)),this.hueValue=(new Kg).setHsva(e.getHsva().hue)),this.setValue(e),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}finOutInputType(e){const t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=Iy.hex,t.length>7&&(this.initType=Iy.hexa));const n=t.indexOf("(");switch(t.substr(0,n)){case Iy.rgba:this.initType=Iy.rgba;break;case Iy.rgb:this.initType=Iy.rgb;break;case Iy.hsla:this.initType=Iy.hsla;break;case Iy.hsl:this.initType=Iy.hsl;break;case Iy.cmyk:this.initType=Iy.cmyk}}setColorPresets(e){return this.colorPresets=this.setPresets(e),this}setPresets(e){const t=[];for(const n of e)Array.isArray(n)?t.push(this.setPresets(n)):t.push(new Kg(n));return t}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}unsubscribe(){this.valueChanged.complete(),this.presetsVisibilityChanges.complete()}}function Dy(e,t){switch(t){case Iy.hex:return e.toHexString();case Iy.hexa:return e.toHexString(!0);case Iy.rgb:return e.toRgbString();case Iy.rgba:return e.toRgbaString();case Iy.hsl:return e.toHslString();case Iy.hsla:return e.toHslaString();default:return e.toRgbaString()}}const Vy=[3,"hue","color","colorChange"],Ry=[1,"controls"],Fy=[1,"controls-row","hue-alpha"],jy=[1,"column"],Hy=[3,"colorType","color"],By=[3,"hue","color","hueChange","colorChange"],Ly=[3,"color","colorChange",4,"ngIf"],qy=[1,"controls-row","presentation"],zy=[1,"column",3,"ngSwitch"],Ky=["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],Zy=["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],Uy=[1,"column","type-column"],Gy=[1,"type-btn",3,"click"],Qy=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],Wy=[3,"color","colorChange"];function Yy(e,t){if(1&e){const e=Za();La(0,"alpha-component",Wy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),qa()}2&e&&_a("color",Ya().control.value)}const Xy=["label","",3,"alpha","color","hue","colorChange","hueChange"];function Jy(e,t){if(1&e){const e=Za();La(0,"rgba-input-component",Xy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),fc(1,"async"),qa()}if(2&e){const e=Ya();_a("alpha",gc(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function $y(e,t){if(1&e){const e=Za();La(0,"hsla-input-component",Xy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),fc(1,"async"),qa()}if(2&e){const e=Ya();_a("alpha",gc(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}const eb=["label","","prefix","#",3,"color","hue","colorChange","hueChange"];function tb(e,t){if(1&e){const e=Za();La(0,"hex-input-component",eb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("hue",e.control.hue)}}const nb=[3,"color","colorPresets","hue","colorChange","hueChange"];function rb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",nb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let sb=(()=>{class e{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new vc(!1)}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))})}ngOnDestroy(){this.control.unsubscribe(),this.cdr.detach()}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}return e.ngComponentDef=nt({type:e,selectors:[["chrome-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:18,vars:16,template:function(e,t){1&e&&(La(0,"saturation-component",Vy),Ga("colorChange",function(e){return t.control.value=e}),qa(),La(1,"div",Ry),La(2,"div",Fy),La(3,"div",jy),za(4,"indicator-component",Hy),qa(),La(5,"div",jy),La(6,"hue-component",By),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(7,Yy,1,1,"alpha-component",Ly),fc(8,"async"),qa(),qa(),La(9,"div",qy),La(10,"div",zy),Sa(11,Jy,2,5,"rgba-input-component",Ky),Sa(12,$y,2,5,"hsla-input-component",Ky),Sa(13,tb,1,2,"hex-input-component",Zy),qa(),La(14,"div",Uy),La(15,"span",Gy),Ga("click",function(e){return t.changePresentation()}),qa(),qa(),qa(),qa(),Sa(16,rb,1,3,"color-presets-component",Qy),fc(17,"async")),2&e&&(_a("hue",t.control.hue)("color",t.control.value),Mo(4),_a("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),Mo(6),_a("hue",t.control.hue)("color",t.control.value),Mo(7),_a("ngIf",gc(8,12,t.control.alphaChannelVisibilityChanges)),Mo(10),_a("ngSwitch",t.presentations[t.selectedPresentation]),Mo(11),_a("ngSwitchCase","rgba"),Mo(12),_a("ngSwitchCase","hsla"),Mo(13),_a("ngSwitchCase","hex"),Mo(16),_a("ngIf",gc(17,14,t.control.presetsVisibilityChanges)))},directives:[Wg,em,sm,$u,rh,sh,um,Cm,Dm,Bm,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) center/6px 12px no-repeat}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.3) 0 0 2px}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-webkit-transform:scale(1.18,1.18);-ms-transform:scale(1.18,1.18);transform:scale(1.18,1.18)}"],changeDetection:0}),e})();const ob=[3,"hue","color","colorChange"],ib=[1,"controls"],ab=[1,"controls-row","hue-alpha"],lb=[1,"column"],cb=[3,"hue","color","hueChange","colorChange"],ub=[3,"color","colorChange",4,"ngIf"],hb=[1,"column","indicator-column"],db=["colorType","rgba",3,"color"],pb=[1,"controls-row","presentation"],fb=["label","",3,"color","hue","colorChange","hueChange"],gb=["label","",3,"alpha","color","hue","colorChange","hueChange"],mb=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],yb=[3,"color","colorChange"];function bb(e,t){if(1&e){const e=Za();La(0,"alpha-component",yb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),qa()}2&e&&_a("color",Ya().control.value)}const vb=[3,"color","colorPresets","hue","colorChange","hueChange"];function wb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",vb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let _b=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1)}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))})}ngOnDestroy(){this.control.unsubscribe(),this.cdr.detach()}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["sketch-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:17,vars:18,template:function(e,t){1&e&&(La(0,"saturation-component",ob),Ga("colorChange",function(e){return t.control.value=e}),qa(),La(1,"div",ib),La(2,"div",ab),La(3,"div",lb),La(4,"hue-component",cb),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(5,bb,1,1,"alpha-component",ub),fc(6,"async"),qa(),La(7,"div",hb),za(8,"indicator-component",db),qa(),qa(),La(9,"div",pb),La(10,"div",lb),La(11,"hex-input-component",fb),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),qa(),qa(),La(12,"div",lb),La(13,"rgba-input-component",gb),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),fc(14,"async"),qa(),qa(),qa(),qa(),Sa(15,wb,1,3,"color-presets-component",mb),fc(16,"async")),2&e&&(_a("hue",t.control.hue)("color",t.control.value),Mo(4),_a("hue",t.control.hue)("color",t.control.value),Mo(5),_a("ngIf",gc(6,12,t.control.alphaChannelVisibilityChanges)),Mo(8),_a("color",t.control.value),Mo(11),_a("color",t.control.value)("hue",t.control.hue),Mo(13),_a("alpha",gc(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),Mo(15),_a("ngIf",gc(16,16,t.control.presetsVisibilityChanges)))},directives:[Wg,sm,$u,em,Bm,Cm,um,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px;width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.4) 0 0 2px}[_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.4) 0 1px 4px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),e})();const Cb=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],xb=[1,"controls"],Sb=[1,"controls-row","saturation-hue"],kb=[1,"column"],Eb=[3,"hue","color","colorChange"],Ab=[1,"column","hue-column"],Tb=["vertical","",3,"hue","color","hueChange","colorChange"],Ob=[1,"controls-row","presentation"],Pb=["viewBox","0 0 1024 1024",1,"pencil"],Mb=["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],Ib=["prefix","#",3,"color","hue","colorChange","hueChange"],Nb=["colorType","hex",3,"color"],Db=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"];function Vb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",Db),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("columns",9)("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Rb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1)}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))})}ngOnDestroy(){this.control.unsubscribe(),this.cdr.detach()}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["compact-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:15,vars:10,template:function(e,t){1&e&&(Sa(0,Vb,1,4,"color-presets-component",Cb),fc(1,"async"),La(2,"div",xb),La(3,"div",Sb),La(4,"div",kb),La(5,"saturation-component",Eb),Ga("colorChange",function(e){return t.control.value=e}),qa(),qa(),La(6,"div",Ab),La(7,"hue-component",Tb),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),qa(),qa(),La(8,"div",Ob),La(9,"div",kb),rr(),La(10,"svg",Pb),za(11,"path",Mb),qa(),sr(),La(12,"hex-input-component",Ib),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),qa(),qa(),La(13,"div",kb),za(14,"indicator-component",Nb),qa(),qa(),qa()),2&e&&(_a("ngIf",gc(1,8,t.control.presetsVisibilityChanges)),Mo(5),_a("hue",t.control.hue)("color",t.control.value),Mo(7),_a("hue",t.control.hue)("color",t.control.value),Mo(12),_a("color",t.control.value)("hue",t.control.hue),Mo(14),_a("color",t.control.value))},directives:[$u,Wg,sm,Bm,em,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 0 4px}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:0 0;border:3px solid #fff;border-radius:5px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset rgba(0,0,0,.6) 0 1px 1px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.6) 0 1px 6px}"],changeDetection:0}),e})();const Fb=["direction","down",3,"color","colorPresets","colorChange"];let jb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1)}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))})}ngOnDestroy(){this.control.unsubscribe(),this.cdr.detach()}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["github-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:1,vars:2,template:function(e,t){1&e&&(La(0,"color-presets-component",Fb),Ga("colorChange",function(e){return t.control.value=e}),qa()),2&e&&_a("color",t.control.value)("colorPresets",t.control.presets)},directives:[Ty],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.15) 0 3px 12px;border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}'],changeDetection:0}),e})();const Hb=["direction","down",3,"columns","color","colorPresets","colorChange"],Bb=["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],Lb=["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"];function qb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",Lb),Ga("colorChange",function(t){return Nn(e),Ya().childControl.value=t}),qa()}if(2&e){const e=Ya();_a("columns",7)("color",e.childControl.value)("colorPresets",e.childControl.presets)}}let zb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1),this.control=new Ny,this.childControl=new Ny,this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}ngOnInit(){this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.childControl.valueChanges.subscribe(e=>{this.colorChange.emit(Dy(e,this.childControl.initType))}),this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck();const t=this.mapColors[e.toHexString()];t&&this.childControl.setColorPresets(t),this.colorChange.emit(Dy(this.childControl.value,this.childControl.initType))})}ngOnDestroy(){this.control.unsubscribe(),this.childControl.unsubscribe(),this.cdr.detach()}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["swatches-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[tl()],consts:2,vars:4,template:function(e,t){1&e&&(La(0,"color-presets-component",Hb),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(1,qb,1,3,"color-presets-component",Bb)),2&e&&(_a("columns",7)("color",t.control.value)("colorPresets",t.control.presets),Mo(1),_a("ngIf",t.childControl.presets.length))},directives:[Ty,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.3) 0 0 2px;border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),e})(),Kb=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:Yg,useValue:t||new Yg}]}}}return e.ngModuleDef=ot({type:e}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)},providers:[Yg],imports:[[gh]]}),e})();var Zb=n("Eh/9");const Ub=[1,"jumbotron"],Gb=[1,"background"],Qb=[1,"container"],Wb=[1,"row"],Yb=[1,"col"],Xb=[1,"display-4"],Jb=["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],$b=[1,"row","pickers-row"],ev=[1,"col","col-md-6","text-right"],tv=[3,"color","colorChange"],nv=[1,"col","col-md-6"],rv=[1,"card"],sv=[1,"card-header"],ov=[1,"card-block"],iv=[2,"padding","0 0 0 40px"],av=["id","installation",1,"card"],lv=[1,"prettify"],cv=["id","usage",1,"card"],uv=[1,"col","col-lg-4"],hv=[1,"info-row"],dv=[3,"control"],pv=[1,"col","col-lg-8"],fv=[1,"buttons-row"],gv=[1,"btn","btn-primary",3,"click"],mv=[1,"table","table-bordered","table-striped"],yv=["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"];let bv=(()=>{class e{constructor(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Ny).setValueFrom(zg.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Ny).setValueFrom("#A6771C"),this.compactControl=new Ny,this.githubControl=(new Ny).setValueFrom("#1273DE"),this.swatchesColor="#F04A71"}ngAfterViewInit(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(e=>e.innerHTML=Zb.prettyPrintOne(e.innerHTML))}}return e.ngComponentDef=nt({type:e,selectors:[["app-root"]],factory:function(t){return new(t||e)(Aa(xl))},consts:705,vars:45,template:function(e,t){if(1&e){La(0,"div",Ub),La(1,"div",Gb),Ta(),qa(),La(2,"div",Qb),La(3,"div",Wb),La(4,"div",Yb),La(5,"h1",Xb),Xa(6,"@iplab/ngx-color-picker"),qa(),za(7,"br"),La(8,"a",Jb),Xa(9,"GitHub"),qa(),qa(),qa(),La(10,"div",$b),La(11,"div",ev),La(12,"sketch-picker",tv),Ga("colorChange",function(e){return t.color=e}),qa(),qa(),La(13,"div",nv),La(14,"chrome-picker",tv),Ga("colorChange",function(e){return t.color=e}),qa(),qa(),qa(),qa(),qa(),La(15,"div",Qb),La(16,"div",rv),La(17,"div",sv),Xa(18,"Getting started"),qa(),La(19,"div",ov),La(20,"ol"),La(21,"li"),Xa(22,"Fork and clone this repo"),qa(),La(23,"li"),Xa(24,"npm install"),qa(),La(25,"li"),Xa(26,'Open a terminal and type "npm run start"'),qa(),qa(),La(27,"p",iv),La(28,"b"),Xa(29,"or"),qa(),qa(),La(30,"ol"),La(31,"li"),Xa(32,"npm install @iplab/ngx-color-picker --save"),qa(),La(33,"li"),Xa(34,"ng serve --open"),qa(),qa(),qa(),qa(),za(35,"br"),La(36,"div",rv),La(37,"div",sv),Xa(38,"Description"),qa(),La(39,"div",ov),La(40,"p"),Xa(41,"Pure Angular color picker library."),qa(),La(42,"ul"),La(43,"li"),Xa(44,"It's an Angular color picker"),qa(),La(45,"li"),Xa(46,"Compatible with Angular 5+ versions"),qa(),La(47,"li"),Xa(48,"No external dependency"),qa(),La(49,"li"),Xa(50,"Simple to configure"),qa(),La(51,"li"),Xa(52,"Easy to use"),qa(),qa(),qa(),qa(),za(53,"br"),La(54,"div",av),La(55,"div",sv),Xa(56,"Installation"),qa(),La(57,"div",ov),La(58,"p"),Xa(59,"To install this component to an external project, follow the procedure:"),qa(),La(60,"ol"),La(61,"li"),La(62,"code"),Xa(63,"npm install @iplab/ngx-color-picker --save"),qa(),qa(),La(64,"li"),La(65,"pre",lv),Xa(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),La(67,"b"),Xa(68,"BrowserAnimationsModule"),qa(),Xa(69," or "),La(70,"b"),Xa(71,"NoopAnimationsModule"),qa(),Xa(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),qa(),qa(),La(73,"li"),La(74,"code"),Xa(75,''),qa(),qa(),qa(),qa(),qa(),za(76,"br"),La(77,"div",cv),La(78,"div",sv),Xa(79,"Usage"),qa(),La(80,"div",ov),La(81,"h6"),Xa(82,"predefined components"),qa(),La(83,"p"),Xa(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),za(85,"br"),Xa(86," can be used with direct color binding "),La(87,"b"),Xa(88,"or/and"),qa(),Xa(89," with control which provides greater flexibility"),qa(),La(90,"p"),La(91,"code"),Xa(92,''),qa(),za(93,"br"),La(94,"code"),Xa(95,''),qa(),za(96,"br"),La(97,"code"),Xa(98,''),qa(),za(99,"br"),La(100,"code"),Xa(101,''),qa(),za(102,"br"),La(103,"code"),Xa(104,''),qa(),qa(),za(105,"hr"),La(106,"h6"),Xa(107,"[color] attribute"),qa(),La(108,"p"),Xa(109,"When binding over attribute "),La(110,"b"),Xa(111,"[color]"),qa(),Xa(112," is used, component try to determine which value type is used so the output would be the same."),za(113,"br"),La(114,"b"),Xa(115,"Examples:"),qa(),za(116,"br"),La(117,"code"),Xa(118,''),qa(),Xa(119," -> output is "),La(120,"b"),Xa(121,"rgb"),qa(),za(122,"br"),La(123,"code"),Xa(124,''),qa(),Xa(125," -> output is "),La(126,"b"),Xa(127,"rgba"),qa(),za(128,"br"),La(129,"code"),Xa(130,''),qa(),Xa(131," -> output is "),La(132,"b"),Xa(133,"hsl"),qa(),za(134,"br"),La(135,"code"),Xa(136,''),qa(),Xa(137," -> output is "),La(138,"b"),Xa(139,"hex"),qa(),qa(),za(140,"hr"),La(141,"h6"),Xa(142,"[control] attribute"),qa(),La(143,"p"),Xa(144,"When binding over "),La(145,"b"),Xa(146,"[control]"),qa(),Xa(147," user have greater control over color output and all events"),za(148,"br"),La(149,"b"),Xa(150,"Examples:"),qa(),za(151,"br"),La(152,"code"),Xa(153,''),qa(),qa(),za(154,"hr"),La(155,"h6"),Xa(156,"color indicator"),qa(),La(157,"p"),Xa(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),za(159,"br"),Xa(160," Text which is displayed on mouseover can be configured over NgModule configuration"),qa(),La(161,"pre",lv),Xa(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),qa(),za(163,"hr"),La(164,"h6"),Xa(165,"color presets"),qa(),La(166,"p"),Xa(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),za(168,"br"),Xa(169," Text which is displayed on mouseover can be configured over NgModule configuration"),qa(),La(170,"pre",lv),bn=!1,Xa(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),bn=!0,qa(),za(172,"hr"),La(173,"h6"),Xa(174,"all color picker parts"),qa(),La(175,"p"),Xa(176,"Color picker library exports all parts to enable custom components builds"),za(177,"br"),Xa(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),qa(),La(179,"pre",lv),Xa(180,'\n\n\n\n\n\n\n\n\n\n'),qa(),La(181,"h6"),Xa(182,"attributes explanation"),qa(),La(183,"p"),La(184,"b"),Xa(185,"color =>"),qa(),Xa(186," currently selected color (output color)"),za(187,"br"),La(188,"b"),Xa(189,"hue =>"),qa(),Xa(190," color used internally as current hue color"),za(191,"br"),La(192,"b"),Xa(193,"colorType =>"),qa(),Xa(194," specify which type of color should be copied to the clipboard"),za(195,"br"),La(196,"b"),Xa(197,"vertical =>"),qa(),Xa(198," should component be placed horizontally or vertically"),za(199,"br"),La(200,"b"),Xa(201,"alpha =>"),qa(),Xa(202," should component display alpha channel"),za(203,"br"),La(204,"b"),Xa(205,"label =>"),qa(),Xa(206," whether the label will be displayed or not (rgba, hsla, hex)"),za(207,"br"),La(208,"b"),Xa(209,"prefix =>"),qa(),Xa(210," definition of label prefix"),za(211,"br"),La(212,"b"),Xa(213,"colorPresets =>"),qa(),Xa(214," list of colors used as presets "),qa(),qa(),qa(),za(215,"br"),La(216,"div",rv),La(217,"div",sv),Xa(218,"Chrome color picker"),qa(),La(219,"div",ov),La(220,"div",Wb),La(221,"div",uv),La(222,"div",hv),La(223,"code"),Xa(224),qa(),La(225,"code"),Xa(226),qa(),La(227,"code"),Xa(228),qa(),La(229,"code"),Xa(230),qa(),La(231,"code"),Xa(232),qa(),La(233,"code"),Xa(234),qa(),La(235,"code"),Xa(236),qa(),La(237,"code"),Xa(238),qa(),La(239,"code"),Xa(240),qa(),qa(),za(241,"chrome-picker",dv),qa(),La(242,"div",pv),La(243,"p"),Xa(244,"Component code"),qa(),La(245,"pre",lv),Xa(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),qa(),La(247,"p"),Xa(248,"Template code"),qa(),La(249,"pre",lv),Xa(250,''),qa(),qa(),qa(),La(251,"div",fv),La(252,"button",gv),Ga("click",function(e){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()}),Xa(253,"Toggle presets visibility"),qa(),Xa(254," \xa0 "),La(255,"button",gv),Ga("click",function(e){return t.chromeControl.reset()}),Xa(256,"Reset to initial"),qa(),Xa(257," \xa0 "),La(258,"button",gv),Ga("click",function(e){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()}),Xa(259,"Toggle alpha channel"),qa(),qa(),qa(),qa(),za(260,"br"),La(261,"div",rv),La(262,"div",sv),Xa(263,"Sketch color picker"),qa(),La(264,"div",ov),La(265,"div",Wb),La(266,"div",uv),La(267,"div",hv),La(268,"code"),Xa(269),qa(),La(270,"code"),Xa(271),qa(),La(272,"code"),Xa(273),qa(),La(274,"code"),Xa(275),qa(),La(276,"code"),Xa(277),qa(),La(278,"code"),Xa(279),qa(),La(280,"code"),Xa(281),qa(),La(282,"code"),Xa(283),qa(),La(284,"code"),Xa(285),qa(),qa(),za(286,"sketch-picker",dv),qa(),La(287,"div",pv),La(288,"p"),Xa(289,"Component code"),qa(),La(290,"pre",lv),Xa(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),qa(),La(292,"p"),Xa(293,"Template code"),qa(),La(294,"pre",lv),Xa(295,''),qa(),qa(),qa(),La(296,"div",fv),La(297,"button",gv),Ga("click",function(e){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()}),Xa(298,"Toggle presets visibility"),qa(),Xa(299," \xa0 "),La(300,"button",gv),Ga("click",function(e){return t.sketchControl.reset()}),Xa(301,"Reset to initial"),qa(),Xa(302," \xa0 "),La(303,"button",gv),Ga("click",function(e){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()}),Xa(304,"Toggle alpha channel"),qa(),qa(),qa(),qa(),za(305,"br"),La(306,"div",rv),La(307,"div",sv),Xa(308,"Compact color picker"),qa(),La(309,"div",ov),La(310,"div",Wb),La(311,"div",uv),La(312,"div",hv),La(313,"code"),Xa(314),qa(),La(315,"code"),Xa(316),qa(),La(317,"code"),Xa(318),qa(),La(319,"code"),Xa(320),qa(),La(321,"code"),Xa(322),qa(),La(323,"code"),Xa(324),qa(),La(325,"code"),Xa(326),qa(),La(327,"code"),Xa(328),qa(),La(329,"code"),Xa(330),qa(),qa(),za(331,"compact-picker",dv),qa(),La(332,"div",pv),La(333,"p"),Xa(334,"Component code"),qa(),La(335,"pre",lv),Xa(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),qa(),La(337,"p"),Xa(338,"Template code"),qa(),La(339,"pre",lv),Xa(340,''),qa(),qa(),qa(),La(341,"div",fv),La(342,"button",gv),Ga("click",function(e){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()}),Xa(343,"Toggle presets visibility"),qa(),Xa(344," \xa0 "),La(345,"button",gv),Ga("click",function(e){return t.compactControl.reset()}),Xa(346,"Reset to initial"),qa(),qa(),qa(),qa(),za(347,"br"),La(348,"div",rv),La(349,"div",sv),Xa(350,"Github color picker"),qa(),La(351,"div",ov),La(352,"div",Wb),La(353,"div",uv),La(354,"div",hv),La(355,"code"),Xa(356),qa(),La(357,"code"),Xa(358),qa(),La(359,"code"),Xa(360),qa(),La(361,"code"),Xa(362),qa(),La(363,"code"),Xa(364),qa(),La(365,"code"),Xa(366),qa(),La(367,"code"),Xa(368),qa(),La(369,"code"),Xa(370),qa(),La(371,"code"),Xa(372),qa(),qa(),za(373,"github-picker",dv),qa(),La(374,"div",pv),La(375,"p"),Xa(376,"Component code"),qa(),La(377,"pre",lv),Xa(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),qa(),La(379,"p"),Xa(380,"Template code"),qa(),La(381,"pre",lv),Xa(382,''),qa(),qa(),qa(),La(383,"div",fv),La(384,"button",gv),Ga("click",function(e){return t.githubControl.reset()}),Xa(385,"Reset to initial"),qa(),qa(),qa(),qa(),za(386,"br"),La(387,"div",rv),La(388,"div",sv),Xa(389,"Swatches color picker"),qa(),La(390,"div",ov),La(391,"div",Wb),La(392,"div",uv),La(393,"p"),Xa(394,"Swatches component only supports binding over color attribute"),qa(),La(395,"div",hv),La(396,"code"),Xa(397),qa(),za(398,"br"),qa(),La(399,"swatches-picker",tv),Ga("colorChange",function(e){return t.swatchesColor=e}),qa(),qa(),La(400,"div",pv),La(401,"p"),Xa(402,"Component code"),qa(),La(403,"pre",lv),Xa(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),qa(),La(405,"p"),Xa(406,"Template code"),qa(),La(407,"pre",lv),Xa(408,''),qa(),qa(),qa(),qa(),qa(),za(409,"br"),La(410,"div",rv),La(411,"div",sv),Xa(412,"ColorPickerControl methods"),qa(),La(413,"div",ov),La(414,"table",mv),La(415,"thead"),La(416,"tr"),La(417,"th"),Xa(418,"Property"),qa(),La(419,"th"),Xa(420,"Type"),qa(),La(421,"th"),Xa(422,"Description"),qa(),qa(),qa(),La(423,"tbody"),La(424,"tr"),La(425,"td"),Xa(426,"setValueFrom"),qa(),La(427,"td"),La(428,"code"),Xa(429,"Function"),qa(),qa(),La(430,"td"),Xa(431,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),qa(),qa(),La(432,"tr"),La(433,"td"),Xa(434,"value"),qa(),La(435,"td"),La(436,"code"),Xa(437,"Getter.value"),qa(),qa(),La(438,"td"),Xa(439,"get value as a Color object"),qa(),qa(),La(440,"tr"),La(441,"td"),Xa(442,"reset"),qa(),La(443,"td"),La(444,"code"),Xa(445,"Function"),qa(),qa(),La(446,"td"),Xa(447,"reset value to initial state"),qa(),qa(),La(448,"tr"),La(449,"td"),Xa(450,"valueChanges"),qa(),La(451,"td"),La(452,"code"),Xa(453,"Observable"),qa(),qa(),La(454,"td"),Xa(455,"Used to observe component value changes"),qa(),qa(),La(456,"tr"),La(457,"td"),Xa(458,"isAlphaChannelEnabled"),qa(),La(459,"td"),La(460,"code"),Xa(461,"Function"),qa(),qa(),La(462,"td"),Xa(463,"return is alpha changel enabled"),qa(),qa(),La(464,"tr"),La(465,"td"),Xa(466,"showAlphaChannel"),qa(),La(467,"td"),La(468,"code"),Xa(469,"Function"),qa(),qa(),La(470,"td"),Xa(471,"show alpha channel"),qa(),qa(),La(472,"tr"),La(473,"td"),Xa(474,"hideAlphaChannel"),qa(),La(475,"td"),La(476,"code"),Xa(477,"Function"),qa(),qa(),La(478,"td"),Xa(479,"hide alpha channel"),qa(),qa(),La(480,"tr"),La(481,"td"),Xa(482,"alphaChannelVisibilityChanges"),qa(),La(483,"td"),La(484,"code"),Xa(485,"BehaviorSubject"),qa(),qa(),La(486,"td"),Xa(487,"Used to observe alpha channel changes"),qa(),qa(),La(488,"tr"),La(489,"td"),Xa(490,"setColorPresets"),qa(),La(491,"td"),La(492,"code"),Xa(493,"Function"),qa(),qa(),La(494,"td"),Xa(495,"define color preset list"),qa(),qa(),La(496,"tr"),La(497,"td"),Xa(498,"presets"),qa(),La(499,"td"),La(500,"code"),Xa(501,"Getter.presets"),qa(),qa(),La(502,"td"),Xa(503,"get color presets"),qa(),qa(),La(504,"tr"),La(505,"td"),Xa(506,"hasPresets"),qa(),La(507,"td"),La(508,"code"),Xa(509,"Function"),qa(),qa(),La(510,"td"),Xa(511,"return status of predefined color presets"),qa(),qa(),La(512,"tr"),La(513,"td"),Xa(514,"showPresets"),qa(),La(515,"td"),La(516,"code"),Xa(517,"Function"),qa(),qa(),La(518,"td");Xa(519,"show predefined color presets"),qa(),qa(),La(520,"tr"),La(521,"td"),Xa(522,"hidePresets"),qa(),La(523,"td"),La(524,"code"),Xa(525,"Function"),qa(),qa(),La(526,"td"),Xa(527,"hide predefined color presets"),qa(),qa(),La(528,"tr"),La(529,"td"),Xa(530,"presetsVisibilityChanges"),qa(),La(531,"td"),La(532,"code"),Xa(533,"BehaviorSubject"),qa(),qa(),La(534,"td"),Xa(535,"Used to observe color preset visibility"),qa(),qa(),qa(),qa(),qa(),qa(),za(536,"br"),La(537,"div",rv),La(538,"div",sv),Xa(539,"Color methods"),qa(),La(540,"div",ov),La(541,"table",mv),La(542,"thead"),La(543,"tr"),La(544,"th"),Xa(545,"Property"),qa(),La(546,"th"),Xa(547,"Type"),qa(),La(548,"th"),Xa(549,"Description"),qa(),qa(),qa(),La(550,"tbody"),La(551,"tr"),La(552,"td"),Xa(553,"Color.from"),qa(),La(554,"td"),La(555,"code"),Xa(556,"static method"),qa(),qa(),La(557,"td"),Xa(558,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),qa(),qa(),La(559,"tr"),La(560,"td"),Xa(561,"clone"),qa(),La(562,"td"),La(563,"code"),Xa(564,"Function"),qa(),qa(),La(565,"td"),Xa(566,"create new Color object"),qa(),qa(),La(567,"tr"),La(568,"td"),Xa(569,"setFromString"),qa(),La(570,"td"),La(571,"code"),Xa(572,"Function"),qa(),qa(),La(573,"td"),Xa(574,"change the value by providing the string"),qa(),qa(),La(575,"tr"),La(576,"td"),Xa(577,"setHsva"),qa(),La(578,"td"),La(579,"code"),Xa(580,"Function"),qa(),qa(),La(581,"td"),Xa(582,"change the value by providing hsv values"),qa(),qa(),La(583,"tr"),La(584,"td"),Xa(585,"setRgba"),qa(),La(586,"td"),La(587,"code"),Xa(588,"Function"),qa(),qa(),La(589,"td"),Xa(590,"change the value by providing rgb values"),qa(),qa(),La(591,"tr"),La(592,"td"),Xa(593,"setHsla"),qa(),La(594,"td"),La(595,"code"),Xa(596,"Function"),qa(),qa(),La(597,"td"),Xa(598,"change the value by providing hsl values"),qa(),qa(),La(599,"tr"),La(600,"td"),Xa(601,"toHexString"),qa(),La(602,"td"),La(603,"code"),Xa(604,"Function"),qa(),qa(),La(605,"td"),Xa(606,"convert Color object to hex string"),qa(),qa(),La(607,"tr"),La(608,"td"),Xa(609,"toRgbString"),qa(),La(610,"td"),La(611,"code"),Xa(612,"Function"),qa(),qa(),La(613,"td"),Xa(614,"convert Color object to rgb string"),qa(),qa(),La(615,"tr"),La(616,"td"),Xa(617,"toRgbaString"),qa(),La(618,"td"),La(619,"code"),Xa(620,"Function"),qa(),qa(),La(621,"td"),Xa(622,"convert Color object to rgba string"),qa(),qa(),La(623,"tr"),La(624,"td"),Xa(625,"toHslString"),qa(),La(626,"td"),La(627,"code"),Xa(628,"Function"),qa(),qa(),La(629,"td"),Xa(630,"convert Color object to hsl string"),qa(),qa(),La(631,"tr"),La(632,"td"),Xa(633,"toHslaString"),qa(),La(634,"td"),La(635,"code"),Xa(636,"Function"),qa(),qa(),La(637,"td"),Xa(638,"convert Color object to hsla string"),qa(),qa(),La(639,"tr"),La(640,"td"),Xa(641,"toHsvString"),qa(),La(642,"td"),La(643,"code"),Xa(644,"Function"),qa(),qa(),La(645,"td"),Xa(646,"convert Color object to hsv string"),qa(),qa(),La(647,"tr"),La(648,"td"),Xa(649,"toHsvaString"),qa(),La(650,"td"),La(651,"code"),Xa(652,"Function"),qa(),qa(),La(653,"td"),Xa(654,"convert Color object to hsva string"),qa(),qa(),La(655,"tr"),La(656,"td"),Xa(657,"toCmykString"),qa(),La(658,"td"),La(659,"code"),Xa(660,"Function"),qa(),qa(),La(661,"td"),Xa(662,"convert Color object to cmyk string"),qa(),qa(),La(663,"tr"),La(664,"td"),Xa(665,"getHsva"),qa(),La(666,"td"),La(667,"code"),Xa(668,"Function"),qa(),qa(),La(669,"td"),Xa(670,"return Hsva object"),qa(),qa(),La(671,"tr"),La(672,"td"),Xa(673,"getRgba"),qa(),La(674,"td"),La(675,"code"),Xa(676,"Function"),qa(),qa(),La(677,"td"),Xa(678,"return Rgba object"),qa(),qa(),La(679,"tr"),La(680,"td"),Xa(681,"getHsla"),qa(),La(682,"td"),La(683,"code"),Xa(684,"Function"),qa(),qa(),La(685,"td"),Xa(686,"return Hsla object"),qa(),qa(),La(687,"tr"),La(688,"td"),Xa(689,"getCmyk"),qa(),La(690,"td"),La(691,"code"),Xa(692,"Function"),qa(),qa(),La(693,"td"),Xa(694,"return Cmyk object"),qa(),qa(),qa(),qa(),qa(),qa(),za(695,"br"),La(696,"div",rv),La(697,"div",sv),Xa(698,"ColorsTable"),qa(),La(699,"div",ov),La(700,"p"),Xa(701,"ColorTable is class with static properties which represent Rgba colors defined by "),La(702,"a",yv),Xa(703,"list of the X11 colors"),qa(),qa(),qa(),qa(),za(704,"br"),qa()}2&e&&(Mo(1),Oa("background-color",t.color),Da(),Mo(12),_a("color",t.color),Mo(14),_a("color",t.color),Mo(224),Ja("selected hex: ",t.chromeControl.value.toHexString(),""),Mo(226),Ja("selected hexa: ",t.chromeControl.value.toHexString(!0),""),Mo(228),Ja("selected rgb: ",t.chromeControl.value.toRgbString(),""),Mo(230),Ja("selected rgba: ",t.chromeControl.value.toRgbaString(),""),Mo(232),Ja("selected hsl: ",t.chromeControl.value.toHslString(),""),Mo(234),Ja("selected hsla: ",t.chromeControl.value.toHslaString(),""),Mo(236),Ja("selected hsv: ",t.chromeControl.value.toHsvString(),""),Mo(238),Ja("selected hsva: ",t.chromeControl.value.toHsvaString(),""),Mo(240),Ja("selected cmyk: ",t.chromeControl.value.toCmykString(),""),Mo(241),_a("control",t.chromeControl),Mo(269),Ja("selected hex: ",t.sketchControl.value.toHexString(),""),Mo(271),Ja("selected hexa: ",t.sketchControl.value.toHexString(!0),""),Mo(273),Ja("selected rgb: ",t.sketchControl.value.toRgbString(),""),Mo(275),Ja("selected rgba: ",t.sketchControl.value.toRgbaString(),""),Mo(277),Ja("selected hsl: ",t.sketchControl.value.toHslString(),""),Mo(279),Ja("selected hsla: ",t.sketchControl.value.toHslaString(),""),Mo(281),Ja("selected hsv: ",t.sketchControl.value.toHsvString(),""),Mo(283),Ja("selected hsva: ",t.sketchControl.value.toHsvaString(),""),Mo(285),Ja("selected cmyk: ",t.sketchControl.value.toCmykString(),""),Mo(286),_a("control",t.sketchControl),Mo(314),Ja("selected hex: ",t.compactControl.value.toHexString(),""),Mo(316),Ja("selected hexa: ",t.compactControl.value.toHexString(!0),""),Mo(318),Ja("selected rgb: ",t.compactControl.value.toRgbString(),""),Mo(320),Ja("selected rgba: ",t.compactControl.value.toRgbaString(),""),Mo(322),Ja("selected hsl: ",t.compactControl.value.toHslString(),""),Mo(324),Ja("selected hsla: ",t.compactControl.value.toHslaString(),""),Mo(326),Ja("selected hsv: ",t.compactControl.value.toHsvString(),""),Mo(328),Ja("selected hsva: ",t.compactControl.value.toHsvaString(),""),Mo(330),Ja("selected cmyk: ",t.compactControl.value.toCmykString(),""),Mo(331),_a("control",t.compactControl),Mo(356),Ja("selected hex: ",t.githubControl.value.toHexString(),""),Mo(358),Ja("selected hexa: ",t.githubControl.value.toHexString(!0),""),Mo(360),Ja("selected rgb: ",t.githubControl.value.toRgbString(),""),Mo(362),Ja("selected rgba: ",t.githubControl.value.toRgbaString(),""),Mo(364),Ja("selected hsl: ",t.githubControl.value.toHslString(),""),Mo(366),Ja("selected hsla: ",t.githubControl.value.toHslaString(),""),Mo(368),Ja("selected hsv: ",t.githubControl.value.toHsvString(),""),Mo(370),Ja("selected hsva: ",t.githubControl.value.toHsvaString(),""),Mo(372),Ja("selected cmyk: ",t.githubControl.value.toCmykString(),""),Mo(373),_a("control",t.githubControl),Mo(397),Ja("selected color: ",t.swatchesColor,""),Mo(399),_a("color",t.swatchesColor))},directives:[_b,sb,Rb,jb,zb],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:0 0}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:0}"]}),e})(),vv=(()=>{class e{}return e.ngModuleDef=ot({type:e,bootstrap:[bv]}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)},providers:[],imports:[[Md,Kb,Rg]]}),e})();(function(){if(xs)throw new Error("Cannot enable prod mode after platform setup.");Cs=!1})(),Od().bootstrapModule(vv).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"Eh/9":function(e,t,n){var r,s;s=null,window.PR_SHOULD_USE_CONTINUATION=!0,function(){function n(e,t,n,r){t&&(n(e={a:t,e}),r.push.apply(r,e.g))}function o(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r&&C.test(n.nodeValue)?e:t}return t===e?void 0:t}function i(e,t){var r,o={};!function(){for(var n=e.concat(t),i=[],a={},l=0,c=n.length;l=0;)o[h.charAt(d)]=u;a.hasOwnProperty(h=""+(u=u[1]))||(i.push(u),a[h]=s)}i.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),s=(e=[],["["]);(o="^"===r[0])&&s.push("^");for(var o=o?1:0,i=r.length;o122||(a<65||l>90||e.push([32|Math.max(65,l),32|Math.min(a,90)]),a<97||l>122||e.push([-33&Math.max(97,l),-33&Math.min(a,122)]))}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],i=[],o=0;ol[0]&&(l[1]+1>l[0]&&s.push("-"),s.push(n(l[1])));return s.push("]"),s.join("")}function s(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),s=t.length,a=[],l=0,c=0;l=2&&"["===e?t[l]=r(u):"\\"!==e&&(t[l]=u.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var o=0,i=!1,a=!1,l=0,c=e.length;l=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}if(v=c,c+=m.length,g){var w=m.indexOf(g=b[1]),_=w+g.length;b[2]&&(w=(_=m.length-b[2].length)-g.length),y=y.substring(5),n(a+v,m.substring(0,w),e,l),n(a+v+w,g,u(y,g),l),n(a+v+_,m.substring(_),e,l)}else l.push(a+v,y)}s.g=l}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,s,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,s,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,s,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,s]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,s,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,s,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,s])):t.push(["com",/^#[^\n\r]*/,s,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,s]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,s])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),s]),t.push(["pln",/^\s+/,s," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,s],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,s],["pln",/^[$_a-z][\w$@]*/i,s],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,s,"0123456789"],["pln",/^\\[\S\s]?/,s],["pun",RegExp(r),s]),i(t,n)}function l(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,c=l.match(i);c&&(t=l.substring(0,c.index),e.nodeValue=t,(l=l.substring(c.index+c[0].length))&&e.parentNode.insertBefore(a.createTextNode(l),e.nextSibling),s(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)s(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function s(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(s=t.parentNode){var s=e(s,1),o=t.nextSibling;s.appendChild(r);for(var i=o;i;i=o)o=i.nextSibling,s.appendChild(i)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;c.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],u=0;u=0;){var r=t[n];S.hasOwnProperty(r)?f.console&&console.warn("cannot override language handler %s",r):S[r]=e}}function u(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=x&&(g+=2)}}finally{w&&(w.style.display=v)}}catch(T){f.console&&console.log(T&&T.stack||T)}}var d,p,f=window,g=[d=[[p=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[d,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[m,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],b=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],w=[p,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],_=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,x=a({keywords:[g,y,d=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b,v,p=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};c(x,["default-code"]),c(i([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(i([["pln",/^\s+/,s," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,s,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'\/>]|\/(?=\s)))/],["pun",/^[\/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),c(i([],[["atv",/^[\S\s]+/]]),["uq.val"]),c(a({keywords:g,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),c(a({keywords:"null,true,false"}),["json"]),c(a({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),c(a({keywords:m,cStyleComments:!0}),["java"]),c(a({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(a({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(a({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(a({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),c(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(a({keywords:w,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),c(i([],[["str",/^[\S\s]+/]]),["regex"]);var k=f.PR={createSimpleLexer:i,registerLangHandler:c,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:f.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="

"+e+"
",r=r.firstChild,n&&l(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:f.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],i=[],a=0;a{throw e})}const a={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}u.prototype=Object.create(Error.prototype);const h=u;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:o,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++ae.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let i=this;r(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==a&&(r((i=Object.create(t)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:function(){})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function w(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}w.prototype=Object.create(Error.prototype);const _=w;class C extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends g{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new x(this)}lift(e){const t=new k(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;snew k(e,t),e})();class k extends S{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function E(e){return e&&"function"==typeof e.schedule}class A extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const T=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=P(),M=e=>t=>{const n=e[I]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},N=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function V(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return N(e);if(D(e))return T(e);if(V(e))return O(e);if(e&&"function"==typeof e[I])return M(e);{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new A(e,n,r)){if(!s.closed)return R(t)(s)}class H extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function j(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B(e,t))}}class B{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new L(e,this.project,this.thisArg))}}class L extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new b(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:T(e))}class z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new K(e,this.project,this.concurrent))}}class K extends H{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Z(e){return e}function U(){return function(e){return e.lift(new G(e))}}class G{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Q(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Q extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const W=class extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new X(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return U()(this)}}.prototype,Y={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:W._subscribe},_isComplete:{value:W._isComplete,writable:!0},getSubject:{value:W.getSubject},connect:{value:W.connect},refCount:{value:W.refCount}};class X extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function J(){return new S}const $="__parameters__";function ee(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty($)?e[$]:Object.defineProperty(e,$,{value:[]})[$];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const te=ee("Inject",e=>({token:e})),ne=ee("Optional"),re=ee("Self"),se=ee("SkipSelf");var oe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function ae(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ue(e){const t=e[de];return t&&t.token===e?t:null}function he(e){return e&&e.hasOwnProperty(pe)?e[pe]:null}const de=ie({ngInjectableDef:ie}),pe=ie({ngInjectorDef:ie});function fe(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(fe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ge=ie({__forward_ref__:ie});function me(e){return e.__forward_ref__=me,e.toString=function(){return fe(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ge)&&t.__forward_ref__===me?t():e}const be="undefined"!=typeof globalThis&&globalThis,ve="undefined"!=typeof window&&window,we="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,_e="undefined"!=typeof global&&global,Ce=be||_e||ve||we;class xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=le({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Se=new xe("INJECTOR",-1),ke=new Object,Ee="ngTempTokenPath",Ae="ngTokenPath",Te=/\n/gm,Oe="\u0275",Pe="__source",Ie=ie({provide:String,useValue:ie});let Me,Ne=void 0;function De(e){const t=Ne;return Ne=e,t}function Ve(e){const t=Me;return Me=e,t}function Re(e,t=oe.Default){return(Me||function(e,t=oe.Default){if(void 0===Ne)throw new Error("inject() must be called from an injection context");return null===Ne?Fe(e,void 0,t):Ne.get(e,t&oe.Optional?null:void 0,t)})(e,t)}function Fe(e,t,n){const r=ue(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&oe.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${fe(e)}]`)}function He(e){const t=[];for(let n=0;nArray.isArray(e)?qe(e,t):t(e))}function ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ke(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ze=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Ue=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ge={},Qe=[],We=ie({ngComponentDef:ie}),Ye=ie({ngDirectiveDef:ie}),Xe=ie({ngPipeDef:ie}),Je=ie({ngModuleDef:ie}),$e=ie({ngLocaleIdDef:ie}),et=ie({__NG_ELEMENT_ID__:ie});let tt=0;function nt(e){const t=e.type,n=t.prototype,r={},s={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ue.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null};return s._=""+{toString:()=>{const n=e.directives,o=e.features,i=e.pipes;s.id+=tt++,s.inputs=it(e.inputs,r),s.outputs=it(e.outputs),o&&o.forEach(e=>e(s)),s.directiveDefs=n?()=>("function"==typeof n?n():n).map(rt):null,s.pipeDefs=i?()=>("function"==typeof i?i():i).map(st):null,t.hasOwnProperty(de)||(t[de]=le({token:t,factory:e.factory}))}},s}function rt(e){return ct(e)||function(e){return e[Ye]||null}(e)}function st(e){return function(e){return e[Xe]||null}(e)}function ot(e){return{type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}}function it(e,t){if(null==e)return Ge;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,t&&(t[s]=o)}return n}const at=nt;function lt(e){return{name:e.name,factory:e.factory,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ct(e){return e[We]||null}function ut(e,t){const n=e[Je]||null;if(!n&&!0===t)throw new Error(`Type ${fe(e)} does not have 'ngModuleDef' property.`);return n}const ht=0,dt=1,pt=2,ft=3,gt=4,mt=5,yt=6,bt=7,vt=8,wt=9,_t=10,Ct=11,xt=12,St=13,kt=14,Et=15,At=16,Tt=17,Ot=18,Pt=19,It=1,Mt=2,Nt=5,Dt=7,Vt=8,Rt=9;function Ft(e){return Array.isArray(e)&&"object"==typeof e[It]}function Ht(e){return Array.isArray(e)&&!0===e[It]}function jt(e){return 0!=(4&e.flags)}function Bt(e){return 1==(1&e.flags)}function Lt(e){return null!==e.template}function qt(e){return 0!=(512&e[pt])}const zt=8,Kt=8,Zt=9,Ut=-1;class Gt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Qt(e,t,n,r,s,o){const{onChanges:i,onInit:a,doCheck:l}=t;s>=0&&(!n.preOrderHooks||s===n.preOrderHooks.length)&&(i||a||l)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),o>=0&&(!n.preOrderCheckHooks||o===n.preOrderCheckHooks.length)&&(i||l)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,a),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}function Wt(e,t){if(e.firstTemplatePass)for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[i]<0&&(e[Ot]+=65536),(o>10>16&&(3&e[pt])===t&&(e[pt]+=1024,o.call(i)):o.call(i)}let $t=null;const en=new Map;let tn=null;const nn=1,rn=0;function sn(e,t){return tn&&e===tn||(tn=e,t&&($t=en.get(e)||null),$t=$t||{classesBitMask:rn,classesIndex:nn,stylesBitMask:rn,stylesIndex:nn}),$t}function on(){$t=null,tn=null}const an="__ngContext__";function ln(e){for(;Array.isArray(e);)e=e[ht];return e}function cn(e,t){return ln(t[e+Pt])}function un(e,t){return ln(t[e.index])}function hn(e,t){const n=e.index;return-1==n?null:ln(t[n])}function dn(e,t){return t[dt].data[e+Pt]}function pn(e,t){return e[t+Pt]}function fn(e,t){const n=t[e];return Ft(n)?n:n[ht]}function gn(e){const t=function(e){return e[an]}(e);return t?Array.isArray(t)?t:t.lView:null}function mn(e){e[Ot]=0}let yn,bn,vn=null;function wn(e){vn=e}function _n(){return bn}function Cn(){return En}const xn=1;let Sn,kn,En,An=xn,Tn=0,On=0;function Pn(e=null){Jn!==e&&(er(null==e?-1:e),An=null==e?0:xn,Tn=0,On=0)}function In(){An+=1+On,Tn=0,On=0}function Mn(e){Tn+=e,On=Math.max(On,Tn)}function Nn(e){Bn=e}function Dn(){return Sn}function Vn(e,t){Sn=e,kn=t}function Rn(e,t){Sn=e,En=t}function Fn(){return kn}function Hn(){kn=!1}function jn(e=En){return 4==(4&e[pt])}let Bn=null,Ln=!1;function qn(){return Ln}function zn(e){Ln=e}let Kn=-1;function Zn(){return Kn}function Un(e){Kn=e}let Gn=0;function Qn(){return Gn}function Wn(e){Gn=e}function Yn(e,t){const n=En;return e&&(Kn=e[dt].bindingStartIndex),Sn=t,kn=!0,En=Bn=e,n}function Xn(e,t){const n=En[dt];if(jn(En))En[pt]&=-5;else try{mn(En),t&&Xt(En,n.viewHooks,n.viewCheckHooks,Ln,2,void 0)}finally{En[pt]&=-73,En[bt]=n.bindingStartIndex}Yn(e,null)}let Jn=-1;function $n(){return Jn}function er(e){Jn=e,on()}let tr,nr=null;function rr(){nr="http://www.w3.org/2000/svg"}function sr(){nr=null}function or(e){tr=e}function ir(){return tr}function ar(e,t){return!(e!=e&&t!=t)&&e!==t}function lr(e){return"string"==typeof e?e:null==e?"":""+e}function cr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():lr(e)}const ur=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ce))(),hr="\ufffd";function dr(e){return e instanceof Function?e():e}const pr="--MAP--",fr=0;function gr(e,t){t===fr?e[2]>fr&&function(e){yr(e,2|mr(e))}(e):e[2]=t}function mr(e){return e[1]}function yr(e,t){e[1]=t}function br(e,t){return e[t+2]}function vr(e,t){return 1&e[t+0]}function wr(e,t){return(1&vr(e,t))>0}function _r(e,t){return e[t+0]>>1}function Cr(e,t,n){const r=vr(e,t);e[t+0]=r|n<<1}function xr(e,t){return e[t+1]}function Sr(e,t,n){return e[t+3+n]}function kr(e,t){return!(!e||t!==e[2])}function Er(e){return(1&mr(e))>0}function Ar(e){return(2&mr(e))>0}function Tr(e){return 6+e[4]}function Or(e,t){let n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),ar(n,r)}function Pr(e){return null!=e&&""!==e}function Ir(e,t,n=" "){return e+(t.length&&e.length?n:"")+t}function Mr(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Nr(e){return Dr(e)?e[0]:e}function Dr(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function Vr(e){const t=Nr(e);return t&&t[0]||""}function Rr(e){return 0!=(8&e.flags)}function Fr(e){return 0!=(16&e.flags)}function Hr(e,t){return e[t+0]}function jr(e,t,n){e[t+1]=n}function Br(e,t){return e[t+1]}const Lr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function qr(e){return!!e.listen}const zr={createRenderer:(e,t)=>document},Kr="@";function Zr(e){return e[0]===Kr}function Ur(e){return e!==Ut}function Gr(e){return 32767&e}function Qr(e){return e>>16}function Wr(e,t){let n=Qr(e),r=t;for(;n>0;)r=r[At],n--;return r}function Yr(e){const t=e[ft];return Ht(t)?t[ft]:t}function Xr(e){let t=e[yt];for(;null!==t&&2===t.type;)t=(e=e[At])[yt];return e}let Jr=!0;function $r(e){const t=Jr;return Jr=e,t}const es=255;let ts=0;function ns(e,t){const n=ss(e,t);if(-1!==n)return n;const r=t[dt];r.firstTemplatePass&&(e.injectorIndex=t.length,rs(r.data,e),rs(t,null),rs(r.blueprint,null));const s=os(e,t),o=Gr(s),i=Wr(s,t),a=e.injectorIndex;if(Ur(s)){const e=i[dt].data;for(let n=0;n<8;n++)t[a+n]=i[o+n]|e[o+n]}return t[a+Kt]=s,a}function rs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ss(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Kt]?-1:e.injectorIndex}function os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[yt],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[At])?t[yt]:null,r++;return n?n.injectorIndex|r<<16:-1}function is(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[et]:n.charCodeAt(0)||0;null==r&&(r=n[et]=ts++);const s=r&es,o=1<0?t&es:t}(n);if("function"==typeof s){const o=Dn(),i=Cn();Rn(e,t);try{const e=s();if(null!=e||r&oe.Optional)return e;throw new Error(`No provider for ${cr(n)}!`)}finally{Rn(o,i)}}else if("number"==typeof s){if(-1===s)return new fs(e,t);let o=null,i=ss(e,t),a=Ut,l=r&oe.Host?Xr(t)[yt]:null;for((-1===i||r&oe.SkipSelf)&&(a=-1===i?os(e,t):t[i+Kt],ps(r,!1)?(o=t[dt],i=Gr(a),t=Wr(a,t)):i=-1);-1!==i;){a=t[i+Kt];const e=t[dt];if(ds(s,i,e.data)){const e=cs(i,t,n,o,r,l);if(e!==ls)return e}ps(r,t[dt].data[i+zt]===l)&&ds(s,i,t)?(o=e,i=Gr(a),t=Wr(a,t)):i=-1}}}if(r&oe.Optional&&void 0===s&&(s=null),0==(r&(oe.Self|oe.Host))){const e=t[_t],o=Ve(void 0);try{return e?e.get(n,s,r&oe.Optional):Fe(n,s,r&oe.Optional)}finally{Ve(o)}}if(r&oe.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${cr(n)}]`)}const ls={};function cs(e,t,n,r,s,o){const i=t[dt],a=i.data[e+zt],l=us(a,i,n,null==r?Bt(a)&&Jr:r!=i&&3===a.type,s&oe.Host&&o===a);return null!==l?hs(i.data,t,l,a):ls}function us(e,t,n,r,s){const o=e.providerIndexes,i=t.data,a=65535&o,l=e.directiveStart,c=o>>16,u=s?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&e.type===n)return h}if(s){const e=i[l];if(e&&Lt(e)&&e.type===n)return l}return null}function hs(e,t,n,r){let s=t[n];if(null!==(o=s)&&"object"==typeof o&&Object.getPrototypeOf(o)==Gt.prototype){const o=s;if(o.resolving)throw new Error(`Circular dep for ${cr(e[n])}`);const i=$r(o.canSeeViewProviders);let a;o.resolving=!0,o.injectImpl&&(a=Ve(o.injectImpl));const l=Dn(),c=Cn();Rn(r,t);try{s=t[n]=o.factory(void 0,e,t,r)}finally{o.injectImpl&&Ve(a),$r(i),o.resolving=!1,Rn(l,c)}}var o;return s}function ds(e,t,n){const r=64&e,s=32&e;let o;return!!((o=128&e?r?s?n[t+7]:n[t+6]:s?n[t+5]:n[t+4]:r?s?n[t+3]:n[t+2]:s?n[t+1]:n[t])&1<',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0Ts(e.trim())).join(", ")),this.buf.push(" ",t,'="',zs(i),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Vs.hasOwnProperty(t)&&!Is.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(zs(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ls=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qs=/([^\#-~ |!])/g;function zs(e){return e.replace(/&/g,"&").replace(Ls,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(qs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Ks;function Zs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Us=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Gs{}const Qs=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ws=/^url\(([^)]+)\)$/;function Ys(e,t){e[an]=t}function Xs(e){throw new Error(`Multiple components match node with tagname ${e.tagName}`)}function Js(){throw new Error("Cannot mix multi providers and regular providers")}const $s="ng-template";function eo(e,t){const n=e.length,r=e.indexOf(t),s=r+t.length;return!(-1===r||r>0&&" "!==e[r-1]||so?"":s[u+1];const t=8&r?e:null;if(t&&!eo(t,c)||2&r&&c!==e){if(ro(r))return!1;i=!0}}}}else{if(!i&&!ro(r)&&!ro(l))return!1;if(i&&ro(l))continue;i=!1,r=l|1&r}}return ro(r)||i}function ro(e){return 0==(1&e)}function so(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;nrn}(r,o))?(function(e,t,n,r,s,o,i){const a=!0===(l=s)?-1:!1===l?0:l;var l;const c=wo,u=(a&_r(e,3))>0?1:0;let h=Tr(e);for(;h{const s=t.style;r?(r=r.toString(),e&&qr(e)?e.setStyle(t,n,r,Lr.DashCase):s&&s.setProperty(n,r)):e&&qr(e)?e.removeStyle(t,n,Lr.DashCase):s&&s.removeProperty(n)},Co=(e,t,n,r)=>{if(""!==n){const s=t.classList;r?e&&qr(e)?e.addClass(t,n):s&&s.add(n):e&&qr(e)?e.removeClass(t,n):s&&s.remove(n)}};function xo(e,t,n,r){const s=Nr(n);if(s)for(let o=1;o{let c=!1;if(xr(e,3)){let u=!0;const h=!a;h&&-2&i&&(u=!1,c=!0),u&&(c=function e(t,n,r,s,o,i,a,l,c,u){let h=!1;if(c=To.length&&To.push(1),To[e]}(c);for(;fl,y=!m&&g===l,b=Br(p,f),v=Pr(b);let w=e(t,n,r,s,o,i,m?a:Eo(a,v,y),m?l:g,c+1,u);if(m){h||(h=w);break}if(!w&&Ao(a,y)){const e=y&&!v,t=e?u:b,s=e?d:null;o(n,r,g,i?i(g,t,3):t,s),w=!0}h=w&&y,f+=2}if(To[c]=f,1===p.length||!l)return e(t,n,r,s,o,i,a,l,c+1,u)}return h}(e,t,n,r,s,o,i,a||null,0,l||null)),h&&function(){for(let e=0;e0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}const To=[];function Oo(e,t,n,r){for(let s=1;ss){const e=0===t,i=n.data;for(let t=s;t=o.length)&&(o=function(e,t,n){const r=n.initialInputs||(n.initialInputs=[]);for(let i=r.length;i<=e;i++)r.push(null);const s=n.attrs;let o=0;for(;oPromise.resolve(null))();function mi(e){return void 0===e.inputs&&(e.inputs=Go(e,0)),e.inputs}function yi(e){return e[vt]||(e[vt]=[])}function bi(e){return e[dt].cleanup||(e[dt].cleanup=[])}function vi(e,t){const n=e[_t],r=n?n.get(_s,null):null;r&&r.handleError(t)}function wi(e,t,n){const r=e[dt];for(let s=0;s0&&(e[n-1][gt]=r[gt]);const o=Ke(e,Rt+t);Si(r,!1);const i=o[mt];null!==i&&i.detachView(o[dt]),r[ft]=null,r[gt]=null,r[pt]&=-129}return r}function Ai(e){if(!(256&e[pt])){const t=e[xt];qr(t)&&t.destroyNode&&Vi(t,2,e,null,null),function(e){let t=e[kt];if(!t)return Oi(e);for(;t;){let n=null;if(Ft(t))n=t[kt];else{const e=t[Rt];e&&(n=e)}if(!n){for(;t&&!t[gt]&&t!==e;)Oi(t),t=Ti(t,e);Oi(t||e),n=t&&t[gt]}t=n}}(e)}}function Ti(e,t){let n;return Ft(e)&&(n=e[yt])&&2===n.type?_i(n,e):e[ft]===t?null:e[ft]}function Oi(e){if(Ft(e)&&!(256&e[pt])){e[pt]&=-129,e[pt]|=256,function(e){const t=e[dt];let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[vt]=null}}(e);const t=e[yt];t&&3===t.type&&qr(e[xt])&&e[xt].destroy();const n=e[Tt];if(null!==n&&Ht(e[ft])){n!==e[ft]&&ki(n,e);const t=e[mt];null!==t&&t.detachView(e[dt])}}}function Pi(e,t,n,r){qr(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Ii(e,t,n,r){null!==r?Pi(e,t,n,r):function(e,t,n){qr(e)?e.appendChild(t,n):t.appendChild(n)}(e,t,n)}function Mi(e,t){return qr(e)?e.parentNode(t):t.parentNode}function Ni(e,t,n){const r=function(e,t){if(qt(t))return Mi(t[xt],un(e,t));const n=function(e){for(;null!=e.parent&&(4===e.parent.type||5===e.parent.type);)e=e.parent;return e}(e),r=n.parent;if(null==r){const e=t[yt];return 2===e.type?Ci(e,t):function(e){const t=e[yt];return t&&3===t.type?un(t,Yr(e)):null}(t)}{const e=n&&5===n.type;if(e&&2&n.flags)return un(n,t).parentNode;if(1&r.flags&&!e){const e=t[dt].data,n=e[e[r.index].directiveStart].encapsulation;if(n!==Ue.ShadowDom&&n!==Ue.Native)return null}return un(r,t)}}(t,n);if(null!=r){const s=n[xt],o=function(e,t){if(2===e.type){const n=_i(e,t);return Di(n.indexOf(t,Rt)-Rt,n)}return 4===e.type||5===e.type?un(e,t):null}(t.parent||n[yt],n);if(Array.isArray(e))for(let t of e)Ii(s,r,t,o);else Ii(s,r,e,o)}}function Di(e,t){const n=Rt+e+1;if(n-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ai(this._lView)}onDestroy(e){var t,n;n=e,yi(t=this._lView).push(n),t[dt].firstTemplatePass&&bi(t).push(t[vt].length-1,null)}markForCheck(){li(this._lView)}detach(){this._lView[pt]&=-129}reattach(){this._lView[pt]|=128}detectChanges(){ui(this._lView,this.context)}checkNoChanges(){!function(e,t){zn(!0);try{ui(e,t)}finally{zn(!1)}}(this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){this._appRef=null,function(e){Vi(e[xt],1,e,null,null)}(this._lView)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}_lookUpContext(){return this._context=Yr(this._lView)[this._componentIndex]}}class Hi extends Fi{constructor(e){super(e,null,-1),this._view=e}detectChanges(){hi(this._view)}checkNoChanges(){!function(e){zn(!0);try{hi(e)}finally{zn(!1)}}(this._view)}get context(){return null}}let ji,Bi,Li;function qi(e,t,n){return ji||(ji=class extends e{}),new ji(un(t,n))}function zi(e,t,n,r){return Bi||(Bi=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=function(e,t,n,r){const s=Fn(),o=Dn();Vn(null,!0);const i=Ro(n,e,t,16,null,null);return i[At]=n,Ho(e,null,-1,i),e.firstTemplatePass&&(e.node.injectorIndex=r),Vn(o,s),i}(t,e,this._declarationView,this._declarationTContainer.injectorIndex);n[Tt]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[mt];null!==r&&(n[mt]=r.createEmbeddedView(t)),jo(n,t,e);const s=new Fi(n,e,-1);return s._tViewNode=n[yt],s}}),0===n.type?new Bi(r,n,qi(t,n,r)):null}function Ki(e,t,n,r){let s;Li||(Li=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return qi(t,this._hostTNode,this._hostView)}get injector(){return new fs(this._hostTNode,this._hostView)}get parentInjector(){const e=os(this._hostTNode,this._hostView),t=Wr(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.injectorIndex;)t=t.parent;return t}let r=Qr(e),s=t,o=t[yt];for(;r>1;)o=(s=s[At])[yt],r--;return o}(e,this._hostView,this._hostTNode);return Ur(e)&&null!=n?new fs(n,t):new fs(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[Vt]&&this._lContainer[Vt][e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const o=n||this.parentInjector;!s&&null==e.ngModule&&o&&(s=o.get(Be,null));const i=e.create(o,r,void 0,s);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");this.allocateContainerIfNeeded();const n=e._lView,r=this._adjustIndex(t);return Ht(n[ft])?this.move(e,r):(function(e,t,n){const r=Rt+n,s=t.length;n>0&&(t[r-1][gt]=e),n{class e{}return e.__NG_ELEMENT_ID__=()=>Ui(),e})();const Ui=function(e=!1){return function(e,t,n){if(Bt(e)&&!n){const n=e.directiveStart,r=fn(e.index,t);return new Fi(r,null,n)}if(3===e.type||0===e.type||4===e.type){const e=Xr(t);return new Fi(e,e[wt],-1)}return null}(Dn(),Cn(),e)},Gi=new xe("The presence of this token marks an injector as being the root injector."),Qi={},Wi={},Yi=[];let Xi=void 0;function Ji(){return void 0===Xi&&(Xi=new je),Xi}function $i(e,t=null,n=null,r){return t=t||Ji(),new ea(e,n,t,r)}class ea{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];qe([e],e=>this.processInjectorType(e,[],s)),t&&qe(t,n=>this.processProvider(n,e,t)),this.records.set(Se,ra(void 0,this)),this.isRootInjector=this.records.has(Gi),this.injectorDefTypes.forEach(e=>this.get(e)),this.source=r||("object"==typeof e?null:fe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ke,n=oe.Default){this.assertNotDestroyed();const r=De(this);try{if(!(n&oe.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof xe)&&ue(e);n&&this.injectableDefInScope(n)&&(t=ra(ta(e),Qi),this.records.set(e,t))}if(void 0!==t)return this.hydrate(e,t)}return(n&oe.Self?Ji():this.parent).get(e,n&oe.Optional?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ee]=o[Ee]||[]).unshift(fe(e)),r)throw o;return function(e,t,n,r){const s=e[Ee];throw t[Pe]&&s.unshift(t[Pe]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Oe?e.substr(2):e;let s=fe(t);if(t instanceof Array)s=t.map(fe).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):fe(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Te,"\n ")}`}("\n"+e.message,s,n,r),e[Ae]=s,e[Ee]=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{De(r)}var s}toString(){const e=[];return this.records.forEach((t,n)=>e.push(fe(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ye(e)))return!1;let r=he(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=he(s)),null==r)return!1;if(this.injectorDefTypes.add(o),this.records.set(o,ra(r.factory,Qi)),null!=r.imports&&!i){let e;n.push(o);try{qe(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Yi))}}const a=r.providers;if(null!=a&&!i){const t=e;qe(a,e=>this.processProvider(e,t,a))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=oa(e=ye(e))?e:ye(e&&e.provide);const s=function(e,t,n){let r=na(e,t,n);return sa(e)?ra(void 0,e.useValue):ra(r,Qi)}(e,t,n);if(oa(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&Js()}else{let t=this.records.get(r);t?void 0===t.multi&&Js():((t=ra(void 0,Qi,!0)).factory=()=>He(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){var n;return t.value===Wi?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(fe(e)):t.value===Qi&&(t.value=Wi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))}}function ta(e){const t=ue(e);if(null!==t)return t.factory;const n=he(e);if(null!==n)return n.factory;if(e instanceof xe)throw new Error(`Token ${fe(e)} is missing an ngInjectableDef definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=new Array(t).fill("?");throw new Error(`Can't resolve all parameters for ${fe(e)}: (${n.join(", ")}).`)}const n=(r=e)&&r[de]?(console.warn(`DEPRECATED: DI is instantiating a token "${r.name}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${r.name}" class.`),r[de]):null;var r;return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function na(e,t,n){let r=void 0;if(oa(e))return ta(ye(e));if(sa(e))r=()=>ye(e.useValue);else if((s=e)&&s.useExisting)r=()=>Re(ye(e.useExisting));else if(e&&e.useFactory)r=()=>e.useFactory(...He(e.deps||[]));else{const s=ye(e&&(e.useClass||e.provide));if(s||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${fe(e)}'`+r)}(t,n,e),!e.deps)return ta(s);r=()=>new s(...He(e.deps))}var s;return r}function ra(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sa(e){return null!==e&&"object"==typeof e&&Ie in e}function oa(e){return"function"==typeof e}const ia=function(e,t,n){return $i({name:n},t,e,n)};let aa=(()=>{class e{static create(e,t){return Array.isArray(e)?ia(e,t,""):ia(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new je,e.ngInjectableDef=le({token:e,providedIn:"any",factory:()=>Re(Se)}),e.__NG_ELEMENT_ID__=-1,e})(),la=new Map;const ca=new Set;function ua(e){return"string"==typeof e?e:e.text()}function ha(e){const t=Cn(),n=t[dt];n.firstTemplatePass&&(function(e,t,n){const r=e.expandoInstructions,s=r.length;s>=2&&r[s-2]===t.hostBindings?r[s-1]=r[s-1]+n:r.push(t.hostBindings,n)}(n,vn,e),function(e,t,n){for(let r=0;r0&&(r=n?Ir(e,((s=t)&&"string"!=typeof s&&(s=Object.keys(s).join(" ")),s||"")):Ir(e,function(e){let t="";if(e){const n=Object.keys(e);for(let r=0;r0}function La(e,t,n,r){const s=Cn(),o=s[dt],i=s[e+Pt]=Vo(t),a=s[xt],l=Fo(o,s[yt],e,3,t,n||null);if(null!=n){const e=function(e,t){const n=Cn()[xt],r=qr(n);let s=0;for(;s1&&(e.classes||(e.classes=o),Va(e.classes,Po(o,!0))),s&&s.length>1&&(e.styles||(e.styles=s),Va(e.styles,Po(s,!1)))}(l,n,e)}if(function(e,t,n){xo(e,t,n.classes,!0),xo(e,t,n.styles,!1)}(a,i,l),Ni(i,l,s),0===yn&&Ys(i,s),yn++,o.firstTemplatePass){Wo(o,s,l,r||null);const e=mi(l);e&&e.hasOwnProperty("class")&&(l.flags|=8),e&&e.hasOwnProperty("style")&&(l.flags|=16),null!==o.queries&&o.queries.elementStart(o,l)}zo(o,s,l),function(e,t,n){if(jt(t)){const r=t.directiveEnd;for(let s=t.directiveStart;sr(ln(e[i.index])).target:i.index;if(qr(h)){let n=null;if(!r&&function(e){return e.directiveEnd>e.directiveStart}(i)&&(n=function(e,t,n){const r=e[dt].cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof o&&(s+=2)}return null}(o,e,i.index)),null!==n)t.__ngNextListenerFn__=n.__ngNextListenerFn__,n.__ngNextListenerFn__=t,c=!1;else{t=Wa(i,o,t,!1);const n=h.listen(a.name||u,e,t);d.push(t,n),l&&l.push(e,f,p,p+1)}}else t=Wa(i,o,t,!0),u.addEventListener(e,t,n),d.push(t),l&&l.push(e,f,p,n)}void 0===i.outputs&&(i.outputs=Go(i,1));const u=i.outputs;let h;if(c&&u&&(h=u[e])){const n=h.length;if(n){const r=yi(o);for(let s=0;s0;)t=t[At],e--;return t}(e,Bn))[wt]}(e)}function Xa(e,t){const n=Cn(),r=n[e+Pt]=function(e,t){return qr(t)?t.createText(lr(e)):t.createTextNode(lr(e))}(t,n[xt]),s=Fo(n[dt],n[yt],e,3,null,null);Hn(),Ni(r,s,n)}function Ja(e,t,n){const r=$n(),s=Cn(),o=function(e,t,n,r){const s=wa(e,e[bt]++,n);return fi(e,t,r),s?t+lr(n)+r:So}(s,e,t,n);return o!==So&&function(e,t,n){const r=cn(t,e),s=e[xt];qr(s)?s.setValue(r,n):r.textContent=n}(s,r,o),Ja}function $a(e,t){const n=gn(e)[dt],r=n.data.length-1;Qt(r,t,n,-1,-1,-1),Wt(n,{directiveStart:r,directiveEnd:r+1})}class el{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function tl(){return nl.ngInherit=!0,nl}function nl(e){e.type.prototype.ngOnChanges&&(e.setInput=rl,e.onChanges=function(){const e=ol(this),t=e&&e.current;if(t){const n=e.previous;if(n===Ge)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function rl(e,t,n,r){const s=ol(e)||function(e,t){return e[sl]={previous:Ge,current:null}}(e),o=s.current||(s.current={}),i=s.previous,a=this.declaredInputs[n],l=i[a];o[a]=new el(l&&l.currentValue,t,i===Ge),e[r]=t}const sl="__ngSimpleChanges__";function ol(e){return e[sl]||null}function il(e){let t=Object.getPrototypeOf(e.type.prototype).constructor;for(;t;){let n=void 0;if(Lt(e))n=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");n=t.ngDirectiveDef}const r=t.ngBaseDef;if(r||n){const t=e;t.inputs=al(e.inputs),t.declaredInputs=al(e.declaredInputs),t.outputs=al(e.outputs)}if(r){const t=r.viewQuery,n=r.contentQueries,s=r.hostBindings;s&&ul(e,s),t&&ll(e,t),n&&cl(e,n),ae(e.inputs,r.inputs),ae(e.declaredInputs,r.declaredInputs),ae(e.outputs,r.outputs)}if(n){const t=n.hostBindings;t&&ul(e,t);const r=n.viewQuery,s=n.contentQueries;r&&ll(e,r),s&&cl(e,s),ae(e.inputs,n.inputs),ae(e.declaredInputs,n.declaredInputs),ae(e.outputs,n.outputs),e.afterContentChecked=e.afterContentChecked||n.afterContentChecked,e.afterContentInit=e.afterContentInit||n.afterContentInit,e.afterViewChecked=e.afterViewChecked||n.afterViewChecked,e.afterViewInit=e.afterViewInit||n.afterViewInit,e.doCheck=e.doCheck||n.doCheck,e.onDestroy=e.onDestroy||n.onDestroy,e.onInit=e.onInit||n.onInit;const o=n.features;if(o)for(const n of o)n&&n.ngInherit&&n(e)}else{const n=t.prototype;n&&(e.afterContentChecked=e.afterContentChecked||n.ngAfterContentChecked,e.afterContentInit=e.afterContentInit||n.ngAfterContentInit,e.afterViewChecked=e.afterViewChecked||n.ngAfterViewChecked,e.afterViewInit=e.afterViewInit||n.ngAfterViewInit,e.doCheck=e.doCheck||n.ngDoCheck,e.onDestroy=e.onDestroy||n.ngOnDestroy,e.onInit=e.onInit||n.ngOnInit,n.ngOnChanges&&tl()(e))}t=Object.getPrototypeOf(t)}}function al(e){return e===Ge?{}:e===Qe?[]:e}function ll(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function cl(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,s)=>{t(e,r,s),n(e,r,s)}:t}function ul(e,t){const n=e.hostBindings;t!==n&&(e.hostBindings=n?(e,r,s)=>{Mn(1);try{t(e,r,s)}finally{Mn(-1)}n(e,r,s)}:t)}function hl(e,t,n,r,s){if(e=ye(e),Array.isArray(e))for(let o=0;o>16;if(e.useClass||oa(e)){const n=(e.useClass||e).prototype.ngOnDestroy;n&&(i.destroyHooks||(i.destroyHooks=[])).push(t.length,n)}if(oa(e)||!e.multi){const e=new Gt(l,s,Aa),r=pl(a,t,s?u:u+d,h);-1==r?(is(ns(c,o),i,a),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(e),o.push(e)):(n[r]=e,o[r]=e)}else{const e=pl(a,t,u+d,h),p=pl(a,t,u,u+d),f=e>=0&&n[e],g=p>=0&&n[p];if(s&&!g||!s&&!f){is(ns(c,o),i,a);const e=function(e,t,n,r,s){const o=new Gt(e,n,Aa);return o.multi=[],o.index=t,o.componentProviders=0,dl(o,s,r&&!n),o}(s?gl:fl,n.length,s,r,l);!s&&g&&(n[p].providerFactory=e),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(e),o.push(e)}else dl(n[s?p:e],l,!s&&r);!s&&r&&g&&n[p].componentProviders++}}}function dl(e,t,n){e.multi.push(t),n&&e.componentProviders++}function pl(e,t,n,r){for(let s=n;s{n.providersResolver=(n,r)=>(function(e,t,n){const r=Cn()[dt];if(r.firstTemplatePass){const s=Lt(e);hl(n,r.data,r.blueprint,s,!0),hl(t,r.data,r.blueprint,s,!1)}})(n,r?r(e):e,t)}}class bl{}class vl{}const wl="ngComponent";class _l{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${fe(e)}. Did you add it to @NgModule.entryComponents?`);return t[wl]=e,t}(e)}}let Cl=(()=>{class e{}return e.NULL=new _l,e})(),xl=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Sl(e),e})();const Sl=function(e){return qi(e,Dn(),Cn())};class kl{}const El=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Al=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Tl(),e})();const Tl=function(){const e=Cn(),t=fn(Dn().index,e);return function(n){const r=(Ft(t)?t:e)[xt];if(qr(r))return r;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}()};class Ol{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Pl=new Ol("8.2.5");class Il{constructor(){}supports(e){return ma(e)}create(e){return new Nl(e)}}const Ml=(e,t)=>t;class Nl{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ml}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const o=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&fa(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,e,r,t)),fa(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),o=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(fa(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(fa(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new Dl(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Rl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Dl{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Vl{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&fa(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Rl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Vl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fl(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Bl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){fa(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Bl{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ll=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=le({token:e,providedIn:"root",factory:()=>new e([new Il])}),e})(),ql=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=le({token:e,providedIn:"root",factory:()=>new e([new Hl])}),e})();const zl=[new Hl],Kl=new Ll([new Il]),Zl=new ql(zl);let Ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Gl(e,xl),e})();const Gl=function(e,t){return zi(e,t,Dn(),Cn())};let Ql=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Wl(e,xl),e})();const Wl=function(e,t){return Ki(e,t,Dn(),Cn())},Yl={};function Xl(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Jl=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ur});class $l extends vl{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors[0][0]||"div",this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Xl(this.componentDef.inputs)}get outputs(){return Xl(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const o=e.get(n,Yl,s);return o!==Yl||r===Yl?o:t.get(n,r,s)}}}(e,r.injector):e,o=s.get(kl,zr),i=s.get(Gs,null);sr();const a=n?function(e,t){const n=o.createRenderer(null,null);return"string"==typeof t?qr(n)?n.selectRootElement(t):n.querySelector(t):t}(0,n):Vo(this.selector,o.createRenderer(null,this.componentDef)),l=this.componentDef.onPush?576:528,c="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),u={components:[],scheduler:ur,clean:gi,playerHandler:null,flags:0},h=o.createRenderer(a,this.componentDef);n&&a&&(qr(h)?h.setAttribute(a,"ng-version",Pl.full):a.setAttribute("ng-version",Pl.full));const d=Ro(null,Zo(-1,null,1,0,null,null,null,null),u,l,null,null,o,h,i,s),p=Yn(d,null);let f,g,m=!1;try{const e=function(e,t,n,r,s,o){kn=!1,Sn=null,yn=0,bn=!0,or(null),on(),en.clear();const i=n[dt];n[0+Pt]=e;const a=Fo(i,null,0,3,null,null),l=Ro(n,Ko(t),null,t.onPush?64:16,n[Pt],a,r,s,o);return i.firstTemplatePass&&(is(ns(a,n),i,t.type),a.flags=1,ni(a,n.length,1),ei(a)),n[Pt]=l}(a,this.componentDef,d,o,h);g=dn(0,d),t&&(g.projection=t.map(e=>Array.from(e))),f=function(e,t,n,r,s){const o=n[dt],i=function(e,t,n){const r=Dn();e.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),Xo(e,r,1),ri(e,t,n,n.factory));const s=hs(e.data,t,t.length-1,r);return $o(t,r,s),s}(o,n,t);r.components.push(i),e[wt]=i,s&&s.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const a=Dn();return o.firstTemplatePass&&t.hostBindings&&(Pn(a.index-Pt),Yo(t,o.expandoInstructions,i,a,o.firstTemplatePass),Pn(null)),i}(e,this.componentDef,d,u,[$a]),ai(d,e),No(d),m=!0}finally{Xn(p,m)}const y=new ec(this.componentType,f,qi(xl,g,d),d,g);return n&&!c||(y.hostView._tViewNode.child=g),y}}class ec extends bl{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new Hi(r),this.hostView._tViewNode=Ho(r[dt],null,-1,r),this.componentType=e}get injector(){return new fs(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const tc={},nc=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),rc=void 0;var sc=["en",[["a","p"],["AM","PM"],rc],[["AM","PM"],rc,rc],[["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"]],rc,[["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"]],rc,[["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}",rc,"{1} 'at' {0}",rc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const oc="en-US";let ic=oc;function ac(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(ic=e.toLowerCase().replace(/_/g,"-"))}const lc=new Map,cc={provide:Cl,useClass:class extends Cl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ct(e);return new $l(t,this.ngModule)}},deps:[Be]};class uc extends Be{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[];const n=ut(e),r=e[$e]||null;r&&ac(r),this._bootstrapComponents=dr(n.bootstrap),this._r3Injector=$i(e,t,[{provide:Be,useValue:this},cc],fe(e)),this.instance=this.get(e)}get(e,t=aa.THROW_IF_NOT_FOUND,n=oe.Default){return e===aa||e===Be||e===Se?this:this._r3Injector.get(e,t,n)}get componentFactoryResolver(){return this.get(Cl)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class hc extends Le{constructor(e){super(),this.moduleType=e,null!==ut(e)&&function e(t){if(null!==t.ngModuleDef.id){const e=t.ngModuleDef.id;(function(e,n,r){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${fe(n)} vs ${fe(n.name)}`)})(e,lc.get(e)),lc.set(e,t)}let n=t.ngModuleDef.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new uc(this.moduleType,e)}}function dc(e,t,n,r){const s=Cn(),o=Zn()+e;return wa(s,o,n)?ba(s,o+1,r?t.call(r,n):t(n)):va(s,o+1)}function pc(e,t,n,r,s){const o=Zn()+e,i=Cn();return function(e,t,n,r){const s=wa(e,t,n);return wa(e,t+1,r)||s}(i,o,n,r)?ba(i,o+2,s?t.call(s,n,r):t(n,r)):va(i,o+2)}function fc(e,t){const n=Cn()[dt];let r;const s=e+Pt;n.firstTemplatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const o=r.factory();return function(e,t){const n=Cn(),r=n[dt],s=e+Pt;s>=r.data.length&&(r.data[s]=null,r.blueprint[s]=null),n[s]=t}(e,o),o}function gc(e,t,n){const r=Ea(e);return bc(yc(e)?dc(t,r.transform,n,r):r.transform(n))}function mc(e,t,n,r){const s=Ea(e);return bc(yc(e)?pc(t,s.transform,n,r,s):s.transform(n,r))}function yc(e){return Cn()[dt].data[e+Pt].pure}function bc(e){if(ga.isWrapped(e)){e=ga.unwrap(e);const t=Cn();t[t[bt]]=So}return e}class vc extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return e instanceof d&&e.add(i),i}}function wc(){return this._results[pa()]()}class _c{constructor(){this.dirty=!0,this._results=[],this.changes=new vc,this.length=0;const e=pa(),t=_c.prototype;t[e]||(t[e]=wc)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r0)r.push(i[n/2]);else{const i=o[n+1],a=t[-s];for(let t=Rt;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Vc,8))},providedIn:null}),e})();const Fc=new xe("AppId"),Hc={provide:Fc,useFactory:function(){return`${jc()}${jc()}${jc()}`},deps:[]};function jc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bc=new xe("Platform Initializer"),Lc=new xe("Platform ID"),qc=new xe("appBootstrapListener");let zc=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();const Kc=new xe("LocaleId"),Zc=!0;class Uc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Gc=function(e){return new hc(e)},Qc=Gc,Wc=function(e){return Promise.resolve(Gc(e))},Yc=function(e){const t=Gc(e),n=dr(ut(e).declarations).reduce((e,t)=>{const n=ct(t);return n&&e.push(new $l(n)),e},[]);return new Uc(t,n)},Xc=Yc,Jc=function(e){return Promise.resolve(Yc(e))};let $c=(()=>{class e{constructor(){this.compileModuleSync=Qc,this.compileModuleAsync=Wc,this.compileModuleAndAllComponentsSync=Xc,this.compileModuleAndAllComponentsAsync=Jc}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();const eu=new xe("compilerOptions");let tu,nu;function ru(){const e=Ce.wtf;return!(!e||!(tu=e.trace)||(nu=tu.events,0))}const su=ru(),ou=su?function(e,t=null){return nu.createScope(e,t)}:(e,t)=>(function(e,t){return null}),iu=su?function(e,t){return tu.leaveScope(e,t),t}:(e,t)=>t,au=(()=>Promise.resolve(0))();function lu(e){"undefined"==typeof Zone?au.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class cu{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc(!1),this.onMicrotaskEmpty=new vc(!1),this.onStable=new vc(!1),this.onError=new vc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,o,i)=>{try{return pu(t),e.invokeTask(r,s,o,i)}finally{fu(t)}},onInvoke:(e,n,r,s,o,i,a)=>{try{return pu(t),e.invoke(r,s,o,i,a)}finally{fu(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,du(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(cu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,hu,uu,uu);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function uu(){}const hu={};function du(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fu(e){e._nesting--,du(e)}class gu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc,this.onMicrotaskEmpty=new vc,this.onStable=new vc,this.onError=new vc}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}let mu=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cu.assertNotInAngularZone(),lu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())lu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(cu))},providedIn:null}),e})(),yu=(()=>{class e{constructor(){this._applications=new Map,wu.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return wu.findTestabilityInTree(this,e,t)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})();class bu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let vu,wu=new bu,_u=function(e,t,n){const r=new hc(n);if(0===la.size)return Promise.resolve(r);const s=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(eu,[]).concat(t).map(e=>e.providers));if(0===s.length)return Promise.resolve(r);const o=function(){const e=Ce.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),i=aa.create({providers:s}).get(o.ResourceLoader);return function(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const s=e(t);n.set(t,r=s.then(ua))}return r}return la.forEach((e,n)=>{const s=[];e.templateUrl&&s.push(r(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,i=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((t,n)=>{i.push(""),s.push(r(t).then(r=>{i[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>(function(e){ca.delete(e)})(n));t.push(l)}),la=new Map,Promise.all(t).then(()=>void 0)}(e=>Promise.resolve(i.get(e))).then(()=>r)},Cu=function(e){return e.isBoundToModule};const xu=new xe("AllowMultipleToken");function Su(e,t,n=[]){const r=`Platform: ${t}`,s=new xe(r);return(t=[])=>{let o=ku();if(!o||o.injector.get(xu,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(vu&&!vu.destroyed&&!vu.injector.get(xu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");vu=e.get(Eu);const t=e.get(Bc,null);t&&t.forEach(e=>e())}(aa.create({providers:e,name:r}))}return function(e){const t=ku();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function ku(){return vu&&!vu.destroyed?vu:null}let Eu=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new gu:("zone.js"===s?void 0:s)||new cu({enableLongStackTrace:Ss()}),r=[{provide:cu,useValue:n}];var s;return n.run(()=>{const t=aa.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(_s,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Zc&&ac(s.injector.get(Kc,oc)||oc),s.onDestroy(()=>Ou(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return Ua(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=s.injector.get(Rc);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Au({},t);return _u(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${fe(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(aa))},providedIn:null}),e})();function Au(e,t){return Array.isArray(t)?t.reduce(Au,e):Object.assign({},e,t)}let Tu=(()=>{class e{constructor(e,t,n,r,s,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ss(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{cu.assertNotInAngularZone(),lu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{cu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return E(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?s=>s.pipe(e((e,r)=>(function(e,t){return e instanceof b?e:new b(R(e))})(t(e,r)).pipe(j((t,s)=>n(e,t,r,s))),r)):("number"==typeof n&&(r=n),e=>e.lift(new z(t,r)))}(Z,e)}(t)(q(e,n))}(i,a.pipe(e=>U()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Y);return r.source=t,r.subjectFactory=n,r}}(J)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof vl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Cu(n)?null:this._injector.get(Be),s=n.create(aa.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(mu,null);return o&&s.injector.get(yu).registerApplication(s.location.nativeElement,o),this._loadComponent(s),Ss()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,iu(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ou(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qc,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ou(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(cu),Re(zc),Re(aa),Re(_s),Re(Cl),Re(Rc))},providedIn:null}),e._tickScope=ou("ApplicationRef#tick()"),e})();function Ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pu=Su(null,"core",[{provide:Lc,useValue:"unknown"},{provide:Eu,deps:[aa]},{provide:yu,deps:[]},{provide:zc,deps:[]}]),Iu=[{provide:Tu,useClass:Tu,deps:[cu,zc,aa,_s,Cl,Rc]},{provide:Jl,deps:[cu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Rc,useClass:Rc,deps:[[new ne,Vc]]},{provide:$c,useClass:$c,deps:[]},Hc,{provide:Ll,useFactory:function(){return Kl},deps:[]},{provide:ql,useFactory:function(){return Zl},deps:[]},{provide:Kc,useFactory:function(e){return e?(Zc&&ac(e),e):oc},deps:[[new te(Kc),new ne,new se]]}];let Mu=(()=>{class e{constructor(e){}}return e.ngModuleDef=ot({type:e}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)(Re(Tu))},providers:Iu}),e})();class Nu{}const Du=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Vu=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=tc[t];if(n)return n;const r=t.split("-")[0];if(n=tc[r])return n;if("en"===r)return sc;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[nc.PluralCase]},Ru=new xe("UseV4Plurals");class Fu{}let Hu=(()=>{class e extends Fu{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Vu(t||this.locale)(e)){case Du.Zero:return"zero";case Du.One:return"one";case Du.Two:return"two";case Du.Few:return"few";case Du.Many:return"many";default:return"other"}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Kc),Re(Ru,8))},providedIn:null}),e})();class ju{constructor(e,t){this._name=e,this._options=t,this.value=null,this._lastSetValue=null,this._lastSetValueType=0,this._lastSetValueIdentityChange=!1}setValue(e){if(Array.isArray(e))this._lastSetValueType=4;else if(e instanceof Set)this._lastSetValueType=8;else if(e&&"string"==typeof e){if(!(4&this._options))throw new Error(this._name+" string values are not allowed");this._lastSetValueType=1}else this._lastSetValueType=e?2:0;this._lastSetValueIdentityChange=!0,this._lastSetValue=e||null}hasValueChanged(){let e=this._lastSetValueIdentityChange;if(!(e||14&this._lastSetValueType))return!1;let t=null;const n=!!(1&this._options),r=!!(8&this._options),s=!!(2&this._options);switch(this._lastSetValueType){case 1:const o=this._lastSetValue.split(/\s+/g);16&this._options?(t={},o.forEach((e,n)=>t[e]=!0)):t=o.reduce((e,t,n)=>e+(n?" ":"")+t);break;case 2:const i=this._lastSetValue,a=Object.keys(i);e||(e=!this.value||function(e,t,n){const r=e;if(!Ku(Object.keys(t),r))return!0;for(let s=0;s0){const s=t.split(/\s+/g);for(let t=0;t0){const r=e.substr(n+1);e=e.substring(0,n),null!=t&&(t+=r)}return{key:e,value:t}}(t,n);n=e.value,t=e.key}e[t]=n}function Ku(e,t){if(e&&t){if(e.length!==t.length)return!1;for(let n=0;n{class e{constructor(){this._value=null,this._ngClassDiffer=new ju("NgClass",23),this._classStringDiffer=null}getValue(){return this._value}setClass(e){(e||this._classStringDiffer)&&(this._classStringDiffer=this._classStringDiffer||new ju("class",20),this._classStringDiffer.setValue(e))}setNgClass(e){this._ngClassDiffer.setValue(e)}applyChanges(){const e=!!this._classStringDiffer&&this._classStringDiffer.hasValueChanged(),t=this._ngClassDiffer.hasValueChanged();if(e||t){let e=this._ngClassDiffer.value;if(this._classStringDiffer){let t=this._classStringDiffer.value;t&&(e=e?Object.assign({},t,e):t)}this._value=e}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})()},Gu=at({type:function(){},selectors:null,factory:()=>{},hostBindings:function(e,t,n){1&e&&(ha(1),Ta()),2&e&&(Ia(t.getValue()),Da())}});let Qu=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=Gu,e})(),Wu=(()=>{class e extends Qu{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngClass",""]],factory:function(t){return new(t||e)(Aa(Zu))},inputs:{klass:["class","klass"],ngClass:"ngClass"},features:[yl([Uu]),il]}),e})();class Yu{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xu=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Ss()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Yu(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Ju(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Ju(e,s);t.push(o)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngFor","","ngForOf",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul),Aa(Ll))},inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class Ju{constructor(e,t){this.record=e,this.view=t}}let $u=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new eh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){th("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){th("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngIf",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul))},inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class eh{constructor(){this.$implicit=null,this.ngIf=null}}function th(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${fe(t)}'.`)}class nh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let rh=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new nh(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngSwitchCase",""]],factory:function(t){return new(t||e)(Aa(Ql),Aa(Ul),Aa(rh,1))},inputs:{ngSwitchCase:"ngSwitchCase"}}),e})();class oh{}const ih={provide:oh,useClass:(()=>{class e{constructor(){this._differ=new ju("NgStyle",8),this._value=null}getValue(){return this._value}setNgStyle(e){this._differ.setValue(e)}applyChanges(){this._differ.hasValueChanged()&&(this._value=this._differ.value)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})()},ah=at({type:function(){},selectors:null,factory:()=>{},hostBindings:function(e,t,n){1&e&&Ta(),2&e&&(function(e){const t=$n(),n=Cn(),r=dn(t,n),s=Fa(r),o=Ra(),i=n[bt]++;!o&&Fr(r)&&e!==So&&(Na(s,n,r,i,e,!1),e=So),Ma(t,s,i,e,!1,Ba())}(t.getValue()),Da())}});let lh=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=ah,e})(),ch=(()=>{class e extends lh{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}return e.ngDirectiveDef=at({type:e,selectors:[["","ngStyle",""]],factory:function(t){return new(t||e)(Aa(oh))},inputs:{ngStyle:"ngStyle"},features:[yl([ih]),il]}),e})();class uh{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class hh{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const dh=new hh,ph=new uh;let fh=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):fa(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,ga.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Ua(t))return dh;if(function(e){return!!e&&"function"==typeof e.subscribe}(t))return ph;throw Error(`InvalidPipeArgument: '${t}' for pipe '${fe(e)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Zi))},providedIn:null}),e.ngPipeDef=lt({name:"async",type:e,factory:function(t){return new(t||e)(Aa(Zi))},pure:!1}),e})(),gh=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();gh.ngInjectorDef=ce({factory:function(e){return new(e||gh)},providers:[{provide:Fu,useClass:Hu}]});let mh=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();mh.ngInjectorDef=ce({factory:function(e){return new(e||mh)},providers:[{provide:Ru,useValue:function(e,t){"string"==typeof t&&(t=parseInt(t,10));const n=t,r=n.toString().replace(/^[^.]*\.?/,""),s=Math.floor(Math.abs(n)),o=r.length,i=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?Du.One:Du.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?Du.One:Du.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===s||1===n?Du.One:Du.Other;case"ar":return 0===n?Du.Zero:1===n?Du.One:2===n?Du.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?Du.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?Du.Many:Du.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===s&&0===o?Du.One:Du.Other;case"be":return n%10==1&&n%100!=11?Du.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?Du.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?Du.Many:Du.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?Du.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?Du.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?Du.Few:0!==n&&n%1e6==0?Du.Many:Du.Other;case"bs":case"hr":case"sr":return 0===o&&s%10==1&&s%100!=11||i%10==1&&i%100!=11?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Du.Few:Du.Other;case"cs":case"sk":return 1===s&&0===o?Du.One:s===Math.floor(s)&&s>=2&&s<=4&&0===o?Du.Few:0!==o?Du.Many:Du.Other;case"cy":return 0===n?Du.Zero:1===n?Du.One:2===n?Du.Two:3===n?Du.Few:6===n?Du.Many:Du.Other;case"da":return 1===n||0!==a&&(0===s||1===s)?Du.One:Du.Other;case"dsb":case"hsb":return 0===o&&s%100==1||i%100==1?Du.One:0===o&&s%100==2||i%100==2?Du.Two:0===o&&s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4||i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4?Du.Few:Du.Other;case"ff":case"fr":case"hy":case"kab":return 0===s||1===s?Du.One:Du.Other;case"fil":return 0===o&&(1===s||2===s||3===s)||0===o&&s%10!=4&&s%10!=6&&s%10!=9||0!==o&&i%10!=4&&i%10!=6&&i%10!=9?Du.One:Du.Other;case"ga":return 1===n?Du.One:2===n?Du.Two:n===Math.floor(n)&&n>=3&&n<=6?Du.Few:n===Math.floor(n)&&n>=7&&n<=10?Du.Many:Du.Other;case"gd":return 1===n||11===n?Du.One:2===n||12===n?Du.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?Du.Few:Du.Other;case"gv":return 0===o&&s%10==1?Du.One:0===o&&s%10==2?Du.Two:0!==o||s%100!=0&&s%100!=20&&s%100!=40&&s%100!=60&&s%100!=80?0!==o?Du.Many:Du.Other:Du.Few;case"he":return 1===s&&0===o?Du.One:2===s&&0===o?Du.Two:0!==o||n>=0&&n<=10||n%10!=0?Du.Other:Du.Many;case"is":return 0===a&&s%10==1&&s%100!=11||0!==a?Du.One:Du.Other;case"ksh":return 0===n?Du.Zero:1===n?Du.One:Du.Other;case"kw":case"naq":case"se":case"smn":return 1===n?Du.One:2===n?Du.Two:Du.Other;case"lag":return 0===n?Du.Zero:0!==s&&1!==s||0===n?Du.Other:Du.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?Du.Few:0!==i?Du.Many:Du.Other:Du.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=19?Du.Zero:n%10==1&&n%100!=11||2===o&&i%10==1&&i%100!=11||2!==o&&i%10==1?Du.One:Du.Other;case"mk":return 0===o&&s%10==1||i%10==1?Du.One:Du.Other;case"mt":return 1===n?Du.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?Du.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?Du.Many:Du.Other;case"pl":return 1===s&&0===o?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Du.Few:0===o&&1!==s&&s%10===Math.floor(s%10)&&s%10>=0&&s%10<=1||0===o&&s%10===Math.floor(s%10)&&s%10>=5&&s%10<=9||0===o&&s%100===Math.floor(s%100)&&s%100>=12&&s%100<=14?Du.Many:Du.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?Du.One:Du.Other;case"ro":return 1===s&&0===o?Du.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?Du.Few:Du.Other;case"ru":case"uk":return 0===o&&s%10==1&&s%100!=11?Du.One:0===o&&s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Du.Few:0===o&&s%10==0||0===o&&s%10===Math.floor(s%10)&&s%10>=5&&s%10<=9||0===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=14?Du.Many:Du.Other;case"shi":return 0===s||1===n?Du.One:n===Math.floor(n)&&n>=2&&n<=10?Du.Few:Du.Other;case"si":return 0===n||1===n||0===s&&1===i?Du.One:Du.Other;case"sl":return 0===o&&s%100==1?Du.One:0===o&&s%100==2?Du.Two:0===o&&s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4||0!==o?Du.Few:Du.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?Du.One:Du.Other;default:return Du.Other}}}]});const yh=new xe("DocumentToken"),bh="server";let vh=null;function wh(){return vh}class _h{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Ch extends _h{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const xh={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Sh=3,kh={"\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"},Eh={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"},Ah=(()=>{if(Ce.Node)return Ce.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Th extends Ch{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Th,vh||(vh=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return xh}contains(e,t){return Ah.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{class e extends Nu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=wh().getLocation(),this._history=wh().getHistory()}getBaseHrefFromDOM(){return wh().getBaseHref(this._doc)}onPopState(e){wh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){wh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Ih()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Ih()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();const Nh=new xe("TRANSITION_ID"),Dh=[{provide:Vc,useFactory:function(e,t,n){return()=>{n.get(Rc).donePromise.then(()=>{const n=wh();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Nh,yh,aa],multi:!0}];class Vh{static init(){var e;e=new Vh,wu=e}addToWindow(e){Ce.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements(),Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(e=>{const t=Ce.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?wh().isShadowRoot(t)?this.findTestabilityInTree(e,wh().getHost(t),!0):this.findTestabilityInTree(e,wh().parentElement(t),!0):null}}const Rh=new xe("EventManagerPlugins");let Fh=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),Bh=(()=>{class e extends jh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>wh().remove(e))}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();const Lh={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/"},qh=/%COMP%/g,zh="_nghost-%COMP%",Kh="_ngcontent-%COMP%";function Zh(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Gh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Qh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ue.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Xh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Ue.Native:case Ue.ShadowDom:return new Jh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Zh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(Fh),Re(Bh),Re(Fc))},providedIn:null}),e})();class Qh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Lh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=Lh[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Lh[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&El.DashCase?e.style.setProperty(t,n,r&El.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&El.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){Yh(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return Yh(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Uh(n)):this.eventManager.addEventListener(e,t,Uh(n))}}const Wh=(()=>"@".charCodeAt(0))();function Yh(e,t){if(e.charCodeAt(0)===Wh)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Xh extends Qh{constructor(e,t,n,r){super(e),this.component=n;const s=Zh(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=Kh.replace(qh,r+"-"+n.id),this.hostAttr=zh.replace(qh,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Jh extends Qh{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Zh(r.id,r.styles,[]);for(let o=0;o"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),ed=$h("addEventListener"),td=$h("removeEventListener"),nd={},rd="FALSE",sd="ANGULAR",od="addEventListener",id="removeEventListener",ad="__zone_symbol__propagationStopped",ld="__zone_symbol__stopImmediatePropagation",cd=(()=>{const e="undefined"!=typeof Zone&&Zone[$h("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),ud=function(e){return!!cd&&cd.hasOwnProperty(e)},hd=function(e){const t=nd[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n{class e extends Hh{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return e===bh}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype[ld])return;const e=Event.prototype[ld]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ad]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[ed]||cu.isInAngularZone()&&!ud(t))e[od](t,r,!1);else{let n=nd[t];n||(n=nd[t]=$h(sd+t+rd));let s=e[n];const o=s&&s.length>0;s||(s=e[n]=[]);const i=ud(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:i,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[td];if(!r)return e[id].apply(e,[t,n,!1]);let s=nd[t],o=s&&e[s];if(!o)return e[id].apply(e,[t,n,!1]);let i=!1;for(let a=0;a{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),yd=(()=>{class e extends Hh{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!pd.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),o=function(e){r.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh),Re(fd),Re(zc),Re(gd,8))},providedIn:null}),e})();const bd=["alt","control","meta","shift"],vd={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let wd=(()=>{class e extends Hh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wh().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let o="";if(bd.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(e){let t="",n=wh().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),bd.forEach(r=>{r!=n&&(0,vd[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh))},providedIn:null}),e})();class _d{}class Cd{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class xd extends Cd{getTypeName(){return"HTML"}}class Sd extends Cd{getTypeName(){return"Style"}}class kd extends Cd{getTypeName(){return"Script"}}class Ed extends Cd{getTypeName(){return"URL"}}class Ad extends Cd{getTypeName(){return"ResourceURL"}}const Td=[{provide:Gs,useExisting:_d},{provide:_d,useClass:(()=>{class e extends _d{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Us.NONE:return t;case Us.HTML:return t instanceof xd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Ks=Ks||new ks(e);let r=t?String(t):"";n=Ks.getInertBodyElement(r);let s=5,o=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=o,o=n.innerHTML,n=Ks.getInertBodyElement(r)}while(r!==o);const i=new Bs,a=i.sanitizeChildren(Zs(n)||n);return Ss()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Zs(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case Us.STYLE:return t instanceof Sd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Ws);return t&&Ts(t[1])===t[1]||e.match(Qs)&&function(e){let t=!0,n=!0;for(let r=0;r{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Fc,useValue:t.appId},{provide:Nh,useExisting:Fc},Dh]}}}return e.ngModuleDef=ot({type:e}),e})();Id.ngInjectorDef=ce({factory:function(e){return new(e||Id)(Re(Id,12))},providers:Pd,imports:[gh,Mu]}),"undefined"!=typeof window&&window;class Md{}class Nd{}const Dd="*";function Vd(e,t){return{type:7,name:e,definitions:t,options:{}}}function Rd(e,t=null){return{type:4,styles:t,timings:e}}function Fd(e,t=null){return{type:2,steps:e,options:t}}function Hd(e){return{type:6,styles:e,offset:null}}function jd(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function Bd(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function Ld(e,t){return{type:12,timings:e,animation:t}}function qd(e){Promise.resolve(null).then(e)}class zd{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qd(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Kd{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const s=this.players.length;0==s?qd(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const Zd="!";function Ud(){return"undefined"!=typeof process}function Gd(e){switch(e.length){case 0:return new zd;case 1:return e[0];default:return new Kd(e)}}function Qd(e,t,n,r,s={},o={}){const i=[],a=[];let l=-1,c=null;if(r.forEach(e=>{const n=e.offset,r=n==l,u=r&&c||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,i),a){case Zd:a=s[n];break;case Dd:a=o[n];break;default:a=t.normalizeStyleValue(n,r,a,i)}u[r]=a}),r||a.push(u),c=u,l=n}),i.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${i.join(e)}`)}return a}function Wd(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Yd(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Yd(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Yd(n,"destroy",e)))}}function Yd(e,t,n){const r=n.totalTime,s=Xd(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(s._data=o),s}function Xd(e,t,n,r,s="",o=0,i){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:o,disabled:!!i}}function Jd(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function $d(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let ep=(e,t)=>!1,tp=(e,t)=>!1,np=(e,t,n)=>[];const rp=Ud();(rp||"undefined"!=typeof Element)&&(ep=(e,t)=>e.contains(t),tp=(()=>{if(rp||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):tp}})(),np=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let sp=null,op=!1;function ip(e){sp||(sp=("undefined"!=typeof document?document.body:null)||{},op=!!sp.style&&"WebkitAppearance"in sp.style);let t=!0;return sp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in sp.style)&&op&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in sp.style),t}const ap=tp,lp=ep,cp=np;function up(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}let hp=(()=>{class e{validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,o=[],i){return new zd(n,r)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)},providedIn:null}),e})(),dp=(()=>{class e{}return e.NOOP=new hp,e})();const pp=1e3,fp="{{",gp="ng-enter",mp="ng-leave",yp="ng-trigger",bp=".ng-trigger",vp="ng-animating",wp=".ng-animating";function _p(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cp(parseFloat(t[1]),t[2])}function Cp(e,t){switch(t){case"s":return e*pp;default:return e}}function xp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=Cp(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(s=Cp(parseFloat(i),n[4]));const a=n[5];a&&(o=a)}else r=e;if(!n){let n=!1,o=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:o}}(e,t,n)}function Sp(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function kp(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else Sp(e,n);return n}function Ep(e,t,n){return n?t+":"+n+";":""}function Ap(e){let t="";for(let n=0;n{const s=Rp(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),Ud()&&Ap(e))}function Op(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Rp(t);e.style[n]=""}),Ud()&&Ap(e))}function Pp(e){return Array.isArray(e)?1==e.length?e[0]:Fd(e):e}const Ip=new RegExp(`${fp}\\s*(.+?)\\s*}}`,"g");function Mp(e){let t=[];if("string"==typeof e){const n=e.toString();let r;for(;r=Ip.exec(n);)t.push(r[1]);Ip.lastIndex=0}return t}function Np(e,t,n){const r=e.toString(),s=r.replace(Ip,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function Dp(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Vp=/-+([a-z0-9])/g;function Rp(e){return e.replace(Vp,(...e)=>e[1].toUpperCase())}function Fp(e,t){return 0===e||0===t}function Hp(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let o=t[0],i=[];if(r.forEach(e=>{o.hasOwnProperty(e)||i.push(e),o[e]=n[e]}),i.length)for(var s=1;s(function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],o=r[2],i=r[3];t.push(Zp(s,i)),"<"!=o[0]||s==Lp&&i==Lp||t.push(Zp(i,s))})(e,n,t)):n.push(e),n}const zp=new Set(["true","1"]),Kp=new Set(["false","0"]);function Zp(e,t){const n=zp.has(e)||Kp.has(e),r=zp.has(t)||Kp.has(t);return(s,o)=>{let i=e==Lp||e==s,a=t==Lp||t==o;return!i&&n&&"boolean"==typeof s&&(i=s?zp.has(e):Kp.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?zp.has(t):Kp.has(t)),i&&a}}const Up=":self",Gp=new RegExp(`s*${Up}s*,?`,"g");function Qp(e,t,n){return new Yp(e).build(t,n)}const Wp="";class Yp{constructor(e){this._driver=e}build(e,t){const n=new Xp(t);return this._resetContextStyleTimingState(n),jp(this,Pp(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Wp,e.collectedStyles={},e.collectedStyles[Wp]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,o.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,o=r||{};if(n.styles.forEach(e=>{if(Jp(e)){const t=e;Object.keys(t).forEach(e=>{Mp(t[e]).forEach(e=>{o.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Dp(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=jp(this,Pp(e.animation),t);return{type:1,matchers:qp(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:$p(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>jp(this,e,t)),options:$p(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=jp(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:$p(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ef(xp(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ef(0,0,"");return e.dynamic=!0,e.strValue=r,e}return ef((n=n||xp(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:Hd({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=Hd(e)}t.currentTime+=n.duration+n.delay;const i=this.visitStyle(s,t);i.isEmptyStep=o,r=i}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Dd?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(Jp(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf(fp)>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],i=o[n];let a=!0;i&&(s!=r&&s>=i.startTime&&r<=i.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=i.startTime),a&&(o[n]={startTime:s,endTime:r}),t.options&&function(r,s,o){const i=t.options.params||{},a=Mp(e[n]);a.length&&a.forEach(e=>{i.hasOwnProperty(e)||o.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(0,0,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let o=!1,i=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Jp(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Jp(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),i=i||c<0||c>1,o=o||c0&&r{const o=u>0?r==h?1:u*r:s[r],i=o*f;t.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:jp(this,Pp(e.animation),t),options:$p(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:$p(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:$p(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==Up);return t&&(e=e.replace(Gp,"")),[e=e.replace(/@\*/g,bp).replace(/@\w+/g,e=>bp+"-"+e.substr(1)).replace(/:animating/g,wp),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Jd(t.collectedStyles,t.currentQuerySelector,{});const i=jp(this,Pp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:i,originalSelector:e.selector,options:$p(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:xp(e.timings,t.errors,!0);return{type:12,animation:jp(this,Pp(e.animation),t),timings:n,options:null}}}class Xp{constructor(e){this.errors=e,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 Jp(e){return!Array.isArray(e)&&"object"==typeof e}function $p(e){var t;return e?(e=Sp(e)).params&&(e.params=(t=e.params)?Sp(t):null):e={},e}function ef(e,t,n){return{duration:e,delay:t,easing:n}}function tf(e,t,n,r,s,o,i=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:o,totalTime:s+o,easing:i,subTimeline:a}}class nf{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const rf=1,sf=new RegExp(":enter","g"),of=new RegExp(":leave","g");function af(e,t,n,r,s,o={},i={},a,l,c=[]){return(new lf).buildKeyframes(e,t,n,r,s,o,i,a,l,c)}class lf{buildKeyframes(e,t,n,r,s,o,i,a,l,c=[]){l=l||new nf;const u=new uf(e,t,l,r,s,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),jp(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(i).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([i],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[tf(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const s=null!=n.duration?_p(n.duration):null,o=null!=n.delay?_p(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),jp(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cf);const e=_p(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>jp(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?_p(e.options.delay):0;e.steps.forEach(o=>{const i=t.createSubContext(e.options);s&&i.delayNextStep(s),jp(this,o,i),r=Math.max(r,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return xp(t.params?Np(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*s),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?_p(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=cf);let o=n;const i=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=i.length;let a=null;i.forEach((n,r)=>{t.currentQueryIndex=r;const i=t.createSubContext(e.options,n);s&&i.delayNextStep(s),n===t.element&&(a=i.currentTimeline),jp(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,i.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),i=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=i-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;jp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const cf={};class uf{constructor(e,t,n,r,s,o,i,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new hf(this._driver,t,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=_p(n.duration)),null!=n.delay&&(r.delay=_p(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Np(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,s=new uf(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=cf,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new df(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,o){let i=[];if(r&&i.push(this.element),e.length>0){e=(e=e.replace(sf,"."+this._enterClassName)).replace(of,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),i.push(...t)}return s||0!=i.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),i}}class hf{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new hf(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=rf,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Dd,this._currentKeyframe[e]=Dd}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t)).forEach(e=>{n[e]=Dd}):kp(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=Np(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Dd),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const i=kp(s,!0);Object.keys(i).forEach(n=>{const r=i[n];r==Zd?e.add(n):r==Dd&&t.add(n)}),n||(i.offset=o/this.duration),r.push(i)});const s=e.size?Dp(e.values()):[],o=t.size?Dp(t.values()):[];if(n){const e=r[0],t=Sp(e);e.offset=0,t.offset=1,r=[e,t]}return tf(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class df extends hf{constructor(e,t,n,r,s,o,i=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=i,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=n+t,i=t/o,a=kp(e[0],!1);a.offset=0,s.push(a);const l=kp(e[0],!1);l.offset=pf(i),s.push(l);const c=e.length-1;for(let r=1;r<=c;r++){let i=kp(e[r],!1);i.offset=pf((t+i.offset*n)/o),s.push(i)}n=o,t=0,r="",e=s}return tf(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function pf(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class ff{}class gf extends ff{normalizePropertyName(e,t){return Rp(e)}normalizeStyleValue(e,t,n,r){let s="";const o=n.toString().trim();if(mf[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+s}}const mf=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function yf(e,t,n,r,s,o,i,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:o,toState:r,toStyles:i,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const bf={};class vf{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):o}build(e,t,n,r,s,o,i,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||bf,d=this.buildStyles(n,i&&i.params||bf,u),p=a&&a.params||bf,f=this.buildStyles(r,p,u),g=new Set,m=new Map,y=new Map,b="void"===r,v={params:Object.assign({},h,p)},w=c?[]:af(e,t,this.ast.animation,s,o,d,f,v,l,u);let _=0;if(w.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),u.length)return yf(t,this._triggerName,n,r,b,d,f,[],[],m,y,_,u);w.forEach(e=>{const n=e.element,r=Jd(m,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=Jd(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&g.add(n)});const C=Dp(g.values());return yf(t,this._triggerName,n,r,b,d,f,w,C,m,y,_)}}class wf{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=Sp(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let o=s[e];o.length>1&&(o=Np(o,r,t)),n[e]=o})}}),n}}class _f{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new wf(e.style,e.options&&e.options.params||{})}),Cf(this.states,"true","1"),Cf(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new vf(e,t,this.states))}),this.fallbackTransition=new vf(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Cf(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const xf=new nf;class Sf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=Qp(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,s=Qd(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let o;const i=new Map;if(s?(o=af(this._driver,t,s,gp,mp,{},{},n,xf,r)).forEach(e=>{const t=Jd(i,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);i.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Dd)})});const a=Gd(o.map(e=>{const t=i.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const s=Xd(t,"","","");return Wd(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const kf="ng-animate-queued",Ef=".ng-animate-queued",Af="ng-animate-disabled",Tf=".ng-animate-disabled",Of="ng-star-inserted",Pf=".ng-star-inserted",If=[],Mf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Df="__ng_removed";class Vf{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){const t=Sp(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Rf="void",Ff=new Vf(Rf);class Hf{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Uf(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const o=Jd(this._elementListeners,e,[]),i={name:t,phase:n,callback:r};o.push(i);const a=Jd(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Uf(e,yp),Uf(e,yp+"-"+t),a[t]=Ff),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(i);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const s=this._getTrigger(t),o=new Bf(this.id,t,e);let i=this._engine.statesByElement.get(e);i||(Uf(e,yp),Uf(e,yp+"-"+t),this._engine.statesByElement.set(e,i={}));let a=i[t];const l=new Vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),i[t]=l,a||(a=Ff),l.value!==Rf&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s{Op(e,n),Tp(e,r)})}return}const c=Jd(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(Uf(e,kf),o.onStart(()=>{Gf(e,kf)})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,bp,!0).forEach(e=>{if(e[Df])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,r){const s=this._engine.statesByElement.get(e);if(s){const o=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Rf,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Gd(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(e)[r]||Ff,i=new Vf(Rf),a=new Bf(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:i,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}this.prepareLeaveAnimationListeners(e),r?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){Uf(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,o=this._elementListeners.get(s);o&&o.forEach(t=>{if(t.name==n.triggerName){const r=Xd(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,Wd(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(t=>t.element===e)||t}}class jf{constructor(e,t,n){this.bodyNode=e,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Hf(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Uf(e,Af)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Gf(e,Af))}removeNode(e,t,n,r){if(Lf(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[Df]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return Lf(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,bp,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,wp,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Gd(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Df];if(t&&t.setForRemoval){if(e[Df]=Mf,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Tf)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tf,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Gd(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new nf,r=[],s=new Map,o=[],i=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,Ef,!0);for(let n=0;n{const n=gp+f++;p.set(t,n),e.forEach(e=>Uf(e,n))});const g=[],m=new Set,y=new Set;for(let P=0;Pm.add(e)):y.add(e))}const b=new Map,v=Kf(h,Array.from(m));v.forEach((e,t)=>{const n=mp+f++;b.set(t,n),e.forEach(e=>Uf(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Gf(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>Gf(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const w=[],_=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s[Df];if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>Op(s,f.fromStyles)),t.onDestroy(()=>Tp(s,f.toStyles)),void r.push(t)):e.isFallbackTransition?(t.onStart(()=>Op(s,f.fromStyles)),t.onDestroy(()=>Tp(s,f.toStyles)),void r.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>Jd(i,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))}));_.push(f)});if(_.length){const e=[];_.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,x=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Jd(C,t,[]).push(e),e.destroy()})});const S=g.filter(e=>Wf(e,a,l)),k=new Map;zf(k,this.driver,y,l,Dd).forEach(e=>{Wf(e,a,l)&&S.push(e)});const E=new Map;d.forEach((e,t)=>{zf(E,this.driver,new Set(e),a,Zd)}),S.forEach(e=>{const t=k.get(e),n=E.get(e);k.set(e,Object.assign({},t,n))});const A=[],T=[],O={};o.forEach(e=>{const{element:t,player:o,instruction:i}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>Tp(t,i.toStyles)),o.disabled=!0,o.overrideTotalTime(i.totalTime),void r.push(o);let e=O;if(x.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>x.set(t,e))}const n=this._buildAnimation(o.namespaceId,i,C,s,E,k);if(o.setRealPlayer(n),e===O)A.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=Gd(t)),r.push(o)}}else Op(t,i.fromStyles),o.onDestroy(()=>Tp(t,i.toStyles)),T.push(o),c.has(t)&&r.push(o)}),T.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Gd(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let P=0;P!e.destroyed);r.length?Qf(this,e,r):this.processLeaveNode(e)}return g.length=0,A.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),A}elementContainsData(e,t){let n=!1;const r=t[Df];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==Rf;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const i of t.timelines){const e=i.element,a=e!==r,l=Jd(n,e,[]);this._getPreviousPlayers(e,a,s,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Op(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){const i=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h[Df];if(d&&d.removedBeforeQueried)return new zd(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let r=0;re.getRealPlayer()),t),t}().filter(e=>!!e.element&&e.element===h),g=s.get(h),m=o.get(h),y=Qd(0,this._normalizer,0,t.keyframes,g,m),b=this._buildPlayer(t,y,f);if(t.subTimeline&&r&&u.add(h),p){const t=new Bf(e,i,h);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{Jd(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Uf(e,vp));const d=Gd(h);return d.onDestroy(()=>{c.forEach(e=>Gf(e,vp)),Tp(a,t.toStyles)}),u.forEach(e=>{Jd(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new zd(e.duration,e.delay)}}class Bf{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Wd(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Jd(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Lf(e){return e&&1===e.nodeType}function qf(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function zf(e,t,n,r,s){const o=[];n.forEach(e=>o.push(qf(e)));const i=[];r.forEach((n,r)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r[Df]=Nf,i.push(r))}),e.set(r,o)});let a=0;return n.forEach(e=>qf(e,o[a++])),i}function Kf(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let o=s.get(t);if(o)return o;const i=t.parentNode;return o=n.has(i)?i:r.has(i)?1:e(i),s.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}const Zf="$$classes";function Uf(e,t){if(e.classList)e.classList.add(t);else{let n=e[Zf];n||(n=e[Zf]={}),n[t]=!0}}function Gf(e,t){if(e.classList)e.classList.remove(t);else{let n=e[Zf];n&&delete n[t]}}function Qf(e,t,n){Gd(n).onDone(()=>e.processLeaveNode(t))}function Wf(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class Yf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new jf(e,t,n),this._timelineEngine=new Sf(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,s){const o=e+"-"+r;let i=this._triggerCache[o];if(!i){const e=[],t=Qp(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);i=function(e,t){return new _f(e,t)}(r,t),this._triggerCache[o]=i}this._transitionEngine.registerTrigger(t,r,i)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=$d(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=$d(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Xf(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=$f(t[0]),t.length>1&&(r=$f(t[t.length-1]))):t&&(n=$f(t)),n||r?new Jf(e,n,r):null}let Jf=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Tp(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Tp(this._element,this._initialStyles),this._endStyles&&(Tp(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Op(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Op(this._element,this._endStyles),this._endStyles=null),Tp(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function $f(e){let t=null;const n=Object.keys(e);for(let r=0;rthis._handleCallback(e)}apply(){!function(e,t){const n=hg(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),cg(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=hg(e,"").split(","),r=lg(n,t);r>=0&&(n.splice(r,1),ug(e,"",n.join(",")))}(this._element,this._name))}}function ig(e,t,n){ug(e,"PlayState",n,ag(e,t))}function ag(e,t){const n=hg(e,"");return n.indexOf(",")>0?lg(n.split(","),t):lg([n],t)}function lg(e,t){for(let n=0;n=0)return n;return-1}function cg(e,t,n){n?e.removeEventListener(rg,t):e.addEventListener(rg,t)}function ug(e,t,n,r){const s=ng+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function hg(e,t){return e.style[ng+t]}const dg="forwards",pg="linear";class fg{constructor(e,t,n,r,s,o,i,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=i,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||pg,this.totalTime=r+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new og(this.element,this.animationName,this._duration,this._delay,this.easing,dg,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Bp(this.element,n))})}this.currentSnapshot=e}}class gg extends zd{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=up(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const mg="gen_css_kf_",yg=" ";class bg{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>up(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=yg;const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=yg,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.innerHTML=r,o}animate(e,t,n,r,s,o=[],i){i&&this._notifyFaultyScrubber();const a=o.filter(e=>e instanceof fg),l={};Fp(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Hp(e,t,l));if(0==n)return new gg(e,c);const u=`${mg}${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Xf(e,t),p=new fg(e,t,u,n,r,s,c,d);return p.onDestroy(()=>(function(e){h.parentNode.removeChild(h)})()),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class vg{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Bp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class wg{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_g().toString()),this._cssKeyframesDriver=new bg}validateStyleProperty(e){return ip(e)}matchesElement(e,t){return ap(e,t)}containsElement(e,t){return lp(e,t)}query(e,t,n){return cp(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,o=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},c=o.filter(e=>e instanceof vg);Fp(n,r)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Xf(e,t=Hp(e,t=t.map(e=>kp(e,!1)),l));return new vg(e,t,a,u)}}function _g(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Cg=(()=>{class e extends Md{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Ue.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Fd(e):e;return kg(this._renderer,null,t,"register",[n]),new xg(t,this._renderer)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(kl),Re(yh))},providedIn:null}),e})();class xg extends Nd{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new Sg(this._id,e,t||{},this._renderer)}}class Sg{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return kg(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function kg(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}const Eg="@",Ag="@.disabled";let Tg=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Og("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(r,s,e,t.name,t)),new Pg(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(kl),Re(Yf),Re(cu))},providedIn:null}),e})();class Og{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Eg&&t==Ag?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Pg extends Og{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Eg?"."==t.charAt(1)&&t==Ag?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Eg){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),o="";return s.charAt(0)!=Eg&&([s,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Ig=(()=>{class e extends Yf{constructor(e,t,n){super(e.body,t,n)}}return e.ngInjectableDef=le({token:e,factory:function(t){return new(t||e)(Re(yh),Re(dp),Re(ff))},providedIn:null}),e})();const Mg=new xe("AnimationModuleType"),Ng=[{provide:Md,useClass:Cg},{provide:ff,useFactory:function(){return new gf}},{provide:Yf,useClass:Ig},{provide:kl,useFactory:function(e,t,n){return new Tg(e,t,n)},deps:[Gh,Yf,cu]}],Dg=[{provide:dp,useFactory:function(){return"function"==typeof _g()?new wg:new bg}},{provide:Mg,useValue:"BrowserAnimations"},...Ng],Vg=[{provide:dp,useClass:hp},{provide:Mg,useValue:"NoopAnimations"},...Ng];let Rg=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();Rg.ngInjectorDef=ce({factory:function(e){return new(e||Rg)},providers:Dg,imports:[Id]});let Fg=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e})();Fg.ngInjectorDef=ce({factory:function(e){return new(e||Fg)},providers:Vg,imports:[Id]});class Hg{}class jg extends Hg{constructor(e,t,n,r){super(),this.cyan=e,this.magenta=t,this.yellow=n,this.black=r}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}}class Bg extends Hg{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}toString(e=!0){return e?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(100*this.alpha)/100}}class Lg extends Hg{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.value=n,this.alpha=r}toString(e=!0){return e?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(100*this.alpha)/100}}class qg extends Hg{constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}toString(e=!0){return e?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(100*this.alpha)/100}}let zg=(()=>{class e{}return e.transparent=new qg(0,0,0,0),e.aliceblue=new qg(240,248,255,1),e.antiquewhite=new qg(250,235,215,1),e.aqua=new qg(0,255,255,1),e.aquamarine=new qg(127,255,212,1),e.azure=new qg(240,255,255,1),e.beige=new qg(245,245,220,1),e.bisque=new qg(255,228,196,1),e.black=new qg(0,0,0,1),e.blanchedalmond=new qg(255,235,205,1),e.blue=new qg(0,0,255,1),e.blueviolet=new qg(138,43,226,1),e.brown=new qg(165,42,42,1),e.burlywood=new qg(222,184,135,1),e.cadetblue=new qg(95,158,160,1),e.chartreuse=new qg(127,255,0,1),e.chocolate=new qg(210,105,30,1),e.coral=new qg(255,127,80,1),e.cornflowerblue=new qg(100,149,237,1),e.cornsilk=new qg(255,248,220,1),e.crimson=new qg(220,20,60,1),e.cyan=new qg(0,255,255,1),e.darkblue=new qg(0,0,139,1),e.darkcyan=new qg(0,139,139,1),e.darkgoldenrod=new qg(184,134,11,1),e.darkgray=new qg(169,169,169,1),e.darkgreen=new qg(0,100,0,1),e.darkgrey=e.darkgray,e.darkkhaki=new qg(189,183,107,1),e.darkmagenta=new qg(139,0,139,1),e.darkolivegreen=new qg(85,107,47,1),e.darkorange=new qg(255,140,0,1),e.darkorchid=new qg(153,50,204,1),e.darkred=new qg(139,0,0,1),e.darksalmon=new qg(233,150,122,1),e.darkseagreen=new qg(143,188,143,1),e.darkslateblue=new qg(72,61,139,1),e.darkslategray=new qg(47,79,79,1),e.darkslategrey=e.darkslategray,e.darkturquoise=new qg(0,206,209,1),e.darkviolet=new qg(148,0,211,1),e.deeppink=new qg(255,20,147,1),e.deepskyblue=new qg(0,191,255,1),e.dimgray=new qg(105,105,105,1),e.dimgrey=e.dimgray,e.dodgerblue=new qg(30,144,255,1),e.firebrick=new qg(178,34,34,1),e.floralwhite=new qg(255,250,240,1),e.forestgreen=new qg(34,139,34,1),e.fuchsia=new qg(255,0,255,1),e.gainsboro=new qg(220,220,220,1),e.ghostwhite=new qg(248,248,255,1),e.gold=new qg(255,215,0,1),e.goldenrod=new qg(218,165,32,1),e.gray=new qg(128,128,128,1),e.grey=e.gray,e.green=new qg(0,128,0,1),e.greenyellow=new qg(173,255,47,1),e.honeydew=new qg(240,255,240,1),e.hotpink=new qg(255,105,180,1),e.indianred=new qg(205,92,92,1),e.indigo=new qg(75,0,130,1),e.ivory=new qg(255,255,240,1),e.khaki=new qg(240,230,140,1),e.lavender=new qg(230,230,250,1),e.lavenderblush=new qg(255,240,245,1),e.lawngreen=new qg(124,252,0,1),e.lemonchiffon=new qg(255,250,205,1),e.lightblue=new qg(173,216,230,1),e.lightcoral=new qg(240,128,128,1),e.lightcyan=new qg(224,255,255,1),e.lightgoldenrodyellow=new qg(250,250,210,1),e.lightgray=new qg(211,211,211,1),e.lightgreen=new qg(144,238,144,1),e.lightgrey=e.lightgray,e.lightpink=new qg(255,182,193,1),e.lightsalmon=new qg(255,160,122,1),e.lightseagreen=new qg(32,178,170,1),e.lightskyblue=new qg(135,206,250,1),e.lightslategray=new qg(119,136,153,1),e.lightslategrey=e.lightslategray,e.lightsteelblue=new qg(176,196,222,1),e.lightyellow=new qg(255,255,224,1),e.lime=new qg(0,255,0,1),e.limegreen=new qg(50,205,50,1),e.linen=new qg(250,240,230,1),e.magenta=new qg(255,0,255,1),e.maroon=new qg(128,0,0,1),e.mediumaquamarine=new qg(102,205,170,1),e.mediumblue=new qg(0,0,205,1),e.mediumorchid=new qg(186,85,211,1),e.mediumpurple=new qg(147,112,219,1),e.mediumseagreen=new qg(60,179,113,1),e.mediumslateblue=new qg(123,104,238,1),e.mediumspringgreen=new qg(0,250,154,1),e.mediumturquoise=new qg(72,209,204,1),e.mediumvioletred=new qg(199,21,133,1),e.midnightblue=new qg(25,25,112,1),e.mintcream=new qg(245,255,250,1),e.mistyrose=new qg(255,228,225,1),e.moccasin=new qg(255,228,181,1),e.navajowhite=new qg(255,222,173,1),e.navy=new qg(0,0,128,1),e.oldlace=new qg(253,245,230,1),e.olive=new qg(128,128,0,1),e.olivedrab=new qg(107,142,35,1),e.orange=new qg(255,165,0,1),e.orangered=new qg(255,69,0,1),e.orchid=new qg(218,112,214,1),e.palegoldenrod=new qg(238,232,170,1),e.palegreen=new qg(152,251,152,1),e.paleturquoise=new qg(175,238,238,1),e.palevioletred=new qg(219,112,147,1),e.papayawhip=new qg(255,239,213,1),e.peachpuff=new qg(255,218,185,1),e.peru=new qg(205,133,63,1),e.pink=new qg(255,192,203,1),e.plum=new qg(221,160,221,1),e.powderblue=new qg(176,224,230,1),e.purple=new qg(128,0,128,1),e.red=new qg(255,0,0,1),e.rosybrown=new qg(188,143,143,1),e.royalblue=new qg(65,105,225,1),e.saddlebrown=new qg(139,69,19,1),e.salmon=new qg(250,128,114,1),e.sandybrown=new qg(244,164,96,1),e.seagreen=new qg(46,139,87,1),e.seashell=new qg(255,245,238,1),e.sienna=new qg(160,82,45,1),e.silver=new qg(192,192,192,1),e.skyblue=new qg(135,206,235,1),e.slateblue=new qg(106,90,205,1),e.slategray=new qg(112,128,144,1),e.slategrey=e.slategray,e.snow=new qg(255,250,250,1),e.springgreen=new qg(0,255,127,1),e.steelblue=new qg(70,130,180,1),e.tan=new qg(210,180,140,1),e.teal=new qg(0,128,128,1),e.thistle=new qg(216,191,216,1),e.tomato=new qg(255,99,71,1),e.turquoise=new qg(64,224,208,1),e.violet=new qg(238,130,238,1),e.wheat=new qg(245,222,179,1),e.white=new qg(255,255,255,1),e.whitesmoke=new qg(245,245,245,1),e.yellow=new qg(255,255,0,1),e.yellowgreen=new qg(154,205,50,1),e})();class Kg{constructor(e){this.hsva=new Lg(0,1,1,1),this.rgba=new qg(255,0,0,1),e&&this.stringToColor(e)}static from(e){return"string"==typeof e?new Kg(e):e instanceof Kg?e.clone():e instanceof qg?(new Kg).setRgba(e.red,e.green,e.blue,e.alpha):e instanceof Lg?(new Kg).setHsva(e.hue,e.saturation,e.value,e.alpha):e instanceof Bg?(new Kg).setHsla(e.hue,e.saturation,e.lightness,e.alpha):null}clone(){return Kg.from(this.getRgba())}setFromString(e){return this.stringToColor(e)}setHsva(e=null,t=100,n=100,r=1){return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=r&&(this.hsva.alpha=r=r>1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this}setRgba(e=null,t=null,n=null,r=1){return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this}setHsla(e,t,n,r=1){null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);const s=new Bg(e,t,n,r);return this.rgba=this.hslaToRgba(s),this.hsva=this.rgbaToHsva(this.rgba),this}toHexString(e=!1){let t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}toRgbaString(){return this.rgba.toString()}toRgbString(){return this.rgba.toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.hsva.toString()}toHsvString(){return this.hsva.toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Lg(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return new qg(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}getHsla(){return this.rgbaToHsla(this.rgba)}getCmyk(){return this.rgbaToCmyk(this.rgba)}hsvaToHsla(e){const t=e.saturation/100,n=(2-t)*e.value/2;return new Bg(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}hslaToHsva(e){const t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Lg(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}rgbaToHsva(e){const t=e.red/255,n=e.green/255,r=e.blue/255,s=e.alpha,o=Math.max(t,n,r),i=Math.min(t,n,r),a=o-i;let l=0,c=0===o?0:a/o,u=o;if(o!==i){switch(o){case t:l=(n-r)/a+(n.5?u/(2-o-i):u/(o+i),o){case t:a=(n-r)/u+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}cmykToRgba(e){const t=e.black/100,n=e.magenta/100,r=e.yellow/100;let s=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),i=Math.min(1,(1-r)*(1-t));return new qg(s*=255,o*=255,i*=255,1)}rgbaToCmyk(e){let t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,s=Math.min(t,n,r);return 1===s?new jg(0,0,0,1):(t=(t-s)/(1-s),n=(n-s)/(1-s),r=(r-s)/(1-s),new jg(t*=100,n*=100,r*=100,s*=100))}roundNumber(e){return Math.round(100*e)/100}stringToColor(e){const t=e.replace(/ /g,"").toLowerCase();let n=zg[t]||null;if("#"===t[0]){let e=t.substr(1);const r=e.length;let s,o=1;if(3===r)s=e.split("").map(e=>e+e);else if(6===r)s=e.match(/.{2}/g);else if(8===r){const t=e.substr(-2);e=e.substr(0,r-2),o=this.roundNumber(parseInt(t||"FF",16)/255),s=e.match(/.{2}/g)}3===s.length&&(n=new qg(parseInt(s[0],16),parseInt(s[1],16),parseInt(s[2],16),o))}const r=t.indexOf("("),s=t.indexOf(")");if(-1!==r&&s+1===t.length){const e=t.substr(0,r),o=t.substr(r+1,s-(r+1)).split(",");let i=1;switch(e){case"rgba":i=parseFloat(o.pop());case"rgb":n=new qg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);break;case"hsla":i=parseFloat(o.pop());case"hsl":const t=new Bg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);n=this.hslaToRgba(t);break;case"cmyk":const r=new jg(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10));n=this.cmykToRgba(r)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}class Zg{constructor(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}onEventChange(e){this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"touchend",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",e=>this.calculate(e))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",e=>this.calculate(e)))}calculateCoordinates(e){const{width:t,height:n,top:r,left:s}=this.elementRef.nativeElement.getBoundingClientRect(),o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,i=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(s+this.window.pageXOffset),t)),a=Math.max(0,Math.min(o-(r+this.window.pageYOffset),n));this.movePointer({x:i,y:a,height:n,width:t})}calculate(e){if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(()=>this.calculateCoordinates(e))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}removeListeners(){this.eventHooks.forEach(e=>e()),this.eventHooks.length=0}ngOnDestroy(){this.removeListeners()}}const Ug=["pointer"],Gg=[1,"pointer"],Qg=["pointer",""];let Wg=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.colorChange=new vc(!1)}get backgroundColor(){return this.hue?this.hue.toRgbaString():""}onClick(e){this.onEventChange(e)}ngOnInit(){this.hue||(this.hue=Kg.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.saturation,e.value)}}movePointer({x:e,y:t,height:n,width:r}){const s=100*e/r,o=-100*t/n+100;this.changePointerPosition(s,o);const i=this.hue.getHsva(),a=this.color.getHsva(),l=(new Kg).setHsva(i.hue,s,o,a.alpha);this.colorChange.emit(l)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}}return e.ngComponentDef=nt({type:e,selectors:[["saturation-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Ic(Ug,!0),2&e&&Pc(n=Mc())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ha(1),Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}),Ta()),2&e&&(Oa("background-color",t.backgroundColor),Da())},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[il,tl()],consts:2,vars:0,template:function(e,t){1&e&&za(0,"div",Gg,Qg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb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sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0}),e})();class Yg{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}}const Xg=["viewBox","0 0 48 48"],Jg=["d","M0 0h48v48h-48z","fill","none"],$g=["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"];let em=(()=>{class e{constructor(e,t,n,r){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=r,this.colorType="rgba"}get title(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}get backgroundColor(){return this.color.toRgbaString()}onClick(e){const t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}}return e.ngComponentDef=nt({type:e,selectors:[["indicator-component"]],factory:function(t){return new(t||e)(Aa(Yg),Aa(Al),Aa(xl),Aa(yh))},hostBindings:function(e,t,n){1&e&&(ha(1),Ga("click",function(e){return t.onClick(e)})),2&e&&xa("title",t.title)},inputs:{color:"color",colorType:"colorType"},consts:4,vars:1,template:function(e,t){1&e&&(La(0,"div"),Ta(),rr(),La(1,"svg",Xg),za(2,"path",Jg),za(3,"path",$g),qa(),qa()),2&e&&(Oa("background-color",t.backgroundColor),Da())},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),e})();const tm=["pointer"],nm=[1,"pointer"],rm=["pointer",""];let sm=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){const e=this.hue.getHsva();this.changePointerPosition(e.hue)}}movePointer({x:e,y:t,height:n,width:r}){const s=this.isVertical?t/n*360:e/r*360;this.changePointerPosition(s);const o=this.color.getHsva(),i=(new Kg).setHsva(s,o.saturation,o.value,o.alpha),a=(new Kg).setHsva(s,100,100,o.alpha);this.hueChange.emit(a),this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${e/360*100}%`)}}return e.ngComponentDef=nt({type:e,selectors:[["hue-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Ic(tm,!0),2&e&&Pc(n=Mc())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[il,tl()],consts:2,vars:0,template:function(e,t){1&e&&za(0,"div",nm,rm)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugd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RRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),e})();const om=["pointer"],im=[1,"pointer"],am=["pointer",""],lm=[1,"gradient-color",3,"ngStyle"],cm=function(e){return{background:e}};let um=(()=>{class e extends Zg{constructor(e,t,n){super(t,n,e),this.colorChange=new vc(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.alpha)}}movePointer({x:e,y:t,height:n,width:r}){const s=this.isVertical?t/n:e/r;this.changePointerPosition(s);const o=this.color.getHsva(),i=(new Kg).setHsva(o.hue,o.saturation,o.value,s);this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${100*e}%`)}get gradient(){const e=this.color.getRgba();return`linear-gradient(to ${this.isVertical?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}}return e.ngComponentDef=nt({type:e,selectors:[["alpha-component"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(xl))},viewQuery:function(e,t){var n;1&e&&Ic(om,!0),2&e&&Pc(n=Mc())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ga("mousedown",function(e){return t.onClick(e)}),Ga("touchstart",function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[il,tl()],consts:3,vars:3,template:function(e,t){1&e&&(za(0,"div",im,am),za(2,"div",lm)),2&e&&(Io(2),_a("ngStyle",dc(1,cm,t.gradient)))},directives:[ch],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),e})(),hm=(()=>{class e{constructor(){this.inputChange=new vc}inputChanges(e){const t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}return e.ngDirectiveDef=at({type:e,selectors:[["","inputChange",""]],factory:function(t){return new(t||e)},hostBindings:function(e,t,n){1&e&&Ga("input",function(e){return t.inputChanges(e)})},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),e})();const dm=[1,"column"],pm=["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],fm=[4,"ngIf"],gm=["class","column",4,"ngIf"];function mm(e,t){1&e&&(La(0,"span"),Xa(1,"R"),qa())}function ym(e,t){1&e&&(La(0,"span"),Xa(1,"G"),qa())}function bm(e,t){1&e&&(La(0,"span"),Xa(1,"B"),qa())}const vm=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function wm(e,t){1&e&&(La(0,"span"),Xa(1,"A"),qa())}function _m(e,t){if(1&e){const e=Za();La(0,"div",dm),La(1,"input",vm),Ga("inputChange",function(t){return Nn(e),Ya().onInputChange(t,"A")}),qa(),Sa(2,wm,2,0,"span",fm),qa()}if(2&e){const e=Ya();Io(1),_a("value",null==e.value?null:e.value.getAlpha().toString()),Io(2),_a("ngIf",e.labelVisible)}}let Cm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getRgba():null}onInputChange(e,t){const n=this.value,r="R"===t?e:n.red,s="G"===t?e:n.green,o="B"===t?e:n.blue,i="A"===t?e:n.alpha,a=(new Kg).setRgba(r,s,o,i),l=(new Kg).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}}return e.ngComponentDef=nt({type:e,selectors:[["rgba-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(La(0,"div",dm),La(1,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"R")}),qa(),Sa(2,mm,2,0,"span",fm),qa(),La(3,"div",dm),La(4,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"G")}),qa(),Sa(5,ym,2,0,"span",fm),qa(),La(6,"div",dm),La(7,"input",pm),Ga("inputChange",function(e){return t.onInputChange(e,"B")}),qa(),Sa(8,bm,2,0,"span",fm),qa(),Sa(9,_m,3,2,"div",gm)),2&e&&(Io(1),_a("value",null==t.value?null:t.value.getRed().toString()),Io(2),_a("ngIf",t.labelVisible),Io(4),_a("value",null==t.value?null:t.value.getGreen().toString()),Io(5),_a("ngIf",t.labelVisible),Io(7),_a("value",null==t.value?null:t.value.getBlue().toString()),Io(8),_a("ngIf",t.labelVisible),Io(9),_a("ngIf",t.isAlphaVisible))},directives:[hm,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const xm=[1,"column"],Sm=["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],km=[4,"ngIf"],Em=["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],Am=["class","column",4,"ngIf"];function Tm(e,t){1&e&&(La(0,"span"),Xa(1,"H"),qa())}function Om(e,t){1&e&&(La(0,"span"),Xa(1,"S"),qa())}function Pm(e,t){1&e&&(La(0,"span"),Xa(1,"L"),qa())}const Im=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function Mm(e,t){1&e&&(La(0,"span"),Xa(1,"A"),qa())}function Nm(e,t){if(1&e){const e=Za();La(0,"div",xm),La(1,"input",Im),Ga("inputChange",function(t){return Nn(e),Ya().onInputChange(t,"A")}),qa(),Sa(2,Mm,2,0,"span",km),qa()}if(2&e){const e=Ya();Io(1),_a("value",null==e.value?null:e.value.getAlpha().toString()),Io(2),_a("ngIf",e.labelVisible)}}let Dm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getHsla():null}onInputChange(e,t){const n=this.value,r="H"===t?e:n.hue,s="S"===t?e:n.saturation,o="L"===t?e:n.lightness,i="A"===t?e:n.alpha,a=(new Kg).setHsla(r,s,o,i),l=(new Kg).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}}return e.ngComponentDef=nt({type:e,selectors:[["hsla-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(La(0,"div",xm),La(1,"input",Sm),Ga("inputChange",function(e){return t.onInputChange(e,"H")}),qa(),Sa(2,Tm,2,0,"span",km),qa(),La(3,"div",xm),La(4,"input",Em),Ga("inputChange",function(e){return t.onInputChange(e,"S")}),qa(),Sa(5,Om,2,0,"span",km),qa(),La(6,"div",xm),La(7,"input",Em),Ga("inputChange",function(e){return t.onInputChange(e,"L")}),qa(),Sa(8,Pm,2,0,"span",km),qa(),Sa(9,Nm,3,2,"div",Am)),2&e&&(Io(1),_a("value",null==t.value?null:t.value.getHue().toString()),Io(2),_a("ngIf",t.labelVisible),Io(4),_a("value",(null==t.value?null:t.value.getSaturation())+"%"),Io(5),_a("ngIf",t.labelVisible),Io(7),_a("value",(null==t.value?null:t.value.getLightness())+"%"),Io(8),_a("ngIf",t.labelVisible),Io(9),_a("ngIf",t.isAlphaVisible))},directives:[hm,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const Vm=[1,"column"],Rm=["type","text",3,"value","keyup"],Fm=["elRef",""],Hm=[4,"ngIf"];function jm(e,t){1&e&&(La(0,"span"),Xa(1,"HEX"),qa())}let Bm=(()=>{class e{constructor(){this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.prefixValue=""}set label(e){this.labelVisible=!0}set prefix(e){this.prefixValue=e}get value(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}onInputChange(e){const t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){const e=new Kg(`#${t}`),n=(new Kg).setHsva(e.getHsva().hue);this.hueChange.emit(n),this.colorChange.emit(e)}}}return e.ngComponentDef=nt({type:e,selectors:[["hex-input-component"]],factory:function(t){return new(t||e)},inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:4,vars:2,template:function(e,t){if(1&e){const e=Za();La(0,"div",Vm),La(1,"input",Rm,Fm),Ga("keyup",function(n){Nn(e);const r=ka(2);return t.onInputChange(r.value)}),qa(),Sa(3,jm,2,0,"span",Hm),qa()}2&e&&(Io(1),_a("value",t.value),Io(3),_a("ngIf",t.labelVisible))},directives:[$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),e})();const Lm=Vd("opacityAnimation",[(qm=Hd({opacity:1}),{type:0,name:"true",styles:qm,options:void 0}),jd("void => *",[Hd({opacity:0}),Rd(".08s ease-in")])]);var qm;const zm=Vd("listAnimation",[jd("* => up",[Bd(":enter",[Hd({opacity:0,height:0}),Ld(-10,[Rd(".08s",Hd({opacity:1,height:"*"}))])],{optional:!0})]),jd("* => right",[Bd(":enter",[Hd({opacity:0,height:0}),Ld(-10,[Rd(".08s",Hd({opacity:1,height:"*"}))])],{optional:!0})]),jd("* => down",[Bd(":enter",[Hd({opacity:0,height:0}),Ld(10,[Rd(".08s",Hd({opacity:1,height:"*"}))])],{optional:!0})]),jd("* => left",[Bd(":enter",[Hd({opacity:0,height:0}),Ld(10,[Rd(".08s",Hd({opacity:1,height:"*"}))])],{optional:!0})])]),Km=new b(e=>e.complete());function Zm(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):Km}function Um(...e){let t=e[e.length-1];switch(E(t)?e.pop():t=void 0,e.length){case 0:return Zm(t);case 1:return t?q(e,t):function(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}(e[0]);default:return q(e,t)}}class Gm extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class Qm extends Gm{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Wm=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Ym extends Wm{constructor(e,t=Wm.now){super(e,()=>Ym.delegate&&Ym.delegate!==this?Ym.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Ym.delegate&&Ym.delegate!==this?Ym.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Xm=new Ym(Qm);let Jm=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Um(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return Zm()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class $m{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ey(e,this.delay,this.scheduler))}}class ey extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ey.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new ty(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Jm.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Jm.createComplete()),this.unsubscribe()}}class ty{constructor(e,t){this.time=e,this.notification=t}}class ny{constructor(e){this.notifier=e}call(e,t){const n=new ry(e),r=F(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class ry extends H{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,r,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let sy=(()=>{class e{constructor(e){this.pickerConfig=e,this.selectionChange=new vc(!1),this.longPress=new vc(!1),this.mouseup=new S,this.showDepthText=!1}set depth(e){this.showDepthText=!!e}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete()}get bgColor(){return this.color.toRgbaString()}get title(){const e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}get className(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}onTouch(e){var t;Um(e).pipe(j(e=>e.timeStamp||(new Date).getTime()),function(e,t=Xm){const n=350 instanceof Date&&!isNaN(350)?350-t.now():Math.abs(350);return e=>e.lift(new $m(n,t))}(),(t=this.mouseup,e=>e.lift(new ny(t)))).subscribe(()=>this.longPress.next(!0)),this.selectionChange.emit(this.color)}onTouchEnd(e){this.mouseup.next(e)}}return e.ngComponentDef=nt({type:e,selectors:[["color-preset"]],factory:function(t){return new(t||e)(Aa(Yg))},hostBindings:function(e,t,n){1&e&&(ha(3),Ga("mousedown",function(e){return t.onTouch(e)}),Ga("touchstart",function(e){return t.onTouch(e)}),Ga("mouseup",function(e){return t.onTouchEnd(e)}),Ga("touchend",function(e){return t.onTouchEnd(e)}),Ta()),2&e&&(xa("title",t.title),Oa("background-color",t.bgColor),function(e,t){const n=Cn()[bt]++;Pa($n(),n,"selected",t,!0,Ba())}(0,t.className),Da())},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},consts:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),e})(),oy=(()=>{class e{transform(e,t=!0){return t?e.slice().reverse():e}}return e.ngPipeDef=lt({name:"reverse",type:e,factory:function(t){return new(t||e)},pure:!0}),e})();const iy=[3,"show-depth-title","color","activeColor","longPress","selectionChange"],ay=[1,"reflection"],ly=["class","sublist",4,"ngIf"],cy=[1,"sublist"],uy=[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],hy=[3,"color","activeColor","selectionChange"];function dy(e,t){if(1&e){const e=Za();La(0,"color-preset",hy),Ga("selectionChange",function(t){return Nn(e),Ya(2).onSelectionChange(t)}),qa()}if(2&e){const e=t.$implicit,n=Ya(2);_a("color",e)("activeColor",n.activeColor)}}function py(e,t){if(1&e&&(La(0,"div",cy),Sa(1,dy,1,2,"color-preset",uy),fc(2,"reverse"),qa()),2&e){const e=Ya();_a("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),Io(1),_a("ngForOf",mc(2,3,e.list,"up"==e.direction||"right"==e.direction))}}let fy=(()=>{class e{constructor(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new vc(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}removeListeners(){this.hooks.forEach(e=>e()),this.hooks.length=0}onSelectionChange(e){this.selectionChange.next(e)}onLongPress(){this.showChildren=!0,this.listenDocumentClick()}listenDocumentClick(){this.hooks.push(this.renderer.listen(this.document,"mousedown",()=>this.closeList())),this.hooks.push(this.renderer.listen(this.document,"touchstart",()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}get className(){return`direction-${this.direction}`}}return e.ngComponentDef=nt({type:e,selectors:[["color-preset-sublist"]],factory:function(t){return new(t||e)(Aa(Al),Aa(yh),Aa(Zi))},hostBindings:function(e,t,n){1&e&&(ha(1),Ta()),2&e&&(Ia(t.className),Da())},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},consts:4,vars:6,template:function(e,t){1&e&&(La(0,"color-preset",iy),Ga("longPress",function(e){return t.onLongPress()}),Ga("selectionChange",function(e){return t.onSelectionChange(e)}),qa(),La(1,"div",ay),Ta(),qa(),La(2,"div",ay),Ta(),qa(),Sa(3,py,3,6,"div",ly)),2&e&&(_a("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),Io(1),Oa("background-color",t.list[0].toRgbaString()),Da(),Io(2),Oa("background-color",t.list[0].toRgbaString()),Da(),Io(3),_a("ngIf",t.showChildren))},directives:[sy,$u,Xu],pipes:[oy],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Lm,zm]},changeDetection:0}),e})(),gy=(()=>{class e{transform(e,t){return e.reduce((n,r,s)=>s%t?n:n.concat([e.slice(s,s+t)]),[])}}return e.ngPipeDef=lt({name:"chunks",type:e,factory:function(t){return new(t||e)},pure:!0}),e})();const my=["class","row",3,"ngClass",4,"ngFor","ngForOf"],yy=[1,"row",3,"ngClass"],by=["ngFor","",3,"ngForOf"],vy=[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],wy=["colorPreset",""],_y=[3,"list","direction","activeColor","ngClass","selectionChange"],Cy=function(e,t){return{first:e,last:t}};function xy(e,t){if(1&e){const e=Za();La(0,"color-preset-sublist",_y),Ga("selectionChange",function(t){return Nn(e),Ya(3).onSelectionChange(t)}),qa()}if(2&e){const e=Ya(),t=e.$implicit,n=e.first,r=e.last,s=Ya(2);_a("list",t)("direction",s.direction)("activeColor",s.color)("ngClass",pc(4,Cy,n,r))}}const Sy=[3,"ngClass","color","activeColor","selectionChange"];function ky(e,t){if(1&e){const e=Za();La(0,"color-preset",Sy),Ga("selectionChange",function(t){return Nn(e),Ya(3).onSelectionChange(t)}),qa()}if(2&e){const e=Ya(),t=e.first,n=e.last,r=e.$implicit,s=Ya(2);_a("ngClass",pc(3,Cy,t,n))("color",r)("activeColor",s.color)}}function Ey(e,t){if(1&e&&(Sa(0,xy,1,7,"color-preset-sublist",vy),Sa(1,ky,1,6,"ng-template",null,wy,Dc)),2&e){const e=t.$implicit,n=ka(2);_a("ngIf",Ya(2).isList(e))("ngIfElse",n)}}function Ay(e,t){if(1&e&&(La(0,"div",yy),Sa(1,Ey,3,2,"ng-template",by),qa()),2&e){const e=t.$implicit;_a("ngClass",pc(2,Cy,t.first,t.last)),Io(1),_a("ngForOf",e)}}let Ty=(()=>{class e{constructor(){this.columns=8,this.hueChange=new vc(!1),this.colorChange=new vc(!1),this.direction="up"}onSelectionChange(e){const t=e.getRgba(),n=e.getHsva(),r=(new Kg).setRgba(t.red,t.green,t.blue,t.alpha),s=(new Kg).setHsva(n.hue);this.hueChange.emit(s),this.colorChange.emit(r)}isList(e){return Array.isArray(e)}}return e.ngComponentDef=nt({type:e,selectors:[["color-presets-component"]],factory:function(t){return new(t||e)},inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:2,vars:4,template:function(e,t){1&e&&(Sa(0,Ay,2,5,"div",my),fc(1,"chunks")),2&e&&_a("ngForOf",mc(1,1,t.colorPresets,t.columns))},directives:[Xu,Wu,$u,fy,sy],pipes:[gy],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),e})();class Oy extends S{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(e){super.next(this._value=e)}}class Py{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Iy(e,this.compare,this.keySelector))}}class Iy extends g{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}var My=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({});class Ny{constructor(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new S,this.presetsVisibilityChanges=new Oy(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Oy(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=(e,t)=>e.toRgbaString()==t.toRgbaString(),t=>t.lift(new Py(e,void 0)))),this.colorPresets=[];const t=Kg.from(new qg(255,0,0,1));this.setValue(t),this.setHueColor(t)}setValueFrom(e){const t=Kg.from(e);return this.initValue||(this.initValue=Kg.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}setHueColor(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Kg).setHsva(e.getHsva().hue))}get hue(){return this.hueValue}set hue(e){this.hueValue=e}setValue(e){return this.modelValue=e,this.valueChanged.next(e),this}get value(){return this.modelValue}set value(e){this.setValue(e)}reset(){let e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Kg.from(new qg(255,0,0,1)),this.hueValue=(new Kg).setHsva(e.getHsva().hue)),this.setValue(e),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}finOutInputType(e){const t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=My.hex,t.length>7&&(this.initType=My.hexa));const n=t.indexOf("(");switch(t.substr(0,n)){case My.rgba:this.initType=My.rgba;break;case My.rgb:this.initType=My.rgb;break;case My.hsla:this.initType=My.hsla;break;case My.hsl:this.initType=My.hsl;break;case My.cmyk:this.initType=My.cmyk}}setColorPresets(e){return this.colorPresets=this.setPresets(e),this}setPresets(e){const t=[];for(const n of e)Array.isArray(n)?t.push(this.setPresets(n)):t.push(new Kg(n));return t}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}}function Dy(e,t){switch(t){case My.hex:return e.toHexString();case My.hexa:return e.toHexString(!0);case My.rgb:return e.toRgbString();case My.rgba:return e.toRgbaString();case My.hsl:return e.toHslString();case My.hsla:return e.toHslaString();default:return e.toRgbaString()}}const Vy=[3,"hue","color","colorChange"],Ry=[1,"controls"],Fy=[1,"controls-row","hue-alpha"],Hy=[1,"column"],jy=[3,"colorType","color"],By=[3,"hue","color","hueChange","colorChange"],Ly=[3,"color","colorChange",4,"ngIf"],qy=[1,"controls-row","presentation"],zy=[1,"column",3,"ngSwitch"],Ky=["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],Zy=["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],Uy=[1,"column","type-column"],Gy=[1,"type-btn",3,"click"],Qy=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],Wy=[3,"color","colorChange"];function Yy(e,t){if(1&e){const e=Za();La(0,"alpha-component",Wy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),qa()}2&e&&_a("color",Ya().control.value)}const Xy=["label","",3,"alpha","color","hue","colorChange","hueChange"];function Jy(e,t){if(1&e){const e=Za();La(0,"rgba-input-component",Xy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),fc(1,"async"),qa()}if(2&e){const e=Ya();_a("alpha",gc(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function $y(e,t){if(1&e){const e=Za();La(0,"hsla-input-component",Xy),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),fc(1,"async"),qa()}if(2&e){const e=Ya();_a("alpha",gc(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}const eb=["label","","prefix","#",3,"color","hue","colorChange","hueChange"];function tb(e,t){if(1&e){const e=Za();La(0,"hex-input-component",eb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("hue",e.control.hue)}}const nb=[3,"color","colorPresets","hue","colorChange","hueChange"];function rb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",nb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let sb=(()=>{class e{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new vc(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}return e.ngComponentDef=nt({type:e,selectors:[["chrome-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:18,vars:16,template:function(e,t){1&e&&(La(0,"saturation-component",Vy),Ga("colorChange",function(e){return t.control.value=e}),qa(),La(1,"div",Ry),La(2,"div",Fy),La(3,"div",Hy),za(4,"indicator-component",jy),qa(),La(5,"div",Hy),La(6,"hue-component",By),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(7,Yy,1,1,"alpha-component",Ly),fc(8,"async"),qa(),qa(),La(9,"div",qy),La(10,"div",zy),Sa(11,Jy,2,5,"rgba-input-component",Ky),Sa(12,$y,2,5,"hsla-input-component",Ky),Sa(13,tb,1,2,"hex-input-component",Zy),qa(),La(14,"div",Uy),La(15,"span",Gy),Ga("click",function(e){return t.changePresentation()}),qa(),qa(),qa(),qa(),Sa(16,rb,1,3,"color-presets-component",Qy),fc(17,"async")),2&e&&(_a("hue",t.control.hue)("color",t.control.value),Io(4),_a("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),Io(6),_a("hue",t.control.hue)("color",t.control.value),Io(7),_a("ngIf",gc(8,12,t.control.alphaChannelVisibilityChanges)),Io(10),_a("ngSwitch",t.presentations[t.selectedPresentation]),Io(11),_a("ngSwitchCase","rgba"),Io(12),_a("ngSwitchCase","hsla"),Io(13),_a("ngSwitchCase","hex"),Io(16),_a("ngIf",gc(17,14,t.control.presetsVisibilityChanges)))},directives:[Wg,em,sm,$u,rh,sh,um,Cm,Dm,Bm,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) center/6px 12px no-repeat}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.3) 0 0 2px}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-webkit-transform:scale(1.18,1.18);-ms-transform:scale(1.18,1.18);transform:scale(1.18,1.18)}"],changeDetection:0}),e})();const ob=[3,"hue","color","colorChange"],ib=[1,"controls"],ab=[1,"controls-row","hue-alpha"],lb=[1,"column"],cb=[3,"hue","color","hueChange","colorChange"],ub=[3,"color","colorChange",4,"ngIf"],hb=[1,"column","indicator-column"],db=["colorType","rgba",3,"color"],pb=[1,"controls-row","presentation"],fb=["label","",3,"color","hue","colorChange","hueChange"],gb=["label","",3,"alpha","color","hue","colorChange","hueChange"],mb=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],yb=[3,"color","colorChange"];function bb(e,t){if(1&e){const e=Za();La(0,"alpha-component",yb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),qa()}2&e&&_a("color",Ya().control.value)}const vb=[3,"color","colorPresets","hue","colorChange","hueChange"];function wb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",vb),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let _b=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["sketch-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:17,vars:18,template:function(e,t){1&e&&(La(0,"saturation-component",ob),Ga("colorChange",function(e){return t.control.value=e}),qa(),La(1,"div",ib),La(2,"div",ab),La(3,"div",lb),La(4,"hue-component",cb),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(5,bb,1,1,"alpha-component",ub),fc(6,"async"),qa(),La(7,"div",hb),za(8,"indicator-component",db),qa(),qa(),La(9,"div",pb),La(10,"div",lb),La(11,"hex-input-component",fb),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),qa(),qa(),La(12,"div",lb),La(13,"rgba-input-component",gb),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),fc(14,"async"),qa(),qa(),qa(),qa(),Sa(15,wb,1,3,"color-presets-component",mb),fc(16,"async")),2&e&&(_a("hue",t.control.hue)("color",t.control.value),Io(4),_a("hue",t.control.hue)("color",t.control.value),Io(5),_a("ngIf",gc(6,12,t.control.alphaChannelVisibilityChanges)),Io(8),_a("color",t.control.value),Io(11),_a("color",t.control.value)("hue",t.control.hue),Io(13),_a("alpha",gc(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),Io(15),_a("ngIf",gc(16,16,t.control.presetsVisibilityChanges)))},directives:[Wg,sm,$u,em,Bm,Cm,um,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px;width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.4) 0 0 2px}[_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.4) 0 1px 4px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),e})();const Cb=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],xb=[1,"controls"],Sb=[1,"controls-row","saturation-hue"],kb=[1,"column"],Eb=[3,"hue","color","colorChange"],Ab=[1,"column","hue-column"],Tb=["vertical","",3,"hue","color","hueChange","colorChange"],Ob=[1,"controls-row","presentation"],Pb=["viewBox","0 0 1024 1024",1,"pencil"],Ib=["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],Mb=["prefix","#",3,"color","hue","colorChange","hueChange"],Nb=["colorType","hex",3,"color"],Db=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"];function Vb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",Db),Ga("colorChange",function(t){return Nn(e),Ya().control.value=t}),Ga("hueChange",function(t){return Nn(e),Ya().control.hue=t}),qa()}if(2&e){const e=Ya();_a("columns",9)("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Rb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["compact-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:15,vars:10,template:function(e,t){1&e&&(Sa(0,Vb,1,4,"color-presets-component",Cb),fc(1,"async"),La(2,"div",xb),La(3,"div",Sb),La(4,"div",kb),La(5,"saturation-component",Eb),Ga("colorChange",function(e){return t.control.value=e}),qa(),qa(),La(6,"div",Ab),La(7,"hue-component",Tb),Ga("hueChange",function(e){return t.control.hue=e}),Ga("colorChange",function(e){return t.control.value=e}),qa(),qa(),qa(),La(8,"div",Ob),La(9,"div",kb),rr(),La(10,"svg",Pb),za(11,"path",Ib),qa(),sr(),La(12,"hex-input-component",Mb),Ga("colorChange",function(e){return t.control.value=e}),Ga("hueChange",function(e){return t.control.hue=e}),qa(),qa(),La(13,"div",kb),za(14,"indicator-component",Nb),qa(),qa(),qa()),2&e&&(_a("ngIf",gc(1,8,t.control.presetsVisibilityChanges)),Io(5),_a("hue",t.control.hue)("color",t.control.value),Io(7),_a("hue",t.control.hue)("color",t.control.value),Io(12),_a("color",t.control.value)("hue",t.control.hue),Io(14),_a("color",t.control.value))},directives:[$u,Wg,sm,Bm,em,Ty],pipes:[fh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 0 4px}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:0 0;border:3px solid #fff;border-radius:5px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset rgba(0,0,0,.6) 0 1px 1px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.6) 0 1px 6px}"],changeDetection:0}),e})();const Fb=["direction","down",3,"color","colorPresets","colorChange"];let Hb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Ny),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Dy(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["github-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[tl()],consts:1,vars:2,template:function(e,t){1&e&&(La(0,"color-presets-component",Fb),Ga("colorChange",function(e){return t.control.value=e}),qa()),2&e&&_a("color",t.control.value)("colorPresets",t.control.presets)},directives:[Ty],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.15) 0 3px 12px;border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}'],changeDetection:0}),e})();const jb=["direction","down",3,"columns","color","colorPresets","colorChange"],Bb=["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],Lb=["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"];function qb(e,t){if(1&e){const e=Za();La(0,"color-presets-component",Lb),Ga("colorChange",function(t){return Nn(e),Ya().childControl.value=t}),qa()}if(2&e){const e=Ya();_a("columns",7)("color",e.childControl.value)("colorPresets",e.childControl.presets)}}let zb=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new vc(!1),this.control=new Ny,this.childControl=new Ny,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}ngOnInit(){this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe(e=>{this.colorChange.emit(Dy(e,this.childControl.initType))})),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck();const t=this.mapColors[e.toHexString()];t&&this.childControl.setColorPresets(t),this.colorChange.emit(Dy(this.childControl.value,this.childControl.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Dy(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}return e.ngComponentDef=nt({type:e,selectors:[["swatches-picker"]],factory:function(t){return new(t||e)(Aa(Zi))},inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[tl()],consts:2,vars:4,template:function(e,t){1&e&&(La(0,"color-presets-component",jb),Ga("colorChange",function(e){return t.control.value=e}),qa(),Sa(1,qb,1,3,"color-presets-component",Bb)),2&e&&(_a("columns",7)("color",t.control.value)("colorPresets",t.control.presets),Io(1),_a("ngIf",t.childControl.presets.length))},directives:[Ty,$u],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.3) 0 0 2px;border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),e})(),Kb=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:Yg,useValue:t||new Yg}]}}}return e.ngModuleDef=ot({type:e}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)},providers:[Yg],imports:[[gh]]}),e})();var Zb=n("Eh/9");const Ub=[3,"control",4,"ngIf"],Gb=["class","overlay",3,"click",4,"ngIf"],Qb=[3,"control"];function Wb(e,t){1&e&&za(0,"chrome-picker",Qb),2&e&&_a("control",Ya().colorControl)}const Yb=[1,"overlay",3,"click"];function Xb(e,t){if(1&e){const e=Za();La(0,"div",Yb),Ga("click",function(t){return Nn(e),Ya().overlayClick(t)}),qa()}}let Jb=(()=>{class e{constructor(){this.colorControl=new Ny,this.isVisible=!1,this.colorChange=new vc}set color(e){this.colorControl.setValueFrom(e)}get background(){return this.colorControl.value.toHexString()}ngOnInit(){this.colorControl.valueChanges.subscribe(e=>this.colorChange.emit(e.toHexString()))}showColorPicker(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)}overlayClick(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1}}return e.ngComponentDef=nt({type:e,selectors:[["chrome-wrapper"]],factory:function(t){return new(t||e)},hostBindings:function(e,t,n){1&e&&(ha(1),Ga("click",function(e){return t.showColorPicker(e)}),Ta()),2&e&&(Oa("background-color",t.background),Da())},inputs:{color:"color"},outputs:{colorChange:"colorChange"},consts:2,vars:2,template:function(e,t){1&e&&(Sa(0,Wb,1,1,"chrome-picker",Ub),Sa(1,Xb,1,0,"div",Gb)),2&e&&(_a("ngIf",t.isVisible),Io(1),_a("ngIf",t.isVisible))},directives:[$u,sb],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:0 0;left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),e})();const $b=[1,"jumbotron"],ev=[1,"background"],tv=[1,"container"],nv=[1,"row"],rv=[1,"col"],sv=[1,"display-4"],ov=["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],iv=[1,"row","pickers-row"],av=[1,"col","col-md-6","text-right"],lv=[3,"color","colorChange"],cv=[1,"col","col-md-6"],uv=[1,"card"],hv=[1,"card-header"],dv=[1,"card-block"],pv=[2,"padding","0 0 0 40px"],fv=["id","installation",1,"card"],gv=[1,"prettify"],mv=["id","usage",1,"card"],yv=[1,"col","col-lg-4"],bv=[1,"info-row"],vv=[3,"control"],wv=[1,"col","col-lg-8"],_v=[1,"buttons-row"],Cv=[1,"btn","btn-primary",3,"click"],xv=["id","wrap-component",1,"card"],Sv=[1,"table","table-bordered","table-striped"],kv=["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"];let Ev=(()=>{class e{constructor(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Ny).setValueFrom(zg.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Ny).setValueFrom("#A6771C"),this.compactControl=new Ny,this.githubControl=(new Ny).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}ngAfterViewInit(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(e=>e.innerHTML=Zb.prettyPrintOne(e.innerHTML))}}return e.ngComponentDef=nt({type:e,selectors:[["app-root"]],factory:function(t){return new(t||e)(Aa(xl))},consts:726,vars:47,template:function(e,t){if(1&e){La(0,"div",$b),La(1,"div",ev),Ta(),qa(),La(2,"div",tv),La(3,"div",nv),La(4,"div",rv),La(5,"h1",sv),Xa(6,"@iplab/ngx-color-picker"),qa(),za(7,"br"),La(8,"a",ov),Xa(9,"GitHub"),qa(),qa(),qa(),La(10,"div",iv),La(11,"div",av),La(12,"sketch-picker",lv),Ga("colorChange",function(e){return t.color=e}),qa(),qa(),La(13,"div",cv),La(14,"chrome-picker",lv),Ga("colorChange",function(e){return t.color=e}),qa(),qa(),qa(),qa(),qa(),La(15,"div",tv),La(16,"div",uv),La(17,"div",hv),Xa(18,"Getting started"),qa(),La(19,"div",dv),La(20,"ol"),La(21,"li"),Xa(22,"Fork and clone this repo"),qa(),La(23,"li"),Xa(24,"npm install"),qa(),La(25,"li"),Xa(26,'Open a terminal and type "npm run start"'),qa(),qa(),La(27,"p",pv),La(28,"b"),Xa(29,"or"),qa(),qa(),La(30,"ol"),La(31,"li"),Xa(32,"npm install @iplab/ngx-color-picker --save"),qa(),La(33,"li"),Xa(34,"ng serve --open"),qa(),qa(),qa(),qa(),za(35,"br"),La(36,"div",uv),La(37,"div",hv),Xa(38,"Description"),qa(),La(39,"div",dv),La(40,"p"),Xa(41,"Pure Angular color picker library."),qa(),La(42,"ul"),La(43,"li"),Xa(44,"It's an Angular color picker"),qa(),La(45,"li"),Xa(46,"Compatible with Angular 5+ versions"),qa(),La(47,"li"),Xa(48,"No external dependency"),qa(),La(49,"li"),Xa(50,"Simple to configure"),qa(),La(51,"li"),Xa(52,"Easy to use"),qa(),qa(),qa(),qa(),za(53,"br"),La(54,"div",fv),La(55,"div",hv),Xa(56,"Installation"),qa(),La(57,"div",dv),La(58,"p"),Xa(59,"To install this component to an external project, follow the procedure:"),qa(),La(60,"ol"),La(61,"li"),La(62,"code"),Xa(63,"npm install @iplab/ngx-color-picker --save"),qa(),qa(),La(64,"li"),La(65,"pre",gv),Xa(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),La(67,"b"),Xa(68,"BrowserAnimationsModule"),qa(),Xa(69," or "),La(70,"b"),Xa(71,"NoopAnimationsModule"),qa(),Xa(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),qa(),qa(),La(73,"li"),La(74,"code"),Xa(75,''),qa(),qa(),qa(),qa(),qa(),za(76,"br"),La(77,"div",mv),La(78,"div",hv),Xa(79,"Usage"),qa(),La(80,"div",dv),La(81,"h6"),Xa(82,"predefined components"),qa(),La(83,"p"),Xa(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),za(85,"br"),Xa(86," can be used with direct color binding "),La(87,"b"),Xa(88,"or/and"),qa(),Xa(89," with control which provides greater flexibility"),qa(),La(90,"p"),La(91,"code"),Xa(92,''),qa(),za(93,"br"),La(94,"code"),Xa(95,''),qa(),za(96,"br"),La(97,"code"),Xa(98,''),qa(),za(99,"br"),La(100,"code"),Xa(101,''),qa(),za(102,"br"),La(103,"code"),Xa(104,''),qa(),qa(),za(105,"hr"),La(106,"h6"),Xa(107,"[color] attribute"),qa(),La(108,"p"),Xa(109,"When binding over attribute "),La(110,"b"),Xa(111,"[color]"),qa(),Xa(112," is used, component try to determine which value type is used so the output would be the same."),za(113,"br"),La(114,"b"),Xa(115,"Examples:"),qa(),za(116,"br"),La(117,"code"),Xa(118,''),qa(),Xa(119," -> output is "),La(120,"b"),Xa(121,"rgb"),qa(),za(122,"br"),La(123,"code"),Xa(124,''),qa(),Xa(125," -> output is "),La(126,"b"),Xa(127,"rgba"),qa(),za(128,"br"),La(129,"code"),Xa(130,''),qa(),Xa(131," -> output is "),La(132,"b"),Xa(133,"hsl"),qa(),za(134,"br"),La(135,"code"),Xa(136,''),qa(),Xa(137," -> output is "),La(138,"b"),Xa(139,"hex"),qa(),qa(),za(140,"hr"),La(141,"h6"),Xa(142,"[control] attribute"),qa(),La(143,"p"),Xa(144,"When binding over "),La(145,"b"),Xa(146,"[control]"),qa(),Xa(147," user have greater control over color output and all events"),za(148,"br"),La(149,"b"),Xa(150,"Examples:"),qa(),za(151,"br"),La(152,"code"),Xa(153,''),qa(),qa(),za(154,"hr"),La(155,"h6"),Xa(156,"color indicator"),qa(),La(157,"p"),Xa(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),za(159,"br"),Xa(160," Text which is displayed on mouseover can be configured over NgModule configuration"),qa(),La(161,"pre",gv),Xa(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),qa(),za(163,"hr"),La(164,"h6"),Xa(165,"color presets"),qa(),La(166,"p"),Xa(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),za(168,"br"),Xa(169," Text which is displayed on mouseover can be configured over NgModule configuration"),qa(),La(170,"pre",gv),bn=!1,Xa(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),bn=!0,qa(),za(172,"hr"),La(173,"h6"),Xa(174,"all color picker parts"),qa(),La(175,"p"),Xa(176,"Color picker library exports all parts to enable custom components builds"),za(177,"br"),Xa(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),qa(),La(179,"pre",gv),Xa(180,'\n\n\n\n\n\n\n\n\n\n'),qa(),La(181,"h6"),Xa(182,"attributes explanation"),qa(),La(183,"p"),La(184,"b"),Xa(185,"color =>"),qa(),Xa(186," currently selected color (output color)"),za(187,"br"),La(188,"b"),Xa(189,"hue =>"),qa(),Xa(190," color used internally as current hue color"),za(191,"br"),La(192,"b"),Xa(193,"colorType =>"),qa(),Xa(194," specify which type of color should be copied to the clipboard"),za(195,"br"),La(196,"b"),Xa(197,"vertical =>"),qa(),Xa(198," should component be placed horizontally or vertically"),za(199,"br"),La(200,"b"),Xa(201,"alpha =>"),qa(),Xa(202," should component display alpha channel"),za(203,"br"),La(204,"b"),Xa(205,"label =>"),qa(),Xa(206," whether the label will be displayed or not (rgba, hsla, hex)"),za(207,"br"),La(208,"b"),Xa(209,"prefix =>"),qa(),Xa(210," definition of label prefix"),za(211,"br"),La(212,"b"),Xa(213,"colorPresets =>"),qa(),Xa(214," list of colors used as presets "),qa(),qa(),qa(),za(215,"br"),La(216,"div",uv),La(217,"div",hv),Xa(218,"Chrome color picker"),qa(),La(219,"div",dv),La(220,"div",nv),La(221,"div",yv),La(222,"div",bv),La(223,"code"),Xa(224),qa(),La(225,"code"),Xa(226),qa(),La(227,"code"),Xa(228),qa(),La(229,"code"),Xa(230),qa(),La(231,"code"),Xa(232),qa(),La(233,"code"),Xa(234),qa(),La(235,"code"),Xa(236),qa(),La(237,"code"),Xa(238),qa(),La(239,"code"),Xa(240),qa(),qa(),za(241,"chrome-picker",vv),qa(),La(242,"div",wv),La(243,"p"),Xa(244,"Component code"),qa(),La(245,"pre",gv),Xa(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),qa(),La(247,"p"),Xa(248,"Template code"),qa(),La(249,"pre",gv),Xa(250,''),qa(),qa(),qa(),La(251,"div",_v),La(252,"button",Cv),Ga("click",function(e){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()}),Xa(253,"Toggle presets visibility"),qa(),Xa(254," \xa0 "),La(255,"button",Cv),Ga("click",function(e){return t.chromeControl.reset()}),Xa(256,"Reset to initial"),qa(),Xa(257," \xa0 "),La(258,"button",Cv),Ga("click",function(e){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()}),Xa(259,"Toggle alpha channel"),qa(),qa(),qa(),qa(),za(260,"br"),La(261,"div",uv),La(262,"div",hv),Xa(263,"Sketch color picker"),qa(),La(264,"div",dv),La(265,"div",nv),La(266,"div",yv),La(267,"div",bv),La(268,"code"),Xa(269),qa(),La(270,"code"),Xa(271),qa(),La(272,"code"),Xa(273),qa(),La(274,"code"),Xa(275),qa(),La(276,"code"),Xa(277),qa(),La(278,"code"),Xa(279),qa(),La(280,"code"),Xa(281),qa(),La(282,"code"),Xa(283),qa(),La(284,"code"),Xa(285),qa(),qa(),za(286,"sketch-picker",vv),qa(),La(287,"div",wv),La(288,"p"),Xa(289,"Component code"),qa(),La(290,"pre",gv),Xa(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),qa(),La(292,"p"),Xa(293,"Template code"),qa(),La(294,"pre",gv),Xa(295,''),qa(),qa(),qa(),La(296,"div",_v),La(297,"button",Cv),Ga("click",function(e){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()}),Xa(298,"Toggle presets visibility"),qa(),Xa(299," \xa0 "),La(300,"button",Cv),Ga("click",function(e){return t.sketchControl.reset()}),Xa(301,"Reset to initial"),qa(),Xa(302," \xa0 "),La(303,"button",Cv),Ga("click",function(e){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()}),Xa(304,"Toggle alpha channel"),qa(),qa(),qa(),qa(),za(305,"br"),La(306,"div",uv),La(307,"div",hv),Xa(308,"Compact color picker"),qa(),La(309,"div",dv),La(310,"div",nv),La(311,"div",yv),La(312,"div",bv),La(313,"code"),Xa(314),qa(),La(315,"code"),Xa(316),qa(),La(317,"code"),Xa(318),qa(),La(319,"code"),Xa(320),qa(),La(321,"code"),Xa(322),qa(),La(323,"code"),Xa(324),qa(),La(325,"code"),Xa(326),qa(),La(327,"code"),Xa(328),qa(),La(329,"code"),Xa(330),qa(),qa(),za(331,"compact-picker",vv),qa(),La(332,"div",wv),La(333,"p"),Xa(334,"Component code"),qa(),La(335,"pre",gv),Xa(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),qa(),La(337,"p"),Xa(338,"Template code"),qa(),La(339,"pre",gv),Xa(340,''),qa(),qa(),qa(),La(341,"div",_v),La(342,"button",Cv),Ga("click",function(e){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()}),Xa(343,"Toggle presets visibility"),qa(),Xa(344," \xa0 "),La(345,"button",Cv),Ga("click",function(e){return t.compactControl.reset()}),Xa(346,"Reset to initial"),qa(),qa(),qa(),qa(),za(347,"br"),La(348,"div",uv),La(349,"div",hv),Xa(350,"Github color picker"),qa(),La(351,"div",dv),La(352,"div",nv),La(353,"div",yv),La(354,"div",bv),La(355,"code"),Xa(356),qa(),La(357,"code"),Xa(358),qa(),La(359,"code"),Xa(360),qa(),La(361,"code"),Xa(362),qa(),La(363,"code"),Xa(364),qa(),La(365,"code"),Xa(366),qa(),La(367,"code"),Xa(368),qa(),La(369,"code"),Xa(370),qa(),La(371,"code"),Xa(372),qa(),qa(),za(373,"github-picker",vv),qa(),La(374,"div",wv),La(375,"p"),Xa(376,"Component code"),qa(),La(377,"pre",gv),Xa(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),qa(),La(379,"p"),Xa(380,"Template code"),qa(),La(381,"pre",gv),Xa(382,''),qa(),qa(),qa(),La(383,"div",_v),La(384,"button",Cv),Ga("click",function(e){return t.githubControl.reset()}),Xa(385,"Reset to initial"),qa(),qa(),qa(),qa(),za(386,"br"),La(387,"div",uv),La(388,"div",hv),Xa(389,"Swatches color picker"),qa(),La(390,"div",dv),La(391,"div",nv),La(392,"div",yv),La(393,"p"),Xa(394,"Swatches component only supports binding over color attribute"),qa(),La(395,"div",bv),La(396,"code"),Xa(397),qa(),za(398,"br"),qa(),La(399,"swatches-picker",lv),Ga("colorChange",function(e){return t.swatchesColor=e}),qa(),qa(),La(400,"div",wv),La(401,"p"),Xa(402,"Component code"),qa(),La(403,"pre",gv),Xa(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),qa(),La(405,"p"),Xa(406,"Template code"),qa(),La(407,"pre",gv),Xa(408,''),qa(),qa(),qa(),qa(),qa(),za(409,"br"),La(410,"div",xv),La(411,"div",hv),Xa(412,"How to wrapp color picker"),qa(),La(413,"div",dv),La(414,"div",nv),La(415,"div",yv),La(416,"div",bv),La(417,"code"),Xa(418),qa(),za(419,"br"),qa(),La(420,"chrome-wrapper",lv),Ga("colorChange",function(e){return t.wrapperColor=e}),qa(),qa(),La(421,"div",wv),La(422,"p"),Xa(423,"Component code"),qa(),La(424,"pre",gv),Xa(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n

\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),qa(),La(426,"p"),Xa(427,"Use case"),qa(),La(428,"pre",gv),Xa(429,''),qa(),qa(),qa(),qa(),qa(),za(430,"br"),La(431,"div",uv),La(432,"div",hv),Xa(433,"ColorPickerControl methods"),qa(),La(434,"div",dv),La(435,"table",Sv),La(436,"thead"),La(437,"tr"),La(438,"th"),Xa(439,"Property"),qa(),La(440,"th"),Xa(441,"Type"),qa(),La(442,"th"),Xa(443,"Description"),qa(),qa(),qa(),La(444,"tbody"),La(445,"tr"),La(446,"td"),Xa(447,"setValueFrom"),qa(),La(448,"td"),La(449,"code"),Xa(450,"Function"),qa(),qa(),La(451,"td"),Xa(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),qa(),qa(),La(453,"tr"),La(454,"td"),Xa(455,"value"),qa(),La(456,"td"),La(457,"code"),Xa(458,"Getter.value"),qa(),qa(),La(459,"td"),Xa(460,"get value as a Color object"),qa(),qa(),La(461,"tr"),La(462,"td"),Xa(463,"reset"),qa(),La(464,"td"),La(465,"code"),Xa(466,"Function"),qa(),qa(),La(467,"td"),Xa(468,"reset value to initial state"),qa(),qa(),La(469,"tr"),La(470,"td"),Xa(471,"valueChanges"),qa(),La(472,"td"),La(473,"code"),Xa(474,"Observable"),qa(),qa(),La(475,"td"),Xa(476,"Used to observe component value changes"),qa(),qa(),La(477,"tr"),La(478,"td"),Xa(479,"isAlphaChannelEnabled"),qa(),La(480,"td"),La(481,"code"),Xa(482,"Function"),qa(),qa(),La(483,"td"),Xa(484,"return is alpha changel enabled"),qa(),qa(),La(485,"tr"),La(486,"td"),Xa(487,"showAlphaChannel"),qa(),La(488,"td"),La(489,"code"),Xa(490,"Function"),qa(),qa(),La(491,"td"),Xa(492,"show alpha channel"),qa(),qa(),La(493,"tr"),La(494,"td"),Xa(495,"hideAlphaChannel"),qa(),La(496,"td"),La(497,"code"),Xa(498,"Function"),qa(),qa(),La(499,"td"),Xa(500,"hide alpha channel"),qa(),qa(),La(501,"tr"),La(502,"td"),Xa(503,"alphaChannelVisibilityChanges"),qa(),La(504,"td"),La(505,"code"),Xa(506,"BehaviorSubject"),qa(),qa(),La(507,"td"),Xa(508,"Used to observe alpha channel changes"),qa(),qa(),La(509,"tr"),La(510,"td"),Xa(511,"setColorPresets"),qa(),La(512,"td"),La(513,"code"),Xa(514,"Function"),qa(),qa(),La(515,"td"),Xa(516,"define color preset list"),qa(),qa(),La(517,"tr");La(518,"td"),Xa(519,"presets"),qa(),La(520,"td"),La(521,"code"),Xa(522,"Getter.presets"),qa(),qa(),La(523,"td"),Xa(524,"get color presets"),qa(),qa(),La(525,"tr"),La(526,"td"),Xa(527,"hasPresets"),qa(),La(528,"td"),La(529,"code"),Xa(530,"Function"),qa(),qa(),La(531,"td"),Xa(532,"return status of predefined color presets"),qa(),qa(),La(533,"tr"),La(534,"td"),Xa(535,"showPresets"),qa(),La(536,"td"),La(537,"code"),Xa(538,"Function"),qa(),qa(),La(539,"td"),Xa(540,"show predefined color presets"),qa(),qa(),La(541,"tr"),La(542,"td"),Xa(543,"hidePresets"),qa(),La(544,"td"),La(545,"code"),Xa(546,"Function"),qa(),qa(),La(547,"td"),Xa(548,"hide predefined color presets"),qa(),qa(),La(549,"tr"),La(550,"td"),Xa(551,"presetsVisibilityChanges"),qa(),La(552,"td"),La(553,"code"),Xa(554,"BehaviorSubject"),qa(),qa(),La(555,"td"),Xa(556,"Used to observe color preset visibility"),qa(),qa(),qa(),qa(),qa(),qa(),za(557,"br"),La(558,"div",uv),La(559,"div",hv),Xa(560,"Color methods"),qa(),La(561,"div",dv),La(562,"table",Sv),La(563,"thead"),La(564,"tr"),La(565,"th"),Xa(566,"Property"),qa(),La(567,"th"),Xa(568,"Type"),qa(),La(569,"th"),Xa(570,"Description"),qa(),qa(),qa(),La(571,"tbody"),La(572,"tr"),La(573,"td"),Xa(574,"Color.from"),qa(),La(575,"td"),La(576,"code"),Xa(577,"static method"),qa(),qa(),La(578,"td"),Xa(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),qa(),qa(),La(580,"tr"),La(581,"td"),Xa(582,"clone"),qa(),La(583,"td"),La(584,"code"),Xa(585,"Function"),qa(),qa(),La(586,"td"),Xa(587,"create new Color object"),qa(),qa(),La(588,"tr"),La(589,"td"),Xa(590,"setFromString"),qa(),La(591,"td"),La(592,"code"),Xa(593,"Function"),qa(),qa(),La(594,"td"),Xa(595,"change the value by providing the string"),qa(),qa(),La(596,"tr"),La(597,"td"),Xa(598,"setHsva"),qa(),La(599,"td"),La(600,"code"),Xa(601,"Function"),qa(),qa(),La(602,"td"),Xa(603,"change the value by providing hsv values"),qa(),qa(),La(604,"tr"),La(605,"td"),Xa(606,"setRgba"),qa(),La(607,"td"),La(608,"code"),Xa(609,"Function"),qa(),qa(),La(610,"td"),Xa(611,"change the value by providing rgb values"),qa(),qa(),La(612,"tr"),La(613,"td"),Xa(614,"setHsla"),qa(),La(615,"td"),La(616,"code"),Xa(617,"Function"),qa(),qa(),La(618,"td"),Xa(619,"change the value by providing hsl values"),qa(),qa(),La(620,"tr"),La(621,"td"),Xa(622,"toHexString"),qa(),La(623,"td"),La(624,"code"),Xa(625,"Function"),qa(),qa(),La(626,"td"),Xa(627,"convert Color object to hex string"),qa(),qa(),La(628,"tr"),La(629,"td"),Xa(630,"toRgbString"),qa(),La(631,"td"),La(632,"code"),Xa(633,"Function"),qa(),qa(),La(634,"td"),Xa(635,"convert Color object to rgb string"),qa(),qa(),La(636,"tr"),La(637,"td"),Xa(638,"toRgbaString"),qa(),La(639,"td"),La(640,"code"),Xa(641,"Function"),qa(),qa(),La(642,"td"),Xa(643,"convert Color object to rgba string"),qa(),qa(),La(644,"tr"),La(645,"td"),Xa(646,"toHslString"),qa(),La(647,"td"),La(648,"code"),Xa(649,"Function"),qa(),qa(),La(650,"td"),Xa(651,"convert Color object to hsl string"),qa(),qa(),La(652,"tr"),La(653,"td"),Xa(654,"toHslaString"),qa(),La(655,"td"),La(656,"code"),Xa(657,"Function"),qa(),qa(),La(658,"td"),Xa(659,"convert Color object to hsla string"),qa(),qa(),La(660,"tr"),La(661,"td"),Xa(662,"toHsvString"),qa(),La(663,"td"),La(664,"code"),Xa(665,"Function"),qa(),qa(),La(666,"td"),Xa(667,"convert Color object to hsv string"),qa(),qa(),La(668,"tr"),La(669,"td"),Xa(670,"toHsvaString"),qa(),La(671,"td"),La(672,"code"),Xa(673,"Function"),qa(),qa(),La(674,"td"),Xa(675,"convert Color object to hsva string"),qa(),qa(),La(676,"tr"),La(677,"td"),Xa(678,"toCmykString"),qa(),La(679,"td"),La(680,"code"),Xa(681,"Function"),qa(),qa(),La(682,"td"),Xa(683,"convert Color object to cmyk string"),qa(),qa(),La(684,"tr"),La(685,"td"),Xa(686,"getHsva"),qa(),La(687,"td"),La(688,"code"),Xa(689,"Function"),qa(),qa(),La(690,"td"),Xa(691,"return Hsva object"),qa(),qa(),La(692,"tr"),La(693,"td"),Xa(694,"getRgba"),qa(),La(695,"td"),La(696,"code"),Xa(697,"Function"),qa(),qa(),La(698,"td"),Xa(699,"return Rgba object"),qa(),qa(),La(700,"tr"),La(701,"td"),Xa(702,"getHsla"),qa(),La(703,"td"),La(704,"code"),Xa(705,"Function"),qa(),qa(),La(706,"td"),Xa(707,"return Hsla object"),qa(),qa(),La(708,"tr"),La(709,"td"),Xa(710,"getCmyk"),qa(),La(711,"td"),La(712,"code"),Xa(713,"Function"),qa(),qa(),La(714,"td"),Xa(715,"return Cmyk object"),qa(),qa(),qa(),qa(),qa(),qa(),za(716,"br"),La(717,"div",uv),La(718,"div",hv),Xa(719,"ColorsTable"),qa(),La(720,"div",dv),La(721,"p"),Xa(722,"ColorTable is class with static properties which represent Rgba colors defined by "),La(723,"a",kv),Xa(724,"list of the X11 colors"),qa(),qa(),qa(),qa(),za(725,"br"),qa()}2&e&&(Io(1),Oa("background-color",t.color),Da(),Io(12),_a("color",t.color),Io(14),_a("color",t.color),Io(224),Ja("selected hex: ",t.chromeControl.value.toHexString(),""),Io(226),Ja("selected hexa: ",t.chromeControl.value.toHexString(!0),""),Io(228),Ja("selected rgb: ",t.chromeControl.value.toRgbString(),""),Io(230),Ja("selected rgba: ",t.chromeControl.value.toRgbaString(),""),Io(232),Ja("selected hsl: ",t.chromeControl.value.toHslString(),""),Io(234),Ja("selected hsla: ",t.chromeControl.value.toHslaString(),""),Io(236),Ja("selected hsv: ",t.chromeControl.value.toHsvString(),""),Io(238),Ja("selected hsva: ",t.chromeControl.value.toHsvaString(),""),Io(240),Ja("selected cmyk: ",t.chromeControl.value.toCmykString(),""),Io(241),_a("control",t.chromeControl),Io(269),Ja("selected hex: ",t.sketchControl.value.toHexString(),""),Io(271),Ja("selected hexa: ",t.sketchControl.value.toHexString(!0),""),Io(273),Ja("selected rgb: ",t.sketchControl.value.toRgbString(),""),Io(275),Ja("selected rgba: ",t.sketchControl.value.toRgbaString(),""),Io(277),Ja("selected hsl: ",t.sketchControl.value.toHslString(),""),Io(279),Ja("selected hsla: ",t.sketchControl.value.toHslaString(),""),Io(281),Ja("selected hsv: ",t.sketchControl.value.toHsvString(),""),Io(283),Ja("selected hsva: ",t.sketchControl.value.toHsvaString(),""),Io(285),Ja("selected cmyk: ",t.sketchControl.value.toCmykString(),""),Io(286),_a("control",t.sketchControl),Io(314),Ja("selected hex: ",t.compactControl.value.toHexString(),""),Io(316),Ja("selected hexa: ",t.compactControl.value.toHexString(!0),""),Io(318),Ja("selected rgb: ",t.compactControl.value.toRgbString(),""),Io(320),Ja("selected rgba: ",t.compactControl.value.toRgbaString(),""),Io(322),Ja("selected hsl: ",t.compactControl.value.toHslString(),""),Io(324),Ja("selected hsla: ",t.compactControl.value.toHslaString(),""),Io(326),Ja("selected hsv: ",t.compactControl.value.toHsvString(),""),Io(328),Ja("selected hsva: ",t.compactControl.value.toHsvaString(),""),Io(330),Ja("selected cmyk: ",t.compactControl.value.toCmykString(),""),Io(331),_a("control",t.compactControl),Io(356),Ja("selected hex: ",t.githubControl.value.toHexString(),""),Io(358),Ja("selected hexa: ",t.githubControl.value.toHexString(!0),""),Io(360),Ja("selected rgb: ",t.githubControl.value.toRgbString(),""),Io(362),Ja("selected rgba: ",t.githubControl.value.toRgbaString(),""),Io(364),Ja("selected hsl: ",t.githubControl.value.toHslString(),""),Io(366),Ja("selected hsla: ",t.githubControl.value.toHslaString(),""),Io(368),Ja("selected hsv: ",t.githubControl.value.toHsvString(),""),Io(370),Ja("selected hsva: ",t.githubControl.value.toHsvaString(),""),Io(372),Ja("selected cmyk: ",t.githubControl.value.toCmykString(),""),Io(373),_a("control",t.githubControl),Io(397),Ja("selected color: ",t.swatchesColor,""),Io(399),_a("color",t.swatchesColor),Io(418),Ja("selected color: ",t.wrapperColor,""),Io(420),_a("color",t.wrapperColor))},directives:[_b,sb,Rb,Hb,zb,Jb],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:0 0}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:0}"]}),e})(),Av=(()=>{class e{}return e.ngModuleDef=ot({type:e}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)},imports:[[Id,Kb]]}),e})(),Tv=(()=>{class e{}return e.ngModuleDef=ot({type:e,bootstrap:[Ev]}),e.ngInjectorDef=ce({factory:function(t){return new(t||e)},providers:[],imports:[[Id,Kb,Rg,Av]]}),e})();(function(){if(xs)throw new Error("Cannot enable prod mode after platform setup.");Cs=!1})(),Od().bootstrapModule(Tv).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/docs/main-es5.89c8eade1d837bc89f5d.js b/docs/main-es5.64d81fb91380c0336797.js similarity index 84% rename from docs/main-es5.89c8eade1d837bc89f5d.js rename to docs/main-es5.64d81fb91380c0336797.js index ede739e..ef47b58 100644 --- a/docs/main-es5.89c8eade1d837bc89f5d.js +++ b/docs/main-es5.64d81fb91380c0336797.js @@ -1 +1 @@ -function _defineProperties(e,t){for(var n=0;n=0;)o[h.charAt(f)]=c;a.hasOwnProperty(h=""+(c=c[1]))||(s.push(c),a[h]=i)}s.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),i=(e=[],["["]);(o="^"===r[0])&&i.push("^");for(var o=o?1:0,s=r.length;o122||(a<65||u>90||e.push([32|Math.max(65,u),32|Math.min(a,90)]),a<97||u>122||e.push([-33&Math.max(97,u),-33&Math.min(a,122)]))}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],s=[],o=0;ou[0]&&(u[1]+1>u[0]&&i.push("-"),i.push(n(u[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=t.length,a=[],u=0,l=0;u=2&&"["===e?t[u]=r(c):"\\"!==e&&(t[u]=c.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var o=0,s=!1,a=!1,u=0,l=e.length;u=5&&"lang-"===m.substring(0,5))||y&&"string"==typeof y[1]||(g=!1,m="src"),g||(f[v]=m)}if(b=l,l+=v.length,g){var _=v.indexOf(g=y[1]),w=_+g.length;y[2]&&(_=(w=v.length-y[2].length)-g.length),m=m.substring(5),n(a+b,v.substring(0,_),e,u),n(a+b+_,g,c(m,g),u),n(a+b+w,v.substring(w),e,u)}else u.push(a+b,m)}i.g=u}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,i,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,i,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,i,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,i]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,i,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,i,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,i])):t.push(["com",/^#[^\n\r]*/,i,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,i]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,i])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),i]),t.push(["pln",/^\s+/,i," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,i],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,i],["pln",/^[$_a-z][\w$@]*/i,i],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,i,"0123456789"],["pln",/^\\[\S\s]?/,i],["pun",RegExp(r),i]),s(t,n)}function u(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var u=e.nodeValue,l=u.match(s);l&&(t=u.substring(0,l.index),e.nodeValue=t,(u=u.substring(l.index+l[0].length))&&e.parentNode.insertBefore(a.createTextNode(u),e.nextSibling),i(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function i(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(i=t.parentNode){var i=e(i,1),o=t.nextSibling;i.appendChild(r);for(var s=o;s;s=o)o=s.nextSibling,i.appendChild(s)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;l.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=e.ownerDocument,u=a.createElement("li");e.firstChild;)u.appendChild(e.firstChild);for(var l=[u],c=0;c=0;){var r=t[n];S.hasOwnProperty(r)?p.console&&console.warn("cannot override language handler %s",r):S[r]=e}}function c(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=k&&(g+=2)}}finally{_&&(_.style.display=b)}}catch(T){p.console&&console.log(T&&T.stack||T)}}var f,d,p=window,g=[f=[[d=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],v=[f,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[v,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],y=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],b=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],w=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,k=a({keywords:[g,m,f=[f,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",y,b,d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};l(k,["default-code"]),l(s([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(s([["pln",/^\s+/,i," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,i,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'\/>]|\/(?=\s)))/],["pun",/^[\/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),l(s([],[["atv",/^[\S\s]+/]]),["uq.val"]),l(a({keywords:g,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),l(a({keywords:"null,true,false"}),["json"]),l(a({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),l(a({keywords:v,cStyleComments:!0}),["java"]),l(a({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(a({keywords:y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(a({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(a({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(a({keywords:_,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(s([],[["str",/^[\S\s]+/]]),["regex"]);var x=p.PR={createSimpleLexer:s,registerLangHandler:l,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:p.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="
"+e+"
",r=r.firstChild,n&&u(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:p.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],s=[],a=0;a0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(V);function q(e){return e}function z(){return function(e){return e.lift(new K(e))}}var K=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new Z(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),Z=function(e){function t(t,n){var r;return(r=e.call(this,t)||this).connectable=n,r}return _inheritsLoose(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(m),U=function(e){function t(t,n){var r;return(r=e.call(this)||this).source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}_inheritsLoose(t,e);var n=t.prototype;return n._subscribe=function(e){return this.getSubject().subscribe(e)},n.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},n.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e},n.refCount=function(){return z()(this)},t}(_).prototype,G={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}},Q=function(e){function t(t,n){var r;return(r=e.call(this,t)||this).connectable=n,r}_inheritsLoose(t,e);var n=t.prototype;return n._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(A);function W(){return new E}var Y="__parameters__";function X(e,t,n){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Fe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Le=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),je=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),He={},Be=[],qe=re({ngComponentDef:re}),ze=re({ngDirectiveDef:re}),Ke=re({ngPipeDef:re}),Ze=re({ngModuleDef:re}),Ue=re({ngLocaleIdDef:re}),Ge=re({__NG_ELEMENT_ID__:re}),Qe=0;function We(e){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Le.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||je.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:function(){var n=e.directives,o=e.features,s=e.pipes;i.id+=Qe++,i.inputs=$e(e.inputs,r),i.outputs=$e(e.outputs),o&&o.forEach(function(e){return e(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(Ye)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Xe)}:null,t.hasOwnProperty(le)||(t[le]=oe({token:t,factory:e.factory}))}},i}function Ye(e){return nt(e)||function(e){return e[ze]||null}(e)}function Xe(e){return function(e){return e[Ke]||null}(e)}function Je(e){return{type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}}function $e(e,t){if(null==e)return He;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var et=We;function tt(e){return{name:e.name,factory:e.factory,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function nt(e){return e[qe]||null}function rt(e,t){var n=e[Ze]||null;if(!n&&!0===t)throw new Error("Type "+he(e)+" does not have 'ngModuleDef' property.");return n}var it=0,ot=1,st=2,at=3,ut=4,lt=5,ct=6,ht=7,ft=8,dt=9,pt=10,gt=11,vt=12,mt=13,yt=14,bt=15,_t=16,wt=17,Ct=18,kt=19,St=1,xt=2,At=5,Et=7,Tt=8,Ot=9;function Pt(e){return Array.isArray(e)&&"object"==typeof e[St]}function It(e){return Array.isArray(e)&&!0===e[St]}function Mt(e){return 0!=(4&e.flags)}function Nt(e){return 1==(1&e.flags)}function Dt(e){return null!==e.template}function Vt(e){return 0!=(512&e[st])}var Rt=8,Ft=8,Lt=9,jt=-1,Ht=function(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function Bt(e,t,n,r,i,o){var s=t.onChanges,a=t.onInit,u=t.doCheck;i>=0&&(!n.preOrderHooks||i===n.preOrderHooks.length)&&(s||a||u)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),o>=0&&(!n.preOrderCheckHooks||o===n.preOrderCheckHooks.length)&&(s||u)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)),a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,a),u&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u))}function qt(e,t){if(e.firstTemplatePass)for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[Ct]+=65536),(o>10>16&&(3&e[st])===t&&(e[st]+=1024,o.call(s)):o.call(s)}var Ut=null,Gt=new Map,Qt=null,Wt=1,Yt=0;function Xt(e,t){return Qt&&e===Qt||(Qt=e,t&&(Ut=Gt.get(e)||null),Ut=Ut||{classesBitMask:Yt,classesIndex:Wt,stylesBitMask:Yt,stylesIndex:Wt}),Ut}function Jt(){Ut=null,Qt=null}var $t="__ngContext__";function en(e){for(;Array.isArray(e);)e=e[it];return e}function tn(e,t){return en(t[e+kt])}function nn(e,t){return en(t[e.index])}function rn(e,t){var n=e.index;return-1==n?null:en(t[n])}function on(e,t){return t[ot].data[e+kt]}function sn(e,t){return e[t+kt]}function an(e,t){var n=t[e];return Pt(n)?n:n[it]}function un(e){var t=function(e){return e[$t]}(e);return t?Array.isArray(t)?t:t.lView:null}function ln(e){e[Ct]=0}var cn,hn,fn=null;function dn(e){fn=e}function pn(){return hn}function gn(){return yn}var vn,mn,yn,bn=1,_n=bn,wn=0,Cn=0;function kn(e){void 0===e&&(e=null),Zn!==e&&(Gn(null==e?-1:e),_n=null==e?0:bn,wn=0,Cn=0)}function Sn(){_n+=1+Cn,wn=0,Cn=0}function xn(e){wn+=e,Cn=Math.max(Cn,wn)}function An(e){Nn=e}function En(){return vn}function Tn(e,t){vn=e,mn=t}function On(e,t){vn=e,yn=t}function Pn(){return mn}function In(){mn=!1}function Mn(e){return void 0===e&&(e=yn),4==(4&e[st])}var Nn=null,Dn=!1;function Vn(){return Dn}function Rn(e){Dn=e}var Fn=-1;function Ln(){return Fn}function jn(e){Fn=e}var Hn=0;function Bn(){return Hn}function qn(e){Hn=e}function zn(e,t){var n=yn;return e&&(Fn=e[ot].bindingStartIndex),vn=t,mn=!0,yn=Nn=e,n}function Kn(e,t){var n=yn[ot];if(Mn(yn))yn[st]&=-5;else try{ln(yn),t&&Kt(yn,n.viewHooks,n.viewCheckHooks,Dn,2,void 0)}finally{yn[st]&=-73,yn[ht]=n.bindingStartIndex}zn(e,null)}var Zn=-1;function Un(){return Zn}function Gn(e){Zn=e,Jt()}var Qn,Wn=null;function Yn(){Wn="http://www.w3.org/2000/svg"}function Xn(){Wn=null}function Jn(e){Qn=e}function $n(){return Qn}function er(e,t){return!(e!=e&&t!=t)&&e!==t}function tr(e){return"string"==typeof e?e:null==e?"":""+e}function nr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}var rr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(_e),ir="\ufffd";function or(e){return e instanceof Function?e():e}var sr="--MAP--",ar=0;function ur(e,t){t===ar?e[2]>ar&&function(e){cr(e,2|lr(e))}(e):e[2]=t}function lr(e){return e[1]}function cr(e,t){e[1]=t}function hr(e,t){return e[t+2]}function fr(e,t){return 1&e[t+0]}function dr(e,t){return(1&fr(e,t))>0}function pr(e,t){return e[t+0]>>1}function gr(e,t,n){var r=fr(e,t);e[t+0]=r|n<<1}function vr(e,t){return e[t+1]}function mr(e,t,n){return e[t+3+n]}function yr(e,t){return!(!e||t!==e[2])}function br(e){return(1&lr(e))>0}function _r(e){return(2&lr(e))>0}function wr(e){return 6+e[4]}function Cr(e,t){var n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),er(n,r)}function kr(e){return null!=e&&""!==e}function Sr(e,t,n){return void 0===n&&(n=" "),e+(t.length&&e.length?n:"")+t}function xr(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function Ar(e){return Er(e)?e[0]:e}function Er(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function Tr(e){var t=Ar(e);return t&&t[0]||""}function Or(e){return 0!=(8&e.flags)}function Pr(e){return 0!=(16&e.flags)}function Ir(e,t){return e[t+0]}function Mr(e,t,n){e[t+1]=n}function Nr(e,t){return e[t+1]}var Dr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function Vr(e){return!!e.listen}var Rr={createRenderer:function(e,t){return document}},Fr="@";function Lr(e){return e[0]===Fr}function jr(e){return e!==jt}function Hr(e){return 32767&e}function Br(e){return e>>16}function qr(e,t){for(var n=Br(e),r=t;n>0;)r=r[_t],n--;return r}function zr(e){var t=e[at];return It(t)?t[at]:t}function Kr(e){for(var t=e[ct];null!==t&&2===t.type;)t=(e=e[_t])[ct];return e}var Zr=!0;function Ur(e){var t=Zr;return Zr=e,t}var Gr=255,Qr=0;function Wr(e,t){var n=Xr(e,t);if(-1!==n)return n;var r=t[ot];r.firstTemplatePass&&(e.injectorIndex=t.length,Yr(r.data,e),Yr(t,null),Yr(r.blueprint,null));var i=Jr(e,t),o=Hr(i),s=qr(i,t),a=e.injectorIndex;if(jr(i))for(var u=s[ot].data,l=0;l<8;l++)t[a+l]=s[o+l]|u[o+l];return t[a+Ft]=i,a}function Yr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Ft]?-1:e.injectorIndex}function Jr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[ct],r=1;n&&-1===n.injectorIndex;)n=(t=t[_t])?t[ct]:null,r++;return n?n.injectorIndex|r<<16:-1}function $r(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Ge]:n.charCodeAt(0)||0;null==r&&(r=n[Ge]=Qr++);var i=r&Gr,o=1<0?t&Gr:t}(n);if("function"==typeof o){var s=En(),a=gn();On(e,t);try{var u=o();if(null!=u||r&ne.Optional)return u;throw new Error("No provider for "+nr(n)+"!")}finally{On(s,a)}}else if("number"==typeof o){if(-1===o)return new ai(e,t);var l=null,c=Xr(e,t),h=jt,f=r&ne.Host?Kr(t)[ct]:null;for((-1===c||r&ne.SkipSelf)&&(h=-1===c?Jr(e,t):t[c+Ft],si(r,!1)?(l=t[ot],c=Hr(h),t=qr(h,t)):c=-1);-1!==c;){h=t[c+Ft];var d=t[ot];if(oi(o,c,d.data)){var p=ni(c,t,n,l,r,f);if(p!==ti)return p}si(r,t[ot].data[c+Rt]===f)&&oi(o,c,t)?(l=d,c=Hr(h),t=qr(h,t)):c=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var g=t[pt],v=Te(void 0);try{return g?g.get(n,i,r&ne.Optional):Pe(n,i,r&ne.Optional)}finally{Te(v)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+nr(n)+"]")}var ti={};function ni(e,t,n,r,i,o){var s=t[ot],a=s.data[e+Rt],u=ri(a,s,n,null==r?Nt(a)&&Zr:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==u?ii(s.data,t,u,a):ti}function ri(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h=u&&f.type===n)return h}if(i){var d=s[u];if(d&&Dt(d)&&d.type===n)return u}return null}function ii(e,t,n,r){var i,o=t[n];if(null!==(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==Ht.prototype){var s=o;if(s.resolving)throw new Error("Circular dep for "+nr(e[n]));var a,u=Ur(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Te(s.injectImpl));var l=En(),c=gn();On(r,t);try{o=t[n]=s.factory(void 0,e,t,r)}finally{s.injectImpl&&Te(a),Ur(u),s.resolving=!1,On(l,c)}}return o}function oi(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}var t=e.prototype;return t.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},t.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},t.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}t[o]=!0}return t}function Ci(){for(var e={},t=arguments.length,n=new Array(t),r=0;r"),!0},t.endElement=function(e){var t=e.nodeName.toLowerCase();Ti.hasOwnProperty(t)&&!Si.hasOwnProperty(t)&&(this.buf.push(""))},t.chars=function(e){this.buf.push(Ri(e))},t.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Di=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function Ri(e){return e.replace(/&/g,"&").replace(Di,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Fi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Li=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),ji=function(){},Hi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Bi=/^url\(([^)]+)\)$/;function qi(e,t){e[$t]=t}function zi(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function Ki(){throw new Error("Cannot mix multi providers and regular providers")}var Zi="ng-template";function Ui(e,t){var n=e.length,r=e.indexOf(t),i=r+t.length;return!(-1===r||r>0&&" "!==e[r-1]||io?"":i[c+1];var f=8&r?h:null;if(f&&!Ui(f,l)||2&r&&l!==h){if(Wi(r))return!1;s=!0}}}}else{if(!s&&!Wi(r)&&!Wi(u))return!1;if(s&&Wi(u))continue;s=!1,r=u|1&r}}return Wi(r)||s}function Wi(e){return 0==(1&e)}function Yi(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;nYt}(r,o))?(function(e,t,n,r,i,o,s){for(var a,u=!0===(a=i)?-1:!1===a?0:a,l=ho,c=(u&pr(e,3))>0?1:0,h=wr(e);h=_o.length&&_o.push(1),_o[h]);gu,y=!m&&v===u,b=Nr(p,g),_=kr(b),w=e(t,n,r,i,o,s,m?a:yo(a,_,y),m?u:v,l+1,c);if(m){f||(f=w);break}if(!w&&bo(a,y)){var C=y&&!_,k=C?c:b,S=C?d:null;o(n,r,v,s?s(v,k,3):k,S),w=!0}f=w&&y,g+=2}if(_o[l]=g,1===p.length||!u)return e(t,n,r,i,o,s,a,u,l+1,c)}return f}(e,t,n,r,i,o,s,a||null,0,u||null)),h&&function(){for(var e=0;e<_o.length;e++)_o[e]=1}()}return l};function yo(e,t,n){var r=e;return t||4&e||!(n||1&e)?(r|=4,r&=-3):(r|=2,r&=-5),r}function bo(e,t){var n=(1&e)>0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}var _o=[];function wo(e,t,n,r){for(var i=1;ii)for(var s=0===t,a=n.data,u=i;u=o.length)&&(o=function(e,t,n){for(var r=n.initialInputs||(n.initialInputs=[]),i=r.length;i<=e;i++)r.push(null);for(var o=n.attrs,s=0;s0&&(e[n-1][ut]=r[ut]);var o=Fe(e,Ot+t);vs(r,!1);var s=o[lt];null!==s&&s.detachView(o[ot]),r[at]=null,r[ut]=null,r[st]&=-129}return r}}function bs(e){if(!(256&e[st])){var t=e[vt];Vr(t)&&t.destroyNode&&Es(t,2,e,null,null),function(e){var t=e[yt];if(!t)return ws(e);for(;t;){var n=null;if(Pt(t))n=t[yt];else{var r=t[Ot];r&&(n=r)}if(!n){for(;t&&!t[ut]&&t!==e;)ws(t),t=_s(t,e);ws(t||e),n=t&&t[ut]}t=n}}(e)}}function _s(e,t){var n;return Pt(e)&&(n=e[ct])&&2===n.type?ds(n,e):e[at]===t?null:e[at]}function ws(e){if(Pt(e)&&!(256&e[st])){e[st]&=-129,e[st]|=256,function(e){var t,n=e[ot];if(null!=n&&null!=(t=n.destroyHooks))for(var r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[ft]=null}}(e);var t=e[ct];t&&3===t.type&&Vr(e[vt])&&e[vt].destroy();var n=e[wt];if(null!==n&&It(e[at])){n!==e[at]&&ms(n,e);var r=e[lt];null!==r&&r.detachView(e[ot])}}}function Cs(e,t,n,r){Vr(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function ks(e,t,n,r){null!==r?Cs(e,t,n,r):function(e,t,n){Vr(e)?e.appendChild(t,n):t.appendChild(n)}(e,t,n)}function Ss(e,t){return Vr(e)?e.parentNode(t):t.parentNode}function xs(e,t,n){var r=function(e,t){if(Vt(t))return Ss(t[vt],nn(e,t));var n=function(e){for(;null!=e.parent&&(4===e.parent.type||5===e.parent.type);)e=e.parent;return e}(e),r=n.parent;if(null==r){var i=t[ct];return 2===i.type?ps(i,t):function(e){var t=e[ct];return t&&3===t.type?nn(t,zr(e)):null}(t)}var o=n&&5===n.type;if(o&&2&n.flags)return nn(n,t).parentNode;if(1&r.flags&&!o){var s=t[ot].data,a=s[s[r.index].directiveStart].encapsulation;if(a!==je.ShadowDom&&a!==je.Native)return null}return nn(r,t)}(t,n);if(null!=r){var i=n[vt],o=function(e,t){if(2===e.type){var n=ds(e,t);return As(n.indexOf(t,Ot)-Ot,n)}return 4===e.type||5===e.type?nn(e,t):null}(t.parent||n[ct],n);if(Array.isArray(e)){var s=e,a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var l;if(a){if(u>=s.length)break;l=s[u++]}else{if((u=s.next()).done)break;l=u.value}ks(i,r,l,o)}}else ks(i,r,e,o)}}function As(e,t){var n=Ot+e+1;if(n-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}bs(this._lView)},t.onDestroy=function(e){var t,n;n=e,ls(t=this._lView).push(n),t[ot].firstTemplatePass&&cs(t).push(t[ft].length-1,null)},t.markForCheck=function(){es(this._lView)},t.detach=function(){this._lView[st]&=-129},t.reattach=function(){this._lView[st]|=128},t.detectChanges=function(){ns(this._lView,this.context)},t.checkNoChanges=function(){!function(e,t){Rn(!0);try{ns(e,t)}finally{Rn(!1)}}(this._lView,this.context)},t.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},t.detachFromAppRef=function(){this._appRef=null,function(e){Es(e[vt],1,e,null,null)}(this._lView)},t.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},t._lookUpContext=function(){return this._context=zr(this._lView)[this._componentIndex]},_createClass(e,[{key:"rootNodes",get:function(){return null==this._lView[it]?function e(t,n,r){for(var i=n.child;i;){var o=rn(i,t);if(o&&r.push(o),4===i.type)e(t,i,r);else if(1===i.type)for(var s=Kr(t),a=s[ct],u=zr(s),l=a.projection[i.projection];l&&u;)r.push(nn(l,u)),l=l.next;i=i.next}return r}(this._lView,this._lView[ct],[]):[]}},{key:"context",get:function(){return this._context?this._context:this._lookUpContext()}},{key:"destroyed",get:function(){return 256==(256&this._lView[st])}}]),e}(),Ns=function(e){function t(t){var n;return(n=e.call(this,t,null,-1)||this)._view=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.detectChanges=function(){rs(this._view)},n.checkNoChanges=function(){!function(e){Rn(!0);try{rs(e)}finally{Rn(!1)}}(this._view)},_createClass(t,[{key:"context",get:function(){return null}}]),t}(Ms);function Ds(e,t,n){return Os||(Os=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(e)),new Os(nn(t,n))}function Vs(e,t,n,r){return Ps||(Ps=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._declarationView=t,i._declarationTContainer=n,i.elementRef=r,i}return _inheritsLoose(t,e),t.prototype.createEmbeddedView=function(e){var t=this._declarationTContainer.tViews,n=function(e,t,n,r){var i=Pn(),o=En();Tn(null,!0);var s=To(n,e,t,16,null,null);return s[_t]=n,Po(e,null,-1,s),e.firstTemplatePass&&(e.node.injectorIndex=r),Tn(o,i),s}(t,e,this._declarationView,this._declarationTContainer.injectorIndex);n[wt]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[lt];null!==r&&(n[lt]=r.createEmbeddedView(t)),Io(n,t,e);var i=new Ms(n,e,-1);return i._tViewNode=n[ct],i},t}(e)),0===n.type?new Ps(r,n,Ds(t,n,r)):null}function Rs(e,t,n,r){var i;Is||(Is=function(e){function n(t,n,r){var i;return(i=e.call(this)||this)._lContainer=t,i._hostTNode=n,i._hostView=r,i}_inheritsLoose(n,e);var r=n.prototype;return r.clear=function(){for(;this.length>0;)this.remove(this.length-1)},r.get=function(e){return null!==this._lContainer[Tt]&&this._lContainer[Tt][e]||null},r.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},r.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;!i&&null==e.ngModule&&o&&(i=o.get(Ne,null));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},r.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");this.allocateContainerIfNeeded();var n=e._lView,r=this._adjustIndex(t);return It(n[at])?this.move(e,r):(function(e,t,n){var r=Ot+n,i=t.length;n>0&&(t[r-1][ut]=e),n1;)a=(s=s[_t])[ct],o--;return a}(e,this._hostView,this._hostTNode);return jr(e)&&null!=n?new ai(n,t):new ai(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Ot}}]),n}(e));var o=r[n.index];if(It(o))(i=o)[xt]=-1;else{var s;if(s=4===n.type?en(o):r[vt].createComment(""),Vt(r)){var a=r[vt],u=nn(n,r);Cs(a,Ss(a,u),s,function(e,t){return Vr(e)?e.nextSibling(t):t.nextSibling}(a,u))}else xs(s,n,r);r[n.index]=i=Xo(o,r,s,n,!0),$o(r,i)}return new Is(i,n,r)}var Fs=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return Ls()},e}(),Ls=function(e){return void 0===e&&(e=!1),function(e,t,n){if(Nt(e)&&!n){var r=e.directiveStart,i=an(e.index,t);return new Ms(i,null,r)}if(3===e.type||0===e.type||4===e.type){var o=Kr(t);return new Ms(o,o[dt],-1)}return null}(En(),gn(),e)},js=new we("The presence of this token marks an injector as being the root injector."),Hs={},Bs={},qs=[],zs=void 0;function Ks(){return void 0===zs&&(zs=new Me),zs}function Zs(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||Ks(),new Us(e,n,t,r)}var Us=function(){function e(e,t,n,r){var i=this;void 0===r&&(r=null),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];Ve([e],function(e){return i.processInjectorType(e,[],o)}),t&&Ve(t,function(n){return i.processProvider(n,e,t)}),this.records.set(Ce,Ws(void 0,this)),this.isRootInjector=this.records.has(js),this.injectorDefTypes.forEach(function(e){return i.get(e)}),this.source=r||("object"==typeof e?null:he(e))}var t=e.prototype;return t.destroy=function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.get=function(e,t,n){void 0===t&&(t=ke),void 0===n&&(n=ne.Default),this.assertNotDestroyed();var r,i=Ee(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof we)&&ae(e);s&&this.injectableDefInScope(s)&&(o=Ws(Gs(e),Hs),this.records.set(e,o))}if(void 0!==o)return this.hydrate(e,o)}return(n&ne.Self?Ks():this.parent).get(e,n&ne.Optional?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(he(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=he(t);if(t instanceof Array)i=t.map(he).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):he(a)))}i="{"+o.join(", ")+"}"}return"R3InjectorError"+(r?"("+r+")":"")+"["+i+"]: "+e.replace(Se,"\n ")}("\n"+e.message,i,0,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Ee(i)}},t.toString=function(){var e=[];return this.records.forEach(function(t,n){return e.push(he(n))}),"R3Injector["+e.join(", ")+"]"},t.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.processInjectorType=function(e,t,n){var r=this;if(!(e=pe(e)))return!1;var i=ue(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=ue(o)),null==i)return!1;if(this.injectorDefTypes.add(s),this.records.set(s,Ws(i.factory,Hs)),null!=i.imports&&!a){var u;n.push(s);try{Ve(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;Ve(i,function(e){return r.processProvider(e,n,i||qs)})},c=0;c0){var n=new Array(t).fill("?");throw new Error("Can't resolve all parameters for "+he(e)+": ("+n.join(", ")+").")}var r,i=(r=e)&&r[le]?(console.warn('DEPRECATED: DI is instantiating a token "'+r.name+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+r.name+'" class.'),r[le]):null;return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qs(e,t,n){var r,i=void 0;if(Xs(e))return Gs(pe(e));if(Ys(e))i=function(){return pe(e.useValue)};else if((r=e)&&r.useExisting)i=function(){return Oe(pe(e.useExisting))};else if(e&&e.useFactory)i=function(){return e.useFactory.apply(e,Ie(e.deps||[]))};else{var o=pe(e&&(e.useClass||e.provide));if(o||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: ["+t.map(function(e){return e==n?"?"+n+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+he(e)+"'"+r)}(t,n,e),!e.deps)return Gs(o);i=function(){return _construct(o,Ie(e.deps))}}return i}function Ws(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function Ys(e){return null!==e&&"object"==typeof e&&xe in e}function Xs(e){return"function"==typeof e}var Js=function(e,t,n){return Zs({name:n},t,e,n)},$s=function(){var e=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?Js(e,t,""):Js(e.providers,e.parent,e.name||"")},e}();return e.THROW_IF_NOT_FOUND=ke,e.NULL=new Me,e.ngInjectableDef=oe({token:e,providedIn:"any",factory:function(){return Oe(Ce)}}),e.__NG_ELEMENT_ID__=-1,e}(),ea=new Map,ta=new Set;function na(e){return"string"==typeof e?e:e.text()}function ra(e){var t=gn(),n=t[ot];n.firstTemplatePass&&(function(e,t,n){var r=e.expandoInstructions,i=r.length;i>=2&&r[i-2]===t.hostBindings?r[i-1]=r[i-1]+n:r.push(t.hostBindings,n)}(n,fn,e),function(e,t,n){for(var r=0;r0&&(i=n?Sr(e,((r=t)&&"string"!=typeof r&&(r=Object.keys(r).join(" ")),r||"")):Sr(e,function(e){var t="";if(e)for(var n=Object.keys(e),r=0;r0}function Na(e,t,n,r){var i=gn(),o=i[ot],s=i[e+kt]=Eo(t),a=i[vt],u=Oo(o,i[ct],e,3,t,n||null);if(null!=n){var l=function(e,t){for(var n=gn()[vt],r=Vr(n),i=0;i1&&(e.classes||(e.classes=i),Ea(e.classes,Co(i,!0))),r&&r.length>1&&(e.styles||(e.styles=r),Ea(e.styles,Co(r,!1)))}(u,n,l)}if(function(e,t,n){go(e,t,n.classes,!0),go(e,t,n.styles,!1)}(a,s,u),xs(s,u,i),0===cn&&qi(s,i),cn++,o.firstTemplatePass){Bo(o,i,u,r||null);var c=us(u);c&&c.hasOwnProperty("class")&&(u.flags|=8),c&&c.hasOwnProperty("style")&&(u.flags|=16),null!==o.queries&&o.queries.elementStart(o,u)}Vo(o,i,u),function(e,t,n){if(Mt(t))for(var r=t.directiveEnd,i=t.directiveStart;ie.directiveStart}(s)&&(m=function(e,t,n){var r=e[ot].cleanup;if(null!=r)for(var i=0;ia?s[a]:null}"string"==typeof o&&(i+=2)}return null}(o,e,s.index)),null!==m)t.__ngNextListenerFn__=m.__ngNextListenerFn__,m.__ngNextListenerFn__=t,l=!1;else{t=Ba(s,o,t,!1);var y=d.listen(h.name||f,e,t);p.push(t,y),u&&u.push(e,v,g,g+1)}}else t=Ba(s,o,t,!0),f.addEventListener(e,t,n),p.push(t),u&&u.push(e,v,g,n)}void 0===s.outputs&&(s.outputs=jo(s,1));var b,_=s.outputs;if(l&&_&&(b=_[e])){var w=b.length;if(w)for(var C=ls(o),k=0;k0;)t=t[_t],e--;return t}(e,Nn))[dt]}(e)}function za(e,t){var n=gn(),r=n[e+kt]=function(e,t){return Vr(t)?t.createText(tr(e)):t.createTextNode(tr(e))}(t,n[vt]),i=Oo(n[ot],n[ct],e,3,null,null);In(),xs(r,i,n)}function Ka(e,t,n){var r=Un(),i=gn(),o=function(e,t,n,r){var i=fa(e,e[ht]++,n);return ss(e,t,r),i?t+tr(n)+r:vo}(i,e,t,n);return o!==vo&&function(e,t,n){var r=tn(t,e),i=e[vt];Vr(i)?i.setValue(r,n):r.textContent=n}(i,r,o),Ka}function Za(e,t){var n=un(e)[ot],r=n.data.length-1;Bt(r,t,n,-1,-1,-1),qt(n,{directiveStart:r,directiveEnd:r+1})}var Ua=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Ga(){return Qa.ngInherit=!0,Qa}function Qa(e){e.type.prototype.ngOnChanges&&(e.setInput=Wa,e.onChanges=function(){var e=Xa(this),t=e&&e.current;if(t){var n=e.previous;if(n===He)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Wa(e,t,n,r){var i=Xa(e)||function(e,t){return e[Ya]={previous:He,current:null}}(e),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Ua(u&&u.currentValue,t,s===He),e[r]=t}var Ya="__ngSimpleChanges__";function Xa(e){return e[Ya]||null}function Ja(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor;t;){var n=void 0;if(Dt(e))n=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");n=t.ngDirectiveDef}var r=t.ngBaseDef;if(r||n){var i=e;i.inputs=$a(e.inputs),i.declaredInputs=$a(e.declaredInputs),i.outputs=$a(e.outputs)}if(r){var o=r.viewQuery,s=r.contentQueries,a=r.hostBindings;a&&nu(e,a),o&&eu(e,o),s&&tu(e,s),ie(e.inputs,r.inputs),ie(e.declaredInputs,r.declaredInputs),ie(e.outputs,r.outputs)}if(n){var u=n.hostBindings;u&&nu(e,u);var l=n.viewQuery,c=n.contentQueries;l&&eu(e,l),c&&tu(e,c),ie(e.inputs,n.inputs),ie(e.declaredInputs,n.declaredInputs),ie(e.outputs,n.outputs),e.afterContentChecked=e.afterContentChecked||n.afterContentChecked,e.afterContentInit=e.afterContentInit||n.afterContentInit,e.afterViewChecked=e.afterViewChecked||n.afterViewChecked,e.afterViewInit=e.afterViewInit||n.afterViewInit,e.doCheck=e.doCheck||n.doCheck,e.onDestroy=e.onDestroy||n.onDestroy,e.onInit=e.onInit||n.onInit;var h=n.features;if(h){var f=h,d=Array.isArray(f),p=0;for(f=d?f:f[Symbol.iterator]();;){var g;if(d){if(p>=f.length)break;g=f[p++]}else{if((p=f.next()).done)break;g=p.value}var v=g;v&&v.ngInherit&&v(e)}}}else{var m=t.prototype;m&&(e.afterContentChecked=e.afterContentChecked||m.ngAfterContentChecked,e.afterContentInit=e.afterContentInit||m.ngAfterContentInit,e.afterViewChecked=e.afterViewChecked||m.ngAfterViewChecked,e.afterViewInit=e.afterViewInit||m.ngAfterViewInit,e.doCheck=e.doCheck||m.ngDoCheck,e.onDestroy=e.onDestroy||m.ngOnDestroy,e.onInit=e.onInit||m.ngOnInit,m.ngOnChanges&&Ga()(e))}t=Object.getPrototypeOf(t)}}function $a(e){return e===He?{}:e===Be?[]:e}function eu(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function tu(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function nu(e,t){var n=e.hostBindings;t!==n&&(e.hostBindings=n?function(e,r,i){xn(1);try{t(e,r,i)}finally{xn(-1)}n(e,r,i)}:t)}function ru(e,t,n,r,i){if(e=pe(e),Array.isArray(e))for(var o=0;o>16;if(e.useClass||Xs(e)){var p=(e.useClass||e).prototype.ngOnDestroy;p&&(a.destroyHooks||(a.destroyHooks=[])).push(t.length,p)}if(Xs(e)||!e.multi){var g=new Ht(l,i,ba),v=ou(u,t,i?h:h+d,f);-1==v?($r(Wr(c,s),a,u),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(g),s.push(g)):(n[v]=g,s[v]=g)}else{var m=ou(u,t,h+d,f),y=ou(u,t,h,h+d),b=m>=0&&n[m],_=y>=0&&n[y];if(i&&!_||!i&&!b){$r(Wr(c,s),a,u);var w=function(e,t,n,r,i){var o=new Ht(e,n,ba);return o.multi=[],o.index=t,o.componentProviders=0,iu(o,i,r&&!n),o}(i?au:su,n.length,i,r,l);!i&&_&&(n[y].providerFactory=w),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(w),s.push(w)}else iu(n[i?y:m],l,!i&&r);!i&&r&&_&&n[y].componentProviders++}}}function iu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function ou(e,t,n,r){for(var i=n;i=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '"+e+"' could not be found!")}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory();return function(e,t){var n=gn(),r=n[ot],i=e+kt;i>=r.data.length&&(r.data[i]=null,r.blueprint[i]=null),n[i]=t}(e,o),o}function rl(e,t,n){var r=ya(e);return sl(ol(e)?el(t,r.transform,n,r):r.transform(n))}function il(e,t,n,r){var i=ya(e);return sl(ol(e)?tl(t,i.transform,n,r,i):i.transform(n,r))}function ol(e){return gn()[ot].data[e+kt].pure}function sl(e){if(aa.isWrapped(e)){e=aa.unwrap(e);var t=gn();t[t[ht]]=vo}return e}var al=function(e){function t(t){var n;return void 0===t&&(t=!1),(n=e.call(this)||this).__isAsync=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.emit=function(t){e.prototype.next.call(this,t)},n.subscribe=function(t,n,r){var i,o=function(e){return null},s=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,i,o,s);return t instanceof d&&t.add(a),a},t}(E);function ul(){return this._results[oa()]()}var ll=function(){function e(){this.dirty=!0,this._results=[],this.changes=new al,this.length=0;var t=oa(),n=e.prototype;n[t]||(n[t]=ul)}var t=e.prototype;return t.map=function(e){return this._results.map(e)},t.filter=function(e){return this._results.filter(e)},t.find=function(e){return this._results.find(e)},t.reduce=function(e,t){return this._results.reduce(e,t)},t.forEach=function(e){this._results.forEach(e)},t.some=function(e){return this._results.some(e)},t.toArray=function(){return this._results.slice()},t.toString=function(){return this._results.toString()},t.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.elementStart(e,t)}},t.elementEnd=function(e){var t=this.queries,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}i.elementEnd(e)}},t.embeddedTView=function(t){for(var n=null,r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.template(e,t)}},t.getByIndex=function(e){return this.queries[e]},t.track=function(e){this.queries.push(e)},_createClass(e,[{key:"length",get:function(){return this.queries.length}}]),e}(),pl=function(){function e(e,t){void 0===t&&(t=-1),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}var t=e.prototype;return t.elementStart=function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)},t.elementEnd=function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)},t.template=function(e,t){this.elementStart(e,t)},t.embeddedTView=function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null},t.isApplyingToNode=function(e){return this._appliesToNextNode&&!1===this.metadata.descendants?this._declarationNodeIndex===(e.parent?e.parent.index:-1):this._appliesToNextNode},t.matchTNode=function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)r.push(s[a/2]);else{for(var l=o[a+1],c=t[-u],h=Ot;h=d.length)break;v=d[g++]}else{if((g=d.next()).done)break;v=g.value}e(v,l,r)}}}}return r}(t,n,[]):ml(t,r,n);e.reset(i),e.notifyOnChanges()}return!0}return!1}function bl(e,t,n){!function(e,t,n,r,i){var o=e[ot];o.firstTemplatePass&&(function(e,t,n){null===e.queries&&(e.queries=new dl),e.queries.track(new pl(t,-1))}(o,new fl(t,n,!0,r)),o.staticViewQueries=!0),function(e){var t=new ll;!function(e,t,n){var r=ls(e);r.push(t),e[ot].firstTemplatePass&&cs(e).push(n,r.length-1)}(e,t,t.destroy),null===e[lt]&&(e[lt]=new hl),e[lt].queries.push(new cl(t))}(e)}(gn(),e,t,n)}function _l(){return function(e,t){return e[lt].queries[t].queryList}(gn(),Bn())}function wl(e,t){return e.queries.getByIndex(t)}function Cl(e,t){return Vs(Ru,pu,e,t)}var kl=new we("Application Initializer"),Sl=function(){var e=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},t.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},t.getPendingRequestCount=function(){return this._pendingCount},t.findProviders=function(e,t,n){return[]},e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)(Oe(Yl))},providedIn:null}),e}(),oc=function(){var e=function(){function e(){this._applications=new Map,sc.addToWindow(this)}var t=e.prototype;return t.registerApplication=function(e,t){this._applications.set(e,t)},t.unregisterApplication=function(e){this._applications.delete(e)},t.unregisterAllApplications=function(){this._applications.clear()},t.getTestability=function(e){return this._applications.get(e)||null},t.getAllTestabilities=function(){return Array.from(this._applications.values())},t.getAllRootElements=function(){return Array.from(this._applications.keys())},t.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),sc.findTestabilityInTree(this,e,t)},e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)},providedIn:null}),e}(),sc=new(function(){function e(){}var t=e.prototype;return t.addToWindow=function(e){},t.findTestabilityInTree=function(e,t,n){return null},e}()),ac=new we("AllowMultipleToken");function uc(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new we(r);return function(t){void 0===t&&(t=[]);var o=lc();if(!o||o.injector.get(ac,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(nc&&!nc.destroyed&&!nc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nc=e.get(cc);var t=e.get(Pl,null);t&&t.forEach(function(e){return e()})}($s.create({providers:s,name:r}))}return function(e){var t=lc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function lc(){return nc&&!nc.destroyed?nc:null}var cc=function(){var e=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}var t=e.prototype;return t.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new rc:("zone.js"===n?void 0:n)||new Yl({enableLongStackTrace:vi()}),o=[{provide:Yl,useValue:i}];return i.run(function(){var t=$s.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(di,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Wu(n.injector.get(Dl,"en-US")||"en-US"),n.onDestroy(function(){return pc(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,i){try{var o=((s=n.injector.get(Sl)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return La(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(a){throw t.runOutsideAngular(function(){return e.handleError(a)}),a}var s}(s,i)})},t.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=hc({},t);return function(e,t,n){var r=new $u(n);if(0===ea.size)return Promise.resolve(r);var i,o,s=(i=e.get(zl,[]).concat(t).map(function(e){return e.providers}),o=[],i.forEach(function(e){return e&&o.push.apply(o,e)}),o);if(0===s.length)return Promise.resolve(r);var a=function(){var e=_e.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=$s.create({providers:s}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(t){var r=n.get(t);if(!r){var i=e(t);n.set(t,r=i.then(na))}return r}return ea.forEach(function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then(function(t){e.template=t}));var o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach(function(t,n){s.push(""),i.push(r(t).then(function(r){s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});var u=Promise.all(i).then(function(){return function(e){ta.delete(e)}(n)});t.push(u)}),ea=new Map,Promise.all(t).then(function(){})}(function(e){return Promise.resolve(u.get(e))}).then(function(){return r})}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},t._moduleDoBootstrap=function(e){var t=e.injector.get(dc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+he(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t.onDestroy=function(e){this._destroyListeners.push(e)},t.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},_createClass(e,[{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)(Oe($s))},providedIn:null}),e}();function hc(e,t){return Array.isArray(t)?t.reduce(hc,e):Object.assign({},e,t)}var fc,dc=((fc=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=vi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new _(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new _(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Yl.assertNotInAngularZone(),Wl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Yl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof _?t[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(e(function(e,r){return(i=t(e,r),i instanceof _?i:new _(N(i))).pipe(R(function(t,i){return n(e,t,r,i)}));var i},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new H(t,r))})}(q,e)}(r)(j(t,i))}(a,u.pipe(function(e){return z()((t=W,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,G);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t=e.prototype;return t.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof hu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?null:this._injector.get(Ne),o=n.create($s.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(ic,null);return s&&o.injector.get(oc).registerApplication(o.location.nativeElement,s),this._loadComponent(o),vi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;var r=this._views,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}s.detectChanges()}if(this._enforceNoNewChanges){var a=this._views,u=Array.isArray(a),l=0;for(a=u?a:a[Symbol.iterator]();;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}c.checkNoChanges()}}}catch(h){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(h)})}finally{this._runningTick=!1,Gl(n)}},t.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.detachView=function(e){var t=e;pc(this._views,t),t.detachFromAppRef()},t._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ml,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t._unloadComponent=function(e){this.detachView(e.hostView),pc(this.components,e)},t.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},_createClass(e,[{key:"viewCount",get:function(){return this._views.length}}]),e}()).ngInjectableDef=oe({token:fc,factory:function(e){return new(e||fc)(Oe(Yl),Oe(Nl),Oe($s),Oe(di),Oe(du),Oe(Sl))},providedIn:null}),fc._tickScope=Ul("ApplicationRef#tick()"),fc);function pc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gc,vc=uc(null,"core",[{provide:Il,useValue:"unknown"},{provide:cc,deps:[$s]},{provide:oc,deps:[]},{provide:Nl,deps:[]}]),mc=[{provide:dc,useClass:dc,deps:[Yl,Nl,$s,di,du,Sl]},{provide:qu,deps:[Yl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Sl,useClass:Sl,deps:[[new $,kl]]},{provide:ql,useClass:ql,deps:[]},Al,{provide:Iu,useFactory:function(){return Du},deps:[]},{provide:Mu,useFactory:function(){return Vu},deps:[]},{provide:Dl,useFactory:function(e){return e?(Wu(e),e):"en-US"},deps:[[new J(Dl),new $,new te]]}],yc=function(){var e=function(e){};return e.ngModuleDef=Je({type:e}),e.ngInjectorDef=se({factory:function(t){return new(t||e)(Oe(dc))},providers:mc}),e}(),bc=function(){},_c=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),wc=new we("UseV4Plurals"),Cc=function(){},kc=((gc=function(e){function t(t,n){var r;return(r=e.call(this)||this).locale=t,r.deprecatedPluralFn=n,r}return _inheritsLoose(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Zu[t];if(n)return n;var r=t.split("-")[0];if(n=Zu[r])return n;if("en"===r)return Qu;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[Uu.PluralCase]}(t||this.locale)(e)){case _c.Zero:return"zero";case _c.One:return"one";case _c.Two:return"two";case _c.Few:return"few";case _c.Many:return"many";default:return"other"}},t}(Cc)).ngInjectableDef=oe({token:gc,factory:function(e){return new(e||gc)(Oe(Dl),Oe(wc,8))},providedIn:null}),gc),Sc=function(){function e(e,t){this._name=e,this._options=t,this.value=null,this._lastSetValue=null,this._lastSetValueType=0,this._lastSetValueIdentityChange=!1}var t=e.prototype;return t.setValue=function(e){if(Array.isArray(e))this._lastSetValueType=4;else if(e instanceof Set)this._lastSetValueType=8;else if(e&&"string"==typeof e){if(!(4&this._options))throw new Error(this._name+" string values are not allowed");this._lastSetValueType=1}else this._lastSetValueType=e?2:0;this._lastSetValueIdentityChange=!0,this._lastSetValue=e||null},t.hasValueChanged=function(){var e=this._lastSetValueIdentityChange;if(!(e||14&this._lastSetValueType))return!1;var t=null,n=!!(1&this._options),r=!!(8&this._options),i=!!(2&this._options);switch(this._lastSetValueType){case 1:var o=this._lastSetValue.split(/\s+/g);16&this._options?(t={},o.forEach(function(e,n){return t[e]=!0})):t=o.reduce(function(e,t,n){return e+(n?" ":"")+t});break;case 2:var s=this._lastSetValue,a=Object.keys(s);e||(e=!this.value||function(e,t,n){var r=e;if(!Oc(Object.keys(t),r))return!0;for(var i=0;i0)for(var o=t.split(/\s+/g),s=0;s0){var r=e.substr(n+1);e=e.substring(0,n),null!=t&&(t+=r)}return{key:e,value:t}}(t,n);n=i.value,t=i.key}e[t]=n}function Oc(e,t){if(e&&t){if(e.length!==t.length)return!1;for(var n=0;n=0&&n<=1?_c.One:_c.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?_c.One:_c.Other;case"ar":return 0===n?_c.Zero:1===n?_c.One:2===n?_c.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?_c.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?_c.Many:_c.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?_c.One:_c.Other;case"be":return n%10==1&&n%100!=11?_c.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?_c.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?_c.Many:_c.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?_c.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?_c.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?_c.Few:0!==n&&n%1e6==0?_c.Many:_c.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?_c.Few:_c.Other;case"cs":case"sk":return 1===i&&0===o?_c.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?_c.Few:0!==o?_c.Many:_c.Other;case"cy":return 0===n?_c.Zero:1===n?_c.One:2===n?_c.Two:3===n?_c.Few:6===n?_c.Many:_c.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?_c.One:_c.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?_c.One:0===o&&i%100==2||s%100==2?_c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?_c.Few:_c.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?_c.One:_c.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?_c.One:_c.Other;case"ga":return 1===n?_c.One:2===n?_c.Two:n===Math.floor(n)&&n>=3&&n<=6?_c.Few:n===Math.floor(n)&&n>=7&&n<=10?_c.Many:_c.Other;case"gd":return 1===n||11===n?_c.One:2===n||12===n?_c.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?_c.Few:_c.Other;case"gv":return 0===o&&i%10==1?_c.One:0===o&&i%10==2?_c.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?_c.Many:_c.Other:_c.Few;case"he":return 1===i&&0===o?_c.One:2===i&&0===o?_c.Two:0!==o||n>=0&&n<=10||n%10!=0?_c.Other:_c.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?_c.One:_c.Other;case"ksh":return 0===n?_c.Zero:1===n?_c.One:_c.Other;case"kw":case"naq":case"se":case"smn":return 1===n?_c.One:2===n?_c.Two:_c.Other;case"lag":return 0===n?_c.Zero:0!==i&&1!==i||0===n?_c.Other:_c.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?_c.Few:0!==s?_c.Many:_c.Other:_c.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?_c.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?_c.One:_c.Other;case"mk":return 0===o&&i%10==1||s%10==1?_c.One:_c.Other;case"mt":return 1===n?_c.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?_c.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?_c.Many:_c.Other;case"pl":return 1===i&&0===o?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?_c.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?_c.Many:_c.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?_c.One:_c.Other;case"ro":return 1===i&&0===o?_c.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?_c.Few:_c.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?_c.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?_c.Many:_c.Other;case"shi":return 0===i||1===n?_c.One:n===Math.floor(n)&&n>=2&&n<=10?_c.Few:_c.Other;case"si":return 0===n||1===n||0===i&&1===s?_c.One:_c.Other;case"sl":return 0===o&&i%100==1?_c.One:0===o&&i%100==2?_c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?_c.Few:_c.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?_c.One:_c.Other;default:return _c.Other}}}]});var fh=new we("DocumentToken"),dh="server",ph=null;function gh(){return ph}var vh,mh=function(e){function t(){var t;(t=e.call(this)||this)._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},n.tagName=function(e){return e.tagName},n.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var s=o,a=s.indexOf("="),u=-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],l=u[1];if(u[0].trim()===t)return decodeURIComponent(l)}return null}(document.cookie,e)},n.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},_createClass(t,[{key:"attrToPropMap",get:function(){return yh}}]),t}(mh),kh=null;function Sh(){return!!window.history.pushState}var xh,Ah,Eh,Th,Oh=((xh=function(e){function t(t){var n;return(n=e.call(this)||this)._doc=t,n._init(),n}_inheritsLoose(t,e);var n=t.prototype;return n._init=function(){this.location=gh().getLocation(),this._history=gh().getHistory()},n.getBaseHrefFromDOM=function(){return gh().getBaseHref(this._doc)},n.onPopState=function(e){gh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},n.onHashChange=function(e){gh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},n.pushState=function(e,t,n){Sh()?this._history.pushState(e,t,n):this.location.hash=n},n.replaceState=function(e,t,n){Sh()?this._history.replaceState(e,t,n):this.location.hash=n},n.forward=function(){this._history.forward()},n.back=function(){this._history.back()},n.getState=function(){return this._history.state},_createClass(t,[{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(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),t}(bc)).ngInjectableDef=oe({token:xh,factory:function(e){return new(e||xh)(Oe(fh))},providedIn:null}),xh),Ph=new we("TRANSITION_ID"),Ih=[{provide:kl,useFactory:function(e,t,n){return function(){n.get(Sl).donePromise.then(function(){var n=gh();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Ph,fh,$s],multi:!0}],Mh=function(){function e(){}e.init=function(){var t;t=new e,sc=t};var t=e.prototype;return t.addToWindow=function(e){_e.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},_e.getAllAngularTestabilities=function(){return e.getAllTestabilities()},_e.getAllAngularRootElements=function(){return e.getAllRootElements()},_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(function(e){var t=_e.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},t.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?gh().isShadowRoot(t)?this.findTestabilityInTree(e,gh().getHost(t),!0):this.findTestabilityInTree(e,gh().parentElement(t),!0):null},e}(),Nh=new we("EventManagerPlugins"),Dh=((Ah=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}var t=e.prototype;return t.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},t.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},t.getZone=function(){return this._zone},t._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r0;s||(s=e[o]=[]);var u=cf(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1},t}(Vh)).ngInjectableDef=oe({token:Yh,factory:function(e){return new(e||Yh)(Oe(fh),Oe(pf),Oe(Nl),Oe(gf,8))},providedIn:null}),Yh),yf=["alt","control","meta","shift"],bf={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},_f=((Jh=function(e){function t(t){return e.call(this,t)||this}_inheritsLoose(t,e);var n=t.prototype;return n.supports=function(e){return null!=t.parseEventName(e)},n.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return gh().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(yf.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=gh().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),yf.forEach(function(r){r!=n&&(0,bf[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Vh)).ngInjectableDef=oe({token:Jh,factory:function(e){return new(e||Jh)(Oe(fh))},providedIn:null}),Jh),wf=function(){},Cf=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),kf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Cf),Sf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Cf),xf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Cf),Af=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Cf),Ef=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Cf),Tf=[{provide:ji,useExisting:wf},{provide:wf,useClass:($h=function(e){function t(t){var n;return(n=e.call(this)||this)._doc=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.sanitize=function(e,t){if(null==t)return null;switch(e){case Li.NONE:return t;case Li.HTML:return t instanceof kf?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ki=ki||new mi(e);var r=t?String(t):"";n=ki.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ki.getInertBodyElement(r)}while(r!==o);var s=new Ni,a=s.sanitizeChildren(Fi(n)||n);return vi()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Fi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case Li.STYLE:return t instanceof Sf?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Bi);return t&&_i(t[1])===t[1]||e.match(Hi)&&function(e){for(var t=!0,n=!0,r=0;r *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],s=i[2],a=i[3];t.push(Ld(o,a)),"<"!=s[0]||o==Vd&&a==Vd||t.push(Ld(a,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Kd(e.options)}},t.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Nd(n,e,t)}),options:Kd(e.options)}},t.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Nd(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Kd(e.options)}},t.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Zd(md(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Zd(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Zd((n=n||md(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Lf({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Lf(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},t._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Df?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(zd(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},t._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=t.collectedStyles[t.currentQuerySelector],c=l[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(l[r]={startTime:o,endTime:i}),t.options&&(s=t.errors,a=t.options.params||{},(u=Ad(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(zd(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(zd(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&i0?i==f?1:h*i:o[i],a=s*g;t.currentTime=d+p.delay+a,p.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},t.visitReference=function(e,t){return{type:8,animation:Nd(this,Sd(e.animation),t),options:Kd(e.options)}},t.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Kd(e.options)}},t.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Kd(e.options)}},t.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(jd,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Jf(t.collectedStyles,t.currentQuerySelector,{});var a=Nd(this,Sd(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Kd(e.options)}},t.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:md(e.timings,t.errors,!0);return{type:12,animation:Nd(this,Sd(e.animation),t),timings:n,options:null}},e}(),qd=function(e){this.errors=e,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 zd(e){return!Array.isArray(e)&&"object"==typeof e}function Kd(e){var t;return e?(e=yd(e)).params&&(e.params=(t=e.params)?yd(t):null):e={},e}function Zd(e,t,n){return{duration:e,delay:t,easing:n}}function Ud(e,t,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Gd=function(){function e(){this._map=new Map}var t=e.prototype;return t.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},t.append=function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,t)},t.has=function(e){return this._map.has(e)},t.clear=function(){this._map.clear()},e}(),Qd=new RegExp(":enter","g"),Wd=new RegExp(":leave","g");function Yd(e,t,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Xd).buildKeyframes(e,t,n,r,i,o,s,a,u,l)}var Xd=function(){function e(){}var t=e.prototype;return t.buildKeyframes=function(e,t,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new Gd;var c=new $d(e,t,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),Nd(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,c.errors,a)}return h.length?h.map(function(e){return e.buildKeyframes()}):[Ud(t,[],[],[],0,0,"",!1)]},t.visitTrigger=function(e,t){},t.visitState=function(e,t){},t.visitTransition=function(e,t){},t.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},t.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},t._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?gd(n.duration):null,o=null!=n.delay?gd(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.visitReference=function(e,t){t.updateOptions(e.options,!0),Nd(this,e.animation,t),t.previousNode=e},t.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Jd);var s=gd(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return Nd(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},t.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?gd(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),Nd(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},t._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return md(t.params?Ed(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},t.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},t.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},t.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},t.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?gd(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Jd);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(u=a.currentTimeline),Nd(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},t.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;Nd(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},e}(),Jd={},$d=function(){function e(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ep(this._driver,t,0),s.push(this.currentTimeline)}var t=e.prototype;return t.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=gd(r.duration)),null!=r.delay&&(i.delay=gd(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=Ed(o[e],s,n.errors))})}}},t._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},t.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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},t.transformIntoNewTimeline=function(e){return this.previousNode=Jd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},t.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new tp(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},t.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},t.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},t.invokeQuery=function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(Qd,"."+this._enterClassName)).replace(Wd,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return i||0!=s.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},_createClass(e,[{key:"params",get:function(){return this.options.params}}]),e}(),ep=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}var t=e.prototype;return t.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},t.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},t.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},t._loadKeyframe=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))},t.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},t._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},t.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Df,t._currentKeyframe[e]=Df}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Df}):bd(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=Ed(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Df),i._updateStyle(e,t)})},t.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},t.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},t.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},t.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},t.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=bd(o,!0);Object.keys(a).forEach(function(e){var r=a[e];r==Zf?t.add(e):r==Df&&n.add(e)}),r||(a.offset=s/e.duration),i.push(a)});var o=t.size?Td(t.values()):[],s=n.size?Td(n.values()):[];if(r){var a=i[0],u=yd(a);a.offset=0,u.offset=1,i=[a,u]}return Ud(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},_createClass(e,[{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),tp=function(e){function t(t,n,r,i,o,s,a){var u;return void 0===a&&(a=!1),(u=e.call(this,t,n,s.delay)||this).element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}_inheritsLoose(t,e);var n=t.prototype;return n.containsAnimation=function(){return this.keyframes.length>1},n.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=bd(e[0],!1);u.offset=0,o.push(u);var l=bd(e[0],!1);l.offset=np(a),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=bd(e[h],!1);f.offset=np((n+f.offset*r)/s),o.push(f)}r=s,n=0,i="",e=o}return Ud(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(ep);function np(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var rp=function(){},ip=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.normalizePropertyName=function(e,t){return Pd(e)},n.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(op[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(rp),op=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function sp(e,t,n,r,i,o,s,a,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var ap={},up=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}var t=e.prototype;return t.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},t.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},t.build=function(e,t,n,r,i,o,s,a,u,l){var c=[],h=this.ast.options&&this.ast.options.params||ap,f=this.buildStyles(n,s&&s.params||ap,c),d=a&&a.params||ap,p=this.buildStyles(r,d,c),g=new Set,v=new Map,m=new Map,y="void"===r,b={params:Object.assign({},h,d)},_=l?[]:Yd(e,t,this.ast.animation,i,o,f,p,b,u,c),w=0;if(_.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),c.length)return sp(t,this._triggerName,n,r,y,f,p,[],[],v,m,w,c);_.forEach(function(e){var n=e.element,r=Jf(v,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=Jf(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var C=Td(g.values());return sp(t,this._triggerName,n,r,y,f,p,_,C,v,m,w)},e}(),lp=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=yd(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=Ed(o,r,t)),n[e]=o})}}),n},e}(),cp=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new lp(e.style,e.options&&e.options.params||{})}),hp(this.states,"true","1"),hp(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new up(e,t,n.states))}),this.fallbackTransition=new up(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}var t=e.prototype;return t.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},t.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},_createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function hp(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var fp=new Gd,dp=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}var t=e.prototype;return t.register=function(e,t){var n=[],r=Hd(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},t._buildPlayer=function(e,t,n){var r=e.element,i=Qf(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},t.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[e],a=new Map;if(s?(i=Yd(this._driver,t,s,"ng-enter","ng-leave",{},{},n,fp,o)).forEach(function(e){var t=Jf(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Df)})});var u=Gf(i.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},t.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},t._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},t.listen=function(e,t,n,r){var i=Xf(t,"","","");return Wf(this._getPlayer(e),n,i,r),function(){}},t.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),pp=[],gp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mp="__ng_removed",yp=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var i=yd(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},_createClass(e,[{key:"params",get:function(){return this.options.params}}]),e}(),bp=new yp("void"),_p=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Tp(t,this._hostClassName)}var t=e.prototype;return t.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=Jf(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=Jf(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Tp(e,"ng-trigger"),Tp(e,"ng-trigger-"+t),u[t]=bp),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete u[t]})}},t.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},t._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},t.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),s=new Cp(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Tp(e,"ng-trigger"),Tp(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new yp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=bp),"void"===l.value||u.value!==l.value){var c=Jf(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:f}),f||(Tp(e,"ng-animate-queued"),s.onStart(function(){Op(e,"ng-animate-queued")})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},t.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},t.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},t.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},t._fetchNamespace=function(e){return this._namespaceLookup[e]},t.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},t.collectEnterElement=function(e){this.collectedEnterElements.push(e)},t.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Tp(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Op(e,"ng-animate-disabled"))},t.removeNode=function(e,t,n,r){if(kp(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)},t.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[mp]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.listen=function(e,t,n,r,i){return kp(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},t._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},t.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},t.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},t.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},t.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return Gf(e.players).onDone(function(){return t()});t()})},t.processLeaveNode=function(e){var t=this,n=e[mp];if(n&&n.setForRemoval){if(e[mp]=gp,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})},t.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(S.push(t),n.collectedEnterElements.length){var c=o[mp];if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=C.get(o),g=p.get(o),v=n._buildInstruction(e,r,g,d,f);if(!v.errors||!v.errors.length)return f?(t.onStart(function(){return kd(o,v.fromStyles)}),t.onDestroy(function(){return Cd(o,v.toStyles)}),void i.push(t)):e.isFallbackTransition?(t.onStart(function(){return kd(o,v.fromStyles)}),t.onDestroy(function(){return Cd(o,v.toStyles)}),void i.push(t)):(v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,v.timelines),s.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return Jf(a,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),void v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}));x.push(v)});if(x.length){var E=[];x.forEach(function(e){E.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return E.push("- "+e+"\n")})}),S.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,O=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Jf(T,t,[]).push(e),e.destroy()})});var P=v.filter(function(e){return Ip(e,u,l)}),I=new Map;xp(I,this.driver,y,l,Df).forEach(function(e){Ip(e,u,l)&&P.push(e)});var M=new Map;d.forEach(function(e,t){xp(M,n.driver,new Set(e),u,Zf)}),P.forEach(function(e){var t=I.get(e),n=M.get(e);I.set(e,Object.assign({},t,n))});var N=[],D=[],V={};s.forEach(function(e){var t=e.element,s=e.player,a=e.instruction;if(r.has(t)){if(c.has(t))return s.onDestroy(function(){return Cd(t,a.toStyles)}),s.disabled=!0,s.overrideTotalTime(a.totalTime),void i.push(s);var u=V;if(O.size>1){for(var l=t,h=[];l=l.parentNode;){var f=O.get(l);if(f){u=f;break}h.push(l)}h.forEach(function(e){return O.set(e,u)})}var d=n._buildAnimation(s.namespaceId,a,T,o,M,I);if(s.setRealPlayer(d),u===V)N.push(s);else{var p=n.playersByElement.get(u);p&&p.length&&(s.parentPlayer=Gf(p)),i.push(s)}}else kd(t,a.fromStyles),s.onDestroy(function(){return Cd(t,a.toStyles)}),D.push(s),c.has(t)&&i.push(s)}),D.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Gf(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var R=0;R=u.length)return"break";h=u[c++]}else{if((c=u.next()).done)return"break";h=c.value}var e=h.element,a=e!==i,f=Jf(n,e,[]);r._getPreviousPlayers(e,a,o,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),f.push(e)})},u=t.timelines,l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var h;if("break"===a())break}kd(i,t.fromStyles)},t._buildAnimation=function(e,t,n,r,i,o){var s=this,a=t.triggerName,u=t.element,l=[],c=new Set,h=new Set,f=t.timelines.map(function(t){var f=t.element;c.add(f);var d=f[mp];if(d&&d.removedBeforeQueried)return new zf(t.duration,t.delay);var p,g=f!==u,v=(p=[],function e(t,n){for(var r=0;r0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new zf(e.duration,e.delay)},_createClass(e,[{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),Cp=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new zf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}var t=e.prototype;return t.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Wf(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},t.getRealPlayer=function(){return this._player},t.overrideTotalTime=function(e){this.totalTime=e},t.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},t._queueEvent=function(e,t){Jf(this._queuedCallbacks,e,[]).push(t)},t.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},t.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},t.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},t.init=function(){this._player.init()},t.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.play=function(){!this.queued&&this._player.play()},t.pause=function(){!this.queued&&this._player.pause()},t.restart=function(){!this.queued&&this._player.restart()},t.finish=function(){this._player.finish()},t.destroy=function(){this.destroyed=!0,this._player.destroy()},t.reset=function(){!this.queued&&this._player.reset()},t.setPosition=function(e){this.queued||this._player.setPosition(e)},t.getPosition=function(){return this.queued?0:this._player.getPosition()},t.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function kp(e){return e&&1===e.nodeType}function Sp(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function xp(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Sp(e))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[mp]=vp,s.push(r))}),e.set(r,o)});var a=0;return n.forEach(function(e){return Sp(e,o[a++])}),s}function Ap(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var Ep="$$classes";function Tp(e,t){if(e.classList)e.classList.add(t);else{var n=e[Ep];n||(n=e[Ep]={}),n[t]=!0}}function Op(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Ep];n&&delete n[t]}}function Pp(e,t,n){Gf(n).onDone(function(){return e.processLeaveNode(t)})}function Ip(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var Mp=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new wp(e,t,n),this._timelineEngine=new dp(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}var t=e.prototype;return t.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=Hd(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new cp(e,t)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)},t.register=function(e,t){this._transitionEngine.register(e,t)},t.destroy=function(e,t){this._transitionEngine.destroy(e,t)},t.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},t.onRemove=function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)},t.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},t.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=$f(n),o=i[0],s=i[1];this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)},t.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=$f(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,t,a,i)}return this._transitionEngine.listen(e,t,n,r,i)},t.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},t.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},_createClass(e,[{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Np(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=Vp(t[0]),t.length>1&&(r=Vp(t[t.length-1]))):t&&(n=Vp(t)),n||r?new Dp(e,n,r):null}var Dp=function(){var e=function(){function e(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}var t=e.prototype;return t.start=function(){this._state<1&&(this._startStyles&&Cd(this._element,this._startStyles,this._initialStyles),this._state=1)},t.finish=function(){this.start(),this._state<2&&(Cd(this._element,this._initialStyles),this._endStyles&&(Cd(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(kd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kd(this._element,this._endStyles),this._endStyles=null),Cd(this._element,this._initialStyles),this._state=3)},e}();return e.initialStylesByElement=new WeakMap,e}();function Vp(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()},t.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),zp(this._element,this._eventFn,!0))},t.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Zp(e,"").split(","),(r=qp(n,t))>=0&&(n.splice(r,1),Kp(e,"",n.join(","))))},e}();function Hp(e,t,n){Kp(e,"PlayState",n,Bp(e,t))}function Bp(e,t){var n=Zp(e,"");return n.indexOf(",")>0?qp(n.split(","),t):qp([n],t)}function qp(e,t){for(var n=0;n=0)return n;return-1}function zp(e,t,n){n?e.removeEventListener(Lp,t):e.addEventListener(Lp,t)}function Kp(e,t,n,r){var i=Fp+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function Zp(e,t){return e.style[Fp+t]}var Up="linear",Gp=function(){function e(e,t,n,r,i,o,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||Up,this.totalTime=r+i,this._buildStyler()}var t=e.prototype;return t.onStart=function(e){this._onStartFns.push(e)},t.onDone=function(e){this._onDoneFns.push(e)},t.onDestroy=function(e){this._onDestroyFns.push(e)},t.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},t._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},t._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},t.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.setPosition=function(e){this._styler.setPosition(e)},t.getPosition=function(){return this._styler.getPosition()},t.hasStarted=function(){return this._state>=2},t.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.pause=function(){this.init(),this._styler.pause()},t.restart=function(){this.reset(),this.play()},t.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t._buildStyler=function(){var e=this;this._styler=new jp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},t.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},t.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Dd(e.element,r))})}this.currentSnapshot=t},e}(),Qp=function(e){function t(t,n){var r;return(r=e.call(this)||this).element=t,r._startingStyles={},r.__initialized=!1,r._styles=cd(n),r}_inheritsLoose(t,e);var n=t.prototype;return n.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},n.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},n.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(zf),Wp=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}var t=e.prototype;return t.validateStyleProperty=function(e){return sd(e)},t.matchesElement=function(e,t){return ad(e,t)},t.containsElement=function(e,t){return ud(e,t)},t.query=function(e,t,n){return ld(e,t,n)},t.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},t.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return cd(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.animate=function(e,t,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(e){return e instanceof Gp}),u={};Id(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Md(e,t,u));if(0==n)return new Qp(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=Np(e,t),d=new Gp(e,t,c,n,r,i,l,f);return d.onDestroy(function(){h.parentNode.removeChild(h)}),d},t._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),Yp=function(){function e(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}var t=e.prototype;return t._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},t.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},t._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},t.onStart=function(e){this._onStartFns.push(e)},t.onDone=function(e){this._onDoneFns.push(e)},t.onDestroy=function(e){this._onDestroyFns.push(e)},t.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.pause=function(){this.init(),this.domPlayer.pause()},t.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.restart=function(){this.reset(),this.play()},t.hasStarted=function(){return this._started},t.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},t.setPosition=function(e){this.domPlayer.currentTime=e*this.time},t.getPosition=function(){return this.domPlayer.currentTime/this.time},t.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Dd(e.element,n))}),this.currentSnapshot=t},t.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},_createClass(e,[{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Xp=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Jp().toString()),this._cssKeyframesDriver=new Wp}var t=e.prototype;return t.validateStyleProperty=function(e){return sd(e)},t.matchesElement=function(e,t){return ad(e,t)},t.containsElement=function(e,t){return ud(e,t)},t.query=function(e,t,n){return ld(e,t,n)},t.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},t.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},t.animate=function(e,t,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=o.filter(function(e){return e instanceof Yp});Id(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=Np(e,t=Md(e,t=t.map(function(e){return bd(e,!1)}),u));return new Yp(e,t,a,c)},e}();function Jp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var $p,eg=(($p=function(e){function t(t,n){var r;return(r=e.call(this)||this)._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:je.None,styles:[],data:{animation:[]}}),r}return _inheritsLoose(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ff(e):e;return rg(this._renderer,null,t,"register",[n]),new tg(t,this._renderer)},t}(Mf)).ngInjectableDef=oe({token:$p,factory:function(e){return new(e||$p)(Oe(vu),Oe(fh))},providedIn:null}),$p),tg=function(e){function t(t,n){var r;return(r=e.call(this)||this)._id=t,r._renderer=n,r}return _inheritsLoose(t,e),t.prototype.create=function(e,t){return new ng(this._id,e,t||{},this._renderer)},t}(Nf),ng=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}var t=e.prototype;return t._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},t._command=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this},t.setRgba=function(e,t,n,r){return void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=1),null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this},t.setHsla=function(e,t,n,r){void 0===r&&(r=1),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);var i=new Ag(e,t,n,r);return this.rgba=this.hslaToRgba(i),this.hsva=this.rgbaToHsva(this.rgba),this},t.toHexString=function(e){void 0===e&&(e=!1);var t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()},t.toRgbaString=function(){return this.rgba.toString()},t.toRgbString=function(){return this.rgba.toString(!1)},t.toHslaString=function(){return this.getHsla().toString()},t.toHslString=function(){return this.getHsla().toString(!1)},t.toHsvaString=function(){return this.hsva.toString()},t.toHsvString=function(){return this.hsva.toString(!1)},t.toCmykString=function(){return this.getCmyk().toString()},t.getHsva=function(){return new Eg(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)},t.getRgba=function(){return new Tg(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)},t.getHsla=function(){return this.rgbaToHsla(this.rgba)},t.getCmyk=function(){return this.rgbaToCmyk(this.rgba)},t.hsvaToHsla=function(e){var t=e.saturation/100,n=(2-t)*e.value/2;return new Ag(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)},t.hslaToHsva=function(e){var t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Eg(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)},t.rgbaToHsva=function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=e.alpha,o=Math.max(t,n,r),s=Math.min(t,n,r),a=o-s,u=0,l=0===o?0:a/o,c=o;if(o!==s){switch(o){case t:u=(n-r)/a+(n.5?c/(2-o-s):c/(o+s),o){case t:a=(n-r)/c+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},t.cmykToRgba=function(e){var t=e.black/100,n=e.magenta/100,r=e.yellow/100,i=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),s=Math.min(1,(1-r)*(1-t));return new Tg(i*=255,o*=255,s*=255,1)},t.rgbaToCmyk=function(e){var t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,i=Math.min(t,n,r);return 1===i?new xg(0,0,0,1):(t=(t-i)/(1-i),n=(n-i)/(1-i),r=(r-i)/(1-i),new xg(t*=100,n*=100,r*=100,i*=100))},t.roundNumber=function(e){return Math.round(100*e)/100},t.stringToColor=function(e){var t=e.replace(/ /g,"").toLowerCase(),n=Og[t]||null;if("#"===t[0]){var r,i=t.substr(1),o=i.length,s=1;if(3===o)r=i.split("").map(function(e){return e+e});else if(6===o)r=i.match(/.{2}/g);else if(8===o){var a=i.substr(-2);i=i.substr(0,o-2),s=this.roundNumber(parseInt(a||"FF",16)/255),r=i.match(/.{2}/g)}3===r.length&&(n=new Tg(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),s))}var u=t.indexOf("("),l=t.indexOf(")");if(-1!==u&&l+1===t.length){var c=t.substr(0,u),h=t.substr(u+1,l-(u+1)).split(","),f=1;switch(c){case"rgba":f=parseFloat(h.pop());case"rgb":n=new Tg(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);break;case"hsla":f=parseFloat(h.pop());case"hsl":var d=new Ag(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);n=this.hslaToRgba(d);break;case"cmyk":var p=new xg(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10));n=this.cmykToRgba(p)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this},e}(),Ig=function(){function e(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}var t=e.prototype;return t.onEventChange=function(e){var t=this;this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",function(){return t.removeListeners()})),this.eventHooks.push(this.renderer.listen(this.document,"touchend",function(){return t.removeListeners()})),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",function(e){return t.calculate(e)})),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",function(e){return t.calculate(e)}))},t.calculateCoordinates=function(e){var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,a=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(o+this.window.pageXOffset),n)),u=Math.max(0,Math.min(s-(i+this.window.pageYOffset),r));this.movePointer({x:a,y:u,height:r,width:n})},t.calculate=function(e){var t=this;if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(function(){return t.calculateCoordinates(e)})},t.getRequestAnimationFrame=function(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame},t.removeListeners=function(){this.eventHooks.forEach(function(e){return e()}),this.eventHooks.length=0},t.ngOnDestroy=function(){this.removeListeners()},e}(),Mg=["pointer"],Ng=[1,"pointer"],Dg=["pointer",""],Vg=((bg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).colorChange=new al(!1),i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnInit=function(){this.hue||(this.hue=Pg.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)},n.ngOnChanges=function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.saturation,t.value)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=100*t/e.width,o=-100*n/r+100;this.changePointerPosition(i,o);var s=this.hue.getHsva(),a=this.color.getHsva(),u=(new Pg).setHsva(s.hue,i,o,a.alpha);this.colorChange.emit(u)},n.changePointerPosition=function(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",100-t+"%"),this.renderer.setStyle(this.pointer.nativeElement,"left",e+"%")},_createClass(t,[{key:"backgroundColor",get:function(){return this.hue?this.hue.toRgbaString():""}}]),t}(Ig)).ngComponentDef=We({type:bg,selectors:[["saturation-component"]],factory:function(e){return new(e||bg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Mg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ra(1),ja("mousedown",function(e){return t.onClick(e)}),ja("touchstart",function(e){return t.onClick(e)}),_a()),2&e&&(wa("background-color",t.backgroundColor),Aa())},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[Ja,Ga()],consts:2,vars:0,template:function(e,t){1&e&&Va(0,"div",Ng,Dg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP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aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0}),bg),Rg=function(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."},Fg=["viewBox","0 0 48 48"],Lg=["d","M0 0h48v48h-48z","fill","none"],jg=["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"],Hg=((_g=function(){function e(e,t,n,r){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=r,this.colorType="rgba"}return e.prototype.onClick=function(e){var t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)},_createClass(e,[{key:"title",get:function(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}},{key:"backgroundColor",get:function(){return this.color.toRgbaString()}}]),e}()).ngComponentDef=We({type:_g,selectors:[["indicator-component"]],factory:function(e){return new(e||_g)(ba(Rg),ba(yu),ba(pu),ba(fh))},hostBindings:function(e,t,n){1&e&&(ra(1),ja("click",function(e){return t.onClick(e)})),2&e&&ga("title",t.title)},inputs:{color:"color",colorType:"colorType"},consts:4,vars:1,template:function(e,t){1&e&&(Na(0,"div"),_a(),Yn(),Na(1,"svg",Fg),Va(2,"path",Lg),Va(3,"path",jg),Da(),Da()),2&e&&(wa("background-color",t.backgroundColor),Aa())},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),_g),Bg=["pointer"],qg=[1,"pointer"],zg=["pointer",""],Kg=((wg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).hueChange=new al(!1),i.colorChange=new al(!1),i.isVertical=!1,i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnChanges=function(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){var t=this.hue.getHsva();this.changePointerPosition(t.hue)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r*360:t/i*360;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new Pg).setHsva(o,s.saturation,s.value,s.alpha),u=(new Pg).setHsva(o,100,100,s.alpha);this.hueChange.emit(u),this.colorChange.emit(a)},n.changePointerPosition=function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",e/360*100+"%")},_createClass(t,[{key:"vertical",set:function(e){this.isVertical=!0}}]),t}(Ig)).ngComponentDef=We({type:wg,selectors:[["hue-component"]],factory:function(e){return new(e||wg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Bg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ja("mousedown",function(e){return t.onClick(e)}),ja("touchstart",function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[Ja,Ga()],consts:2,vars:0,template:function(e,t){1&e&&Va(0,"div",qg,zg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62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BBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),wg),Zg=["pointer"],Ug=[1,"pointer"],Gg=["pointer",""],Qg=[1,"gradient-color",3,"ngStyle"],Wg=function(e){return{background:e}},Yg=((kg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).colorChange=new al(!1),i.isVertical=!1,i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnChanges=function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.alpha)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r:t/i;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new Pg).setHsva(s.hue,s.saturation,s.value,o);this.colorChange.emit(a)},n.changePointerPosition=function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",100*e+"%")},_createClass(t,[{key:"vertical",set:function(e){this.isVertical=!0}},{key:"gradient",get:function(){var e=this.color.getRgba();return"linear-gradient(to "+(this.isVertical?"bottom":"right")+", rgba("+e.red+", "+e.green+", "+e.blue+", 0) 0%, rgb("+e.red+", "+e.green+", "+e.blue+") 100%)"}}]),t}(Ig)).ngComponentDef=We({type:kg,selectors:[["alpha-component"]],factory:function(e){return new(e||kg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Zg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ja("mousedown",function(e){return t.onClick(e)}),ja("touchstart",function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[Ja,Ga()],consts:3,vars:3,template:function(e,t){1&e&&(Va(0,"div",Ug,Gg),Va(2,"div",Qg)),2&e&&(ko(2),da("ngStyle",el(1,Wg,t.gradient)))},directives:[ih],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),kg),Xg=((Cg=function(){function e(){this.inputChange=new al}return e.prototype.inputChanges=function(e){var t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)},e}()).ngDirectiveDef=et({type:Cg,selectors:[["","inputChange",""]],factory:function(e){return new(e||Cg)},hostBindings:function(e,t,n){1&e&&ja("input",function(e){return t.inputChanges(e)})},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),Cg),Jg=[1,"column"],$g=["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],ev=[4,"ngIf"],tv=["class","column",4,"ngIf"];function nv(e,t){1&e&&(Na(0,"span"),za(1,"R"),Da())}function rv(e,t){1&e&&(Na(0,"span"),za(1,"G"),Da())}function iv(e,t){1&e&&(Na(0,"span"),za(1,"B"),Da())}var ov=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function sv(e,t){1&e&&(Na(0,"span"),za(1,"A"),Da())}function av(e,t){if(1&e){var n=Fa();Na(0,"div",Jg),Na(1,"input",ov),ja("inputChange",function(e){return An(n),qa().onInputChange(e,"A")}),Da(),va(2,sv,2,0,"span",ev),Da()}if(2&e){var r=qa();ko(1),da("value",null==r.value?null:r.value.getAlpha().toString()),ko(2),da("ngIf",r.labelVisible)}}var uv,lv=((uv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.isAlphaVisible=!0}return e.prototype.onInputChange=function(e,t){var n=this.value,r="R"===t?e:n.red,i="G"===t?e:n.green,o="B"===t?e:n.blue,s="A"===t?e:n.alpha,a=(new Pg).setRgba(r,i,o,s),u=(new Pg).setHsva(a.getHsva().hue);this.hueChange.emit(u),this.colorChange.emit(a)},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getRgba():null}}]),e}()).ngComponentDef=We({type:uv,selectors:[["rgba-input-component"]],factory:function(e){return new(e||uv)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(Na(0,"div",Jg),Na(1,"input",$g),ja("inputChange",function(e){return t.onInputChange(e,"R")}),Da(),va(2,nv,2,0,"span",ev),Da(),Na(3,"div",Jg),Na(4,"input",$g),ja("inputChange",function(e){return t.onInputChange(e,"G")}),Da(),va(5,rv,2,0,"span",ev),Da(),Na(6,"div",Jg),Na(7,"input",$g),ja("inputChange",function(e){return t.onInputChange(e,"B")}),Da(),va(8,iv,2,0,"span",ev),Da(),va(9,av,3,2,"div",tv)),2&e&&(ko(1),da("value",null==t.value?null:t.value.getRed().toString()),ko(2),da("ngIf",t.labelVisible),ko(4),da("value",null==t.value?null:t.value.getGreen().toString()),ko(5),da("ngIf",t.labelVisible),ko(7),da("value",null==t.value?null:t.value.getBlue().toString()),ko(8),da("ngIf",t.labelVisible),ko(9),da("ngIf",t.isAlphaVisible))},directives:[Xg,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),uv),cv=[1,"column"],hv=["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],fv=[4,"ngIf"],dv=["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],pv=["class","column",4,"ngIf"];function gv(e,t){1&e&&(Na(0,"span"),za(1,"H"),Da())}function vv(e,t){1&e&&(Na(0,"span"),za(1,"S"),Da())}function mv(e,t){1&e&&(Na(0,"span"),za(1,"L"),Da())}var yv=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function bv(e,t){1&e&&(Na(0,"span"),za(1,"A"),Da())}function _v(e,t){if(1&e){var n=Fa();Na(0,"div",cv),Na(1,"input",yv),ja("inputChange",function(e){return An(n),qa().onInputChange(e,"A")}),Da(),va(2,bv,2,0,"span",fv),Da()}if(2&e){var r=qa();ko(1),da("value",null==r.value?null:r.value.getAlpha().toString()),ko(2),da("ngIf",r.labelVisible)}}var wv,Cv=((wv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.isAlphaVisible=!0}return e.prototype.onInputChange=function(e,t){var n=this.value,r="H"===t?e:n.hue,i="S"===t?e:n.saturation,o="L"===t?e:n.lightness,s="A"===t?e:n.alpha,a=(new Pg).setHsla(r,i,o,s),u=(new Pg).setHsva(a.getHsva().hue);this.hueChange.emit(u),this.colorChange.emit(a)},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getHsla():null}}]),e}()).ngComponentDef=We({type:wv,selectors:[["hsla-input-component"]],factory:function(e){return new(e||wv)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(Na(0,"div",cv),Na(1,"input",hv),ja("inputChange",function(e){return t.onInputChange(e,"H")}),Da(),va(2,gv,2,0,"span",fv),Da(),Na(3,"div",cv),Na(4,"input",dv),ja("inputChange",function(e){return t.onInputChange(e,"S")}),Da(),va(5,vv,2,0,"span",fv),Da(),Na(6,"div",cv),Na(7,"input",dv),ja("inputChange",function(e){return t.onInputChange(e,"L")}),Da(),va(8,mv,2,0,"span",fv),Da(),va(9,_v,3,2,"div",pv)),2&e&&(ko(1),da("value",null==t.value?null:t.value.getHue().toString()),ko(2),da("ngIf",t.labelVisible),ko(4),da("value",(null==t.value?null:t.value.getSaturation())+"%"),ko(5),da("ngIf",t.labelVisible),ko(7),da("value",(null==t.value?null:t.value.getLightness())+"%"),ko(8),da("ngIf",t.labelVisible),ko(9),da("ngIf",t.isAlphaVisible))},directives:[Xg,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),wv),kv=[1,"column"],Sv=["type","text",3,"value","keyup"],xv=["elRef",""],Av=[4,"ngIf"];function Ev(e,t){1&e&&(Na(0,"span"),za(1,"HEX"),Da())}var Tv,Ov,Pv=((Tv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.prefixValue=""}return e.prototype.onInputChange=function(e){var t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){var n=new Pg("#"+t),r=(new Pg).setHsva(n.getHsva().hue);this.hueChange.emit(r),this.colorChange.emit(n)}},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"prefix",set:function(e){this.prefixValue=e}},{key:"value",get:function(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}}]),e}()).ngComponentDef=We({type:Tv,selectors:[["hex-input-component"]],factory:function(e){return new(e||Tv)},inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:4,vars:2,template:function(e,t){if(1&e){var n=Fa();Na(0,"div",kv),Na(1,"input",Sv,xv),ja("keyup",function(e){An(n);var r=ma(2);return t.onInputChange(r.value)}),Da(),va(3,Ev,2,0,"span",Av),Da()}2&e&&(ko(1),da("value",t.value),ko(3),da("ngIf",t.labelVisible))},directives:[qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),Tv),Iv=Vf("opacityAnimation",[(Ov=Lf({opacity:1}),{type:0,name:"true",styles:Ov,options:void 0}),jf("void => *",[Lf({opacity:0}),Rf(".08s ease-in")])]),Mv=Vf("listAnimation",[jf("* => up",[Hf(":enter",[Lf({opacity:0,height:0}),Bf(-10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),jf("* => right",[Hf(":enter",[Lf({opacity:0,height:0}),Bf(-10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),jf("* => down",[Hf(":enter",[Lf({opacity:0,height:0}),Bf(10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),jf("* => left",[Hf(":enter",[Lf({opacity:0,height:0}),Bf(10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})])]),Nv=new _(function(e){return e.complete()});function Dv(e){return e?function(e){return new _(function(t){return e.schedule(function(){return t.complete()})})}(e):Nv}function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1};var n=t.prototype;return n._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},n.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new Zv(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},n._next=function(e){this.scheduleNotification(qv.createNext(e))},n._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},n._complete=function(){this.scheduleNotification(qv.createComplete()),this.unsubscribe()},t}(m),Zv=function(e,t){this.time=e,this.notification=t},Uv=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Gv(e),r=D(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),Gv=function(e){function t(t){var n;return(n=e.call(this,t)||this).seenValue=!1,n}_inheritsLoose(t,e);var n=t.prototype;return n.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},n.notifyComplete=function(){},t}(V),Qv=((Lv=function(){function e(e){this.pickerConfig=e,this.selectionChange=new al(!1),this.longPress=new al(!1),this.mouseup=new E,this.showDepthText=!1}var t=e.prototype;return t.ngOnDestroy=function(){this.mouseup.next(),this.mouseup.complete()},t.onTouch=function(e){var t,n=this;Vv(e).pipe(R(function(e){return e.timeStamp||(new Date).getTime()}),function(e,t){void 0===t&&(t=Bv);var n=350 instanceof Date&&!isNaN(350)?350-t.now():Math.abs(350);return function(e){return e.lift(new zv(n,t))}}(),(t=this.mouseup,function(e){return e.lift(new Uv(t))})).subscribe(function(){return n.longPress.next(!0)}),this.selectionChange.emit(this.color)},t.onTouchEnd=function(e){this.mouseup.next(e)},_createClass(e,[{key:"depth",set:function(e){this.showDepthText=!!e}},{key:"bgColor",get:function(){return this.color.toRgbaString()}},{key:"title",get:function(){var e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,function(t,n){return e}):e}},{key:"className",get:function(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}}]),e}()).ngComponentDef=We({type:Lv,selectors:[["color-preset"]],factory:function(e){return new(e||Lv)(ba(Rg))},hostBindings:function(e,t,n){var r,i;1&e&&(ra(3),ja("mousedown",function(e){return t.onTouch(e)}),ja("touchstart",function(e){return t.onTouch(e)}),ja("mouseup",function(e){return t.onTouchEnd(e)}),ja("touchend",function(e){return t.onTouchEnd(e)}),_a()),2&e&&(ga("title",t.title),wa("background-color",t.bgColor),r=t.className,i=gn()[ht]++,Ca(Un(),i,"selected",r,!0,Ma()),Aa())},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},consts:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),Lv),Wv=((Fv=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=!0),t?e.slice().reverse():e},e}()).ngPipeDef=tt({name:"reverse",type:Fv,factory:function(e){return new(e||Fv)},pure:!0}),Fv),Yv=[3,"show-depth-title","color","activeColor","longPress","selectionChange"],Xv=[1,"reflection"],Jv=["class","sublist",4,"ngIf"],$v=[1,"sublist"],em=[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],tm=[3,"color","activeColor","selectionChange"];function nm(e,t){if(1&e){var n=Fa();Na(0,"color-preset",tm),ja("selectionChange",function(e){return An(n),qa(2).onSelectionChange(e)}),Da()}if(2&e){var r=t.$implicit,i=qa(2);da("color",r)("activeColor",i.activeColor)}}function rm(e,t){if(1&e&&(Na(0,"div",$v),va(1,nm,1,2,"color-preset",em),nl(2,"reverse"),Da()),2&e){var n=qa();da("@opacityAnimation",n.showChildren)("@listAnimation",n.direction),ko(1),da("ngForOf",il(2,3,n.list,"up"==n.direction||"right"==n.direction))}}var im,om,sm=((om=function(){function e(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new al(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}var t=e.prototype;return t.ngOnDestroy=function(){this.removeListeners(),this.cdr.detach()},t.removeListeners=function(){this.hooks.forEach(function(e){return e()}),this.hooks.length=0},t.onSelectionChange=function(e){this.selectionChange.next(e)},t.onLongPress=function(){this.showChildren=!0,this.listenDocumentClick()},t.listenDocumentClick=function(){var e=this;this.hooks.push(this.renderer.listen(this.document,"mousedown",function(){return e.closeList()})),this.hooks.push(this.renderer.listen(this.document,"touchstart",function(){return e.closeList()}))},t.closeList=function(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())},_createClass(e,[{key:"className",get:function(){return"direction-"+this.direction}}]),e}()).ngComponentDef=We({type:om,selectors:[["color-preset-sublist"]],factory:function(e){return new(e||om)(ba(yu),ba(fh),ba(Fs))},hostBindings:function(e,t,n){1&e&&(ra(1),_a()),2&e&&(ka(t.className),Aa())},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},consts:4,vars:6,template:function(e,t){1&e&&(Na(0,"color-preset",Yv),ja("longPress",function(e){return t.onLongPress()}),ja("selectionChange",function(e){return t.onSelectionChange(e)}),Da(),Na(1,"div",Xv),_a(),Da(),Na(2,"div",Xv),_a(),Da(),va(3,rm,3,6,"div",Jv)),2&e&&(da("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),ko(1),wa("background-color",t.list[0].toRgbaString()),Aa(),ko(2),wa("background-color",t.list[0].toRgbaString()),Aa(),ko(3),da("ngIf",t.showChildren))},directives:[Qv,qc,Hc],pipes:[Wv],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Iv,Mv]},changeDetection:0}),om),am=((im=function(){function e(){}return e.prototype.transform=function(e,t){return e.reduce(function(n,r,i){return i%t?n:n.concat([e.slice(i,i+t)])},[])},e}()).ngPipeDef=tt({name:"chunks",type:im,factory:function(e){return new(e||im)},pure:!0}),im),um=["class","row",3,"ngClass",4,"ngFor","ngForOf"],lm=[1,"row",3,"ngClass"],cm=["ngFor","",3,"ngForOf"],hm=[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],fm=["colorPreset",""],dm=[3,"list","direction","activeColor","ngClass","selectionChange"],pm=function(e,t){return{first:e,last:t}};function gm(e,t){if(1&e){var n=Fa();Na(0,"color-preset-sublist",dm),ja("selectionChange",function(e){return An(n),qa(3).onSelectionChange(e)}),Da()}if(2&e){var r=qa(),i=r.$implicit,o=r.first,s=r.last,a=qa(2);da("list",i)("direction",a.direction)("activeColor",a.color)("ngClass",tl(4,pm,o,s))}}var vm=[3,"ngClass","color","activeColor","selectionChange"];function mm(e,t){if(1&e){var n=Fa();Na(0,"color-preset",vm),ja("selectionChange",function(e){return An(n),qa(3).onSelectionChange(e)}),Da()}if(2&e){var r=qa(),i=r.first,o=r.last,s=r.$implicit,a=qa(2);da("ngClass",tl(3,pm,i,o))("color",s)("activeColor",a.color)}}function ym(e,t){if(1&e&&(va(0,gm,1,7,"color-preset-sublist",hm),va(1,mm,1,6,"ng-template",null,fm,Cl)),2&e){var n=t.$implicit,r=ma(2);da("ngIf",qa(2).isList(n))("ngIfElse",r)}}function bm(e,t){if(1&e&&(Na(0,"div",lm),va(1,ym,3,2,"ng-template",cm),Da()),2&e){var n=t.$implicit;da("ngClass",tl(2,pm,t.first,t.last)),ko(1),da("ngForOf",n)}}var _m,wm=((_m=function(){function e(){this.columns=8,this.hueChange=new al(!1),this.colorChange=new al(!1),this.direction="up"}var t=e.prototype;return t.onSelectionChange=function(e){var t=e.getRgba(),n=e.getHsva(),r=(new Pg).setRgba(t.red,t.green,t.blue,t.alpha),i=(new Pg).setHsva(n.hue);this.hueChange.emit(i),this.colorChange.emit(r)},t.isList=function(e){return Array.isArray(e)},e}()).ngComponentDef=We({type:_m,selectors:[["color-presets-component"]],factory:function(e){return new(e||_m)},inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:2,vars:4,template:function(e,t){1&e&&(va(0,bm,2,5,"div",um),nl(1,"chunks")),2&e&&da("ngForOf",il(1,1,t.colorPresets,t.columns))},directives:[Hc,Lc,qc,sm,Qv],pipes:[am],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),_m),Cm=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n}_inheritsLoose(t,e);var n=t.prototype;return n._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value},n.next=function(t){e.prototype.next.call(this,this._value=t)},_createClass(t,[{key:"value",get:function(){return this.getValue()}}]),t}(E),km=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Sm(e,this.compare,this.keySelector))},e}(),Sm=function(e){function t(t,n,r){var i;return(i=e.call(this,t)||this).keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}_inheritsLoose(t,e);var n=t.prototype;return n.compare=function(e,t){return e===t},n._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(m),xm=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({}),Am=function(){function e(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new E,this.presetsVisibilityChanges=new Cm(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Cm(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=function(e,t){return e.toRgbaString()==t.toRgbaString()},function(t){return t.lift(new km(e,void 0))})),this.colorPresets=[];var t=Pg.from(new Tg(255,0,0,1));this.setValue(t),this.setHueColor(t)}var t=e.prototype;return t.setValueFrom=function(e){var t=Pg.from(e);return this.initValue||(this.initValue=Pg.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this},t.setHueColor=function(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Pg).setHsva(e.getHsva().hue))},t.setValue=function(e){return this.modelValue=e,this.valueChanged.next(e),this},t.reset=function(){var e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Pg.from(new Tg(255,0,0,1)),this.hueValue=(new Pg).setHsva(e.getHsva().hue)),this.setValue(e),this},t.isAlphaChannelEnabled=function(){return this.alphaChannelVisibilityChanges.value},t.showAlphaChannel=function(){return this.alphaChannelVisibilityChanges.next(!0),this},t.hideAlphaChannel=function(){return this.alphaChannelVisibilityChanges.next(!1),this},t.finOutInputType=function(e){var t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=xm.hex,t.length>7&&(this.initType=xm.hexa));var n=t.indexOf("(");switch(t.substr(0,n)){case xm.rgba:this.initType=xm.rgba;break;case xm.rgb:this.initType=xm.rgb;break;case xm.hsla:this.initType=xm.hsla;break;case xm.hsl:this.initType=xm.hsl;break;case xm.cmyk:this.initType=xm.cmyk}},t.setColorPresets=function(e){return this.colorPresets=this.setPresets(e),this},t.setPresets=function(e){var t=[],n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var s=o;Array.isArray(s)?t.push(this.setPresets(s)):t.push(new Pg(s))}return t},t.hasPresets=function(){return this.colorPresets.length>0},t.isPresetVisible=function(){return this.presetsVisibilityChanges.value},t.showPresets=function(){return this.presetsVisibilityChanges.next(!0),this},t.hidePresets=function(){return this.presetsVisibilityChanges.next(!1),this},t.unsubscribe=function(){this.valueChanged.complete(),this.presetsVisibilityChanges.complete()},_createClass(e,[{key:"hue",get:function(){return this.hueValue},set:function(e){this.hueValue=e}},{key:"value",get:function(){return this.modelValue},set:function(e){this.setValue(e)}},{key:"presets",get:function(){return this.colorPresets}}]),e}();function Em(e,t){switch(t){case xm.hex:return e.toHexString();case xm.hexa:return e.toHexString(!0);case xm.rgb:return e.toRgbString();case xm.rgba:return e.toRgbaString();case xm.hsl:return e.toHslString();case xm.hsla:return e.toHslaString();default:return e.toRgbaString()}}var Tm=[3,"hue","color","colorChange"],Om=[1,"controls"],Pm=[1,"controls-row","hue-alpha"],Im=[1,"column"],Mm=[3,"colorType","color"],Nm=[3,"hue","color","hueChange","colorChange"],Dm=[3,"color","colorChange",4,"ngIf"],Vm=[1,"controls-row","presentation"],Rm=[1,"column",3,"ngSwitch"],Fm=["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],Lm=["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],jm=[1,"column","type-column"],Hm=[1,"type-btn",3,"click"],Bm=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],qm=[3,"color","colorChange"];function zm(e,t){if(1&e){var n=Fa();Na(0,"alpha-component",qm),ja("colorChange",function(e){return An(n),qa().control.value=e}),Da()}2&e&&da("color",qa().control.value)}var Km=["label","",3,"alpha","color","hue","colorChange","hueChange"];function Zm(e,t){if(1&e){var n=Fa();Na(0,"rgba-input-component",Km),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),nl(1,"async"),Da()}if(2&e){var r=qa();da("alpha",rl(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function Um(e,t){if(1&e){var n=Fa();Na(0,"hsla-input-component",Km),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),nl(1,"async"),Da()}if(2&e){var r=qa();da("alpha",rl(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}var Gm=["label","","prefix","#",3,"color","hue","colorChange","hueChange"];function Qm(e,t){if(1&e){var n=Fa();Na(0,"hex-input-component",Gm),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("hue",r.control.hue)}}var Wm=[3,"color","colorPresets","hue","colorChange","hueChange"];function Ym(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Wm),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var Xm,Jm=((Xm=function(){function e(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new al(!1)}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))})},t.ngOnDestroy=function(){this.control.unsubscribe(),this.cdr.detach()},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},t.changePresentation=function(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1},e}()).ngComponentDef=We({type:Xm,selectors:[["chrome-picker"]],factory:function(e){return new(e||Xm)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:18,vars:16,template:function(e,t){1&e&&(Na(0,"saturation-component",Tm),ja("colorChange",function(e){return t.control.value=e}),Da(),Na(1,"div",Om),Na(2,"div",Pm),Na(3,"div",Im),Va(4,"indicator-component",Mm),Da(),Na(5,"div",Im),Na(6,"hue-component",Nm),ja("hueChange",function(e){return t.control.hue=e}),ja("colorChange",function(e){return t.control.value=e}),Da(),va(7,zm,1,1,"alpha-component",Dm),nl(8,"async"),Da(),Da(),Na(9,"div",Vm),Na(10,"div",Rm),va(11,Zm,2,5,"rgba-input-component",Fm),va(12,Um,2,5,"hsla-input-component",Fm),va(13,Qm,1,2,"hex-input-component",Lm),Da(),Na(14,"div",jm),Na(15,"span",Hm),ja("click",function(e){return t.changePresentation()}),Da(),Da(),Da(),Da(),va(16,Ym,1,3,"color-presets-component",Bm),nl(17,"async")),2&e&&(da("hue",t.control.hue)("color",t.control.value),ko(4),da("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),ko(6),da("hue",t.control.hue)("color",t.control.value),ko(7),da("ngIf",rl(8,12,t.control.alphaChannelVisibilityChanges)),ko(10),da("ngSwitch",t.presentations[t.selectedPresentation]),ko(11),da("ngSwitchCase","rgba"),ko(12),da("ngSwitchCase","hsla"),ko(13),da("ngSwitchCase","hex"),ko(16),da("ngIf",rl(17,14,t.control.presetsVisibilityChanges)))},directives:[Vg,Hg,Kg,qc,Jc,$c,Yg,lv,Cv,Pv,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) center/6px 12px no-repeat}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.3) 0 0 2px}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-webkit-transform:scale(1.18,1.18);-ms-transform:scale(1.18,1.18);transform:scale(1.18,1.18)}"],changeDetection:0}),Xm),$m=[3,"hue","color","colorChange"],ey=[1,"controls"],ty=[1,"controls-row","hue-alpha"],ny=[1,"column"],ry=[3,"hue","color","hueChange","colorChange"],iy=[3,"color","colorChange",4,"ngIf"],oy=[1,"column","indicator-column"],sy=["colorType","rgba",3,"color"],ay=[1,"controls-row","presentation"],uy=["label","",3,"color","hue","colorChange","hueChange"],ly=["label","",3,"alpha","color","hue","colorChange","hueChange"],cy=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],hy=[3,"color","colorChange"];function fy(e,t){if(1&e){var n=Fa();Na(0,"alpha-component",hy),ja("colorChange",function(e){return An(n),qa().control.value=e}),Da()}2&e&&da("color",qa().control.value)}var dy=[3,"color","colorPresets","hue","colorChange","hueChange"];function py(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",dy),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var gy,vy=((gy=function(){function e(e){this.cdr=e,this.colorChange=new al(!1)}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))})},t.ngOnDestroy=function(){this.control.unsubscribe(),this.cdr.detach()},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:gy,selectors:[["sketch-picker"]],factory:function(e){return new(e||gy)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:17,vars:18,template:function(e,t){1&e&&(Na(0,"saturation-component",$m),ja("colorChange",function(e){return t.control.value=e}),Da(),Na(1,"div",ey),Na(2,"div",ty),Na(3,"div",ny),Na(4,"hue-component",ry),ja("hueChange",function(e){return t.control.hue=e}),ja("colorChange",function(e){return t.control.value=e}),Da(),va(5,fy,1,1,"alpha-component",iy),nl(6,"async"),Da(),Na(7,"div",oy),Va(8,"indicator-component",sy),Da(),Da(),Na(9,"div",ay),Na(10,"div",ny),Na(11,"hex-input-component",uy),ja("colorChange",function(e){return t.control.value=e}),ja("hueChange",function(e){return t.control.hue=e}),Da(),Da(),Na(12,"div",ny),Na(13,"rgba-input-component",ly),ja("colorChange",function(e){return t.control.value=e}),ja("hueChange",function(e){return t.control.hue=e}),nl(14,"async"),Da(),Da(),Da(),Da(),va(15,py,1,3,"color-presets-component",cy),nl(16,"async")),2&e&&(da("hue",t.control.hue)("color",t.control.value),ko(4),da("hue",t.control.hue)("color",t.control.value),ko(5),da("ngIf",rl(6,12,t.control.alphaChannelVisibilityChanges)),ko(8),da("color",t.control.value),ko(11),da("color",t.control.value)("hue",t.control.hue),ko(13),da("alpha",rl(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),ko(15),da("ngIf",rl(16,16,t.control.presetsVisibilityChanges)))},directives:[Vg,Kg,qc,Hg,Pv,lv,Yg,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px;width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.4) 0 0 2px}[_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.4) 0 1px 4px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),gy),my=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],yy=[1,"controls"],by=[1,"controls-row","saturation-hue"],_y=[1,"column"],wy=[3,"hue","color","colorChange"],Cy=[1,"column","hue-column"],ky=["vertical","",3,"hue","color","hueChange","colorChange"],Sy=[1,"controls-row","presentation"],xy=["viewBox","0 0 1024 1024",1,"pencil"],Ay=["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],Ey=["prefix","#",3,"color","hue","colorChange","hueChange"],Ty=["colorType","hex",3,"color"],Oy=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"];function Py(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Oy),ja("colorChange",function(e){return An(n),qa().control.value=e}),ja("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("columns",9)("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var Iy,My,Ny=((Iy=function(){function e(e){this.cdr=e,this.colorChange=new al(!1)}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))})},t.ngOnDestroy=function(){this.control.unsubscribe(),this.cdr.detach()},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:Iy,selectors:[["compact-picker"]],factory:function(e){return new(e||Iy)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:15,vars:10,template:function(e,t){1&e&&(va(0,Py,1,4,"color-presets-component",my),nl(1,"async"),Na(2,"div",yy),Na(3,"div",by),Na(4,"div",_y),Na(5,"saturation-component",wy),ja("colorChange",function(e){return t.control.value=e}),Da(),Da(),Na(6,"div",Cy),Na(7,"hue-component",ky),ja("hueChange",function(e){return t.control.hue=e}),ja("colorChange",function(e){return t.control.value=e}),Da(),Da(),Da(),Na(8,"div",Sy),Na(9,"div",_y),Yn(),Na(10,"svg",xy),Va(11,"path",Ay),Da(),Xn(),Na(12,"hex-input-component",Ey),ja("colorChange",function(e){return t.control.value=e}),ja("hueChange",function(e){return t.control.hue=e}),Da(),Da(),Na(13,"div",_y),Va(14,"indicator-component",Ty),Da(),Da(),Da()),2&e&&(da("ngIf",rl(1,8,t.control.presetsVisibilityChanges)),ko(5),da("hue",t.control.hue)("color",t.control.value),ko(7),da("hue",t.control.hue)("color",t.control.value),ko(12),da("color",t.control.value)("hue",t.control.hue),ko(14),da("color",t.control.value))},directives:[qc,Vg,Kg,Pv,Hg,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 0 4px}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:0 0;border:3px solid #fff;border-radius:5px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset rgba(0,0,0,.6) 0 1px 1px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.6) 0 1px 6px}"],changeDetection:0}),Iy),Dy=["direction","down",3,"color","colorPresets","colorChange"],Vy=((My=function(){function e(e){this.cdr=e,this.colorChange=new al(!1)}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))})},t.ngOnDestroy=function(){this.control.unsubscribe(),this.cdr.detach()},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:My,selectors:[["github-picker"]],factory:function(e){return new(e||My)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:1,vars:2,template:function(e,t){1&e&&(Na(0,"color-presets-component",Dy),ja("colorChange",function(e){return t.control.value=e}),Da()),2&e&&da("color",t.control.value)("colorPresets",t.control.presets)},directives:[wm],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.15) 0 3px 12px;border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}'],changeDetection:0}),My),Ry=["direction","down",3,"columns","color","colorPresets","colorChange"],Fy=["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],Ly=["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"];function jy(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Ly),ja("colorChange",function(e){return An(n),qa().childControl.value=e}),Da()}if(2&e){var r=qa();da("columns",7)("color",r.childControl.value)("colorPresets",r.childControl.presets)}}var Hy,By,qy,zy,Ky=((By=function(){function e(e){this.cdr=e,this.colorChange=new al(!1),this.control=new Am,this.childControl=new Am,this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.childControl.valueChanges.subscribe(function(t){e.colorChange.emit(Em(t,e.childControl.initType))}),this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck();var n=e.mapColors[t.toHexString()];n&&e.childControl.setColorPresets(n),e.colorChange.emit(Em(e.childControl.value,e.childControl.initType))})},t.ngOnDestroy=function(){this.control.unsubscribe(),this.childControl.unsubscribe(),this.cdr.detach()},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)},e}()).ngComponentDef=We({type:By,selectors:[["swatches-picker"]],factory:function(e){return new(e||By)(ba(Fs))},inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:2,vars:4,template:function(e,t){1&e&&(Na(0,"color-presets-component",Ry),ja("colorChange",function(e){return t.control.value=e}),Da(),va(1,jy,1,3,"color-presets-component",Fy)),2&e&&(da("columns",7)("color",t.control.value)("colorPresets",t.control.presets),ko(1),da("ngIf",t.childControl.presets.length))},directives:[wm,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.3) 0 0 2px;border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),By),Zy=((Hy=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:Rg,useValue:t||new Rg}]}},e}()).ngModuleDef=Je({type:Hy}),Hy.ngInjectorDef=se({factory:function(e){return new(e||Hy)},providers:[Rg],imports:[[lh]]}),Hy),Uy=n("Eh/9"),Gy=[1,"jumbotron"],Qy=[1,"background"],Wy=[1,"container"],Yy=[1,"row"],Xy=[1,"col"],Jy=[1,"display-4"],$y=["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],eb=[1,"row","pickers-row"],tb=[1,"col","col-md-6","text-right"],nb=[3,"color","colorChange"],rb=[1,"col","col-md-6"],ib=[1,"card"],ob=[1,"card-header"],sb=[1,"card-block"],ab=[2,"padding","0 0 0 40px"],ub=["id","installation",1,"card"],lb=[1,"prettify"],cb=["id","usage",1,"card"],hb=[1,"col","col-lg-4"],fb=[1,"info-row"],db=[3,"control"],pb=[1,"col","col-lg-8"],gb=[1,"buttons-row"],vb=[1,"btn","btn-primary",3,"click"],mb=[1,"table","table-bordered","table-striped"],yb=["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"],bb=((zy=function(){function e(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Am).setValueFrom(Og.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Am).setValueFrom("#A6771C"),this.compactControl=new Am,this.githubControl=(new Am).setValueFrom("#1273DE"),this.swatchesColor="#F04A71"}return e.prototype.ngAfterViewInit=function(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(function(e){return e.innerHTML=Uy.prettyPrintOne(e.innerHTML)})},e}()).ngComponentDef=We({type:zy,selectors:[["app-root"]],factory:function(e){return new(e||zy)(ba(pu))},consts:705,vars:45,template:function(e,t){if(1&e){Na(0,"div",Gy),Na(1,"div",Qy),_a(),Da(),Na(2,"div",Wy),Na(3,"div",Yy),Na(4,"div",Xy),Na(5,"h1",Jy),za(6,"@iplab/ngx-color-picker"),Da(),Va(7,"br"),Na(8,"a",$y),za(9,"GitHub"),Da(),Da(),Da(),Na(10,"div",eb),Na(11,"div",tb),Na(12,"sketch-picker",nb),ja("colorChange",function(e){return t.color=e}),Da(),Da(),Na(13,"div",rb),Na(14,"chrome-picker",nb),ja("colorChange",function(e){return t.color=e}),Da(),Da(),Da(),Da(),Da(),Na(15,"div",Wy),Na(16,"div",ib),Na(17,"div",ob),za(18,"Getting started"),Da(),Na(19,"div",sb),Na(20,"ol"),Na(21,"li"),za(22,"Fork and clone this repo"),Da(),Na(23,"li"),za(24,"npm install"),Da(),Na(25,"li"),za(26,'Open a terminal and type "npm run start"'),Da(),Da(),Na(27,"p",ab),Na(28,"b"),za(29,"or"),Da(),Da(),Na(30,"ol"),Na(31,"li"),za(32,"npm install @iplab/ngx-color-picker --save"),Da(),Na(33,"li"),za(34,"ng serve --open"),Da(),Da(),Da(),Da(),Va(35,"br"),Na(36,"div",ib),Na(37,"div",ob),za(38,"Description"),Da(),Na(39,"div",sb),Na(40,"p"),za(41,"Pure Angular color picker library."),Da(),Na(42,"ul"),Na(43,"li"),za(44,"It's an Angular color picker"),Da(),Na(45,"li"),za(46,"Compatible with Angular 5+ versions"),Da(),Na(47,"li"),za(48,"No external dependency"),Da(),Na(49,"li"),za(50,"Simple to configure"),Da(),Na(51,"li"),za(52,"Easy to use"),Da(),Da(),Da(),Da(),Va(53,"br"),Na(54,"div",ub),Na(55,"div",ob),za(56,"Installation"),Da(),Na(57,"div",sb),Na(58,"p"),za(59,"To install this component to an external project, follow the procedure:"),Da(),Na(60,"ol"),Na(61,"li"),Na(62,"code"),za(63,"npm install @iplab/ngx-color-picker --save"),Da(),Da(),Na(64,"li"),Na(65,"pre",lb),za(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),Na(67,"b"),za(68,"BrowserAnimationsModule"),Da(),za(69," or "),Na(70,"b"),za(71,"NoopAnimationsModule"),Da(),za(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),Da(),Da(),Na(73,"li"),Na(74,"code"),za(75,''),Da(),Da(),Da(),Da(),Da(),Va(76,"br"),Na(77,"div",cb),Na(78,"div",ob),za(79,"Usage"),Da(),Na(80,"div",sb),Na(81,"h6"),za(82,"predefined components"),Da(),Na(83,"p"),za(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),Va(85,"br"),za(86," can be used with direct color binding "),Na(87,"b"),za(88,"or/and"),Da(),za(89," with control which provides greater flexibility"),Da(),Na(90,"p"),Na(91,"code"),za(92,''),Da(),Va(93,"br"),Na(94,"code"),za(95,''),Da(),Va(96,"br"),Na(97,"code"),za(98,''),Da(),Va(99,"br"),Na(100,"code"),za(101,''),Da(),Va(102,"br"),Na(103,"code"),za(104,''),Da(),Da(),Va(105,"hr"),Na(106,"h6"),za(107,"[color] attribute"),Da(),Na(108,"p"),za(109,"When binding over attribute "),Na(110,"b"),za(111,"[color]"),Da(),za(112," is used, component try to determine which value type is used so the output would be the same."),Va(113,"br"),Na(114,"b"),za(115,"Examples:"),Da(),Va(116,"br"),Na(117,"code"),za(118,''),Da(),za(119," -> output is "),Na(120,"b"),za(121,"rgb"),Da(),Va(122,"br"),Na(123,"code"),za(124,''),Da(),za(125," -> output is "),Na(126,"b"),za(127,"rgba"),Da(),Va(128,"br"),Na(129,"code"),za(130,''),Da(),za(131," -> output is "),Na(132,"b"),za(133,"hsl"),Da(),Va(134,"br"),Na(135,"code"),za(136,''),Da(),za(137," -> output is "),Na(138,"b"),za(139,"hex"),Da(),Da(),Va(140,"hr"),Na(141,"h6"),za(142,"[control] attribute"),Da(),Na(143,"p"),za(144,"When binding over "),Na(145,"b"),za(146,"[control]"),Da(),za(147," user have greater control over color output and all events"),Va(148,"br"),Na(149,"b"),za(150,"Examples:"),Da(),Va(151,"br"),Na(152,"code"),za(153,''),Da(),Da(),Va(154,"hr"),Na(155,"h6"),za(156,"color indicator"),Da(),Na(157,"p"),za(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),Va(159,"br"),za(160," Text which is displayed on mouseover can be configured over NgModule configuration"),Da(),Na(161,"pre",lb),za(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Da(),Va(163,"hr"),Na(164,"h6"),za(165,"color presets"),Da(),Na(166,"p"),za(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),Va(168,"br"),za(169," Text which is displayed on mouseover can be configured over NgModule configuration"),Da(),Na(170,"pre",lb),hn=!1,za(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),hn=!0,Da(),Va(172,"hr"),Na(173,"h6"),za(174,"all color picker parts"),Da(),Na(175,"p"),za(176,"Color picker library exports all parts to enable custom components builds"),Va(177,"br"),za(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),Da(),Na(179,"pre",lb),za(180,'\n\n\n\n\n\n\n\n\n\n'),Da(),Na(181,"h6"),za(182,"attributes explanation"),Da(),Na(183,"p"),Na(184,"b"),za(185,"color =>"),Da(),za(186," currently selected color (output color)"),Va(187,"br"),Na(188,"b"),za(189,"hue =>"),Da(),za(190," color used internally as current hue color"),Va(191,"br"),Na(192,"b"),za(193,"colorType =>"),Da(),za(194," specify which type of color should be copied to the clipboard"),Va(195,"br"),Na(196,"b"),za(197,"vertical =>"),Da(),za(198," should component be placed horizontally or vertically"),Va(199,"br"),Na(200,"b"),za(201,"alpha =>"),Da(),za(202," should component display alpha channel"),Va(203,"br"),Na(204,"b"),za(205,"label =>"),Da(),za(206," whether the label will be displayed or not (rgba, hsla, hex)"),Va(207,"br"),Na(208,"b"),za(209,"prefix =>"),Da(),za(210," definition of label prefix"),Va(211,"br"),Na(212,"b"),za(213,"colorPresets =>"),Da(),za(214," list of colors used as presets "),Da(),Da(),Da(),Va(215,"br"),Na(216,"div",ib),Na(217,"div",ob),za(218,"Chrome color picker"),Da(),Na(219,"div",sb),Na(220,"div",Yy),Na(221,"div",hb),Na(222,"div",fb),Na(223,"code"),za(224),Da(),Na(225,"code"),za(226),Da(),Na(227,"code"),za(228),Da(),Na(229,"code"),za(230),Da(),Na(231,"code"),za(232),Da(),Na(233,"code"),za(234),Da(),Na(235,"code"),za(236),Da(),Na(237,"code"),za(238),Da(),Na(239,"code"),za(240),Da(),Da(),Va(241,"chrome-picker",db),Da(),Na(242,"div",pb),Na(243,"p"),za(244,"Component code"),Da(),Na(245,"pre",lb),za(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),Da(),Na(247,"p"),za(248,"Template code"),Da(),Na(249,"pre",lb),za(250,''),Da(),Da(),Da(),Na(251,"div",gb),Na(252,"button",vb),ja("click",function(e){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()}),za(253,"Toggle presets visibility"),Da(),za(254," \xa0 "),Na(255,"button",vb),ja("click",function(e){return t.chromeControl.reset()}),za(256,"Reset to initial"),Da(),za(257," \xa0 "),Na(258,"button",vb),ja("click",function(e){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()}),za(259,"Toggle alpha channel"),Da(),Da(),Da(),Da(),Va(260,"br"),Na(261,"div",ib),Na(262,"div",ob),za(263,"Sketch color picker"),Da(),Na(264,"div",sb),Na(265,"div",Yy),Na(266,"div",hb),Na(267,"div",fb),Na(268,"code"),za(269),Da(),Na(270,"code"),za(271),Da(),Na(272,"code"),za(273),Da(),Na(274,"code"),za(275),Da(),Na(276,"code"),za(277),Da(),Na(278,"code"),za(279),Da(),Na(280,"code"),za(281),Da(),Na(282,"code"),za(283),Da(),Na(284,"code"),za(285),Da(),Da(),Va(286,"sketch-picker",db),Da(),Na(287,"div",pb),Na(288,"p"),za(289,"Component code"),Da(),Na(290,"pre",lb),za(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),Da(),Na(292,"p"),za(293,"Template code"),Da(),Na(294,"pre",lb),za(295,''),Da(),Da(),Da(),Na(296,"div",gb),Na(297,"button",vb),ja("click",function(e){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()}),za(298,"Toggle presets visibility"),Da(),za(299," \xa0 "),Na(300,"button",vb),ja("click",function(e){return t.sketchControl.reset()}),za(301,"Reset to initial"),Da(),za(302," \xa0 "),Na(303,"button",vb),ja("click",function(e){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()}),za(304,"Toggle alpha channel"),Da(),Da(),Da(),Da(),Va(305,"br"),Na(306,"div",ib),Na(307,"div",ob),za(308,"Compact color picker"),Da(),Na(309,"div",sb),Na(310,"div",Yy),Na(311,"div",hb),Na(312,"div",fb),Na(313,"code"),za(314),Da(),Na(315,"code"),za(316),Da(),Na(317,"code"),za(318),Da(),Na(319,"code"),za(320),Da(),Na(321,"code"),za(322),Da(),Na(323,"code"),za(324),Da(),Na(325,"code"),za(326),Da(),Na(327,"code"),za(328),Da(),Na(329,"code"),za(330),Da(),Da(),Va(331,"compact-picker",db),Da(),Na(332,"div",pb),Na(333,"p"),za(334,"Component code"),Da(),Na(335,"pre",lb),za(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),Da(),Na(337,"p"),za(338,"Template code"),Da(),Na(339,"pre",lb),za(340,''),Da(),Da(),Da(),Na(341,"div",gb),Na(342,"button",vb),ja("click",function(e){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()}),za(343,"Toggle presets visibility"),Da(),za(344," \xa0 "),Na(345,"button",vb),ja("click",function(e){return t.compactControl.reset()}),za(346,"Reset to initial"),Da(),Da(),Da(),Da(),Va(347,"br"),Na(348,"div",ib),Na(349,"div",ob),za(350,"Github color picker"),Da(),Na(351,"div",sb),Na(352,"div",Yy),Na(353,"div",hb),Na(354,"div",fb),Na(355,"code"),za(356),Da(),Na(357,"code"),za(358),Da(),Na(359,"code"),za(360),Da(),Na(361,"code"),za(362),Da(),Na(363,"code"),za(364),Da(),Na(365,"code"),za(366),Da(),Na(367,"code"),za(368),Da(),Na(369,"code"),za(370),Da(),Na(371,"code"),za(372),Da(),Da(),Va(373,"github-picker",db),Da(),Na(374,"div",pb),Na(375,"p"),za(376,"Component code"),Da(),Na(377,"pre",lb),za(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),Da(),Na(379,"p"),za(380,"Template code"),Da(),Na(381,"pre",lb),za(382,''),Da(),Da(),Da(),Na(383,"div",gb),Na(384,"button",vb),ja("click",function(e){return t.githubControl.reset()}),za(385,"Reset to initial"),Da(),Da(),Da(),Da(),Va(386,"br"),Na(387,"div",ib),Na(388,"div",ob),za(389,"Swatches color picker"),Da(),Na(390,"div",sb),Na(391,"div",Yy),Na(392,"div",hb),Na(393,"p"),za(394,"Swatches component only supports binding over color attribute"),Da(),Na(395,"div",fb),Na(396,"code"),za(397),Da(),Va(398,"br"),Da(),Na(399,"swatches-picker",nb),ja("colorChange",function(e){return t.swatchesColor=e}),Da(),Da(),Na(400,"div",pb),Na(401,"p"),za(402,"Component code"),Da(),Na(403,"pre",lb),za(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),Da(),Na(405,"p"),za(406,"Template code"),Da(),Na(407,"pre",lb),za(408,''),Da(),Da(),Da(),Da(),Da(),Va(409,"br"),Na(410,"div",ib),Na(411,"div",ob),za(412,"ColorPickerControl methods"),Da(),Na(413,"div",sb),Na(414,"table",mb),Na(415,"thead"),Na(416,"tr"),Na(417,"th"),za(418,"Property"),Da(),Na(419,"th"),za(420,"Type"),Da(),Na(421,"th"),za(422,"Description"),Da(),Da(),Da(),Na(423,"tbody"),Na(424,"tr"),Na(425,"td"),za(426,"setValueFrom"),Da(),Na(427,"td"),Na(428,"code"),za(429,"Function"),Da(),Da(),Na(430,"td"),za(431,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),Da(),Da(),Na(432,"tr"),Na(433,"td"),za(434,"value"),Da(),Na(435,"td"),Na(436,"code"),za(437,"Getter.value"),Da(),Da(),Na(438,"td"),za(439,"get value as a Color object"),Da(),Da(),Na(440,"tr"),Na(441,"td"),za(442,"reset"),Da(),Na(443,"td"),Na(444,"code"),za(445,"Function"),Da(),Da(),Na(446,"td"),za(447,"reset value to initial state"),Da(),Da(),Na(448,"tr"),Na(449,"td"),za(450,"valueChanges"),Da(),Na(451,"td"),Na(452,"code"),za(453,"Observable"),Da(),Da(),Na(454,"td"),za(455,"Used to observe component value changes"),Da(),Da(),Na(456,"tr"),Na(457,"td"),za(458,"isAlphaChannelEnabled"),Da(),Na(459,"td"),Na(460,"code"),za(461,"Function"),Da(),Da(),Na(462,"td"),za(463,"return is alpha changel enabled"),Da(),Da(),Na(464,"tr"),Na(465,"td"),za(466,"showAlphaChannel"),Da(),Na(467,"td"),Na(468,"code"),za(469,"Function"),Da(),Da(),Na(470,"td"),za(471,"show alpha channel"),Da(),Da(),Na(472,"tr"),Na(473,"td"),za(474,"hideAlphaChannel"),Da(),Na(475,"td"),Na(476,"code"),za(477,"Function"),Da(),Da(),Na(478,"td"),za(479,"hide alpha channel"),Da(),Da(),Na(480,"tr"),Na(481,"td"),za(482,"alphaChannelVisibilityChanges"),Da(),Na(483,"td"),Na(484,"code"),za(485,"BehaviorSubject"),Da(),Da(),Na(486,"td"),za(487,"Used to observe alpha channel changes"),Da(),Da(),Na(488,"tr"),Na(489,"td"),za(490,"setColorPresets"),Da(),Na(491,"td"),Na(492,"code"),za(493,"Function"),Da(),Da(),Na(494,"td"),za(495,"define color preset list"),Da(),Da(),Na(496,"tr"),Na(497,"td"),za(498,"presets"),Da(),Na(499,"td"),Na(500,"code"),za(501,"Getter.presets"),Da(),Da(),Na(502,"td"),za(503,"get color presets"),Da(),Da(),Na(504,"tr"),Na(505,"td"),za(506,"hasPresets"),Da(),Na(507,"td"),Na(508,"code"),za(509,"Function"),Da(),Da(),Na(510,"td"),za(511,"return status of predefined color presets"),Da(),Da(),Na(512,"tr"),Na(513,"td"),za(514,"showPresets"),Da(),Na(515,"td"),Na(516,"code"),za(517,"Function"),Da(),Da(),Na(518,"td");za(519,"show predefined color presets"),Da(),Da(),Na(520,"tr"),Na(521,"td"),za(522,"hidePresets"),Da(),Na(523,"td"),Na(524,"code"),za(525,"Function"),Da(),Da(),Na(526,"td"),za(527,"hide predefined color presets"),Da(),Da(),Na(528,"tr"),Na(529,"td"),za(530,"presetsVisibilityChanges"),Da(),Na(531,"td"),Na(532,"code"),za(533,"BehaviorSubject"),Da(),Da(),Na(534,"td"),za(535,"Used to observe color preset visibility"),Da(),Da(),Da(),Da(),Da(),Da(),Va(536,"br"),Na(537,"div",ib),Na(538,"div",ob),za(539,"Color methods"),Da(),Na(540,"div",sb),Na(541,"table",mb),Na(542,"thead"),Na(543,"tr"),Na(544,"th"),za(545,"Property"),Da(),Na(546,"th"),za(547,"Type"),Da(),Na(548,"th"),za(549,"Description"),Da(),Da(),Da(),Na(550,"tbody"),Na(551,"tr"),Na(552,"td"),za(553,"Color.from"),Da(),Na(554,"td"),Na(555,"code"),za(556,"static method"),Da(),Da(),Na(557,"td"),za(558,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),Da(),Da(),Na(559,"tr"),Na(560,"td"),za(561,"clone"),Da(),Na(562,"td"),Na(563,"code"),za(564,"Function"),Da(),Da(),Na(565,"td"),za(566,"create new Color object"),Da(),Da(),Na(567,"tr"),Na(568,"td"),za(569,"setFromString"),Da(),Na(570,"td"),Na(571,"code"),za(572,"Function"),Da(),Da(),Na(573,"td"),za(574,"change the value by providing the string"),Da(),Da(),Na(575,"tr"),Na(576,"td"),za(577,"setHsva"),Da(),Na(578,"td"),Na(579,"code"),za(580,"Function"),Da(),Da(),Na(581,"td"),za(582,"change the value by providing hsv values"),Da(),Da(),Na(583,"tr"),Na(584,"td"),za(585,"setRgba"),Da(),Na(586,"td"),Na(587,"code"),za(588,"Function"),Da(),Da(),Na(589,"td"),za(590,"change the value by providing rgb values"),Da(),Da(),Na(591,"tr"),Na(592,"td"),za(593,"setHsla"),Da(),Na(594,"td"),Na(595,"code"),za(596,"Function"),Da(),Da(),Na(597,"td"),za(598,"change the value by providing hsl values"),Da(),Da(),Na(599,"tr"),Na(600,"td"),za(601,"toHexString"),Da(),Na(602,"td"),Na(603,"code"),za(604,"Function"),Da(),Da(),Na(605,"td"),za(606,"convert Color object to hex string"),Da(),Da(),Na(607,"tr"),Na(608,"td"),za(609,"toRgbString"),Da(),Na(610,"td"),Na(611,"code"),za(612,"Function"),Da(),Da(),Na(613,"td"),za(614,"convert Color object to rgb string"),Da(),Da(),Na(615,"tr"),Na(616,"td"),za(617,"toRgbaString"),Da(),Na(618,"td"),Na(619,"code"),za(620,"Function"),Da(),Da(),Na(621,"td"),za(622,"convert Color object to rgba string"),Da(),Da(),Na(623,"tr"),Na(624,"td"),za(625,"toHslString"),Da(),Na(626,"td"),Na(627,"code"),za(628,"Function"),Da(),Da(),Na(629,"td"),za(630,"convert Color object to hsl string"),Da(),Da(),Na(631,"tr"),Na(632,"td"),za(633,"toHslaString"),Da(),Na(634,"td"),Na(635,"code"),za(636,"Function"),Da(),Da(),Na(637,"td"),za(638,"convert Color object to hsla string"),Da(),Da(),Na(639,"tr"),Na(640,"td"),za(641,"toHsvString"),Da(),Na(642,"td"),Na(643,"code"),za(644,"Function"),Da(),Da(),Na(645,"td"),za(646,"convert Color object to hsv string"),Da(),Da(),Na(647,"tr"),Na(648,"td"),za(649,"toHsvaString"),Da(),Na(650,"td"),Na(651,"code"),za(652,"Function"),Da(),Da(),Na(653,"td"),za(654,"convert Color object to hsva string"),Da(),Da(),Na(655,"tr"),Na(656,"td"),za(657,"toCmykString"),Da(),Na(658,"td"),Na(659,"code"),za(660,"Function"),Da(),Da(),Na(661,"td"),za(662,"convert Color object to cmyk string"),Da(),Da(),Na(663,"tr"),Na(664,"td"),za(665,"getHsva"),Da(),Na(666,"td"),Na(667,"code"),za(668,"Function"),Da(),Da(),Na(669,"td"),za(670,"return Hsva object"),Da(),Da(),Na(671,"tr"),Na(672,"td"),za(673,"getRgba"),Da(),Na(674,"td"),Na(675,"code"),za(676,"Function"),Da(),Da(),Na(677,"td"),za(678,"return Rgba object"),Da(),Da(),Na(679,"tr"),Na(680,"td"),za(681,"getHsla"),Da(),Na(682,"td"),Na(683,"code"),za(684,"Function"),Da(),Da(),Na(685,"td"),za(686,"return Hsla object"),Da(),Da(),Na(687,"tr"),Na(688,"td"),za(689,"getCmyk"),Da(),Na(690,"td"),Na(691,"code"),za(692,"Function"),Da(),Da(),Na(693,"td"),za(694,"return Cmyk object"),Da(),Da(),Da(),Da(),Da(),Da(),Va(695,"br"),Na(696,"div",ib),Na(697,"div",ob),za(698,"ColorsTable"),Da(),Na(699,"div",sb),Na(700,"p"),za(701,"ColorTable is class with static properties which represent Rgba colors defined by "),Na(702,"a",yb),za(703,"list of the X11 colors"),Da(),Da(),Da(),Da(),Va(704,"br"),Da()}2&e&&(ko(1),wa("background-color",t.color),Aa(),ko(12),da("color",t.color),ko(14),da("color",t.color),ko(224),Ka("selected hex: ",t.chromeControl.value.toHexString(),""),ko(226),Ka("selected hexa: ",t.chromeControl.value.toHexString(!0),""),ko(228),Ka("selected rgb: ",t.chromeControl.value.toRgbString(),""),ko(230),Ka("selected rgba: ",t.chromeControl.value.toRgbaString(),""),ko(232),Ka("selected hsl: ",t.chromeControl.value.toHslString(),""),ko(234),Ka("selected hsla: ",t.chromeControl.value.toHslaString(),""),ko(236),Ka("selected hsv: ",t.chromeControl.value.toHsvString(),""),ko(238),Ka("selected hsva: ",t.chromeControl.value.toHsvaString(),""),ko(240),Ka("selected cmyk: ",t.chromeControl.value.toCmykString(),""),ko(241),da("control",t.chromeControl),ko(269),Ka("selected hex: ",t.sketchControl.value.toHexString(),""),ko(271),Ka("selected hexa: ",t.sketchControl.value.toHexString(!0),""),ko(273),Ka("selected rgb: ",t.sketchControl.value.toRgbString(),""),ko(275),Ka("selected rgba: ",t.sketchControl.value.toRgbaString(),""),ko(277),Ka("selected hsl: ",t.sketchControl.value.toHslString(),""),ko(279),Ka("selected hsla: ",t.sketchControl.value.toHslaString(),""),ko(281),Ka("selected hsv: ",t.sketchControl.value.toHsvString(),""),ko(283),Ka("selected hsva: ",t.sketchControl.value.toHsvaString(),""),ko(285),Ka("selected cmyk: ",t.sketchControl.value.toCmykString(),""),ko(286),da("control",t.sketchControl),ko(314),Ka("selected hex: ",t.compactControl.value.toHexString(),""),ko(316),Ka("selected hexa: ",t.compactControl.value.toHexString(!0),""),ko(318),Ka("selected rgb: ",t.compactControl.value.toRgbString(),""),ko(320),Ka("selected rgba: ",t.compactControl.value.toRgbaString(),""),ko(322),Ka("selected hsl: ",t.compactControl.value.toHslString(),""),ko(324),Ka("selected hsla: ",t.compactControl.value.toHslaString(),""),ko(326),Ka("selected hsv: ",t.compactControl.value.toHsvString(),""),ko(328),Ka("selected hsva: ",t.compactControl.value.toHsvaString(),""),ko(330),Ka("selected cmyk: ",t.compactControl.value.toCmykString(),""),ko(331),da("control",t.compactControl),ko(356),Ka("selected hex: ",t.githubControl.value.toHexString(),""),ko(358),Ka("selected hexa: ",t.githubControl.value.toHexString(!0),""),ko(360),Ka("selected rgb: ",t.githubControl.value.toRgbString(),""),ko(362),Ka("selected rgba: ",t.githubControl.value.toRgbaString(),""),ko(364),Ka("selected hsl: ",t.githubControl.value.toHslString(),""),ko(366),Ka("selected hsla: ",t.githubControl.value.toHslaString(),""),ko(368),Ka("selected hsv: ",t.githubControl.value.toHsvString(),""),ko(370),Ka("selected hsva: ",t.githubControl.value.toHsvaString(),""),ko(372),Ka("selected cmyk: ",t.githubControl.value.toCmykString(),""),ko(373),da("control",t.githubControl),ko(397),Ka("selected color: ",t.swatchesColor,""),ko(399),da("color",t.swatchesColor))},directives:[vy,Jm,Ny,Vy,Ky],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:0 0}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:0}"]}),zy),_b=((qy=function(){}).ngModuleDef=Je({type:qy,bootstrap:[bb]}),qy.ngInjectorDef=se({factory:function(e){return new(e||qy)},providers:[],imports:[[If,Zy,gg]]}),qy);(function(){if(gi)throw new Error("Cannot enable prod mode after platform setup.");pi=!1})(),Of().bootstrapModule(_b).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +function _defineProperties(e,t){for(var n=0;n=0;)o[h.charAt(f)]=c;a.hasOwnProperty(h=""+(c=c[1]))||(s.push(c),a[h]=i)}s.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),i=(e=[],["["]);(o="^"===r[0])&&i.push("^");for(var o=o?1:0,s=r.length;o122||(a<65||u>90||e.push([32|Math.max(65,u),32|Math.min(a,90)]),a<97||u>122||e.push([-33&Math.max(97,u),-33&Math.min(a,122)]))}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],s=[],o=0;ou[0]&&(u[1]+1>u[0]&&i.push("-"),i.push(n(u[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=t.length,a=[],u=0,l=0;u=2&&"["===e?t[u]=r(c):"\\"!==e&&(t[u]=c.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var o=0,s=!1,a=!1,u=0,l=e.length;u=5&&"lang-"===m.substring(0,5))||y&&"string"==typeof y[1]||(g=!1,m="src"),g||(f[v]=m)}if(b=l,l+=v.length,g){var _=v.indexOf(g=y[1]),w=_+g.length;y[2]&&(_=(w=v.length-y[2].length)-g.length),m=m.substring(5),n(a+b,v.substring(0,_),e,u),n(a+b+_,g,c(m,g),u),n(a+b+w,v.substring(w),e,u)}else u.push(a+b,m)}i.g=u}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,i,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,i,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,i,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,i]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,i,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,i,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,i])):t.push(["com",/^#[^\n\r]*/,i,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,i]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,i])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),i]),t.push(["pln",/^\s+/,i," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,i],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,i],["pln",/^[$_a-z][\w$@]*/i,i],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,i,"0123456789"],["pln",/^\\[\S\s]?/,i],["pun",RegExp(r),i]),s(t,n)}function u(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var u=e.nodeValue,l=u.match(s);l&&(t=u.substring(0,l.index),e.nodeValue=t,(u=u.substring(l.index+l[0].length))&&e.parentNode.insertBefore(a.createTextNode(u),e.nextSibling),i(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function i(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(i=t.parentNode){var i=e(i,1),o=t.nextSibling;i.appendChild(r);for(var s=o;s;s=o)o=s.nextSibling,i.appendChild(s)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;l.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=e.ownerDocument,u=a.createElement("li");e.firstChild;)u.appendChild(e.firstChild);for(var l=[u],c=0;c=0;){var r=t[n];S.hasOwnProperty(r)?p.console&&console.warn("cannot override language handler %s",r):S[r]=e}}function c(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=k&&(g+=2)}}finally{_&&(_.style.display=b)}}catch(T){p.console&&console.log(T&&T.stack||T)}}var f,d,p=window,g=[f=[[d=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],v=[f,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[v,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],y=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],b=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],w=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,k=a({keywords:[g,m,f=[f,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",y,b,d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};l(k,["default-code"]),l(s([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(s([["pln",/^\s+/,i," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,i,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'\/>]|\/(?=\s)))/],["pun",/^[\/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),l(s([],[["atv",/^[\S\s]+/]]),["uq.val"]),l(a({keywords:g,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),l(a({keywords:"null,true,false"}),["json"]),l(a({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),l(a({keywords:v,cStyleComments:!0}),["java"]),l(a({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(a({keywords:y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(a({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(a({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(a({keywords:_,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(s([],[["str",/^[\S\s]+/]]),["regex"]);var x=p.PR={createSimpleLexer:s,registerLangHandler:l,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:p.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="

"+e+"
",r=r.firstChild,n&&u(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:p.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],s=[],a=0;a0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(V);function q(e){return e}function z(){return function(e){return e.lift(new K(e))}}var K=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new Z(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),Z=function(e){function t(t,n){var r;return(r=e.call(this,t)||this).connectable=n,r}return _inheritsLoose(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(m),U=function(e){function t(t,n){var r;return(r=e.call(this)||this).source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}_inheritsLoose(t,e);var n=t.prototype;return n._subscribe=function(e){return this.getSubject().subscribe(e)},n.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},n.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e},n.refCount=function(){return z()(this)},t}(_).prototype,G={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}},Q=function(e){function t(t,n){var r;return(r=e.call(this,t)||this).connectable=n,r}_inheritsLoose(t,e);var n=t.prototype;return n._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(A);function W(){return new E}var Y="__parameters__";function X(e,t,n){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Fe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Le=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),He=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),je={},Be=[],qe=re({ngComponentDef:re}),ze=re({ngDirectiveDef:re}),Ke=re({ngPipeDef:re}),Ze=re({ngModuleDef:re}),Ue=re({ngLocaleIdDef:re}),Ge=re({__NG_ELEMENT_ID__:re}),Qe=0;function We(e){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Le.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||He.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:function(){var n=e.directives,o=e.features,s=e.pipes;i.id+=Qe++,i.inputs=$e(e.inputs,r),i.outputs=$e(e.outputs),o&&o.forEach(function(e){return e(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(Ye)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Xe)}:null,t.hasOwnProperty(le)||(t[le]=oe({token:t,factory:e.factory}))}},i}function Ye(e){return nt(e)||function(e){return e[ze]||null}(e)}function Xe(e){return function(e){return e[Ke]||null}(e)}function Je(e){return{type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}}function $e(e,t){if(null==e)return je;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var et=We;function tt(e){return{name:e.name,factory:e.factory,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function nt(e){return e[qe]||null}function rt(e,t){var n=e[Ze]||null;if(!n&&!0===t)throw new Error("Type "+he(e)+" does not have 'ngModuleDef' property.");return n}var it=0,ot=1,st=2,at=3,ut=4,lt=5,ct=6,ht=7,ft=8,dt=9,pt=10,gt=11,vt=12,mt=13,yt=14,bt=15,_t=16,wt=17,Ct=18,kt=19,St=1,xt=2,At=5,Et=7,Tt=8,Ot=9;function Pt(e){return Array.isArray(e)&&"object"==typeof e[St]}function It(e){return Array.isArray(e)&&!0===e[St]}function Mt(e){return 0!=(4&e.flags)}function Nt(e){return 1==(1&e.flags)}function Dt(e){return null!==e.template}function Vt(e){return 0!=(512&e[st])}var Rt=8,Ft=8,Lt=9,Ht=-1,jt=function(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function Bt(e,t,n,r,i,o){var s=t.onChanges,a=t.onInit,u=t.doCheck;i>=0&&(!n.preOrderHooks||i===n.preOrderHooks.length)&&(s||a||u)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),o>=0&&(!n.preOrderCheckHooks||o===n.preOrderCheckHooks.length)&&(s||u)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)),a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,a),u&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u))}function qt(e,t){if(e.firstTemplatePass)for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[Ct]+=65536),(o>10>16&&(3&e[st])===t&&(e[st]+=1024,o.call(s)):o.call(s)}var Ut=null,Gt=new Map,Qt=null,Wt=1,Yt=0;function Xt(e,t){return Qt&&e===Qt||(Qt=e,t&&(Ut=Gt.get(e)||null),Ut=Ut||{classesBitMask:Yt,classesIndex:Wt,stylesBitMask:Yt,stylesIndex:Wt}),Ut}function Jt(){Ut=null,Qt=null}var $t="__ngContext__";function en(e){for(;Array.isArray(e);)e=e[it];return e}function tn(e,t){return en(t[e+kt])}function nn(e,t){return en(t[e.index])}function rn(e,t){var n=e.index;return-1==n?null:en(t[n])}function on(e,t){return t[ot].data[e+kt]}function sn(e,t){return e[t+kt]}function an(e,t){var n=t[e];return Pt(n)?n:n[it]}function un(e){var t=function(e){return e[$t]}(e);return t?Array.isArray(t)?t:t.lView:null}function ln(e){e[Ct]=0}var cn,hn,fn=null;function dn(e){fn=e}function pn(){return hn}function gn(){return yn}var vn,mn,yn,bn=1,_n=bn,wn=0,Cn=0;function kn(e){void 0===e&&(e=null),Zn!==e&&(Gn(null==e?-1:e),_n=null==e?0:bn,wn=0,Cn=0)}function Sn(){_n+=1+Cn,wn=0,Cn=0}function xn(e){wn+=e,Cn=Math.max(Cn,wn)}function An(e){Nn=e}function En(){return vn}function Tn(e,t){vn=e,mn=t}function On(e,t){vn=e,yn=t}function Pn(){return mn}function In(){mn=!1}function Mn(e){return void 0===e&&(e=yn),4==(4&e[st])}var Nn=null,Dn=!1;function Vn(){return Dn}function Rn(e){Dn=e}var Fn=-1;function Ln(){return Fn}function Hn(e){Fn=e}var jn=0;function Bn(){return jn}function qn(e){jn=e}function zn(e,t){var n=yn;return e&&(Fn=e[ot].bindingStartIndex),vn=t,mn=!0,yn=Nn=e,n}function Kn(e,t){var n=yn[ot];if(Mn(yn))yn[st]&=-5;else try{ln(yn),t&&Kt(yn,n.viewHooks,n.viewCheckHooks,Dn,2,void 0)}finally{yn[st]&=-73,yn[ht]=n.bindingStartIndex}zn(e,null)}var Zn=-1;function Un(){return Zn}function Gn(e){Zn=e,Jt()}var Qn,Wn=null;function Yn(){Wn="http://www.w3.org/2000/svg"}function Xn(){Wn=null}function Jn(e){Qn=e}function $n(){return Qn}function er(e,t){return!(e!=e&&t!=t)&&e!==t}function tr(e){return"string"==typeof e?e:null==e?"":""+e}function nr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}var rr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(_e),ir="\ufffd";function or(e){return e instanceof Function?e():e}var sr="--MAP--",ar=0;function ur(e,t){t===ar?e[2]>ar&&function(e){cr(e,2|lr(e))}(e):e[2]=t}function lr(e){return e[1]}function cr(e,t){e[1]=t}function hr(e,t){return e[t+2]}function fr(e,t){return 1&e[t+0]}function dr(e,t){return(1&fr(e,t))>0}function pr(e,t){return e[t+0]>>1}function gr(e,t,n){var r=fr(e,t);e[t+0]=r|n<<1}function vr(e,t){return e[t+1]}function mr(e,t,n){return e[t+3+n]}function yr(e,t){return!(!e||t!==e[2])}function br(e){return(1&lr(e))>0}function _r(e){return(2&lr(e))>0}function wr(e){return 6+e[4]}function Cr(e,t){var n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),er(n,r)}function kr(e){return null!=e&&""!==e}function Sr(e,t,n){return void 0===n&&(n=" "),e+(t.length&&e.length?n:"")+t}function xr(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function Ar(e){return Er(e)?e[0]:e}function Er(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function Tr(e){var t=Ar(e);return t&&t[0]||""}function Or(e){return 0!=(8&e.flags)}function Pr(e){return 0!=(16&e.flags)}function Ir(e,t){return e[t+0]}function Mr(e,t,n){e[t+1]=n}function Nr(e,t){return e[t+1]}var Dr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function Vr(e){return!!e.listen}var Rr={createRenderer:function(e,t){return document}},Fr="@";function Lr(e){return e[0]===Fr}function Hr(e){return e!==Ht}function jr(e){return 32767&e}function Br(e){return e>>16}function qr(e,t){for(var n=Br(e),r=t;n>0;)r=r[_t],n--;return r}function zr(e){var t=e[at];return It(t)?t[at]:t}function Kr(e){for(var t=e[ct];null!==t&&2===t.type;)t=(e=e[_t])[ct];return e}var Zr=!0;function Ur(e){var t=Zr;return Zr=e,t}var Gr=255,Qr=0;function Wr(e,t){var n=Xr(e,t);if(-1!==n)return n;var r=t[ot];r.firstTemplatePass&&(e.injectorIndex=t.length,Yr(r.data,e),Yr(t,null),Yr(r.blueprint,null));var i=Jr(e,t),o=jr(i),s=qr(i,t),a=e.injectorIndex;if(Hr(i))for(var u=s[ot].data,l=0;l<8;l++)t[a+l]=s[o+l]|u[o+l];return t[a+Ft]=i,a}function Yr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Ft]?-1:e.injectorIndex}function Jr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[ct],r=1;n&&-1===n.injectorIndex;)n=(t=t[_t])?t[ct]:null,r++;return n?n.injectorIndex|r<<16:-1}function $r(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Ge]:n.charCodeAt(0)||0;null==r&&(r=n[Ge]=Qr++);var i=r&Gr,o=1<0?t&Gr:t}(n);if("function"==typeof o){var s=En(),a=gn();On(e,t);try{var u=o();if(null!=u||r&ne.Optional)return u;throw new Error("No provider for "+nr(n)+"!")}finally{On(s,a)}}else if("number"==typeof o){if(-1===o)return new ai(e,t);var l=null,c=Xr(e,t),h=Ht,f=r&ne.Host?Kr(t)[ct]:null;for((-1===c||r&ne.SkipSelf)&&(h=-1===c?Jr(e,t):t[c+Ft],si(r,!1)?(l=t[ot],c=jr(h),t=qr(h,t)):c=-1);-1!==c;){h=t[c+Ft];var d=t[ot];if(oi(o,c,d.data)){var p=ni(c,t,n,l,r,f);if(p!==ti)return p}si(r,t[ot].data[c+Rt]===f)&&oi(o,c,t)?(l=d,c=jr(h),t=qr(h,t)):c=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var g=t[pt],v=Te(void 0);try{return g?g.get(n,i,r&ne.Optional):Pe(n,i,r&ne.Optional)}finally{Te(v)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+nr(n)+"]")}var ti={};function ni(e,t,n,r,i,o){var s=t[ot],a=s.data[e+Rt],u=ri(a,s,n,null==r?Nt(a)&&Zr:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==u?ii(s.data,t,u,a):ti}function ri(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h=u&&f.type===n)return h}if(i){var d=s[u];if(d&&Dt(d)&&d.type===n)return u}return null}function ii(e,t,n,r){var i,o=t[n];if(null!==(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==jt.prototype){var s=o;if(s.resolving)throw new Error("Circular dep for "+nr(e[n]));var a,u=Ur(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Te(s.injectImpl));var l=En(),c=gn();On(r,t);try{o=t[n]=s.factory(void 0,e,t,r)}finally{s.injectImpl&&Te(a),Ur(u),s.resolving=!1,On(l,c)}}return o}function oi(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}var t=e.prototype;return t.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},t.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},t.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}t[o]=!0}return t}function Ci(){for(var e={},t=arguments.length,n=new Array(t),r=0;r"),!0},t.endElement=function(e){var t=e.nodeName.toLowerCase();Ti.hasOwnProperty(t)&&!Si.hasOwnProperty(t)&&(this.buf.push(""))},t.chars=function(e){this.buf.push(Ri(e))},t.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Di=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function Ri(e){return e.replace(/&/g,"&").replace(Di,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Fi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Li=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),Hi=function(){},ji=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Bi=/^url\(([^)]+)\)$/;function qi(e,t){e[$t]=t}function zi(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function Ki(){throw new Error("Cannot mix multi providers and regular providers")}var Zi="ng-template";function Ui(e,t){var n=e.length,r=e.indexOf(t),i=r+t.length;return!(-1===r||r>0&&" "!==e[r-1]||io?"":i[c+1];var f=8&r?h:null;if(f&&!Ui(f,l)||2&r&&l!==h){if(Wi(r))return!1;s=!0}}}}else{if(!s&&!Wi(r)&&!Wi(u))return!1;if(s&&Wi(u))continue;s=!1,r=u|1&r}}return Wi(r)||s}function Wi(e){return 0==(1&e)}function Yi(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;nYt}(r,o))?(function(e,t,n,r,i,o,s){for(var a,u=!0===(a=i)?-1:!1===a?0:a,l=ho,c=(u&pr(e,3))>0?1:0,h=wr(e);h=_o.length&&_o.push(1),_o[h]);gu,y=!m&&v===u,b=Nr(p,g),_=kr(b),w=e(t,n,r,i,o,s,m?a:yo(a,_,y),m?u:v,l+1,c);if(m){f||(f=w);break}if(!w&&bo(a,y)){var C=y&&!_,k=C?c:b,S=C?d:null;o(n,r,v,s?s(v,k,3):k,S),w=!0}f=w&&y,g+=2}if(_o[l]=g,1===p.length||!u)return e(t,n,r,i,o,s,a,u,l+1,c)}return f}(e,t,n,r,i,o,s,a||null,0,u||null)),h&&function(){for(var e=0;e<_o.length;e++)_o[e]=1}()}return l};function yo(e,t,n){var r=e;return t||4&e||!(n||1&e)?(r|=4,r&=-3):(r|=2,r&=-5),r}function bo(e,t){var n=(1&e)>0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}var _o=[];function wo(e,t,n,r){for(var i=1;ii)for(var s=0===t,a=n.data,u=i;u=o.length)&&(o=function(e,t,n){for(var r=n.initialInputs||(n.initialInputs=[]),i=r.length;i<=e;i++)r.push(null);for(var o=n.attrs,s=0;s0&&(e[n-1][ut]=r[ut]);var o=Fe(e,Ot+t);vs(r,!1);var s=o[lt];null!==s&&s.detachView(o[ot]),r[at]=null,r[ut]=null,r[st]&=-129}return r}}function bs(e){if(!(256&e[st])){var t=e[vt];Vr(t)&&t.destroyNode&&Es(t,2,e,null,null),function(e){var t=e[yt];if(!t)return ws(e);for(;t;){var n=null;if(Pt(t))n=t[yt];else{var r=t[Ot];r&&(n=r)}if(!n){for(;t&&!t[ut]&&t!==e;)ws(t),t=_s(t,e);ws(t||e),n=t&&t[ut]}t=n}}(e)}}function _s(e,t){var n;return Pt(e)&&(n=e[ct])&&2===n.type?ds(n,e):e[at]===t?null:e[at]}function ws(e){if(Pt(e)&&!(256&e[st])){e[st]&=-129,e[st]|=256,function(e){var t,n=e[ot];if(null!=n&&null!=(t=n.destroyHooks))for(var r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[ft]=null}}(e);var t=e[ct];t&&3===t.type&&Vr(e[vt])&&e[vt].destroy();var n=e[wt];if(null!==n&&It(e[at])){n!==e[at]&&ms(n,e);var r=e[lt];null!==r&&r.detachView(e[ot])}}}function Cs(e,t,n,r){Vr(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function ks(e,t,n,r){null!==r?Cs(e,t,n,r):function(e,t,n){Vr(e)?e.appendChild(t,n):t.appendChild(n)}(e,t,n)}function Ss(e,t){return Vr(e)?e.parentNode(t):t.parentNode}function xs(e,t,n){var r=function(e,t){if(Vt(t))return Ss(t[vt],nn(e,t));var n=function(e){for(;null!=e.parent&&(4===e.parent.type||5===e.parent.type);)e=e.parent;return e}(e),r=n.parent;if(null==r){var i=t[ct];return 2===i.type?ps(i,t):function(e){var t=e[ct];return t&&3===t.type?nn(t,zr(e)):null}(t)}var o=n&&5===n.type;if(o&&2&n.flags)return nn(n,t).parentNode;if(1&r.flags&&!o){var s=t[ot].data,a=s[s[r.index].directiveStart].encapsulation;if(a!==He.ShadowDom&&a!==He.Native)return null}return nn(r,t)}(t,n);if(null!=r){var i=n[vt],o=function(e,t){if(2===e.type){var n=ds(e,t);return As(n.indexOf(t,Ot)-Ot,n)}return 4===e.type||5===e.type?nn(e,t):null}(t.parent||n[ct],n);if(Array.isArray(e)){var s=e,a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var l;if(a){if(u>=s.length)break;l=s[u++]}else{if((u=s.next()).done)break;l=u.value}ks(i,r,l,o)}}else ks(i,r,e,o)}}function As(e,t){var n=Ot+e+1;if(n-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}bs(this._lView)},t.onDestroy=function(e){var t,n;n=e,ls(t=this._lView).push(n),t[ot].firstTemplatePass&&cs(t).push(t[ft].length-1,null)},t.markForCheck=function(){es(this._lView)},t.detach=function(){this._lView[st]&=-129},t.reattach=function(){this._lView[st]|=128},t.detectChanges=function(){ns(this._lView,this.context)},t.checkNoChanges=function(){!function(e,t){Rn(!0);try{ns(e,t)}finally{Rn(!1)}}(this._lView,this.context)},t.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},t.detachFromAppRef=function(){this._appRef=null,function(e){Es(e[vt],1,e,null,null)}(this._lView)},t.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},t._lookUpContext=function(){return this._context=zr(this._lView)[this._componentIndex]},_createClass(e,[{key:"rootNodes",get:function(){return null==this._lView[it]?function e(t,n,r){for(var i=n.child;i;){var o=rn(i,t);if(o&&r.push(o),4===i.type)e(t,i,r);else if(1===i.type)for(var s=Kr(t),a=s[ct],u=zr(s),l=a.projection[i.projection];l&&u;)r.push(nn(l,u)),l=l.next;i=i.next}return r}(this._lView,this._lView[ct],[]):[]}},{key:"context",get:function(){return this._context?this._context:this._lookUpContext()}},{key:"destroyed",get:function(){return 256==(256&this._lView[st])}}]),e}(),Ns=function(e){function t(t){var n;return(n=e.call(this,t,null,-1)||this)._view=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.detectChanges=function(){rs(this._view)},n.checkNoChanges=function(){!function(e){Rn(!0);try{rs(e)}finally{Rn(!1)}}(this._view)},_createClass(t,[{key:"context",get:function(){return null}}]),t}(Ms);function Ds(e,t,n){return Os||(Os=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t}(e)),new Os(nn(t,n))}function Vs(e,t,n,r){return Ps||(Ps=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._declarationView=t,i._declarationTContainer=n,i.elementRef=r,i}return _inheritsLoose(t,e),t.prototype.createEmbeddedView=function(e){var t=this._declarationTContainer.tViews,n=function(e,t,n,r){var i=Pn(),o=En();Tn(null,!0);var s=To(n,e,t,16,null,null);return s[_t]=n,Po(e,null,-1,s),e.firstTemplatePass&&(e.node.injectorIndex=r),Tn(o,i),s}(t,e,this._declarationView,this._declarationTContainer.injectorIndex);n[wt]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[lt];null!==r&&(n[lt]=r.createEmbeddedView(t)),Io(n,t,e);var i=new Ms(n,e,-1);return i._tViewNode=n[ct],i},t}(e)),0===n.type?new Ps(r,n,Ds(t,n,r)):null}function Rs(e,t,n,r){var i;Is||(Is=function(e){function n(t,n,r){var i;return(i=e.call(this)||this)._lContainer=t,i._hostTNode=n,i._hostView=r,i}_inheritsLoose(n,e);var r=n.prototype;return r.clear=function(){for(;this.length>0;)this.remove(this.length-1)},r.get=function(e){return null!==this._lContainer[Tt]&&this._lContainer[Tt][e]||null},r.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},r.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;!i&&null==e.ngModule&&o&&(i=o.get(Ne,null));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},r.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");this.allocateContainerIfNeeded();var n=e._lView,r=this._adjustIndex(t);return It(n[at])?this.move(e,r):(function(e,t,n){var r=Ot+n,i=t.length;n>0&&(t[r-1][ut]=e),n1;)a=(s=s[_t])[ct],o--;return a}(e,this._hostView,this._hostTNode);return Hr(e)&&null!=n?new ai(n,t):new ai(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Ot}}]),n}(e));var o=r[n.index];if(It(o))(i=o)[xt]=-1;else{var s;if(s=4===n.type?en(o):r[vt].createComment(""),Vt(r)){var a=r[vt],u=nn(n,r);Cs(a,Ss(a,u),s,function(e,t){return Vr(e)?e.nextSibling(t):t.nextSibling}(a,u))}else xs(s,n,r);r[n.index]=i=Xo(o,r,s,n,!0),$o(r,i)}return new Is(i,n,r)}var Fs=function(){var e=function(){};return e.__NG_ELEMENT_ID__=function(){return Ls()},e}(),Ls=function(e){return void 0===e&&(e=!1),function(e,t,n){if(Nt(e)&&!n){var r=e.directiveStart,i=an(e.index,t);return new Ms(i,null,r)}if(3===e.type||0===e.type||4===e.type){var o=Kr(t);return new Ms(o,o[dt],-1)}return null}(En(),gn(),e)},Hs=new we("The presence of this token marks an injector as being the root injector."),js={},Bs={},qs=[],zs=void 0;function Ks(){return void 0===zs&&(zs=new Me),zs}function Zs(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||Ks(),new Us(e,n,t,r)}var Us=function(){function e(e,t,n,r){var i=this;void 0===r&&(r=null),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];Ve([e],function(e){return i.processInjectorType(e,[],o)}),t&&Ve(t,function(n){return i.processProvider(n,e,t)}),this.records.set(Ce,Ws(void 0,this)),this.isRootInjector=this.records.has(Hs),this.injectorDefTypes.forEach(function(e){return i.get(e)}),this.source=r||("object"==typeof e?null:he(e))}var t=e.prototype;return t.destroy=function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.get=function(e,t,n){void 0===t&&(t=ke),void 0===n&&(n=ne.Default),this.assertNotDestroyed();var r,i=Ee(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof we)&&ae(e);s&&this.injectableDefInScope(s)&&(o=Ws(Gs(e),js),this.records.set(e,o))}if(void 0!==o)return this.hydrate(e,o)}return(n&ne.Self?Ks():this.parent).get(e,n&ne.Optional?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(he(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=he(t);if(t instanceof Array)i=t.map(he).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):he(a)))}i="{"+o.join(", ")+"}"}return"R3InjectorError"+(r?"("+r+")":"")+"["+i+"]: "+e.replace(Se,"\n ")}("\n"+e.message,i,0,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Ee(i)}},t.toString=function(){var e=[];return this.records.forEach(function(t,n){return e.push(he(n))}),"R3Injector["+e.join(", ")+"]"},t.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.processInjectorType=function(e,t,n){var r=this;if(!(e=pe(e)))return!1;var i=ue(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=ue(o)),null==i)return!1;if(this.injectorDefTypes.add(s),this.records.set(s,Ws(i.factory,js)),null!=i.imports&&!a){var u;n.push(s);try{Ve(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;Ve(i,function(e){return r.processProvider(e,n,i||qs)})},c=0;c0){var n=new Array(t).fill("?");throw new Error("Can't resolve all parameters for "+he(e)+": ("+n.join(", ")+").")}var r,i=(r=e)&&r[le]?(console.warn('DEPRECATED: DI is instantiating a token "'+r.name+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+r.name+'" class.'),r[le]):null;return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qs(e,t,n){var r,i=void 0;if(Xs(e))return Gs(pe(e));if(Ys(e))i=function(){return pe(e.useValue)};else if((r=e)&&r.useExisting)i=function(){return Oe(pe(e.useExisting))};else if(e&&e.useFactory)i=function(){return e.useFactory.apply(e,Ie(e.deps||[]))};else{var o=pe(e&&(e.useClass||e.provide));if(o||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: ["+t.map(function(e){return e==n?"?"+n+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+he(e)+"'"+r)}(t,n,e),!e.deps)return Gs(o);i=function(){return _construct(o,Ie(e.deps))}}return i}function Ws(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function Ys(e){return null!==e&&"object"==typeof e&&xe in e}function Xs(e){return"function"==typeof e}var Js=function(e,t,n){return Zs({name:n},t,e,n)},$s=function(){var e=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?Js(e,t,""):Js(e.providers,e.parent,e.name||"")},e}();return e.THROW_IF_NOT_FOUND=ke,e.NULL=new Me,e.ngInjectableDef=oe({token:e,providedIn:"any",factory:function(){return Oe(Ce)}}),e.__NG_ELEMENT_ID__=-1,e}(),ea=new Map,ta=new Set;function na(e){return"string"==typeof e?e:e.text()}function ra(e){var t=gn(),n=t[ot];n.firstTemplatePass&&(function(e,t,n){var r=e.expandoInstructions,i=r.length;i>=2&&r[i-2]===t.hostBindings?r[i-1]=r[i-1]+n:r.push(t.hostBindings,n)}(n,fn,e),function(e,t,n){for(var r=0;r0&&(i=n?Sr(e,((r=t)&&"string"!=typeof r&&(r=Object.keys(r).join(" ")),r||"")):Sr(e,function(e){var t="";if(e)for(var n=Object.keys(e),r=0;r0}function Na(e,t,n,r){var i=gn(),o=i[ot],s=i[e+kt]=Eo(t),a=i[vt],u=Oo(o,i[ct],e,3,t,n||null);if(null!=n){var l=function(e,t){for(var n=gn()[vt],r=Vr(n),i=0;i1&&(e.classes||(e.classes=i),Ea(e.classes,Co(i,!0))),r&&r.length>1&&(e.styles||(e.styles=r),Ea(e.styles,Co(r,!1)))}(u,n,l)}if(function(e,t,n){go(e,t,n.classes,!0),go(e,t,n.styles,!1)}(a,s,u),xs(s,u,i),0===cn&&qi(s,i),cn++,o.firstTemplatePass){Bo(o,i,u,r||null);var c=us(u);c&&c.hasOwnProperty("class")&&(u.flags|=8),c&&c.hasOwnProperty("style")&&(u.flags|=16),null!==o.queries&&o.queries.elementStart(o,u)}Vo(o,i,u),function(e,t,n){if(Mt(t))for(var r=t.directiveEnd,i=t.directiveStart;ie.directiveStart}(s)&&(m=function(e,t,n){var r=e[ot].cleanup;if(null!=r)for(var i=0;ia?s[a]:null}"string"==typeof o&&(i+=2)}return null}(o,e,s.index)),null!==m)t.__ngNextListenerFn__=m.__ngNextListenerFn__,m.__ngNextListenerFn__=t,l=!1;else{t=Ba(s,o,t,!1);var y=d.listen(h.name||f,e,t);p.push(t,y),u&&u.push(e,v,g,g+1)}}else t=Ba(s,o,t,!0),f.addEventListener(e,t,n),p.push(t),u&&u.push(e,v,g,n)}void 0===s.outputs&&(s.outputs=Ho(s,1));var b,_=s.outputs;if(l&&_&&(b=_[e])){var w=b.length;if(w)for(var C=ls(o),k=0;k0;)t=t[_t],e--;return t}(e,Nn))[dt]}(e)}function za(e,t){var n=gn(),r=n[e+kt]=function(e,t){return Vr(t)?t.createText(tr(e)):t.createTextNode(tr(e))}(t,n[vt]),i=Oo(n[ot],n[ct],e,3,null,null);In(),xs(r,i,n)}function Ka(e,t,n){var r=Un(),i=gn(),o=function(e,t,n,r){var i=fa(e,e[ht]++,n);return ss(e,t,r),i?t+tr(n)+r:vo}(i,e,t,n);return o!==vo&&function(e,t,n){var r=tn(t,e),i=e[vt];Vr(i)?i.setValue(r,n):r.textContent=n}(i,r,o),Ka}function Za(e,t){var n=un(e)[ot],r=n.data.length-1;Bt(r,t,n,-1,-1,-1),qt(n,{directiveStart:r,directiveEnd:r+1})}var Ua=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Ga(){return Qa.ngInherit=!0,Qa}function Qa(e){e.type.prototype.ngOnChanges&&(e.setInput=Wa,e.onChanges=function(){var e=Xa(this),t=e&&e.current;if(t){var n=e.previous;if(n===je)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Wa(e,t,n,r){var i=Xa(e)||function(e,t){return e[Ya]={previous:je,current:null}}(e),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Ua(u&&u.currentValue,t,s===je),e[r]=t}var Ya="__ngSimpleChanges__";function Xa(e){return e[Ya]||null}function Ja(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor;t;){var n=void 0;if(Dt(e))n=t.ngComponentDef||t.ngDirectiveDef;else{if(t.ngComponentDef)throw new Error("Directives cannot inherit Components");n=t.ngDirectiveDef}var r=t.ngBaseDef;if(r||n){var i=e;i.inputs=$a(e.inputs),i.declaredInputs=$a(e.declaredInputs),i.outputs=$a(e.outputs)}if(r){var o=r.viewQuery,s=r.contentQueries,a=r.hostBindings;a&&nu(e,a),o&&eu(e,o),s&&tu(e,s),ie(e.inputs,r.inputs),ie(e.declaredInputs,r.declaredInputs),ie(e.outputs,r.outputs)}if(n){var u=n.hostBindings;u&&nu(e,u);var l=n.viewQuery,c=n.contentQueries;l&&eu(e,l),c&&tu(e,c),ie(e.inputs,n.inputs),ie(e.declaredInputs,n.declaredInputs),ie(e.outputs,n.outputs),e.afterContentChecked=e.afterContentChecked||n.afterContentChecked,e.afterContentInit=e.afterContentInit||n.afterContentInit,e.afterViewChecked=e.afterViewChecked||n.afterViewChecked,e.afterViewInit=e.afterViewInit||n.afterViewInit,e.doCheck=e.doCheck||n.doCheck,e.onDestroy=e.onDestroy||n.onDestroy,e.onInit=e.onInit||n.onInit;var h=n.features;if(h){var f=h,d=Array.isArray(f),p=0;for(f=d?f:f[Symbol.iterator]();;){var g;if(d){if(p>=f.length)break;g=f[p++]}else{if((p=f.next()).done)break;g=p.value}var v=g;v&&v.ngInherit&&v(e)}}}else{var m=t.prototype;m&&(e.afterContentChecked=e.afterContentChecked||m.ngAfterContentChecked,e.afterContentInit=e.afterContentInit||m.ngAfterContentInit,e.afterViewChecked=e.afterViewChecked||m.ngAfterViewChecked,e.afterViewInit=e.afterViewInit||m.ngAfterViewInit,e.doCheck=e.doCheck||m.ngDoCheck,e.onDestroy=e.onDestroy||m.ngOnDestroy,e.onInit=e.onInit||m.ngOnInit,m.ngOnChanges&&Ga()(e))}t=Object.getPrototypeOf(t)}}function $a(e){return e===je?{}:e===Be?[]:e}function eu(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function tu(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function nu(e,t){var n=e.hostBindings;t!==n&&(e.hostBindings=n?function(e,r,i){xn(1);try{t(e,r,i)}finally{xn(-1)}n(e,r,i)}:t)}function ru(e,t,n,r,i){if(e=pe(e),Array.isArray(e))for(var o=0;o>16;if(e.useClass||Xs(e)){var p=(e.useClass||e).prototype.ngOnDestroy;p&&(a.destroyHooks||(a.destroyHooks=[])).push(t.length,p)}if(Xs(e)||!e.multi){var g=new jt(l,i,ba),v=ou(u,t,i?h:h+d,f);-1==v?($r(Wr(c,s),a,u),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(g),s.push(g)):(n[v]=g,s[v]=g)}else{var m=ou(u,t,h+d,f),y=ou(u,t,h,h+d),b=m>=0&&n[m],_=y>=0&&n[y];if(i&&!_||!i&&!b){$r(Wr(c,s),a,u);var w=function(e,t,n,r,i){var o=new jt(e,n,ba);return o.multi=[],o.index=t,o.componentProviders=0,iu(o,i,r&&!n),o}(i?au:su,n.length,i,r,l);!i&&_&&(n[y].providerFactory=w),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(w),s.push(w)}else iu(n[i?y:m],l,!i&&r);!i&&r&&_&&n[y].componentProviders++}}}function iu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function ou(e,t,n,r){for(var i=n;i=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '"+e+"' could not be found!")}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory();return function(e,t){var n=gn(),r=n[ot],i=e+kt;i>=r.data.length&&(r.data[i]=null,r.blueprint[i]=null),n[i]=t}(e,o),o}function rl(e,t,n){var r=ya(e);return sl(ol(e)?el(t,r.transform,n,r):r.transform(n))}function il(e,t,n,r){var i=ya(e);return sl(ol(e)?tl(t,i.transform,n,r,i):i.transform(n,r))}function ol(e){return gn()[ot].data[e+kt].pure}function sl(e){if(aa.isWrapped(e)){e=aa.unwrap(e);var t=gn();t[t[ht]]=vo}return e}var al=function(e){function t(t){var n;return void 0===t&&(t=!1),(n=e.call(this)||this).__isAsync=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.emit=function(t){e.prototype.next.call(this,t)},n.subscribe=function(t,n,r){var i,o=function(e){return null},s=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,i,o,s);return t instanceof d&&t.add(a),a},t}(E);function ul(){return this._results[oa()]()}var ll=function(){function e(){this.dirty=!0,this._results=[],this.changes=new al,this.length=0;var t=oa(),n=e.prototype;n[t]||(n[t]=ul)}var t=e.prototype;return t.map=function(e){return this._results.map(e)},t.filter=function(e){return this._results.filter(e)},t.find=function(e){return this._results.find(e)},t.reduce=function(e,t){return this._results.reduce(e,t)},t.forEach=function(e){this._results.forEach(e)},t.some=function(e){return this._results.some(e)},t.toArray=function(){return this._results.slice()},t.toString=function(){return this._results.toString()},t.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.elementStart(e,t)}},t.elementEnd=function(e){var t=this.queries,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}i.elementEnd(e)}},t.embeddedTView=function(t){for(var n=null,r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.template(e,t)}},t.getByIndex=function(e){return this.queries[e]},t.track=function(e){this.queries.push(e)},_createClass(e,[{key:"length",get:function(){return this.queries.length}}]),e}(),pl=function(){function e(e,t){void 0===t&&(t=-1),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}var t=e.prototype;return t.elementStart=function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)},t.elementEnd=function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)},t.template=function(e,t){this.elementStart(e,t)},t.embeddedTView=function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null},t.isApplyingToNode=function(e){return this._appliesToNextNode&&!1===this.metadata.descendants?this._declarationNodeIndex===(e.parent?e.parent.index:-1):this._appliesToNextNode},t.matchTNode=function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)r.push(s[a/2]);else{for(var l=o[a+1],c=t[-u],h=Ot;h=d.length)break;v=d[g++]}else{if((g=d.next()).done)break;v=g.value}e(v,l,r)}}}}return r}(t,n,[]):ml(t,r,n);e.reset(i),e.notifyOnChanges()}return!0}return!1}function bl(e,t,n){!function(e,t,n,r,i){var o=e[ot];o.firstTemplatePass&&(function(e,t,n){null===e.queries&&(e.queries=new dl),e.queries.track(new pl(t,-1))}(o,new fl(t,n,!0,r)),o.staticViewQueries=!0),function(e){var t=new ll;!function(e,t,n){var r=ls(e);r.push(t),e[ot].firstTemplatePass&&cs(e).push(n,r.length-1)}(e,t,t.destroy),null===e[lt]&&(e[lt]=new hl),e[lt].queries.push(new cl(t))}(e)}(gn(),e,t,n)}function _l(){return function(e,t){return e[lt].queries[t].queryList}(gn(),Bn())}function wl(e,t){return e.queries.getByIndex(t)}function Cl(e,t){return Vs(Ru,pu,e,t)}var kl=new we("Application Initializer"),Sl=function(){var e=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},t.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},t.getPendingRequestCount=function(){return this._pendingCount},t.findProviders=function(e,t,n){return[]},e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)(Oe(Yl))},providedIn:null}),e}(),oc=function(){var e=function(){function e(){this._applications=new Map,sc.addToWindow(this)}var t=e.prototype;return t.registerApplication=function(e,t){this._applications.set(e,t)},t.unregisterApplication=function(e){this._applications.delete(e)},t.unregisterAllApplications=function(){this._applications.clear()},t.getTestability=function(e){return this._applications.get(e)||null},t.getAllTestabilities=function(){return Array.from(this._applications.values())},t.getAllRootElements=function(){return Array.from(this._applications.keys())},t.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),sc.findTestabilityInTree(this,e,t)},e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)},providedIn:null}),e}(),sc=new(function(){function e(){}var t=e.prototype;return t.addToWindow=function(e){},t.findTestabilityInTree=function(e,t,n){return null},e}()),ac=new we("AllowMultipleToken");function uc(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new we(r);return function(t){void 0===t&&(t=[]);var o=lc();if(!o||o.injector.get(ac,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(nc&&!nc.destroyed&&!nc.injector.get(ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nc=e.get(cc);var t=e.get(Pl,null);t&&t.forEach(function(e){return e()})}($s.create({providers:s,name:r}))}return function(e){var t=lc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function lc(){return nc&&!nc.destroyed?nc:null}var cc=function(){var e=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}var t=e.prototype;return t.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new rc:("zone.js"===n?void 0:n)||new Yl({enableLongStackTrace:vi()}),o=[{provide:Yl,useValue:i}];return i.run(function(){var t=$s.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(di,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Wu(n.injector.get(Dl,"en-US")||"en-US"),n.onDestroy(function(){return pc(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,i){try{var o=((s=n.injector.get(Sl)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return La(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(a){throw t.runOutsideAngular(function(){return e.handleError(a)}),a}var s}(s,i)})},t.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=hc({},t);return function(e,t,n){var r=new $u(n);if(0===ea.size)return Promise.resolve(r);var i,o,s=(i=e.get(zl,[]).concat(t).map(function(e){return e.providers}),o=[],i.forEach(function(e){return e&&o.push.apply(o,e)}),o);if(0===s.length)return Promise.resolve(r);var a=function(){var e=_e.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),u=$s.create({providers:s}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(t){var r=n.get(t);if(!r){var i=e(t);n.set(t,r=i.then(na))}return r}return ea.forEach(function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then(function(t){e.template=t}));var o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach(function(t,n){s.push(""),i.push(r(t).then(function(r){s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});var u=Promise.all(i).then(function(){return function(e){ta.delete(e)}(n)});t.push(u)}),ea=new Map,Promise.all(t).then(function(){})}(function(e){return Promise.resolve(u.get(e))}).then(function(){return r})}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},t._moduleDoBootstrap=function(e){var t=e.injector.get(dc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+he(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t.onDestroy=function(e){this._destroyListeners.push(e)},t.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},_createClass(e,[{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.ngInjectableDef=oe({token:e,factory:function(t){return new(t||e)(Oe($s))},providedIn:null}),e}();function hc(e,t){return Array.isArray(t)?t.reduce(hc,e):Object.assign({},e,t)}var fc,dc=((fc=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=vi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new _(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new _(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Yl.assertNotInAngularZone(),Wl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Yl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof _?t[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(e(function(e,r){return(i=t(e,r),i instanceof _?i:new _(N(i))).pipe(R(function(t,i){return n(e,t,r,i)}));var i},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new j(t,r))})}(q,e)}(r)(H(t,i))}(a,u.pipe(function(e){return z()((t=W,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,G);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t=e.prototype;return t.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof hu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?null:this._injector.get(Ne),o=n.create($s.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(ic,null);return s&&o.injector.get(oc).registerApplication(o.location.nativeElement,s),this._loadComponent(o),vi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0;var r=this._views,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}s.detectChanges()}if(this._enforceNoNewChanges){var a=this._views,u=Array.isArray(a),l=0;for(a=u?a:a[Symbol.iterator]();;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}c.checkNoChanges()}}}catch(h){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(h)})}finally{this._runningTick=!1,Gl(n)}},t.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.detachView=function(e){var t=e;pc(this._views,t),t.detachFromAppRef()},t._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ml,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t._unloadComponent=function(e){this.detachView(e.hostView),pc(this.components,e)},t.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},_createClass(e,[{key:"viewCount",get:function(){return this._views.length}}]),e}()).ngInjectableDef=oe({token:fc,factory:function(e){return new(e||fc)(Oe(Yl),Oe(Nl),Oe($s),Oe(di),Oe(du),Oe(Sl))},providedIn:null}),fc._tickScope=Ul("ApplicationRef#tick()"),fc);function pc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gc,vc=uc(null,"core",[{provide:Il,useValue:"unknown"},{provide:cc,deps:[$s]},{provide:oc,deps:[]},{provide:Nl,deps:[]}]),mc=[{provide:dc,useClass:dc,deps:[Yl,Nl,$s,di,du,Sl]},{provide:qu,deps:[Yl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Sl,useClass:Sl,deps:[[new $,kl]]},{provide:ql,useClass:ql,deps:[]},Al,{provide:Iu,useFactory:function(){return Du},deps:[]},{provide:Mu,useFactory:function(){return Vu},deps:[]},{provide:Dl,useFactory:function(e){return e?(Wu(e),e):"en-US"},deps:[[new J(Dl),new $,new te]]}],yc=function(){var e=function(e){};return e.ngModuleDef=Je({type:e}),e.ngInjectorDef=se({factory:function(t){return new(t||e)(Oe(dc))},providers:mc}),e}(),bc=function(){},_c=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),wc=new we("UseV4Plurals"),Cc=function(){},kc=((gc=function(e){function t(t,n){var r;return(r=e.call(this)||this).locale=t,r.deprecatedPluralFn=n,r}return _inheritsLoose(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Zu[t];if(n)return n;var r=t.split("-")[0];if(n=Zu[r])return n;if("en"===r)return Qu;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[Uu.PluralCase]}(t||this.locale)(e)){case _c.Zero:return"zero";case _c.One:return"one";case _c.Two:return"two";case _c.Few:return"few";case _c.Many:return"many";default:return"other"}},t}(Cc)).ngInjectableDef=oe({token:gc,factory:function(e){return new(e||gc)(Oe(Dl),Oe(wc,8))},providedIn:null}),gc),Sc=function(){function e(e,t){this._name=e,this._options=t,this.value=null,this._lastSetValue=null,this._lastSetValueType=0,this._lastSetValueIdentityChange=!1}var t=e.prototype;return t.setValue=function(e){if(Array.isArray(e))this._lastSetValueType=4;else if(e instanceof Set)this._lastSetValueType=8;else if(e&&"string"==typeof e){if(!(4&this._options))throw new Error(this._name+" string values are not allowed");this._lastSetValueType=1}else this._lastSetValueType=e?2:0;this._lastSetValueIdentityChange=!0,this._lastSetValue=e||null},t.hasValueChanged=function(){var e=this._lastSetValueIdentityChange;if(!(e||14&this._lastSetValueType))return!1;var t=null,n=!!(1&this._options),r=!!(8&this._options),i=!!(2&this._options);switch(this._lastSetValueType){case 1:var o=this._lastSetValue.split(/\s+/g);16&this._options?(t={},o.forEach(function(e,n){return t[e]=!0})):t=o.reduce(function(e,t,n){return e+(n?" ":"")+t});break;case 2:var s=this._lastSetValue,a=Object.keys(s);e||(e=!this.value||function(e,t,n){var r=e;if(!Oc(Object.keys(t),r))return!0;for(var i=0;i0)for(var o=t.split(/\s+/g),s=0;s0){var r=e.substr(n+1);e=e.substring(0,n),null!=t&&(t+=r)}return{key:e,value:t}}(t,n);n=i.value,t=i.key}e[t]=n}function Oc(e,t){if(e&&t){if(e.length!==t.length)return!1;for(var n=0;n=0&&n<=1?_c.One:_c.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?_c.One:_c.Other;case"ar":return 0===n?_c.Zero:1===n?_c.One:2===n?_c.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?_c.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?_c.Many:_c.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?_c.One:_c.Other;case"be":return n%10==1&&n%100!=11?_c.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?_c.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?_c.Many:_c.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?_c.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?_c.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?_c.Few:0!==n&&n%1e6==0?_c.Many:_c.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?_c.Few:_c.Other;case"cs":case"sk":return 1===i&&0===o?_c.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?_c.Few:0!==o?_c.Many:_c.Other;case"cy":return 0===n?_c.Zero:1===n?_c.One:2===n?_c.Two:3===n?_c.Few:6===n?_c.Many:_c.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?_c.One:_c.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?_c.One:0===o&&i%100==2||s%100==2?_c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?_c.Few:_c.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?_c.One:_c.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?_c.One:_c.Other;case"ga":return 1===n?_c.One:2===n?_c.Two:n===Math.floor(n)&&n>=3&&n<=6?_c.Few:n===Math.floor(n)&&n>=7&&n<=10?_c.Many:_c.Other;case"gd":return 1===n||11===n?_c.One:2===n||12===n?_c.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?_c.Few:_c.Other;case"gv":return 0===o&&i%10==1?_c.One:0===o&&i%10==2?_c.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?_c.Many:_c.Other:_c.Few;case"he":return 1===i&&0===o?_c.One:2===i&&0===o?_c.Two:0!==o||n>=0&&n<=10||n%10!=0?_c.Other:_c.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?_c.One:_c.Other;case"ksh":return 0===n?_c.Zero:1===n?_c.One:_c.Other;case"kw":case"naq":case"se":case"smn":return 1===n?_c.One:2===n?_c.Two:_c.Other;case"lag":return 0===n?_c.Zero:0!==i&&1!==i||0===n?_c.Other:_c.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?_c.Few:0!==s?_c.Many:_c.Other:_c.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?_c.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?_c.One:_c.Other;case"mk":return 0===o&&i%10==1||s%10==1?_c.One:_c.Other;case"mt":return 1===n?_c.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?_c.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?_c.Many:_c.Other;case"pl":return 1===i&&0===o?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?_c.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?_c.Many:_c.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?_c.One:_c.Other;case"ro":return 1===i&&0===o?_c.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?_c.Few:_c.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?_c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?_c.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?_c.Many:_c.Other;case"shi":return 0===i||1===n?_c.One:n===Math.floor(n)&&n>=2&&n<=10?_c.Few:_c.Other;case"si":return 0===n||1===n||0===i&&1===s?_c.One:_c.Other;case"sl":return 0===o&&i%100==1?_c.One:0===o&&i%100==2?_c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?_c.Few:_c.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?_c.One:_c.Other;default:return _c.Other}}}]});var fh=new we("DocumentToken"),dh="server",ph=null;function gh(){return ph}var vh,mh=function(e){function t(){var t;(t=e.call(this)||this)._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},n.tagName=function(e){return e.tagName},n.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var s=o,a=s.indexOf("="),u=-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],l=u[1];if(u[0].trim()===t)return decodeURIComponent(l)}return null}(document.cookie,e)},n.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},_createClass(t,[{key:"attrToPropMap",get:function(){return yh}}]),t}(mh),kh=null;function Sh(){return!!window.history.pushState}var xh,Ah,Eh,Th,Oh=((xh=function(e){function t(t){var n;return(n=e.call(this)||this)._doc=t,n._init(),n}_inheritsLoose(t,e);var n=t.prototype;return n._init=function(){this.location=gh().getLocation(),this._history=gh().getHistory()},n.getBaseHrefFromDOM=function(){return gh().getBaseHref(this._doc)},n.onPopState=function(e){gh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},n.onHashChange=function(e){gh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},n.pushState=function(e,t,n){Sh()?this._history.pushState(e,t,n):this.location.hash=n},n.replaceState=function(e,t,n){Sh()?this._history.replaceState(e,t,n):this.location.hash=n},n.forward=function(){this._history.forward()},n.back=function(){this._history.back()},n.getState=function(){return this._history.state},_createClass(t,[{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(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),t}(bc)).ngInjectableDef=oe({token:xh,factory:function(e){return new(e||xh)(Oe(fh))},providedIn:null}),xh),Ph=new we("TRANSITION_ID"),Ih=[{provide:kl,useFactory:function(e,t,n){return function(){n.get(Sl).donePromise.then(function(){var n=gh();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Ph,fh,$s],multi:!0}],Mh=function(){function e(){}e.init=function(){var t;t=new e,sc=t};var t=e.prototype;return t.addToWindow=function(e){_e.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},_e.getAllAngularTestabilities=function(){return e.getAllTestabilities()},_e.getAllAngularRootElements=function(){return e.getAllRootElements()},_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(function(e){var t=_e.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},t.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?gh().isShadowRoot(t)?this.findTestabilityInTree(e,gh().getHost(t),!0):this.findTestabilityInTree(e,gh().parentElement(t),!0):null},e}(),Nh=new we("EventManagerPlugins"),Dh=((Ah=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}var t=e.prototype;return t.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},t.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},t.getZone=function(){return this._zone},t._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r0;s||(s=e[o]=[]);var u=cf(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1},t}(Vh)).ngInjectableDef=oe({token:Yh,factory:function(e){return new(e||Yh)(Oe(fh),Oe(pf),Oe(Nl),Oe(gf,8))},providedIn:null}),Yh),yf=["alt","control","meta","shift"],bf={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},_f=((Jh=function(e){function t(t){return e.call(this,t)||this}_inheritsLoose(t,e);var n=t.prototype;return n.supports=function(e){return null!=t.parseEventName(e)},n.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return gh().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(yf.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=gh().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),yf.forEach(function(r){r!=n&&(0,bf[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Vh)).ngInjectableDef=oe({token:Jh,factory:function(e){return new(e||Jh)(Oe(fh))},providedIn:null}),Jh),wf=function(){},Cf=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),kf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Cf),Sf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Cf),xf=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Cf),Af=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Cf),Ef=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Cf),Tf=[{provide:Hi,useExisting:wf},{provide:wf,useClass:($h=function(e){function t(t){var n;return(n=e.call(this)||this)._doc=t,n}_inheritsLoose(t,e);var n=t.prototype;return n.sanitize=function(e,t){if(null==t)return null;switch(e){case Li.NONE:return t;case Li.HTML:return t instanceof kf?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ki=ki||new mi(e);var r=t?String(t):"";n=ki.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ki.getInertBodyElement(r)}while(r!==o);var s=new Ni,a=s.sanitizeChildren(Fi(n)||n);return vi()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=Fi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case Li.STYLE:return t instanceof Sf?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Bi);return t&&_i(t[1])===t[1]||e.match(ji)&&function(e){for(var t=!0,n=!0,r=0;r *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],s=i[2],a=i[3];t.push(Ld(o,a)),"<"!=s[0]||o==Vd&&a==Vd||t.push(Ld(a,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Kd(e.options)}},t.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Nd(n,e,t)}),options:Kd(e.options)}},t.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Nd(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Kd(e.options)}},t.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Zd(md(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Zd(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Zd((n=n||md(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Lf({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Lf(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},t._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Df?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(zd(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},t._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=t.collectedStyles[t.currentQuerySelector],c=l[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(l[r]={startTime:o,endTime:i}),t.options&&(s=t.errors,a=t.options.params||{},(u=Ad(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(zd(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(zd(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&i0?i==f?1:h*i:o[i],a=s*g;t.currentTime=d+p.delay+a,p.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},t.visitReference=function(e,t){return{type:8,animation:Nd(this,Sd(e.animation),t),options:Kd(e.options)}},t.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Kd(e.options)}},t.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Kd(e.options)}},t.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Hd,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Jf(t.collectedStyles,t.currentQuerySelector,{});var a=Nd(this,Sd(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Kd(e.options)}},t.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:md(e.timings,t.errors,!0);return{type:12,animation:Nd(this,Sd(e.animation),t),timings:n,options:null}},e}(),qd=function(e){this.errors=e,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 zd(e){return!Array.isArray(e)&&"object"==typeof e}function Kd(e){var t;return e?(e=yd(e)).params&&(e.params=(t=e.params)?yd(t):null):e={},e}function Zd(e,t,n){return{duration:e,delay:t,easing:n}}function Ud(e,t,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Gd=function(){function e(){this._map=new Map}var t=e.prototype;return t.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},t.append=function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,t)},t.has=function(e){return this._map.has(e)},t.clear=function(){this._map.clear()},e}(),Qd=new RegExp(":enter","g"),Wd=new RegExp(":leave","g");function Yd(e,t,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Xd).buildKeyframes(e,t,n,r,i,o,s,a,u,l)}var Xd=function(){function e(){}var t=e.prototype;return t.buildKeyframes=function(e,t,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new Gd;var c=new $d(e,t,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),Nd(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,c.errors,a)}return h.length?h.map(function(e){return e.buildKeyframes()}):[Ud(t,[],[],[],0,0,"",!1)]},t.visitTrigger=function(e,t){},t.visitState=function(e,t){},t.visitTransition=function(e,t){},t.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},t.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},t._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?gd(n.duration):null,o=null!=n.delay?gd(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.visitReference=function(e,t){t.updateOptions(e.options,!0),Nd(this,e.animation,t),t.previousNode=e},t.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Jd);var s=gd(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return Nd(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},t.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?gd(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),Nd(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},t._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return md(t.params?Ed(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},t.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},t.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},t.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},t.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?gd(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Jd);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(u=a.currentTimeline),Nd(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},t.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;Nd(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},e}(),Jd={},$d=function(){function e(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ep(this._driver,t,0),s.push(this.currentTimeline)}var t=e.prototype;return t.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=gd(r.duration)),null!=r.delay&&(i.delay=gd(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=Ed(o[e],s,n.errors))})}}},t._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},t.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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},t.transformIntoNewTimeline=function(e){return this.previousNode=Jd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},t.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new tp(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},t.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},t.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},t.invokeQuery=function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(Qd,"."+this._enterClassName)).replace(Wd,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return i||0!=s.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},_createClass(e,[{key:"params",get:function(){return this.options.params}}]),e}(),ep=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}var t=e.prototype;return t.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},t.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},t.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},t._loadKeyframe=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))},t.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},t._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},t.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Df,t._currentKeyframe[e]=Df}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Df}):bd(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=Ed(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Df),i._updateStyle(e,t)})},t.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},t.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},t.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},t.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},t.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=bd(o,!0);Object.keys(a).forEach(function(e){var r=a[e];r==Zf?t.add(e):r==Df&&n.add(e)}),r||(a.offset=s/e.duration),i.push(a)});var o=t.size?Td(t.values()):[],s=n.size?Td(n.values()):[];if(r){var a=i[0],u=yd(a);a.offset=0,u.offset=1,i=[a,u]}return Ud(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},_createClass(e,[{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),tp=function(e){function t(t,n,r,i,o,s,a){var u;return void 0===a&&(a=!1),(u=e.call(this,t,n,s.delay)||this).element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}_inheritsLoose(t,e);var n=t.prototype;return n.containsAnimation=function(){return this.keyframes.length>1},n.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=bd(e[0],!1);u.offset=0,o.push(u);var l=bd(e[0],!1);l.offset=np(a),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=bd(e[h],!1);f.offset=np((n+f.offset*r)/s),o.push(f)}r=s,n=0,i="",e=o}return Ud(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(ep);function np(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var rp=function(){},ip=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var n=t.prototype;return n.normalizePropertyName=function(e,t){return Pd(e)},n.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(op[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(rp),op=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function sp(e,t,n,r,i,o,s,a,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var ap={},up=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}var t=e.prototype;return t.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},t.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},t.build=function(e,t,n,r,i,o,s,a,u,l){var c=[],h=this.ast.options&&this.ast.options.params||ap,f=this.buildStyles(n,s&&s.params||ap,c),d=a&&a.params||ap,p=this.buildStyles(r,d,c),g=new Set,v=new Map,m=new Map,y="void"===r,b={params:Object.assign({},h,d)},_=l?[]:Yd(e,t,this.ast.animation,i,o,f,p,b,u,c),w=0;if(_.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),c.length)return sp(t,this._triggerName,n,r,y,f,p,[],[],v,m,w,c);_.forEach(function(e){var n=e.element,r=Jf(v,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=Jf(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var C=Td(g.values());return sp(t,this._triggerName,n,r,y,f,p,_,C,v,m,w)},e}(),lp=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=yd(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=Ed(o,r,t)),n[e]=o})}}),n},e}(),cp=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new lp(e.style,e.options&&e.options.params||{})}),hp(this.states,"true","1"),hp(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new up(e,t,n.states))}),this.fallbackTransition=new up(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}var t=e.prototype;return t.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},t.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},_createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function hp(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var fp=new Gd,dp=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}var t=e.prototype;return t.register=function(e,t){var n=[],r=jd(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},t._buildPlayer=function(e,t,n){var r=e.element,i=Qf(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},t.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[e],a=new Map;if(s?(i=Yd(this._driver,t,s,"ng-enter","ng-leave",{},{},n,fp,o)).forEach(function(e){var t=Jf(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Df)})});var u=Gf(i.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},t.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},t._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},t.listen=function(e,t,n,r){var i=Xf(t,"","","");return Wf(this._getPlayer(e),n,i,r),function(){}},t.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),pp=[],gp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mp="__ng_removed",yp=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var i=yd(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},_createClass(e,[{key:"params",get:function(){return this.options.params}}]),e}(),bp=new yp("void"),_p=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Tp(t,this._hostClassName)}var t=e.prototype;return t.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=Jf(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=Jf(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Tp(e,"ng-trigger"),Tp(e,"ng-trigger-"+t),u[t]=bp),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete u[t]})}},t.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},t._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},t.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),s=new Cp(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Tp(e,"ng-trigger"),Tp(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new yp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=bp),"void"===l.value||u.value!==l.value){var c=Jf(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:f}),f||(Tp(e,"ng-animate-queued"),s.onStart(function(){Op(e,"ng-animate-queued")})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},t.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},t.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},t.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},t._fetchNamespace=function(e){return this._namespaceLookup[e]},t.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},t.collectEnterElement=function(e){this.collectedEnterElements.push(e)},t.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Tp(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Op(e,"ng-animate-disabled"))},t.removeNode=function(e,t,n,r){if(kp(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)},t.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[mp]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.listen=function(e,t,n,r,i){return kp(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},t._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},t.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},t.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},t.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},t.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return Gf(e.players).onDone(function(){return t()});t()})},t.processLeaveNode=function(e){var t=this,n=e[mp];if(n&&n.setForRemoval){if(e[mp]=gp,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})},t.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(S.push(t),n.collectedEnterElements.length){var c=o[mp];if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=C.get(o),g=p.get(o),v=n._buildInstruction(e,r,g,d,f);if(!v.errors||!v.errors.length)return f?(t.onStart(function(){return kd(o,v.fromStyles)}),t.onDestroy(function(){return Cd(o,v.toStyles)}),void i.push(t)):e.isFallbackTransition?(t.onStart(function(){return kd(o,v.fromStyles)}),t.onDestroy(function(){return Cd(o,v.toStyles)}),void i.push(t)):(v.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,v.timelines),s.push({instruction:v,player:t,element:o}),v.queriedElements.forEach(function(e){return Jf(a,e,[]).push(t)}),v.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),void v.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}));x.push(v)});if(x.length){var E=[];x.forEach(function(e){E.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return E.push("- "+e+"\n")})}),S.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,O=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Jf(T,t,[]).push(e),e.destroy()})});var P=v.filter(function(e){return Ip(e,u,l)}),I=new Map;xp(I,this.driver,y,l,Df).forEach(function(e){Ip(e,u,l)&&P.push(e)});var M=new Map;d.forEach(function(e,t){xp(M,n.driver,new Set(e),u,Zf)}),P.forEach(function(e){var t=I.get(e),n=M.get(e);I.set(e,Object.assign({},t,n))});var N=[],D=[],V={};s.forEach(function(e){var t=e.element,s=e.player,a=e.instruction;if(r.has(t)){if(c.has(t))return s.onDestroy(function(){return Cd(t,a.toStyles)}),s.disabled=!0,s.overrideTotalTime(a.totalTime),void i.push(s);var u=V;if(O.size>1){for(var l=t,h=[];l=l.parentNode;){var f=O.get(l);if(f){u=f;break}h.push(l)}h.forEach(function(e){return O.set(e,u)})}var d=n._buildAnimation(s.namespaceId,a,T,o,M,I);if(s.setRealPlayer(d),u===V)N.push(s);else{var p=n.playersByElement.get(u);p&&p.length&&(s.parentPlayer=Gf(p)),i.push(s)}}else kd(t,a.fromStyles),s.onDestroy(function(){return Cd(t,a.toStyles)}),D.push(s),c.has(t)&&i.push(s)}),D.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Gf(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var R=0;R=u.length)return"break";h=u[c++]}else{if((c=u.next()).done)return"break";h=c.value}var e=h.element,a=e!==i,f=Jf(n,e,[]);r._getPreviousPlayers(e,a,o,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),f.push(e)})},u=t.timelines,l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var h;if("break"===a())break}kd(i,t.fromStyles)},t._buildAnimation=function(e,t,n,r,i,o){var s=this,a=t.triggerName,u=t.element,l=[],c=new Set,h=new Set,f=t.timelines.map(function(t){var f=t.element;c.add(f);var d=f[mp];if(d&&d.removedBeforeQueried)return new zf(t.duration,t.delay);var p,g=f!==u,v=(p=[],function e(t,n){for(var r=0;r0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new zf(e.duration,e.delay)},_createClass(e,[{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),Cp=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new zf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}var t=e.prototype;return t.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Wf(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},t.getRealPlayer=function(){return this._player},t.overrideTotalTime=function(e){this.totalTime=e},t.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},t._queueEvent=function(e,t){Jf(this._queuedCallbacks,e,[]).push(t)},t.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},t.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},t.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},t.init=function(){this._player.init()},t.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.play=function(){!this.queued&&this._player.play()},t.pause=function(){!this.queued&&this._player.pause()},t.restart=function(){!this.queued&&this._player.restart()},t.finish=function(){this._player.finish()},t.destroy=function(){this.destroyed=!0,this._player.destroy()},t.reset=function(){!this.queued&&this._player.reset()},t.setPosition=function(e){this.queued||this._player.setPosition(e)},t.getPosition=function(){return this.queued?0:this._player.getPosition()},t.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function kp(e){return e&&1===e.nodeType}function Sp(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function xp(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Sp(e))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[mp]=vp,s.push(r))}),e.set(r,o)});var a=0;return n.forEach(function(e){return Sp(e,o[a++])}),s}function Ap(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var Ep="$$classes";function Tp(e,t){if(e.classList)e.classList.add(t);else{var n=e[Ep];n||(n=e[Ep]={}),n[t]=!0}}function Op(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Ep];n&&delete n[t]}}function Pp(e,t,n){Gf(n).onDone(function(){return e.processLeaveNode(t)})}function Ip(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var Mp=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new wp(e,t,n),this._timelineEngine=new dp(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}var t=e.prototype;return t.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=jd(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new cp(e,t)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)},t.register=function(e,t){this._transitionEngine.register(e,t)},t.destroy=function(e,t){this._transitionEngine.destroy(e,t)},t.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},t.onRemove=function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)},t.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},t.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=$f(n),o=i[0],s=i[1];this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)},t.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=$f(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,t,a,i)}return this._transitionEngine.listen(e,t,n,r,i)},t.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},t.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},_createClass(e,[{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Np(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=Vp(t[0]),t.length>1&&(r=Vp(t[t.length-1]))):t&&(n=Vp(t)),n||r?new Dp(e,n,r):null}var Dp=function(){var e=function(){function e(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}var t=e.prototype;return t.start=function(){this._state<1&&(this._startStyles&&Cd(this._element,this._startStyles,this._initialStyles),this._state=1)},t.finish=function(){this.start(),this._state<2&&(Cd(this._element,this._initialStyles),this._endStyles&&(Cd(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(kd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kd(this._element,this._endStyles),this._endStyles=null),Cd(this._element,this._initialStyles),this._state=3)},e}();return e.initialStylesByElement=new WeakMap,e}();function Vp(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()},t.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),zp(this._element,this._eventFn,!0))},t.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Zp(e,"").split(","),(r=qp(n,t))>=0&&(n.splice(r,1),Kp(e,"",n.join(","))))},e}();function jp(e,t,n){Kp(e,"PlayState",n,Bp(e,t))}function Bp(e,t){var n=Zp(e,"");return n.indexOf(",")>0?qp(n.split(","),t):qp([n],t)}function qp(e,t){for(var n=0;n=0)return n;return-1}function zp(e,t,n){n?e.removeEventListener(Lp,t):e.addEventListener(Lp,t)}function Kp(e,t,n,r){var i=Fp+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function Zp(e,t){return e.style[Fp+t]}var Up="linear",Gp=function(){function e(e,t,n,r,i,o,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||Up,this.totalTime=r+i,this._buildStyler()}var t=e.prototype;return t.onStart=function(e){this._onStartFns.push(e)},t.onDone=function(e){this._onDoneFns.push(e)},t.onDestroy=function(e){this._onDestroyFns.push(e)},t.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},t._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},t._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},t.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.setPosition=function(e){this._styler.setPosition(e)},t.getPosition=function(){return this._styler.getPosition()},t.hasStarted=function(){return this._state>=2},t.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.pause=function(){this.init(),this._styler.pause()},t.restart=function(){this.reset(),this.play()},t.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t._buildStyler=function(){var e=this;this._styler=new Hp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},t.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},t.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Dd(e.element,r))})}this.currentSnapshot=t},e}(),Qp=function(e){function t(t,n){var r;return(r=e.call(this)||this).element=t,r._startingStyles={},r.__initialized=!1,r._styles=cd(n),r}_inheritsLoose(t,e);var n=t.prototype;return n.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},n.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},n.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(zf),Wp=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}var t=e.prototype;return t.validateStyleProperty=function(e){return sd(e)},t.matchesElement=function(e,t){return ad(e,t)},t.containsElement=function(e,t){return ud(e,t)},t.query=function(e,t,n){return ld(e,t,n)},t.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},t.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return cd(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.animate=function(e,t,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(e){return e instanceof Gp}),u={};Id(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Md(e,t,u));if(0==n)return new Qp(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=Np(e,t),d=new Gp(e,t,c,n,r,i,l,f);return d.onDestroy(function(){h.parentNode.removeChild(h)}),d},t._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),Yp=function(){function e(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}var t=e.prototype;return t._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},t.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},t._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},t.onStart=function(e){this._onStartFns.push(e)},t.onDone=function(e){this._onDoneFns.push(e)},t.onDestroy=function(e){this._onDestroyFns.push(e)},t.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.pause=function(){this.init(),this.domPlayer.pause()},t.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.restart=function(){this.reset(),this.play()},t.hasStarted=function(){return this._started},t.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},t.setPosition=function(e){this.domPlayer.currentTime=e*this.time},t.getPosition=function(){return this.domPlayer.currentTime/this.time},t.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Dd(e.element,n))}),this.currentSnapshot=t},t.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},_createClass(e,[{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Xp=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Jp().toString()),this._cssKeyframesDriver=new Wp}var t=e.prototype;return t.validateStyleProperty=function(e){return sd(e)},t.matchesElement=function(e,t){return ad(e,t)},t.containsElement=function(e,t){return ud(e,t)},t.query=function(e,t,n){return ld(e,t,n)},t.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},t.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},t.animate=function(e,t,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=o.filter(function(e){return e instanceof Yp});Id(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=Np(e,t=Md(e,t=t.map(function(e){return bd(e,!1)}),u));return new Yp(e,t,a,c)},e}();function Jp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var $p,eg=(($p=function(e){function t(t,n){var r;return(r=e.call(this)||this)._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:He.None,styles:[],data:{animation:[]}}),r}return _inheritsLoose(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ff(e):e;return rg(this._renderer,null,t,"register",[n]),new tg(t,this._renderer)},t}(Mf)).ngInjectableDef=oe({token:$p,factory:function(e){return new(e||$p)(Oe(vu),Oe(fh))},providedIn:null}),$p),tg=function(e){function t(t,n){var r;return(r=e.call(this)||this)._id=t,r._renderer=n,r}return _inheritsLoose(t,e),t.prototype.create=function(e,t){return new ng(this._id,e,t||{},this._renderer)},t}(Nf),ng=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}var t=e.prototype;return t._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},t._command=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this},t.setRgba=function(e,t,n,r){return void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=1),null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this},t.setHsla=function(e,t,n,r){void 0===r&&(r=1),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);var i=new Ag(e,t,n,r);return this.rgba=this.hslaToRgba(i),this.hsva=this.rgbaToHsva(this.rgba),this},t.toHexString=function(e){void 0===e&&(e=!1);var t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()},t.toRgbaString=function(){return this.rgba.toString()},t.toRgbString=function(){return this.rgba.toString(!1)},t.toHslaString=function(){return this.getHsla().toString()},t.toHslString=function(){return this.getHsla().toString(!1)},t.toHsvaString=function(){return this.hsva.toString()},t.toHsvString=function(){return this.hsva.toString(!1)},t.toCmykString=function(){return this.getCmyk().toString()},t.getHsva=function(){return new Eg(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)},t.getRgba=function(){return new Tg(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)},t.getHsla=function(){return this.rgbaToHsla(this.rgba)},t.getCmyk=function(){return this.rgbaToCmyk(this.rgba)},t.hsvaToHsla=function(e){var t=e.saturation/100,n=(2-t)*e.value/2;return new Ag(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)},t.hslaToHsva=function(e){var t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Eg(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)},t.rgbaToHsva=function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=e.alpha,o=Math.max(t,n,r),s=Math.min(t,n,r),a=o-s,u=0,l=0===o?0:a/o,c=o;if(o!==s){switch(o){case t:u=(n-r)/a+(n.5?c/(2-o-s):c/(o+s),o){case t:a=(n-r)/c+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},t.cmykToRgba=function(e){var t=e.black/100,n=e.magenta/100,r=e.yellow/100,i=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),s=Math.min(1,(1-r)*(1-t));return new Tg(i*=255,o*=255,s*=255,1)},t.rgbaToCmyk=function(e){var t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,i=Math.min(t,n,r);return 1===i?new xg(0,0,0,1):(t=(t-i)/(1-i),n=(n-i)/(1-i),r=(r-i)/(1-i),new xg(t*=100,n*=100,r*=100,i*=100))},t.roundNumber=function(e){return Math.round(100*e)/100},t.stringToColor=function(e){var t=e.replace(/ /g,"").toLowerCase(),n=Og[t]||null;if("#"===t[0]){var r,i=t.substr(1),o=i.length,s=1;if(3===o)r=i.split("").map(function(e){return e+e});else if(6===o)r=i.match(/.{2}/g);else if(8===o){var a=i.substr(-2);i=i.substr(0,o-2),s=this.roundNumber(parseInt(a||"FF",16)/255),r=i.match(/.{2}/g)}3===r.length&&(n=new Tg(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),s))}var u=t.indexOf("("),l=t.indexOf(")");if(-1!==u&&l+1===t.length){var c=t.substr(0,u),h=t.substr(u+1,l-(u+1)).split(","),f=1;switch(c){case"rgba":f=parseFloat(h.pop());case"rgb":n=new Tg(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);break;case"hsla":f=parseFloat(h.pop());case"hsl":var d=new Ag(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);n=this.hslaToRgba(d);break;case"cmyk":var p=new xg(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10));n=this.cmykToRgba(p)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this},e}(),Ig=function(){function e(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}var t=e.prototype;return t.onEventChange=function(e){var t=this;this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",function(){return t.removeListeners()})),this.eventHooks.push(this.renderer.listen(this.document,"touchend",function(){return t.removeListeners()})),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",function(e){return t.calculate(e)})),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",function(e){return t.calculate(e)}))},t.calculateCoordinates=function(e){var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,a=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(o+this.window.pageXOffset),n)),u=Math.max(0,Math.min(s-(i+this.window.pageYOffset),r));this.movePointer({x:a,y:u,height:r,width:n})},t.calculate=function(e){var t=this;if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(function(){return t.calculateCoordinates(e)})},t.getRequestAnimationFrame=function(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame},t.removeListeners=function(){this.eventHooks.forEach(function(e){return e()}),this.eventHooks.length=0},t.ngOnDestroy=function(){this.removeListeners()},e}(),Mg=["pointer"],Ng=[1,"pointer"],Dg=["pointer",""],Vg=((bg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).colorChange=new al(!1),i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnInit=function(){this.hue||(this.hue=Pg.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)},n.ngOnChanges=function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.saturation,t.value)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=100*t/e.width,o=-100*n/r+100;this.changePointerPosition(i,o);var s=this.hue.getHsva(),a=this.color.getHsva(),u=(new Pg).setHsva(s.hue,i,o,a.alpha);this.colorChange.emit(u)},n.changePointerPosition=function(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",100-t+"%"),this.renderer.setStyle(this.pointer.nativeElement,"left",e+"%")},_createClass(t,[{key:"backgroundColor",get:function(){return this.hue?this.hue.toRgbaString():""}}]),t}(Ig)).ngComponentDef=We({type:bg,selectors:[["saturation-component"]],factory:function(e){return new(e||bg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Mg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(ra(1),Ha("mousedown",function(e){return t.onClick(e)}),Ha("touchstart",function(e){return t.onClick(e)}),_a()),2&e&&(wa("background-color",t.backgroundColor),Aa())},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[Ja,Ga()],consts:2,vars:0,template:function(e,t){1&e&&Va(0,"div",Ng,Dg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4Xv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vuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0}),bg),Rg=function(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."},Fg=["viewBox","0 0 48 48"],Lg=["d","M0 0h48v48h-48z","fill","none"],Hg=["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"],jg=((_g=function(){function e(e,t,n,r){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=r,this.colorType="rgba"}return e.prototype.onClick=function(e){var t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)},_createClass(e,[{key:"title",get:function(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}},{key:"backgroundColor",get:function(){return this.color.toRgbaString()}}]),e}()).ngComponentDef=We({type:_g,selectors:[["indicator-component"]],factory:function(e){return new(e||_g)(ba(Rg),ba(yu),ba(pu),ba(fh))},hostBindings:function(e,t,n){1&e&&(ra(1),Ha("click",function(e){return t.onClick(e)})),2&e&&ga("title",t.title)},inputs:{color:"color",colorType:"colorType"},consts:4,vars:1,template:function(e,t){1&e&&(Na(0,"div"),_a(),Yn(),Na(1,"svg",Fg),Va(2,"path",Lg),Va(3,"path",Hg),Da(),Da()),2&e&&(wa("background-color",t.backgroundColor),Aa())},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),_g),Bg=["pointer"],qg=[1,"pointer"],zg=["pointer",""],Kg=((wg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).hueChange=new al(!1),i.colorChange=new al(!1),i.isVertical=!1,i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnChanges=function(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){var t=this.hue.getHsva();this.changePointerPosition(t.hue)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r*360:t/i*360;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new Pg).setHsva(o,s.saturation,s.value,s.alpha),u=(new Pg).setHsva(o,100,100,s.alpha);this.hueChange.emit(u),this.colorChange.emit(a)},n.changePointerPosition=function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",e/360*100+"%")},_createClass(t,[{key:"vertical",set:function(e){this.isVertical=!0}}]),t}(Ig)).ngComponentDef=We({type:wg,selectors:[["hue-component"]],factory:function(e){return new(e||wg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Bg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ha("mousedown",function(e){return t.onClick(e)}),Ha("touchstart",function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[Ja,Ga()],consts:2,vars:0,template:function(e,t){1&e&&Va(0,"div",qg,zg)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEA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s2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),wg),Zg=["pointer"],Ug=[1,"pointer"],Gg=["pointer",""],Qg=[1,"gradient-color",3,"ngStyle"],Wg=function(e){return{background:e}},Yg=((kg=function(e){function t(t,n,r){var i;return(i=e.call(this,n,r,t)||this).colorChange=new al(!1),i.isVertical=!1,i}_inheritsLoose(t,e);var n=t.prototype;return n.onClick=function(e){this.onEventChange(e)},n.ngOnChanges=function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.alpha)}},n.movePointer=function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r:t/i;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new Pg).setHsva(s.hue,s.saturation,s.value,o);this.colorChange.emit(a)},n.changePointerPosition=function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",100*e+"%")},_createClass(t,[{key:"vertical",set:function(e){this.isVertical=!0}},{key:"gradient",get:function(){var e=this.color.getRgba();return"linear-gradient(to "+(this.isVertical?"bottom":"right")+", rgba("+e.red+", "+e.green+", "+e.blue+", 0) 0%, rgb("+e.red+", "+e.green+", "+e.blue+") 100%)"}}]),t}(Ig)).ngComponentDef=We({type:kg,selectors:[["alpha-component"]],factory:function(e){return new(e||kg)(ba(yu),ba(fh),ba(pu))},viewQuery:function(e,t){var n;1&e&&bl(Zg,!0),2&e&&yl(n=_l())&&(t.pointer=n.first)},hostBindings:function(e,t,n){1&e&&(Ha("mousedown",function(e){return t.onClick(e)}),Ha("touchstart",function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[Ja,Ga()],consts:3,vars:3,template:function(e,t){1&e&&(Va(0,"div",Ug,Gg),Va(2,"div",Qg)),2&e&&(ko(2),da("ngStyle",el(1,Wg,t.gradient)))},directives:[ih],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0}),kg),Xg=((Cg=function(){function e(){this.inputChange=new al}return e.prototype.inputChanges=function(e){var t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)},e}()).ngDirectiveDef=et({type:Cg,selectors:[["","inputChange",""]],factory:function(e){return new(e||Cg)},hostBindings:function(e,t,n){1&e&&Ha("input",function(e){return t.inputChanges(e)})},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),Cg),Jg=[1,"column"],$g=["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],ev=[4,"ngIf"],tv=["class","column",4,"ngIf"];function nv(e,t){1&e&&(Na(0,"span"),za(1,"R"),Da())}function rv(e,t){1&e&&(Na(0,"span"),za(1,"G"),Da())}function iv(e,t){1&e&&(Na(0,"span"),za(1,"B"),Da())}var ov=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function sv(e,t){1&e&&(Na(0,"span"),za(1,"A"),Da())}function av(e,t){if(1&e){var n=Fa();Na(0,"div",Jg),Na(1,"input",ov),Ha("inputChange",function(e){return An(n),qa().onInputChange(e,"A")}),Da(),va(2,sv,2,0,"span",ev),Da()}if(2&e){var r=qa();ko(1),da("value",null==r.value?null:r.value.getAlpha().toString()),ko(2),da("ngIf",r.labelVisible)}}var uv,lv=((uv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.isAlphaVisible=!0}return e.prototype.onInputChange=function(e,t){var n=this.value,r="R"===t?e:n.red,i="G"===t?e:n.green,o="B"===t?e:n.blue,s="A"===t?e:n.alpha,a=(new Pg).setRgba(r,i,o,s),u=(new Pg).setHsva(a.getHsva().hue);this.hueChange.emit(u),this.colorChange.emit(a)},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getRgba():null}}]),e}()).ngComponentDef=We({type:uv,selectors:[["rgba-input-component"]],factory:function(e){return new(e||uv)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(Na(0,"div",Jg),Na(1,"input",$g),Ha("inputChange",function(e){return t.onInputChange(e,"R")}),Da(),va(2,nv,2,0,"span",ev),Da(),Na(3,"div",Jg),Na(4,"input",$g),Ha("inputChange",function(e){return t.onInputChange(e,"G")}),Da(),va(5,rv,2,0,"span",ev),Da(),Na(6,"div",Jg),Na(7,"input",$g),Ha("inputChange",function(e){return t.onInputChange(e,"B")}),Da(),va(8,iv,2,0,"span",ev),Da(),va(9,av,3,2,"div",tv)),2&e&&(ko(1),da("value",null==t.value?null:t.value.getRed().toString()),ko(2),da("ngIf",t.labelVisible),ko(4),da("value",null==t.value?null:t.value.getGreen().toString()),ko(5),da("ngIf",t.labelVisible),ko(7),da("value",null==t.value?null:t.value.getBlue().toString()),ko(8),da("ngIf",t.labelVisible),ko(9),da("ngIf",t.isAlphaVisible))},directives:[Xg,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),uv),cv=[1,"column"],hv=["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],fv=[4,"ngIf"],dv=["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],pv=["class","column",4,"ngIf"];function gv(e,t){1&e&&(Na(0,"span"),za(1,"H"),Da())}function vv(e,t){1&e&&(Na(0,"span"),za(1,"S"),Da())}function mv(e,t){1&e&&(Na(0,"span"),za(1,"L"),Da())}var yv=["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"];function bv(e,t){1&e&&(Na(0,"span"),za(1,"A"),Da())}function _v(e,t){if(1&e){var n=Fa();Na(0,"div",cv),Na(1,"input",yv),Ha("inputChange",function(e){return An(n),qa().onInputChange(e,"A")}),Da(),va(2,bv,2,0,"span",fv),Da()}if(2&e){var r=qa();ko(1),da("value",null==r.value?null:r.value.getAlpha().toString()),ko(2),da("ngIf",r.labelVisible)}}var wv,Cv=((wv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.isAlphaVisible=!0}return e.prototype.onInputChange=function(e,t){var n=this.value,r="H"===t?e:n.hue,i="S"===t?e:n.saturation,o="L"===t?e:n.lightness,s="A"===t?e:n.alpha,a=(new Pg).setHsla(r,i,o,s),u=(new Pg).setHsva(a.getHsva().hue);this.hueChange.emit(u),this.colorChange.emit(a)},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getHsla():null}}]),e}()).ngComponentDef=We({type:wv,selectors:[["hsla-input-component"]],factory:function(e){return new(e||wv)},inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:10,vars:7,template:function(e,t){1&e&&(Na(0,"div",cv),Na(1,"input",hv),Ha("inputChange",function(e){return t.onInputChange(e,"H")}),Da(),va(2,gv,2,0,"span",fv),Da(),Na(3,"div",cv),Na(4,"input",dv),Ha("inputChange",function(e){return t.onInputChange(e,"S")}),Da(),va(5,vv,2,0,"span",fv),Da(),Na(6,"div",cv),Na(7,"input",dv),Ha("inputChange",function(e){return t.onInputChange(e,"L")}),Da(),va(8,mv,2,0,"span",fv),Da(),va(9,_v,3,2,"div",pv)),2&e&&(ko(1),da("value",null==t.value?null:t.value.getHue().toString()),ko(2),da("ngIf",t.labelVisible),ko(4),da("value",(null==t.value?null:t.value.getSaturation())+"%"),ko(5),da("ngIf",t.labelVisible),ko(7),da("value",(null==t.value?null:t.value.getLightness())+"%"),ko(8),da("ngIf",t.labelVisible),ko(9),da("ngIf",t.isAlphaVisible))},directives:[Xg,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),wv),kv=[1,"column"],Sv=["type","text",3,"value","keyup"],xv=["elRef",""],Av=[4,"ngIf"];function Ev(e,t){1&e&&(Na(0,"span"),za(1,"HEX"),Da())}var Tv,Ov,Pv=((Tv=function(){function e(){this.hueChange=new al(!1),this.colorChange=new al(!1),this.prefixValue=""}return e.prototype.onInputChange=function(e){var t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){var n=new Pg("#"+t),r=(new Pg).setHsva(n.getHsva().hue);this.hueChange.emit(r),this.colorChange.emit(n)}},_createClass(e,[{key:"label",set:function(e){this.labelVisible=!0}},{key:"prefix",set:function(e){this.prefixValue=e}},{key:"value",get:function(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}}]),e}()).ngComponentDef=We({type:Tv,selectors:[["hex-input-component"]],factory:function(e){return new(e||Tv)},inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:4,vars:2,template:function(e,t){if(1&e){var n=Fa();Na(0,"div",kv),Na(1,"input",Sv,xv),Ha("keyup",function(e){An(n);var r=ma(2);return t.onInputChange(r.value)}),Da(),va(3,Ev,2,0,"span",Av),Da()}2&e&&(ko(1),da("value",t.value),ko(3),da("ngIf",t.labelVisible))},directives:[qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:0}",""],changeDetection:0}),Tv),Iv=Vf("opacityAnimation",[(Ov=Lf({opacity:1}),{type:0,name:"true",styles:Ov,options:void 0}),Hf("void => *",[Lf({opacity:0}),Rf(".08s ease-in")])]),Mv=Vf("listAnimation",[Hf("* => up",[jf(":enter",[Lf({opacity:0,height:0}),Bf(-10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),Hf("* => right",[jf(":enter",[Lf({opacity:0,height:0}),Bf(-10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),Hf("* => down",[jf(":enter",[Lf({opacity:0,height:0}),Bf(10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})]),Hf("* => left",[jf(":enter",[Lf({opacity:0,height:0}),Bf(10,[Rf(".08s",Lf({opacity:1,height:"*"}))])],{optional:!0})])]),Nv=new _(function(e){return e.complete()});function Dv(e){return e?function(e){return new _(function(t){return e.schedule(function(){return t.complete()})})}(e):Nv}function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1};var n=t.prototype;return n._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},n.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new Zv(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},n._next=function(e){this.scheduleNotification(qv.createNext(e))},n._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},n._complete=function(){this.scheduleNotification(qv.createComplete()),this.unsubscribe()},t}(m),Zv=function(e,t){this.time=e,this.notification=t},Uv=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Gv(e),r=D(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),Gv=function(e){function t(t){var n;return(n=e.call(this,t)||this).seenValue=!1,n}_inheritsLoose(t,e);var n=t.prototype;return n.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},n.notifyComplete=function(){},t}(V),Qv=((Lv=function(){function e(e){this.pickerConfig=e,this.selectionChange=new al(!1),this.longPress=new al(!1),this.mouseup=new E,this.showDepthText=!1}var t=e.prototype;return t.ngOnDestroy=function(){this.mouseup.next(),this.mouseup.complete()},t.onTouch=function(e){var t,n=this;Vv(e).pipe(R(function(e){return e.timeStamp||(new Date).getTime()}),function(e,t){void 0===t&&(t=Bv);var n=350 instanceof Date&&!isNaN(350)?350-t.now():Math.abs(350);return function(e){return e.lift(new zv(n,t))}}(),(t=this.mouseup,function(e){return e.lift(new Uv(t))})).subscribe(function(){return n.longPress.next(!0)}),this.selectionChange.emit(this.color)},t.onTouchEnd=function(e){this.mouseup.next(e)},_createClass(e,[{key:"depth",set:function(e){this.showDepthText=!!e}},{key:"bgColor",get:function(){return this.color.toRgbaString()}},{key:"title",get:function(){var e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,function(t,n){return e}):e}},{key:"className",get:function(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}}]),e}()).ngComponentDef=We({type:Lv,selectors:[["color-preset"]],factory:function(e){return new(e||Lv)(ba(Rg))},hostBindings:function(e,t,n){var r,i;1&e&&(ra(3),Ha("mousedown",function(e){return t.onTouch(e)}),Ha("touchstart",function(e){return t.onTouch(e)}),Ha("mouseup",function(e){return t.onTouchEnd(e)}),Ha("touchend",function(e){return t.onTouchEnd(e)}),_a()),2&e&&(ga("title",t.title),wa("background-color",t.bgColor),r=t.className,i=gn()[ht]++,Ca(Un(),i,"selected",r,!0,Ma()),Aa())},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},consts:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),Lv),Wv=((Fv=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t=!0),t?e.slice().reverse():e},e}()).ngPipeDef=tt({name:"reverse",type:Fv,factory:function(e){return new(e||Fv)},pure:!0}),Fv),Yv=[3,"show-depth-title","color","activeColor","longPress","selectionChange"],Xv=[1,"reflection"],Jv=["class","sublist",4,"ngIf"],$v=[1,"sublist"],em=[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],tm=[3,"color","activeColor","selectionChange"];function nm(e,t){if(1&e){var n=Fa();Na(0,"color-preset",tm),Ha("selectionChange",function(e){return An(n),qa(2).onSelectionChange(e)}),Da()}if(2&e){var r=t.$implicit,i=qa(2);da("color",r)("activeColor",i.activeColor)}}function rm(e,t){if(1&e&&(Na(0,"div",$v),va(1,nm,1,2,"color-preset",em),nl(2,"reverse"),Da()),2&e){var n=qa();da("@opacityAnimation",n.showChildren)("@listAnimation",n.direction),ko(1),da("ngForOf",il(2,3,n.list,"up"==n.direction||"right"==n.direction))}}var im,om,sm=((om=function(){function e(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new al(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}var t=e.prototype;return t.ngOnDestroy=function(){this.removeListeners(),this.cdr.detach()},t.removeListeners=function(){this.hooks.forEach(function(e){return e()}),this.hooks.length=0},t.onSelectionChange=function(e){this.selectionChange.next(e)},t.onLongPress=function(){this.showChildren=!0,this.listenDocumentClick()},t.listenDocumentClick=function(){var e=this;this.hooks.push(this.renderer.listen(this.document,"mousedown",function(){return e.closeList()})),this.hooks.push(this.renderer.listen(this.document,"touchstart",function(){return e.closeList()}))},t.closeList=function(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())},_createClass(e,[{key:"className",get:function(){return"direction-"+this.direction}}]),e}()).ngComponentDef=We({type:om,selectors:[["color-preset-sublist"]],factory:function(e){return new(e||om)(ba(yu),ba(fh),ba(Fs))},hostBindings:function(e,t,n){1&e&&(ra(1),_a()),2&e&&(ka(t.className),Aa())},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},consts:4,vars:6,template:function(e,t){1&e&&(Na(0,"color-preset",Yv),Ha("longPress",function(e){return t.onLongPress()}),Ha("selectionChange",function(e){return t.onSelectionChange(e)}),Da(),Na(1,"div",Xv),_a(),Da(),Na(2,"div",Xv),_a(),Da(),va(3,rm,3,6,"div",Jv)),2&e&&(da("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),ko(1),wa("background-color",t.list[0].toRgbaString()),Aa(),ko(2),wa("background-color",t.list[0].toRgbaString()),Aa(),ko(3),da("ngIf",t.showChildren))},directives:[Qv,qc,jc],pipes:[Wv],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Iv,Mv]},changeDetection:0}),om),am=((im=function(){function e(){}return e.prototype.transform=function(e,t){return e.reduce(function(n,r,i){return i%t?n:n.concat([e.slice(i,i+t)])},[])},e}()).ngPipeDef=tt({name:"chunks",type:im,factory:function(e){return new(e||im)},pure:!0}),im),um=["class","row",3,"ngClass",4,"ngFor","ngForOf"],lm=[1,"row",3,"ngClass"],cm=["ngFor","",3,"ngForOf"],hm=[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],fm=["colorPreset",""],dm=[3,"list","direction","activeColor","ngClass","selectionChange"],pm=function(e,t){return{first:e,last:t}};function gm(e,t){if(1&e){var n=Fa();Na(0,"color-preset-sublist",dm),Ha("selectionChange",function(e){return An(n),qa(3).onSelectionChange(e)}),Da()}if(2&e){var r=qa(),i=r.$implicit,o=r.first,s=r.last,a=qa(2);da("list",i)("direction",a.direction)("activeColor",a.color)("ngClass",tl(4,pm,o,s))}}var vm=[3,"ngClass","color","activeColor","selectionChange"];function mm(e,t){if(1&e){var n=Fa();Na(0,"color-preset",vm),Ha("selectionChange",function(e){return An(n),qa(3).onSelectionChange(e)}),Da()}if(2&e){var r=qa(),i=r.first,o=r.last,s=r.$implicit,a=qa(2);da("ngClass",tl(3,pm,i,o))("color",s)("activeColor",a.color)}}function ym(e,t){if(1&e&&(va(0,gm,1,7,"color-preset-sublist",hm),va(1,mm,1,6,"ng-template",null,fm,Cl)),2&e){var n=t.$implicit,r=ma(2);da("ngIf",qa(2).isList(n))("ngIfElse",r)}}function bm(e,t){if(1&e&&(Na(0,"div",lm),va(1,ym,3,2,"ng-template",cm),Da()),2&e){var n=t.$implicit;da("ngClass",tl(2,pm,t.first,t.last)),ko(1),da("ngForOf",n)}}var _m,wm=((_m=function(){function e(){this.columns=8,this.hueChange=new al(!1),this.colorChange=new al(!1),this.direction="up"}var t=e.prototype;return t.onSelectionChange=function(e){var t=e.getRgba(),n=e.getHsva(),r=(new Pg).setRgba(t.red,t.green,t.blue,t.alpha),i=(new Pg).setHsva(n.hue);this.hueChange.emit(i),this.colorChange.emit(r)},t.isList=function(e){return Array.isArray(e)},e}()).ngComponentDef=We({type:_m,selectors:[["color-presets-component"]],factory:function(e){return new(e||_m)},inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},consts:2,vars:4,template:function(e,t){1&e&&(va(0,bm,2,5,"div",um),nl(1,"chunks")),2&e&&da("ngForOf",il(1,1,t.colorPresets,t.columns))},directives:[jc,Lc,qc,sm,Qv],pipes:[am],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),_m),Cm=function(e){function t(t){var n;return(n=e.call(this)||this)._value=t,n}_inheritsLoose(t,e);var n=t.prototype;return n._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value},n.next=function(t){e.prototype.next.call(this,this._value=t)},_createClass(t,[{key:"value",get:function(){return this.getValue()}}]),t}(E),km=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Sm(e,this.compare,this.keySelector))},e}(),Sm=function(e){function t(t,n,r){var i;return(i=e.call(this,t)||this).keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}_inheritsLoose(t,e);var n=t.prototype;return n.compare=function(e,t){return e===t},n._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(m),xm=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({}),Am=function(){function e(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new E,this.presetsVisibilityChanges=new Cm(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Cm(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=function(e,t){return e.toRgbaString()==t.toRgbaString()},function(t){return t.lift(new km(e,void 0))})),this.colorPresets=[];var t=Pg.from(new Tg(255,0,0,1));this.setValue(t),this.setHueColor(t)}var t=e.prototype;return t.setValueFrom=function(e){var t=Pg.from(e);return this.initValue||(this.initValue=Pg.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this},t.setHueColor=function(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Pg).setHsva(e.getHsva().hue))},t.setValue=function(e){return this.modelValue=e,this.valueChanged.next(e),this},t.reset=function(){var e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Pg.from(new Tg(255,0,0,1)),this.hueValue=(new Pg).setHsva(e.getHsva().hue)),this.setValue(e),this},t.isAlphaChannelEnabled=function(){return this.alphaChannelVisibilityChanges.value},t.showAlphaChannel=function(){return this.alphaChannelVisibilityChanges.next(!0),this},t.hideAlphaChannel=function(){return this.alphaChannelVisibilityChanges.next(!1),this},t.finOutInputType=function(e){var t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=xm.hex,t.length>7&&(this.initType=xm.hexa));var n=t.indexOf("(");switch(t.substr(0,n)){case xm.rgba:this.initType=xm.rgba;break;case xm.rgb:this.initType=xm.rgb;break;case xm.hsla:this.initType=xm.hsla;break;case xm.hsl:this.initType=xm.hsl;break;case xm.cmyk:this.initType=xm.cmyk}},t.setColorPresets=function(e){return this.colorPresets=this.setPresets(e),this},t.setPresets=function(e){var t=[],n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var s=o;Array.isArray(s)?t.push(this.setPresets(s)):t.push(new Pg(s))}return t},t.hasPresets=function(){return this.colorPresets.length>0},t.isPresetVisible=function(){return this.presetsVisibilityChanges.value},t.showPresets=function(){return this.presetsVisibilityChanges.next(!0),this},t.hidePresets=function(){return this.presetsVisibilityChanges.next(!1),this},_createClass(e,[{key:"hue",get:function(){return this.hueValue},set:function(e){this.hueValue=e}},{key:"value",get:function(){return this.modelValue},set:function(e){this.setValue(e)}},{key:"presets",get:function(){return this.colorPresets}}]),e}();function Em(e,t){switch(t){case xm.hex:return e.toHexString();case xm.hexa:return e.toHexString(!0);case xm.rgb:return e.toRgbString();case xm.rgba:return e.toRgbaString();case xm.hsl:return e.toHslString();case xm.hsla:return e.toHslaString();default:return e.toRgbaString()}}var Tm=[3,"hue","color","colorChange"],Om=[1,"controls"],Pm=[1,"controls-row","hue-alpha"],Im=[1,"column"],Mm=[3,"colorType","color"],Nm=[3,"hue","color","hueChange","colorChange"],Dm=[3,"color","colorChange",4,"ngIf"],Vm=[1,"controls-row","presentation"],Rm=[1,"column",3,"ngSwitch"],Fm=["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],Lm=["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],Hm=[1,"column","type-column"],jm=[1,"type-btn",3,"click"],Bm=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],qm=[3,"color","colorChange"];function zm(e,t){if(1&e){var n=Fa();Na(0,"alpha-component",qm),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Da()}2&e&&da("color",qa().control.value)}var Km=["label","",3,"alpha","color","hue","colorChange","hueChange"];function Zm(e,t){if(1&e){var n=Fa();Na(0,"rgba-input-component",Km),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),nl(1,"async"),Da()}if(2&e){var r=qa();da("alpha",rl(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function Um(e,t){if(1&e){var n=Fa();Na(0,"hsla-input-component",Km),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),nl(1,"async"),Da()}if(2&e){var r=qa();da("alpha",rl(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}var Gm=["label","","prefix","#",3,"color","hue","colorChange","hueChange"];function Qm(e,t){if(1&e){var n=Fa();Na(0,"hex-input-component",Gm),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("hue",r.control.hue)}}var Wm=[3,"color","colorPresets","hue","colorChange","hueChange"];function Ym(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Wm),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var Xm,Jm=((Xm=function(){function e(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new al(!1),this.subscriptions=[]}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))}))},t.ngOnDestroy=function(){this.cdr.detach(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.length=0},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},t.changePresentation=function(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1},e}()).ngComponentDef=We({type:Xm,selectors:[["chrome-picker"]],factory:function(e){return new(e||Xm)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:18,vars:16,template:function(e,t){1&e&&(Na(0,"saturation-component",Tm),Ha("colorChange",function(e){return t.control.value=e}),Da(),Na(1,"div",Om),Na(2,"div",Pm),Na(3,"div",Im),Va(4,"indicator-component",Mm),Da(),Na(5,"div",Im),Na(6,"hue-component",Nm),Ha("hueChange",function(e){return t.control.hue=e}),Ha("colorChange",function(e){return t.control.value=e}),Da(),va(7,zm,1,1,"alpha-component",Dm),nl(8,"async"),Da(),Da(),Na(9,"div",Vm),Na(10,"div",Rm),va(11,Zm,2,5,"rgba-input-component",Fm),va(12,Um,2,5,"hsla-input-component",Fm),va(13,Qm,1,2,"hex-input-component",Lm),Da(),Na(14,"div",Hm),Na(15,"span",jm),Ha("click",function(e){return t.changePresentation()}),Da(),Da(),Da(),Da(),va(16,Ym,1,3,"color-presets-component",Bm),nl(17,"async")),2&e&&(da("hue",t.control.hue)("color",t.control.value),ko(4),da("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),ko(6),da("hue",t.control.hue)("color",t.control.value),ko(7),da("ngIf",rl(8,12,t.control.alphaChannelVisibilityChanges)),ko(10),da("ngSwitch",t.presentations[t.selectedPresentation]),ko(11),da("ngSwitchCase","rgba"),ko(12),da("ngSwitchCase","hsla"),ko(13),da("ngSwitchCase","hex"),ko(16),da("ngIf",rl(17,14,t.control.presetsVisibilityChanges)))},directives:[Vg,jg,Kg,qc,Jc,$c,Yg,lv,Cv,Pv,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) center/6px 12px no-repeat}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.3) 0 0 2px}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-webkit-transform:scale(1.18,1.18);-ms-transform:scale(1.18,1.18);transform:scale(1.18,1.18)}"],changeDetection:0}),Xm),$m=[3,"hue","color","colorChange"],ey=[1,"controls"],ty=[1,"controls-row","hue-alpha"],ny=[1,"column"],ry=[3,"hue","color","hueChange","colorChange"],iy=[3,"color","colorChange",4,"ngIf"],oy=[1,"column","indicator-column"],sy=["colorType","rgba",3,"color"],ay=[1,"controls-row","presentation"],uy=["label","",3,"color","hue","colorChange","hueChange"],ly=["label","",3,"alpha","color","hue","colorChange","hueChange"],cy=[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],hy=[3,"color","colorChange"];function fy(e,t){if(1&e){var n=Fa();Na(0,"alpha-component",hy),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Da()}2&e&&da("color",qa().control.value)}var dy=[3,"color","colorPresets","hue","colorChange","hueChange"];function py(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",dy),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var gy,vy=((gy=function(){function e(e){this.cdr=e,this.colorChange=new al(!1),this.subscriptions=[]}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))}))},t.ngOnDestroy=function(){this.cdr.detach(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.length=0},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:gy,selectors:[["sketch-picker"]],factory:function(e){return new(e||gy)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:17,vars:18,template:function(e,t){1&e&&(Na(0,"saturation-component",$m),Ha("colorChange",function(e){return t.control.value=e}),Da(),Na(1,"div",ey),Na(2,"div",ty),Na(3,"div",ny),Na(4,"hue-component",ry),Ha("hueChange",function(e){return t.control.hue=e}),Ha("colorChange",function(e){return t.control.value=e}),Da(),va(5,fy,1,1,"alpha-component",iy),nl(6,"async"),Da(),Na(7,"div",oy),Va(8,"indicator-component",sy),Da(),Da(),Na(9,"div",ay),Na(10,"div",ny),Na(11,"hex-input-component",uy),Ha("colorChange",function(e){return t.control.value=e}),Ha("hueChange",function(e){return t.control.hue=e}),Da(),Da(),Na(12,"div",ny),Na(13,"rgba-input-component",ly),Ha("colorChange",function(e){return t.control.value=e}),Ha("hueChange",function(e){return t.control.hue=e}),nl(14,"async"),Da(),Da(),Da(),Da(),va(15,py,1,3,"color-presets-component",cy),nl(16,"async")),2&e&&(da("hue",t.control.hue)("color",t.control.value),ko(4),da("hue",t.control.hue)("color",t.control.value),ko(5),da("ngIf",rl(6,12,t.control.alphaChannelVisibilityChanges)),ko(8),da("color",t.control.value),ko(11),da("color",t.control.value)("hue",t.control.hue),ko(13),da("alpha",rl(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),ko(15),da("ngIf",rl(16,16,t.control.presetsVisibilityChanges)))},directives:[Vg,Kg,qc,jg,Pv,lv,Yg,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 1px 4px}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px;width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset rgba(0,0,0,.4) 0 0 2px}[_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.4) 0 1px 4px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),gy),my=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],yy=[1,"controls"],by=[1,"controls-row","saturation-hue"],_y=[1,"column"],wy=[3,"hue","color","colorChange"],Cy=[1,"column","hue-column"],ky=["vertical","",3,"hue","color","hueChange","colorChange"],Sy=[1,"controls-row","presentation"],xy=["viewBox","0 0 1024 1024",1,"pencil"],Ay=["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],Ey=["prefix","#",3,"color","hue","colorChange","hueChange"],Ty=["colorType","hex",3,"color"],Oy=["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"];function Py(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Oy),Ha("colorChange",function(e){return An(n),qa().control.value=e}),Ha("hueChange",function(e){return An(n),qa().control.hue=e}),Da()}if(2&e){var r=qa();da("columns",9)("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var Iy,My,Ny=((Iy=function(){function e(e){this.cdr=e,this.colorChange=new al(!1),this.subscriptions=[]}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))}))},t.ngOnDestroy=function(){this.cdr.detach(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.length=0},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:Iy,selectors:[["compact-picker"]],factory:function(e){return new(e||Iy)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:15,vars:10,template:function(e,t){1&e&&(va(0,Py,1,4,"color-presets-component",my),nl(1,"async"),Na(2,"div",yy),Na(3,"div",by),Na(4,"div",_y),Na(5,"saturation-component",wy),Ha("colorChange",function(e){return t.control.value=e}),Da(),Da(),Na(6,"div",Cy),Na(7,"hue-component",ky),Ha("hueChange",function(e){return t.control.hue=e}),Ha("colorChange",function(e){return t.control.value=e}),Da(),Da(),Da(),Na(8,"div",Sy),Na(9,"div",_y),Yn(),Na(10,"svg",xy),Va(11,"path",Ay),Da(),Xn(),Na(12,"hex-input-component",Ey),Ha("colorChange",function(e){return t.control.value=e}),Ha("hueChange",function(e){return t.control.hue=e}),Da(),Da(),Na(13,"div",_y),Va(14,"indicator-component",Ty),Da(),Da(),Da()),2&e&&(da("ngIf",rl(1,8,t.control.presetsVisibilityChanges)),ko(5),da("hue",t.control.hue)("color",t.control.value),ko(7),da("hue",t.control.hue)("color",t.control.value),ko(12),da("color",t.control.value)("hue",t.control.hue),ko(14),da("color",t.control.value))},directives:[qc,Vg,Kg,Pv,jg,wm],pipes:[uh],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:rgba(0,0,0,.3) 0 0 2px,rgba(0,0,0,.3) 0 0 4px}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:0 0;border:3px solid #fff;border-radius:5px;box-shadow:rgba(0,0,0,.6) 0 0 2px}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset rgba(0,0,0,.6) 0 0 2px;border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset rgba(0,0,0,.6) 0 1px 1px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset rgba(0,0,0,.6) 0 1px 6px}"],changeDetection:0}),Iy),Dy=["direction","down",3,"color","colorPresets","colorChange"],Vy=((My=function(){function e(e){this.cdr=e,this.colorChange=new al(!1),this.subscriptions=[]}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.control||(this.control=new Am),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck(),e.colorChange.emit(Em(t,e.control.initType))}))},t.ngOnDestroy=function(){this.cdr.detach(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.length=0},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)},e}()).ngComponentDef=We({type:My,selectors:[["github-picker"]],factory:function(e){return new(e||My)(ba(Fs))},inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:1,vars:2,template:function(e,t){1&e&&(Na(0,"color-presets-component",Dy),Ha("colorChange",function(e){return t.control.value=e}),Da()),2&e&&da("color",t.control.value)("colorPresets",t.control.presets)},directives:[wm],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.15) 0 3px 12px;border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}'],changeDetection:0}),My),Ry=["direction","down",3,"columns","color","colorPresets","colorChange"],Fy=["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],Ly=["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"];function Hy(e,t){if(1&e){var n=Fa();Na(0,"color-presets-component",Ly),Ha("colorChange",function(e){return An(n),qa().childControl.value=e}),Da()}if(2&e){var r=qa();da("columns",7)("color",r.childControl.value)("colorPresets",r.childControl.presets)}}var jy,By,qy=((By=function(){function e(e){this.cdr=e,this.colorChange=new al(!1),this.control=new Am,this.childControl=new Am,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe(function(t){e.colorChange.emit(Em(t,e.childControl.initType))})),this.subscriptions.push(this.control.valueChanges.subscribe(function(t){e.cdr.markForCheck();var n=e.mapColors[t.toHexString()];n&&e.childControl.setColorPresets(n),e.colorChange.emit(Em(e.childControl.value,e.childControl.initType))}))},t.ngOnDestroy=function(){this.cdr.detach(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.length=0},t.ngOnChanges=function(e){this.color&&this.control&&Em(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)},e}()).ngComponentDef=We({type:By,selectors:[["swatches-picker"]],factory:function(e){return new(e||By)(ba(Fs))},inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[Ga()],consts:2,vars:4,template:function(e,t){1&e&&(Na(0,"color-presets-component",Ry),Ha("colorChange",function(e){return t.control.value=e}),Da(),va(1,Hy,1,3,"color-presets-component",Fy)),2&e&&(da("columns",7)("color",t.control.value)("colorPresets",t.control.presets),ko(1),da("ngIf",t.childControl.presets.length))},directives:[wm,qc],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.3) 0 0 2px;border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:rgba(0,0,0,.2) 0 0 5px 2px}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),By),zy=((jy=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:Rg,useValue:t||new Rg}]}},e}()).ngModuleDef=Je({type:jy}),jy.ngInjectorDef=se({factory:function(e){return new(e||jy)},providers:[Rg],imports:[[lh]]}),jy),Ky=n("Eh/9"),Zy=[3,"control",4,"ngIf"],Uy=["class","overlay",3,"click",4,"ngIf"],Gy=[3,"control"];function Qy(e,t){1&e&&Va(0,"chrome-picker",Gy),2&e&&da("control",qa().colorControl)}var Wy=[1,"overlay",3,"click"];function Yy(e,t){if(1&e){var n=Fa();Na(0,"div",Wy),Ha("click",function(e){return An(n),qa().overlayClick(e)}),Da()}}var Xy,Jy,$y,eb,tb=((Xy=function(){function e(){this.colorControl=new Am,this.isVisible=!1,this.colorChange=new al}var t=e.prototype;return t.ngOnInit=function(){var e=this;this.colorControl.valueChanges.subscribe(function(t){return e.colorChange.emit(t.toHexString())})},t.showColorPicker=function(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)},t.overlayClick=function(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1},_createClass(e,[{key:"color",set:function(e){this.colorControl.setValueFrom(e)}},{key:"background",get:function(){return this.colorControl.value.toHexString()}}]),e}()).ngComponentDef=We({type:Xy,selectors:[["chrome-wrapper"]],factory:function(e){return new(e||Xy)},hostBindings:function(e,t,n){1&e&&(ra(1),Ha("click",function(e){return t.showColorPicker(e)}),_a()),2&e&&(wa("background-color",t.background),Aa())},inputs:{color:"color"},outputs:{colorChange:"colorChange"},consts:2,vars:2,template:function(e,t){1&e&&(va(0,Qy,1,1,"chrome-picker",Zy),va(1,Yy,1,0,"div",Uy)),2&e&&(da("ngIf",t.isVisible),ko(1),da("ngIf",t.isVisible))},directives:[qc,Jm],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:0 0;left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),Xy),nb=[1,"jumbotron"],rb=[1,"background"],ib=[1,"container"],ob=[1,"row"],sb=[1,"col"],ab=[1,"display-4"],ub=["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],lb=[1,"row","pickers-row"],cb=[1,"col","col-md-6","text-right"],hb=[3,"color","colorChange"],fb=[1,"col","col-md-6"],db=[1,"card"],pb=[1,"card-header"],gb=[1,"card-block"],vb=[2,"padding","0 0 0 40px"],mb=["id","installation",1,"card"],yb=[1,"prettify"],bb=["id","usage",1,"card"],_b=[1,"col","col-lg-4"],wb=[1,"info-row"],Cb=[3,"control"],kb=[1,"col","col-lg-8"],Sb=[1,"buttons-row"],xb=[1,"btn","btn-primary",3,"click"],Ab=["id","wrap-component",1,"card"],Eb=[1,"table","table-bordered","table-striped"],Tb=["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"],Ob=((eb=function(){function e(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Am).setValueFrom(Og.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Am).setValueFrom("#A6771C"),this.compactControl=new Am,this.githubControl=(new Am).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}return e.prototype.ngAfterViewInit=function(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(function(e){return e.innerHTML=Ky.prettyPrintOne(e.innerHTML)})},e}()).ngComponentDef=We({type:eb,selectors:[["app-root"]],factory:function(e){return new(e||eb)(ba(pu))},consts:726,vars:47,template:function(e,t){if(1&e){Na(0,"div",nb),Na(1,"div",rb),_a(),Da(),Na(2,"div",ib),Na(3,"div",ob),Na(4,"div",sb),Na(5,"h1",ab),za(6,"@iplab/ngx-color-picker"),Da(),Va(7,"br"),Na(8,"a",ub),za(9,"GitHub"),Da(),Da(),Da(),Na(10,"div",lb),Na(11,"div",cb),Na(12,"sketch-picker",hb),Ha("colorChange",function(e){return t.color=e}),Da(),Da(),Na(13,"div",fb),Na(14,"chrome-picker",hb),Ha("colorChange",function(e){return t.color=e}),Da(),Da(),Da(),Da(),Da(),Na(15,"div",ib),Na(16,"div",db),Na(17,"div",pb),za(18,"Getting started"),Da(),Na(19,"div",gb),Na(20,"ol"),Na(21,"li"),za(22,"Fork and clone this repo"),Da(),Na(23,"li"),za(24,"npm install"),Da(),Na(25,"li"),za(26,'Open a terminal and type "npm run start"'),Da(),Da(),Na(27,"p",vb),Na(28,"b"),za(29,"or"),Da(),Da(),Na(30,"ol"),Na(31,"li"),za(32,"npm install @iplab/ngx-color-picker --save"),Da(),Na(33,"li"),za(34,"ng serve --open"),Da(),Da(),Da(),Da(),Va(35,"br"),Na(36,"div",db),Na(37,"div",pb),za(38,"Description"),Da(),Na(39,"div",gb),Na(40,"p"),za(41,"Pure Angular color picker library."),Da(),Na(42,"ul"),Na(43,"li"),za(44,"It's an Angular color picker"),Da(),Na(45,"li"),za(46,"Compatible with Angular 5+ versions"),Da(),Na(47,"li"),za(48,"No external dependency"),Da(),Na(49,"li"),za(50,"Simple to configure"),Da(),Na(51,"li"),za(52,"Easy to use"),Da(),Da(),Da(),Da(),Va(53,"br"),Na(54,"div",mb),Na(55,"div",pb),za(56,"Installation"),Da(),Na(57,"div",gb),Na(58,"p"),za(59,"To install this component to an external project, follow the procedure:"),Da(),Na(60,"ol"),Na(61,"li"),Na(62,"code"),za(63,"npm install @iplab/ngx-color-picker --save"),Da(),Da(),Na(64,"li"),Na(65,"pre",yb),za(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),Na(67,"b"),za(68,"BrowserAnimationsModule"),Da(),za(69," or "),Na(70,"b"),za(71,"NoopAnimationsModule"),Da(),za(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),Da(),Da(),Na(73,"li"),Na(74,"code"),za(75,''),Da(),Da(),Da(),Da(),Da(),Va(76,"br"),Na(77,"div",bb),Na(78,"div",pb),za(79,"Usage"),Da(),Na(80,"div",gb),Na(81,"h6"),za(82,"predefined components"),Da(),Na(83,"p"),za(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),Va(85,"br"),za(86," can be used with direct color binding "),Na(87,"b"),za(88,"or/and"),Da(),za(89," with control which provides greater flexibility"),Da(),Na(90,"p"),Na(91,"code"),za(92,''),Da(),Va(93,"br"),Na(94,"code"),za(95,''),Da(),Va(96,"br"),Na(97,"code"),za(98,''),Da(),Va(99,"br"),Na(100,"code"),za(101,''),Da(),Va(102,"br"),Na(103,"code"),za(104,''),Da(),Da(),Va(105,"hr"),Na(106,"h6"),za(107,"[color] attribute"),Da(),Na(108,"p"),za(109,"When binding over attribute "),Na(110,"b"),za(111,"[color]"),Da(),za(112," is used, component try to determine which value type is used so the output would be the same."),Va(113,"br"),Na(114,"b"),za(115,"Examples:"),Da(),Va(116,"br"),Na(117,"code"),za(118,''),Da(),za(119," -> output is "),Na(120,"b"),za(121,"rgb"),Da(),Va(122,"br"),Na(123,"code"),za(124,''),Da(),za(125," -> output is "),Na(126,"b"),za(127,"rgba"),Da(),Va(128,"br"),Na(129,"code"),za(130,''),Da(),za(131," -> output is "),Na(132,"b"),za(133,"hsl"),Da(),Va(134,"br"),Na(135,"code"),za(136,''),Da(),za(137," -> output is "),Na(138,"b"),za(139,"hex"),Da(),Da(),Va(140,"hr"),Na(141,"h6"),za(142,"[control] attribute"),Da(),Na(143,"p"),za(144,"When binding over "),Na(145,"b"),za(146,"[control]"),Da(),za(147," user have greater control over color output and all events"),Va(148,"br"),Na(149,"b"),za(150,"Examples:"),Da(),Va(151,"br"),Na(152,"code"),za(153,''),Da(),Da(),Va(154,"hr"),Na(155,"h6"),za(156,"color indicator"),Da(),Na(157,"p"),za(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),Va(159,"br"),za(160," Text which is displayed on mouseover can be configured over NgModule configuration"),Da(),Na(161,"pre",yb),za(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Da(),Va(163,"hr"),Na(164,"h6"),za(165,"color presets"),Da(),Na(166,"p"),za(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),Va(168,"br"),za(169," Text which is displayed on mouseover can be configured over NgModule configuration"),Da(),Na(170,"pre",yb),hn=!1,za(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),hn=!0,Da(),Va(172,"hr"),Na(173,"h6"),za(174,"all color picker parts"),Da(),Na(175,"p"),za(176,"Color picker library exports all parts to enable custom components builds"),Va(177,"br"),za(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),Da(),Na(179,"pre",yb),za(180,'\n\n\n\n\n\n\n\n\n\n'),Da(),Na(181,"h6"),za(182,"attributes explanation"),Da(),Na(183,"p"),Na(184,"b"),za(185,"color =>"),Da(),za(186," currently selected color (output color)"),Va(187,"br"),Na(188,"b"),za(189,"hue =>"),Da(),za(190," color used internally as current hue color"),Va(191,"br"),Na(192,"b"),za(193,"colorType =>"),Da(),za(194," specify which type of color should be copied to the clipboard"),Va(195,"br"),Na(196,"b"),za(197,"vertical =>"),Da(),za(198," should component be placed horizontally or vertically"),Va(199,"br"),Na(200,"b"),za(201,"alpha =>"),Da(),za(202," should component display alpha channel"),Va(203,"br"),Na(204,"b"),za(205,"label =>"),Da(),za(206," whether the label will be displayed or not (rgba, hsla, hex)"),Va(207,"br"),Na(208,"b"),za(209,"prefix =>"),Da(),za(210," definition of label prefix"),Va(211,"br"),Na(212,"b"),za(213,"colorPresets =>"),Da(),za(214," list of colors used as presets "),Da(),Da(),Da(),Va(215,"br"),Na(216,"div",db),Na(217,"div",pb),za(218,"Chrome color picker"),Da(),Na(219,"div",gb),Na(220,"div",ob),Na(221,"div",_b),Na(222,"div",wb),Na(223,"code"),za(224),Da(),Na(225,"code"),za(226),Da(),Na(227,"code"),za(228),Da(),Na(229,"code"),za(230),Da(),Na(231,"code"),za(232),Da(),Na(233,"code"),za(234),Da(),Na(235,"code"),za(236),Da(),Na(237,"code"),za(238),Da(),Na(239,"code"),za(240),Da(),Da(),Va(241,"chrome-picker",Cb),Da(),Na(242,"div",kb),Na(243,"p"),za(244,"Component code"),Da(),Na(245,"pre",yb),za(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),Da(),Na(247,"p"),za(248,"Template code"),Da(),Na(249,"pre",yb),za(250,''),Da(),Da(),Da(),Na(251,"div",Sb),Na(252,"button",xb),Ha("click",function(e){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()}),za(253,"Toggle presets visibility"),Da(),za(254," \xa0 "),Na(255,"button",xb),Ha("click",function(e){return t.chromeControl.reset()}),za(256,"Reset to initial"),Da(),za(257," \xa0 "),Na(258,"button",xb),Ha("click",function(e){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()}),za(259,"Toggle alpha channel"),Da(),Da(),Da(),Da(),Va(260,"br"),Na(261,"div",db),Na(262,"div",pb),za(263,"Sketch color picker"),Da(),Na(264,"div",gb),Na(265,"div",ob),Na(266,"div",_b),Na(267,"div",wb),Na(268,"code"),za(269),Da(),Na(270,"code"),za(271),Da(),Na(272,"code"),za(273),Da(),Na(274,"code"),za(275),Da(),Na(276,"code"),za(277),Da(),Na(278,"code"),za(279),Da(),Na(280,"code"),za(281),Da(),Na(282,"code"),za(283),Da(),Na(284,"code"),za(285),Da(),Da(),Va(286,"sketch-picker",Cb),Da(),Na(287,"div",kb),Na(288,"p"),za(289,"Component code"),Da(),Na(290,"pre",yb),za(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),Da(),Na(292,"p"),za(293,"Template code"),Da(),Na(294,"pre",yb),za(295,''),Da(),Da(),Da(),Na(296,"div",Sb),Na(297,"button",xb),Ha("click",function(e){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()}),za(298,"Toggle presets visibility"),Da(),za(299," \xa0 "),Na(300,"button",xb),Ha("click",function(e){return t.sketchControl.reset()}),za(301,"Reset to initial"),Da(),za(302," \xa0 "),Na(303,"button",xb),Ha("click",function(e){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()}),za(304,"Toggle alpha channel"),Da(),Da(),Da(),Da(),Va(305,"br"),Na(306,"div",db),Na(307,"div",pb),za(308,"Compact color picker"),Da(),Na(309,"div",gb),Na(310,"div",ob),Na(311,"div",_b),Na(312,"div",wb),Na(313,"code"),za(314),Da(),Na(315,"code"),za(316),Da(),Na(317,"code"),za(318),Da(),Na(319,"code"),za(320),Da(),Na(321,"code"),za(322),Da(),Na(323,"code"),za(324),Da(),Na(325,"code"),za(326),Da(),Na(327,"code"),za(328),Da(),Na(329,"code"),za(330),Da(),Da(),Va(331,"compact-picker",Cb),Da(),Na(332,"div",kb),Na(333,"p"),za(334,"Component code"),Da(),Na(335,"pre",yb),za(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),Da(),Na(337,"p"),za(338,"Template code"),Da(),Na(339,"pre",yb),za(340,''),Da(),Da(),Da(),Na(341,"div",Sb),Na(342,"button",xb),Ha("click",function(e){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()}),za(343,"Toggle presets visibility"),Da(),za(344," \xa0 "),Na(345,"button",xb),Ha("click",function(e){return t.compactControl.reset()}),za(346,"Reset to initial"),Da(),Da(),Da(),Da(),Va(347,"br"),Na(348,"div",db),Na(349,"div",pb),za(350,"Github color picker"),Da(),Na(351,"div",gb),Na(352,"div",ob),Na(353,"div",_b),Na(354,"div",wb),Na(355,"code"),za(356),Da(),Na(357,"code"),za(358),Da(),Na(359,"code"),za(360),Da(),Na(361,"code"),za(362),Da(),Na(363,"code"),za(364),Da(),Na(365,"code"),za(366),Da(),Na(367,"code"),za(368),Da(),Na(369,"code"),za(370),Da(),Na(371,"code"),za(372),Da(),Da(),Va(373,"github-picker",Cb),Da(),Na(374,"div",kb),Na(375,"p"),za(376,"Component code"),Da(),Na(377,"pre",yb),za(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),Da(),Na(379,"p"),za(380,"Template code"),Da(),Na(381,"pre",yb),za(382,''),Da(),Da(),Da(),Na(383,"div",Sb),Na(384,"button",xb),Ha("click",function(e){return t.githubControl.reset()}),za(385,"Reset to initial"),Da(),Da(),Da(),Da(),Va(386,"br"),Na(387,"div",db),Na(388,"div",pb),za(389,"Swatches color picker"),Da(),Na(390,"div",gb),Na(391,"div",ob),Na(392,"div",_b),Na(393,"p"),za(394,"Swatches component only supports binding over color attribute"),Da(),Na(395,"div",wb),Na(396,"code"),za(397),Da(),Va(398,"br"),Da(),Na(399,"swatches-picker",hb),Ha("colorChange",function(e){return t.swatchesColor=e}),Da(),Da(),Na(400,"div",kb),Na(401,"p"),za(402,"Component code"),Da(),Na(403,"pre",yb),za(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),Da(),Na(405,"p"),za(406,"Template code"),Da(),Na(407,"pre",yb),za(408,''),Da(),Da(),Da(),Da(),Da(),Va(409,"br"),Na(410,"div",Ab),Na(411,"div",pb),za(412,"How to wrapp color picker"),Da(),Na(413,"div",gb),Na(414,"div",ob),Na(415,"div",_b),Na(416,"div",wb),Na(417,"code"),za(418),Da(),Va(419,"br"),Da(),Na(420,"chrome-wrapper",hb),Ha("colorChange",function(e){return t.wrapperColor=e}),Da(),Da(),Na(421,"div",kb),Na(422,"p"),za(423,"Component code"),Da(),Na(424,"pre",yb),za(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n

\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),Da(),Na(426,"p"),za(427,"Use case"),Da(),Na(428,"pre",yb),za(429,''),Da(),Da(),Da(),Da(),Da(),Va(430,"br"),Na(431,"div",db),Na(432,"div",pb),za(433,"ColorPickerControl methods"),Da(),Na(434,"div",gb),Na(435,"table",Eb),Na(436,"thead"),Na(437,"tr"),Na(438,"th"),za(439,"Property"),Da(),Na(440,"th"),za(441,"Type"),Da(),Na(442,"th"),za(443,"Description"),Da(),Da(),Da(),Na(444,"tbody"),Na(445,"tr"),Na(446,"td"),za(447,"setValueFrom"),Da(),Na(448,"td"),Na(449,"code"),za(450,"Function"),Da(),Da(),Na(451,"td"),za(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),Da(),Da(),Na(453,"tr"),Na(454,"td"),za(455,"value"),Da(),Na(456,"td"),Na(457,"code"),za(458,"Getter.value"),Da(),Da(),Na(459,"td"),za(460,"get value as a Color object"),Da(),Da(),Na(461,"tr"),Na(462,"td"),za(463,"reset"),Da(),Na(464,"td"),Na(465,"code"),za(466,"Function"),Da(),Da(),Na(467,"td"),za(468,"reset value to initial state"),Da(),Da(),Na(469,"tr"),Na(470,"td"),za(471,"valueChanges"),Da(),Na(472,"td"),Na(473,"code"),za(474,"Observable"),Da(),Da(),Na(475,"td"),za(476,"Used to observe component value changes"),Da(),Da(),Na(477,"tr"),Na(478,"td"),za(479,"isAlphaChannelEnabled"),Da(),Na(480,"td"),Na(481,"code"),za(482,"Function"),Da(),Da(),Na(483,"td"),za(484,"return is alpha changel enabled"),Da(),Da(),Na(485,"tr"),Na(486,"td"),za(487,"showAlphaChannel"),Da(),Na(488,"td"),Na(489,"code"),za(490,"Function"),Da(),Da(),Na(491,"td"),za(492,"show alpha channel"),Da(),Da(),Na(493,"tr"),Na(494,"td"),za(495,"hideAlphaChannel"),Da(),Na(496,"td"),Na(497,"code"),za(498,"Function"),Da(),Da(),Na(499,"td"),za(500,"hide alpha channel"),Da(),Da(),Na(501,"tr"),Na(502,"td"),za(503,"alphaChannelVisibilityChanges"),Da(),Na(504,"td"),Na(505,"code"),za(506,"BehaviorSubject"),Da(),Da(),Na(507,"td"),za(508,"Used to observe alpha channel changes"),Da(),Da(),Na(509,"tr"),Na(510,"td"),za(511,"setColorPresets"),Da(),Na(512,"td"),Na(513,"code"),za(514,"Function"),Da(),Da(),Na(515,"td"),za(516,"define color preset list"),Da(),Da(),Na(517,"tr");Na(518,"td"),za(519,"presets"),Da(),Na(520,"td"),Na(521,"code"),za(522,"Getter.presets"),Da(),Da(),Na(523,"td"),za(524,"get color presets"),Da(),Da(),Na(525,"tr"),Na(526,"td"),za(527,"hasPresets"),Da(),Na(528,"td"),Na(529,"code"),za(530,"Function"),Da(),Da(),Na(531,"td"),za(532,"return status of predefined color presets"),Da(),Da(),Na(533,"tr"),Na(534,"td"),za(535,"showPresets"),Da(),Na(536,"td"),Na(537,"code"),za(538,"Function"),Da(),Da(),Na(539,"td"),za(540,"show predefined color presets"),Da(),Da(),Na(541,"tr"),Na(542,"td"),za(543,"hidePresets"),Da(),Na(544,"td"),Na(545,"code"),za(546,"Function"),Da(),Da(),Na(547,"td"),za(548,"hide predefined color presets"),Da(),Da(),Na(549,"tr"),Na(550,"td"),za(551,"presetsVisibilityChanges"),Da(),Na(552,"td"),Na(553,"code"),za(554,"BehaviorSubject"),Da(),Da(),Na(555,"td"),za(556,"Used to observe color preset visibility"),Da(),Da(),Da(),Da(),Da(),Da(),Va(557,"br"),Na(558,"div",db),Na(559,"div",pb),za(560,"Color methods"),Da(),Na(561,"div",gb),Na(562,"table",Eb),Na(563,"thead"),Na(564,"tr"),Na(565,"th"),za(566,"Property"),Da(),Na(567,"th"),za(568,"Type"),Da(),Na(569,"th"),za(570,"Description"),Da(),Da(),Da(),Na(571,"tbody"),Na(572,"tr"),Na(573,"td"),za(574,"Color.from"),Da(),Na(575,"td"),Na(576,"code"),za(577,"static method"),Da(),Da(),Na(578,"td"),za(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),Da(),Da(),Na(580,"tr"),Na(581,"td"),za(582,"clone"),Da(),Na(583,"td"),Na(584,"code"),za(585,"Function"),Da(),Da(),Na(586,"td"),za(587,"create new Color object"),Da(),Da(),Na(588,"tr"),Na(589,"td"),za(590,"setFromString"),Da(),Na(591,"td"),Na(592,"code"),za(593,"Function"),Da(),Da(),Na(594,"td"),za(595,"change the value by providing the string"),Da(),Da(),Na(596,"tr"),Na(597,"td"),za(598,"setHsva"),Da(),Na(599,"td"),Na(600,"code"),za(601,"Function"),Da(),Da(),Na(602,"td"),za(603,"change the value by providing hsv values"),Da(),Da(),Na(604,"tr"),Na(605,"td"),za(606,"setRgba"),Da(),Na(607,"td"),Na(608,"code"),za(609,"Function"),Da(),Da(),Na(610,"td"),za(611,"change the value by providing rgb values"),Da(),Da(),Na(612,"tr"),Na(613,"td"),za(614,"setHsla"),Da(),Na(615,"td"),Na(616,"code"),za(617,"Function"),Da(),Da(),Na(618,"td"),za(619,"change the value by providing hsl values"),Da(),Da(),Na(620,"tr"),Na(621,"td"),za(622,"toHexString"),Da(),Na(623,"td"),Na(624,"code"),za(625,"Function"),Da(),Da(),Na(626,"td"),za(627,"convert Color object to hex string"),Da(),Da(),Na(628,"tr"),Na(629,"td"),za(630,"toRgbString"),Da(),Na(631,"td"),Na(632,"code"),za(633,"Function"),Da(),Da(),Na(634,"td"),za(635,"convert Color object to rgb string"),Da(),Da(),Na(636,"tr"),Na(637,"td"),za(638,"toRgbaString"),Da(),Na(639,"td"),Na(640,"code"),za(641,"Function"),Da(),Da(),Na(642,"td"),za(643,"convert Color object to rgba string"),Da(),Da(),Na(644,"tr"),Na(645,"td"),za(646,"toHslString"),Da(),Na(647,"td"),Na(648,"code"),za(649,"Function"),Da(),Da(),Na(650,"td"),za(651,"convert Color object to hsl string"),Da(),Da(),Na(652,"tr"),Na(653,"td"),za(654,"toHslaString"),Da(),Na(655,"td"),Na(656,"code"),za(657,"Function"),Da(),Da(),Na(658,"td"),za(659,"convert Color object to hsla string"),Da(),Da(),Na(660,"tr"),Na(661,"td"),za(662,"toHsvString"),Da(),Na(663,"td"),Na(664,"code"),za(665,"Function"),Da(),Da(),Na(666,"td"),za(667,"convert Color object to hsv string"),Da(),Da(),Na(668,"tr"),Na(669,"td"),za(670,"toHsvaString"),Da(),Na(671,"td"),Na(672,"code"),za(673,"Function"),Da(),Da(),Na(674,"td"),za(675,"convert Color object to hsva string"),Da(),Da(),Na(676,"tr"),Na(677,"td"),za(678,"toCmykString"),Da(),Na(679,"td"),Na(680,"code"),za(681,"Function"),Da(),Da(),Na(682,"td"),za(683,"convert Color object to cmyk string"),Da(),Da(),Na(684,"tr"),Na(685,"td"),za(686,"getHsva"),Da(),Na(687,"td"),Na(688,"code"),za(689,"Function"),Da(),Da(),Na(690,"td"),za(691,"return Hsva object"),Da(),Da(),Na(692,"tr"),Na(693,"td"),za(694,"getRgba"),Da(),Na(695,"td"),Na(696,"code"),za(697,"Function"),Da(),Da(),Na(698,"td"),za(699,"return Rgba object"),Da(),Da(),Na(700,"tr"),Na(701,"td"),za(702,"getHsla"),Da(),Na(703,"td"),Na(704,"code"),za(705,"Function"),Da(),Da(),Na(706,"td"),za(707,"return Hsla object"),Da(),Da(),Na(708,"tr"),Na(709,"td"),za(710,"getCmyk"),Da(),Na(711,"td"),Na(712,"code"),za(713,"Function"),Da(),Da(),Na(714,"td"),za(715,"return Cmyk object"),Da(),Da(),Da(),Da(),Da(),Da(),Va(716,"br"),Na(717,"div",db),Na(718,"div",pb),za(719,"ColorsTable"),Da(),Na(720,"div",gb),Na(721,"p"),za(722,"ColorTable is class with static properties which represent Rgba colors defined by "),Na(723,"a",Tb),za(724,"list of the X11 colors"),Da(),Da(),Da(),Da(),Va(725,"br"),Da()}2&e&&(ko(1),wa("background-color",t.color),Aa(),ko(12),da("color",t.color),ko(14),da("color",t.color),ko(224),Ka("selected hex: ",t.chromeControl.value.toHexString(),""),ko(226),Ka("selected hexa: ",t.chromeControl.value.toHexString(!0),""),ko(228),Ka("selected rgb: ",t.chromeControl.value.toRgbString(),""),ko(230),Ka("selected rgba: ",t.chromeControl.value.toRgbaString(),""),ko(232),Ka("selected hsl: ",t.chromeControl.value.toHslString(),""),ko(234),Ka("selected hsla: ",t.chromeControl.value.toHslaString(),""),ko(236),Ka("selected hsv: ",t.chromeControl.value.toHsvString(),""),ko(238),Ka("selected hsva: ",t.chromeControl.value.toHsvaString(),""),ko(240),Ka("selected cmyk: ",t.chromeControl.value.toCmykString(),""),ko(241),da("control",t.chromeControl),ko(269),Ka("selected hex: ",t.sketchControl.value.toHexString(),""),ko(271),Ka("selected hexa: ",t.sketchControl.value.toHexString(!0),""),ko(273),Ka("selected rgb: ",t.sketchControl.value.toRgbString(),""),ko(275),Ka("selected rgba: ",t.sketchControl.value.toRgbaString(),""),ko(277),Ka("selected hsl: ",t.sketchControl.value.toHslString(),""),ko(279),Ka("selected hsla: ",t.sketchControl.value.toHslaString(),""),ko(281),Ka("selected hsv: ",t.sketchControl.value.toHsvString(),""),ko(283),Ka("selected hsva: ",t.sketchControl.value.toHsvaString(),""),ko(285),Ka("selected cmyk: ",t.sketchControl.value.toCmykString(),""),ko(286),da("control",t.sketchControl),ko(314),Ka("selected hex: ",t.compactControl.value.toHexString(),""),ko(316),Ka("selected hexa: ",t.compactControl.value.toHexString(!0),""),ko(318),Ka("selected rgb: ",t.compactControl.value.toRgbString(),""),ko(320),Ka("selected rgba: ",t.compactControl.value.toRgbaString(),""),ko(322),Ka("selected hsl: ",t.compactControl.value.toHslString(),""),ko(324),Ka("selected hsla: ",t.compactControl.value.toHslaString(),""),ko(326),Ka("selected hsv: ",t.compactControl.value.toHsvString(),""),ko(328),Ka("selected hsva: ",t.compactControl.value.toHsvaString(),""),ko(330),Ka("selected cmyk: ",t.compactControl.value.toCmykString(),""),ko(331),da("control",t.compactControl),ko(356),Ka("selected hex: ",t.githubControl.value.toHexString(),""),ko(358),Ka("selected hexa: ",t.githubControl.value.toHexString(!0),""),ko(360),Ka("selected rgb: ",t.githubControl.value.toRgbString(),""),ko(362),Ka("selected rgba: ",t.githubControl.value.toRgbaString(),""),ko(364),Ka("selected hsl: ",t.githubControl.value.toHslString(),""),ko(366),Ka("selected hsla: ",t.githubControl.value.toHslaString(),""),ko(368),Ka("selected hsv: ",t.githubControl.value.toHsvString(),""),ko(370),Ka("selected hsva: ",t.githubControl.value.toHsvaString(),""),ko(372),Ka("selected cmyk: ",t.githubControl.value.toCmykString(),""),ko(373),da("control",t.githubControl),ko(397),Ka("selected color: ",t.swatchesColor,""),ko(399),da("color",t.swatchesColor),ko(418),Ka("selected color: ",t.wrapperColor,""),ko(420),da("color",t.wrapperColor))},directives:[vy,Jm,Ny,Vy,qy,tb],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:0 0}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:0}"]}),eb),Pb=(($y=function(){}).ngModuleDef=Je({type:$y}),$y.ngInjectorDef=se({factory:function(e){return new(e||$y)},imports:[[If,zy]]}),$y),Ib=((Jy=function(){}).ngModuleDef=Je({type:Jy,bootstrap:[Ob]}),Jy.ngInjectorDef=se({factory:function(e){return new(e||Jy)},providers:[],imports:[[If,zy,gg,Pb]]}),Jy);(function(){if(gi)throw new Error("Cannot enable prod mode after platform setup.");pi=!1})(),Of().bootstrapModule(Ib).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/projects/iplab/ngx-color-picker/package.json b/projects/iplab/ngx-color-picker/package.json index d35d7db..8c787ec 100644 --- a/projects/iplab/ngx-color-picker/package.json +++ b/projects/iplab/ngx-color-picker/package.json @@ -3,7 +3,7 @@ "description": "", "homepage": "https://github.com/pIvan/ngx-color-picker", "bugs": "https://github.com/pIvan/ngx-color-picker/issues", - "version": "1.0.4", + "version": "1.0.5", "author": "Ivan Pintar", "license": "MIT", "readmeFilename": "README.md", diff --git a/projects/iplab/ngx-color-picker/src/lib/components/chrome-picker/chrome-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/chrome-picker/chrome-picker.component.ts index 9925444..1ba774d 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/chrome-picker/chrome-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/chrome-picker/chrome-picker.component.ts @@ -13,6 +13,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `chrome-picker`, @@ -37,6 +38,8 @@ export class ChromePickerComponent implements OnInit, OnChanges, OnDestroy { @Output() public colorChange: EventEmitter = new EventEmitter(false); + private subscriptions: Array = []; + constructor(private readonly cdr: ChangeDetectorRef) { } @@ -78,15 +81,18 @@ export class ChromePickerComponent implements OnInit, OnChanges, OnDestroy { ]); } - this.control.valueChanges.subscribe((value) => { - this.cdr.markForCheck(); - this.colorChange.emit(getValueByType(value, this.control.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.cdr.markForCheck(); + this.colorChange.emit(getValueByType(value, this.control.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); this.cdr.detach(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { @@ -100,4 +106,4 @@ export class ChromePickerComponent implements OnInit, OnChanges, OnDestroy { this.selectedPresentation === this.presentations.length - 1 ? 0 : this.selectedPresentation + 1; } -} \ No newline at end of file +} diff --git a/projects/iplab/ngx-color-picker/src/lib/components/compact-picker/compact-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/compact-picker/compact-picker.component.ts index 3453738..a4e24ae 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/compact-picker/compact-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/compact-picker/compact-picker.component.ts @@ -13,6 +13,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `compact-picker`, @@ -34,6 +35,8 @@ export class CompactPickerComponent implements OnInit, OnChanges, OnDestroy { @Output() public colorChange: EventEmitter = new EventEmitter(false); + private subscriptions: Array = []; + constructor(private readonly cdr: ChangeDetectorRef) { } @@ -57,15 +60,18 @@ export class CompactPickerComponent implements OnInit, OnChanges, OnDestroy { ]); } - this.control.valueChanges.subscribe((value) => { - this.cdr.markForCheck(); - this.colorChange.emit(getValueByType(value, this.control.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.cdr.markForCheck(); + this.colorChange.emit(getValueByType(value, this.control.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); this.cdr.detach(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { diff --git a/projects/iplab/ngx-color-picker/src/lib/components/github-picker/github-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/github-picker/github-picker.component.ts index bd94f6b..a45ab53 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/github-picker/github-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/github-picker/github-picker.component.ts @@ -13,6 +13,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `github-picker`, @@ -34,6 +35,8 @@ export class GithubPickerComponent implements OnInit, OnChanges, OnDestroy { @Output() public colorChange: EventEmitter = new EventEmitter(false); + private subscriptions: Array = []; + constructor(private readonly cdr: ChangeDetectorRef) { } @@ -58,15 +61,18 @@ export class GithubPickerComponent implements OnInit, OnChanges, OnDestroy { ]); } - this.control.valueChanges.subscribe((value) => { - this.cdr.markForCheck(); - this.colorChange.emit(getValueByType(value, this.control.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.cdr.markForCheck(); + this.colorChange.emit(getValueByType(value, this.control.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); this.cdr.detach(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { diff --git a/projects/iplab/ngx-color-picker/src/lib/components/ip-picker/ip-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/ip-picker/ip-picker.component.ts index ce8189e..3ef76b2 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/ip-picker/ip-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/ip-picker/ip-picker.component.ts @@ -12,6 +12,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `ip-picker`, @@ -33,6 +34,8 @@ export class IpPickerComponent implements OnInit, OnChanges, OnDestroy { @Output() public colorChange: EventEmitter = new EventEmitter(false); + private subscriptions: Array = []; + constructor() { } @@ -74,13 +77,16 @@ export class IpPickerComponent implements OnInit, OnChanges, OnDestroy { this.control.setValueFrom(this.color); } - this.control.valueChanges.subscribe((value) => { - this.colorChange.emit(getValueByType(value, this.control.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.colorChange.emit(getValueByType(value, this.control.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { diff --git a/projects/iplab/ngx-color-picker/src/lib/components/sketch-picker/sketch-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/sketch-picker/sketch-picker.component.ts index 7f663ab..7407bfe 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/sketch-picker/sketch-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/sketch-picker/sketch-picker.component.ts @@ -13,6 +13,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `sketch-picker`, @@ -34,6 +35,8 @@ export class SketchPickerComponent implements OnInit, OnChanges, OnDestroy { @Output() public colorChange: EventEmitter = new EventEmitter(false); + private subscriptions: Array = []; + constructor(private readonly cdr: ChangeDetectorRef) { } @@ -58,15 +61,18 @@ export class SketchPickerComponent implements OnInit, OnChanges, OnDestroy { ]); } - this.control.valueChanges.subscribe((value) => { - this.cdr.markForCheck(); - this.colorChange.emit(getValueByType(value, this.control.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.cdr.markForCheck(); + this.colorChange.emit(getValueByType(value, this.control.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); this.cdr.detach(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { diff --git a/projects/iplab/ngx-color-picker/src/lib/components/swatches-picker/swatches-picker.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/swatches-picker/swatches-picker.component.ts index b84a2a0..a2463f9 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/swatches-picker/swatches-picker.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/swatches-picker/swatches-picker.component.ts @@ -13,6 +13,7 @@ import { import { ColorString } from './../../helpers/color.class'; import { ColorPickerControl } from './../../helpers/control.class'; import { getValueByType } from './../../helpers/helper.functions'; +import { Subscription } from 'rxjs'; @Component({ selector: `swatches-picker`, @@ -33,6 +34,7 @@ export class SwatchesPickerComponent implements OnInit, OnChanges, OnDestroy { public control: ColorPickerControl = new ColorPickerControl(); public childControl: ColorPickerControl = new ColorPickerControl(); + private subscriptions: Array = []; private mapColors = { '#E6315B': [ @@ -95,24 +97,28 @@ export class SwatchesPickerComponent implements OnInit, OnChanges, OnDestroy { */ this.childControl.setColorPresets(this.mapColors['#E6315B']); - this.childControl.valueChanges.subscribe((value) => { - this.colorChange.emit(getValueByType(value, this.childControl.initType)); - }); + this.subscriptions.push( + this.childControl.valueChanges.subscribe((value) => { + this.colorChange.emit(getValueByType(value, this.childControl.initType)); + }) + ); - this.control.valueChanges.subscribe((value) => { - this.cdr.markForCheck(); - const presets = this.mapColors[value.toHexString()]; - if (presets) { - this.childControl.setColorPresets(presets); - } - this.colorChange.emit(getValueByType(this.childControl.value, this.childControl.initType)); - }); + this.subscriptions.push( + this.control.valueChanges.subscribe((value) => { + this.cdr.markForCheck(); + const presets = this.mapColors[value.toHexString()]; + if (presets) { + this.childControl.setColorPresets(presets); + } + this.colorChange.emit(getValueByType(this.childControl.value, this.childControl.initType)); + }) + ); } public ngOnDestroy(): void { - this.control.unsubscribe(); - this.childControl.unsubscribe(); this.cdr.detach(); + this.subscriptions.forEach((subscription) => subscription.unsubscribe()); + this.subscriptions.length = 0; } public ngOnChanges(changes: SimpleChanges): void { diff --git a/projects/iplab/ngx-color-picker/src/lib/helpers/control.class.ts b/projects/iplab/ngx-color-picker/src/lib/helpers/control.class.ts index 8974a48..1555243 100644 --- a/projects/iplab/ngx-color-picker/src/lib/helpers/control.class.ts +++ b/projects/iplab/ngx-color-picker/src/lib/helpers/control.class.ts @@ -185,12 +185,4 @@ export class ColorPickerControl { this.presetsVisibilityChanges.next(false); return this; } - - /** - * complete emit on all observers - */ - public unsubscribe(): void { - this.valueChanged.complete(); - this.presetsVisibilityChanges.complete(); - } } diff --git a/src/app/app.component.html b/src/app/app.component.html index db486d9..1028c03 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -412,6 +412,76 @@
attributes explanation

+ +
+
How to wrapp color picker
+
+
+
+ +
+ selected color: {{ wrapperColor }}
+
+ +
+
+

Component code

+
+@Component({
+...
+selector: 'chrome-wrapper',
+template: '
+<chrome-picker *ngIf="isVisible" [control]="colorControl"></chrome-picker>
+<div *ngIf="isVisible" class="overlay" (click)="overlayClick($event)"></div>
+'
+})
+export class ChromeWrapperComponent {
+
+    public colorControl = new ColorPickerControl();
+
+    public isVisible: boolean = false;
+
+    @Input()
+    public set color(color: string) {
+        this.colorControl.setValueFrom(color);
+    }
+
+    @Output()
+    public colorChange: EventEmitter<string> = new EventEmitter();
+
+    @HostBinding('style.background-color')
+    public get background(): string {
+        return this.colorControl.value.toHexString();
+    }
+
+    public ngOnInit() {
+        this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));
+    }
+
+    @HostListener('click', ['$event'])
+    public showColorPicker(event: MouseEvent) {
+        if (this.isVisible === true) {
+            return;
+        }
+
+        this.isVisible = !this.isVisible;
+    }
+
+    public overlayClick(event: MouseEvent): void {
+        event.preventDefault();
+        event.stopPropagation();
+        this.isVisible = false;
+    }
+}
+ +

Use case

+
<chrome-wrapper [(color)]="wrapperColor"></chrome-wrapper>
+
+
+
+
+
+
ColorPickerControl methods
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 9517309..fcb41d8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -25,6 +25,8 @@ export class AppComponent { .setValueFrom('#1273DE'); public swatchesColor = '#F04A71'; + + public wrapperColor = '#F04A71'; constructor(private readonly elRef: ElementRef) { } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index eeb11fc..4c6334c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,6 +4,11 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ColorPickerModule } from '@iplab/ngx-color-picker'; import { AppComponent } from './app.component'; +/** + * wrapper component examples + */ +import { WrapperExampleModule } from './wrap-examples/wrap-example.module'; + @NgModule({ @@ -13,7 +18,8 @@ import { AppComponent } from './app.component'; imports: [ BrowserModule, ColorPickerModule, - BrowserAnimationsModule + BrowserAnimationsModule, + WrapperExampleModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.css b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.css new file mode 100644 index 0000000..814d0e9 --- /dev/null +++ b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.css @@ -0,0 +1,26 @@ +:host { + border: 1px solid #333; + border-radius: 35px; + cursor: pointer; + display: inline-block; + height: 35px; + position: relative; + width: 35px; +} + +chrome-picker { + left: 100%; + position: absolute; + top: 100%; + z-index: 2; +} + +.overlay { + background: transparent; + left: 0; + position: fixed; + top: 0; + height: 100%; + width: 100%; + z-index: 1; +} \ No newline at end of file diff --git a/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.html b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.html new file mode 100644 index 0000000..8947d5b --- /dev/null +++ b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.html @@ -0,0 +1,2 @@ + +
\ No newline at end of file diff --git a/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.ts b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.ts new file mode 100644 index 0000000..51d7f76 --- /dev/null +++ b/src/app/wrap-examples/chrome-picker/chrome-wrapper.component.ts @@ -0,0 +1,47 @@ +import { Component, OnInit, EventEmitter, Input, Output, HostBinding, HostListener } from '@angular/core'; +import { ColorPickerControl, Color } from '@iplab/ngx-color-picker'; + +@Component({ + selector: 'chrome-wrapper', + templateUrl: './chrome-wrapper.component.html', + styleUrls: ['./chrome-wrapper.component.css'] +}) +export class ChromeWrapperComponent implements OnInit { + + public colorControl = new ColorPickerControl(); + + public isVisible: boolean = false; + + @Input() + public set color(color: string) { + this.colorControl.setValueFrom(color); + } + + @Output() + public colorChange: EventEmitter = new EventEmitter(); + + @HostBinding('style.background-color') + public get background(): string { + return this.colorControl.value.toHexString(); + } + + ngOnInit() { + this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString())); + } + + @HostListener('click', ['$event']) + public showColorPicker(event: MouseEvent) { + if (this.isVisible === true) { + return; + } + + this.isVisible = !this.isVisible; + } + + public overlayClick(event: MouseEvent): void { + event.preventDefault(); + event.stopPropagation(); + this.isVisible = false; + } + +} diff --git a/src/app/wrap-examples/wrap-example.module.ts b/src/app/wrap-examples/wrap-example.module.ts new file mode 100644 index 0000000..7a9d264 --- /dev/null +++ b/src/app/wrap-examples/wrap-example.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { ColorPickerModule } from '@iplab/ngx-color-picker'; +import { ChromeWrapperComponent } from './chrome-picker/chrome-wrapper.component'; + + + +@NgModule({ + declarations: [ + ChromeWrapperComponent + ], + imports: [ + BrowserModule, + ColorPickerModule + ], + exports: [ + ChromeWrapperComponent + ] +}) +export class WrapperExampleModule { }